]>
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 |
a848cd7e SC |
1864 | ;; |
1865 | *-*-osf* ) | |
1866 | USE_ALPHA=1 | |
1867 | USE_OSF=1 | |
1868 | cat >>confdefs.h <<\_ACEOF | |
1869 | #define __ALPHA__ 1 | |
1870 | _ACEOF | |
1871 | ||
1872 | cat >>confdefs.h <<\_ACEOF | |
1873 | #define __OSF__ 1 | |
1874 | _ACEOF | |
1875 | ||
1876 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1877 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1878 | ;; | |
1879 | *-*-dgux5* ) | |
1880 | USE_ALPHA=1 | |
1881 | USE_SVR4=1 | |
1882 | cat >>confdefs.h <<\_ACEOF | |
1883 | #define __ALPHA__ 1 | |
1884 | _ACEOF | |
1885 | ||
1886 | cat >>confdefs.h <<\_ACEOF | |
1887 | #define __SVR4__ 1 | |
1888 | _ACEOF | |
1889 | ||
1890 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1891 | ;; | |
1892 | *-*-sysv5* ) | |
1893 | USE_SYSV=1 | |
1894 | USE_SVR4=1 | |
1895 | cat >>confdefs.h <<\_ACEOF | |
1896 | #define __SYSV__ 1 | |
1897 | _ACEOF | |
1898 | ||
1899 | cat >>confdefs.h <<\_ACEOF | |
1900 | #define __SVR4__ 1 | |
1901 | _ACEOF | |
1902 | ||
1903 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1904 | ;; | |
1905 | *-*-aix* ) | |
1906 | USE_AIX=1 | |
1907 | USE_SYSV=1 | |
1908 | USE_SVR4=1 | |
1909 | SO_SUFFIX=a | |
1910 | cat >>confdefs.h <<\_ACEOF | |
1911 | #define __AIX__ 1 | |
1912 | _ACEOF | |
1913 | ||
1914 | cat >>confdefs.h <<\_ACEOF | |
1915 | #define __SYSV__ 1 | |
1916 | _ACEOF | |
1917 | ||
1918 | cat >>confdefs.h <<\_ACEOF | |
1919 | #define __SVR4__ 1 | |
1920 | _ACEOF | |
1921 | ||
1922 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1923 | ;; | |
1924 | ||
1925 | *-*-*UnixWare*) | |
1926 | USE_SYSV=1 | |
1927 | USE_SVR4=1 | |
1928 | USE_UNIXWARE=1 | |
1929 | cat >>confdefs.h <<\_ACEOF | |
1930 | #define __UNIXWARE__ 1 | |
1931 | _ACEOF | |
1932 | ||
1933 | ;; | |
1934 | ||
1935 | *-*-cygwin* | *-*-mingw32* ) | |
1936 | SO_SUFFIX=dll | |
1937 | PROGRAM_EXT=".exe" | |
a848cd7e | 1938 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1939 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1940 | ;; |
1941 | ||
1942 | *-pc-msdosdjgpp ) | |
1943 | USE_UNIX=0 | |
1944 | USE_DOS=1 | |
1945 | cat >>confdefs.h <<\_ACEOF | |
1946 | #define __DOS__ 1 | |
1947 | _ACEOF | |
1948 | ||
1949 | PROGRAM_EXT=".exe" | |
1950 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1951 | ;; |
1952 | ||
1953 | *-pc-os2_emx | *-pc-os2-emx ) | |
1954 | cat >>confdefs.h <<\_ACEOF | |
1955 | #define __EMX__ 1 | |
1956 | _ACEOF | |
1957 | ||
1958 | USE_OS2=1 | |
1959 | cat >>confdefs.h <<\_ACEOF | |
1960 | #define __OS2__ 1 | |
1961 | _ACEOF | |
1962 | ||
1963 | PROGRAM_EXT=".exe" | |
1964 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1965 | CXX=gcc | |
1966 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1967 | ac_executable_extensions=".exe" | |
1968 | export ac_executable_extensions | |
1969 | ac_save_IFS="$IFS" | |
1970 | IFS='\\' | |
1971 | ac_TEMP_PATH= | |
1972 | for ac_dir in $PATH; do | |
1973 | IFS=$ac_save_IFS | |
1974 | if test -z "$ac_TEMP_PATH"; then | |
1975 | ac_TEMP_PATH="$ac_dir" | |
1976 | else | |
1977 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1978 | fi | |
1979 | done | |
1980 | export PATH="$ac_TEMP_PATH" | |
1981 | unset ac_TEMP_PATH | |
a03b8b04 | 1982 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1983 | ;; |
1984 | ||
cfda0ea8 | 1985 | *-*-darwin* ) |
a848cd7e SC |
1986 | USE_BSD=1 |
1987 | USE_DARWIN=1 | |
1988 | SO_SUFFIX=dylib | |
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define __BSD__ 1 | |
1991 | _ACEOF | |
1992 | ||
1993 | cat >>confdefs.h <<\_ACEOF | |
1994 | #define __DARWIN__ 1 | |
a848cd7e SC |
1995 | _ACEOF |
1996 | ||
1997 | cat >>confdefs.h <<\_ACEOF | |
1998 | #define TARGET_CARBON 1 | |
1999 | _ACEOF | |
2000 | ||
2001 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2002 | DEFAULT_STD_FLAG=no |
a848cd7e | 2003 | ;; |
1e9e8aba DE |
2004 | powerpc-apple-macos* ) |
2005 | USE_UNIX=0 | |
2006 | ac_cv_c_bigendian=yes | |
2007 | SO_SUFFIX=shlib | |
2008 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2009 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2010 | ;; |
a848cd7e SC |
2011 | |
2012 | *-*-beos* ) | |
2013 | USE_BEOS=1 | |
2014 | cat >>confdefs.h <<\_ACEOF | |
2015 | #define __BEOS__ 1 | |
2016 | _ACEOF | |
2017 | ||
2018 | ;; | |
2019 | ||
2020 | *) | |
2021 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2022 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2023 | { (exit 1); exit 1; }; } | |
2024 | esac | |
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | wx_arg_cache_file="configarg.cache" | |
2030 | echo "loading argument cache $wx_arg_cache_file" | |
2031 | rm -f ${wx_arg_cache_file}.tmp | |
2032 | touch ${wx_arg_cache_file}.tmp | |
2033 | touch ${wx_arg_cache_file} | |
2034 | ||
2035 | ||
2036 | DEBUG_CONFIGURE=0 | |
2037 | if test $DEBUG_CONFIGURE = 1; then | |
2038 | DEFAULT_wxUSE_UNIVERSAL=no | |
2039 | DEFAULT_wxUSE_STL=no | |
2040 | ||
2041 | DEFAULT_wxUSE_NANOX=no | |
2042 | ||
2043 | DEFAULT_wxUSE_THREADS=yes | |
2044 | ||
2045 | DEFAULT_wxUSE_SHARED=yes | |
2046 | DEFAULT_wxUSE_OPTIMISE=no | |
2047 | DEFAULT_wxUSE_PROFILE=no | |
2048 | DEFAULT_wxUSE_NO_DEPS=no | |
2049 | DEFAULT_wxUSE_NO_RTTI=no | |
2050 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2051 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2052 | DEFAULT_wxUSE_PERMISSIVE=no |
2053 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2054 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2055 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2056 | DEFAULT_wxUSE_MEM_TRACING=no | |
2057 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2058 | DEFAULT_wxUSE_DMALLOC=no | |
2059 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2060 | ||
2061 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2062 | DEFAULT_wxUSE_LOG=yes | |
2063 | DEFAULT_wxUSE_LOGWINDOW=no | |
2064 | DEFAULT_wxUSE_LOGGUI=no | |
2065 | DEFAULT_wxUSE_LOGDIALOG=no | |
2066 | ||
2067 | DEFAULT_wxUSE_GUI=yes | |
2068 | DEFAULT_wxUSE_CONTROLS=no | |
2069 | ||
2070 | DEFAULT_wxUSE_REGEX=no | |
2071 | DEFAULT_wxUSE_XML=no | |
2072 | DEFAULT_wxUSE_EXPAT=no | |
2073 | DEFAULT_wxUSE_ZLIB=no | |
2074 | DEFAULT_wxUSE_LIBPNG=no | |
2075 | DEFAULT_wxUSE_LIBJPEG=no | |
2076 | DEFAULT_wxUSE_LIBTIFF=no | |
2077 | DEFAULT_wxUSE_LIBXPM=no | |
2078 | DEFAULT_wxUSE_LIBMSPACK=no | |
2079 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2080 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
3565d135 | 2081 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2082 | DEFAULT_wxUSE_ODBC=no |
2083 | DEFAULT_wxUSE_OPENGL=no | |
2084 | ||
2085 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2086 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2087 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2088 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2089 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2090 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2091 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2092 | DEFAULT_wxUSE_DATETIME=no | |
2093 | DEFAULT_wxUSE_TIMER=no | |
2094 | DEFAULT_wxUSE_STOPWATCH=no | |
2095 | DEFAULT_wxUSE_FILE=no | |
2096 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2097 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2098 | DEFAULT_wxUSE_TEXTBUFFER=no |
2099 | DEFAULT_wxUSE_TEXTFILE=no | |
2100 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2101 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2102 | DEFAULT_wxUSE_INTL=no |
2103 | DEFAULT_wxUSE_CONFIG=no | |
2104 | DEFAULT_wxUSE_FONTMAP=no | |
2105 | DEFAULT_wxUSE_STREAMS=no | |
2106 | DEFAULT_wxUSE_SOCKETS=no | |
2107 | DEFAULT_wxUSE_OLE=no | |
2108 | DEFAULT_wxUSE_DATAOBJ=no | |
2109 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2110 | DEFAULT_wxUSE_JOYSTICK=no | |
2111 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2112 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2113 | DEFAULT_wxUSE_LONGLONG=no | |
2114 | DEFAULT_wxUSE_GEOMETRY=no | |
2115 | ||
2116 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2117 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2118 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2119 | ||
2120 | DEFAULT_wxUSE_CLIPBOARD=no | |
2121 | DEFAULT_wxUSE_TOOLTIPS=no | |
2122 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2123 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2124 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2125 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2126 | |
8a7b1113 | 2127 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2128 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2129 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2130 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2131 | ||
2132 | DEFAULT_wxUSE_RESOURCES=no | |
2133 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2134 | DEFAULT_wxUSE_IPC=no | |
2135 | DEFAULT_wxUSE_HELP=no | |
2136 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2137 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2138 | DEFAULT_wxUSE_TREELAYOUT=no | |
2139 | DEFAULT_wxUSE_METAFILE=no | |
2140 | DEFAULT_wxUSE_MIMETYPE=no | |
2141 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2142 | DEFAULT_wxUSE_PROTOCOL=no | |
2143 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2144 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2145 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2146 | DEFAULT_wxUSE_URL=no | |
2147 | ||
2148 | DEFAULT_wxUSE_COMMONDLGS=no | |
2149 | DEFAULT_wxUSE_CHOICEDLG=no | |
2150 | DEFAULT_wxUSE_COLOURDLG=no | |
2151 | DEFAULT_wxUSE_DIRDLG=no | |
2152 | DEFAULT_wxUSE_FILEDLG=no | |
2153 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2154 | DEFAULT_wxUSE_FONTDLG=no | |
2155 | DEFAULT_wxUSE_MSGDLG=no | |
2156 | DEFAULT_wxUSE_NUMBERDLG=no | |
2157 | DEFAULT_wxUSE_TEXTDLG=no | |
2158 | DEFAULT_wxUSE_SPLASH=no | |
2159 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2160 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2161 | DEFAULT_wxUSE_WIZARDDLG=no | |
2162 | ||
2163 | DEFAULT_wxUSE_MENUS=no | |
2164 | DEFAULT_wxUSE_MINIFRAME=no | |
2165 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2166 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2167 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2168 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2169 | DEFAULT_wxUSE_FILESYSTEM=no |
2170 | DEFAULT_wxUSE_FS_INET=no | |
2171 | DEFAULT_wxUSE_FS_ZIP=no | |
2172 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2173 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2174 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2175 | DEFAULT_wxUSE_VALIDATORS=no |
2176 | ||
2177 | DEFAULT_wxUSE_ACCEL=no | |
2178 | DEFAULT_wxUSE_BUTTON=no | |
2179 | DEFAULT_wxUSE_BMPBUTTON=no | |
2180 | DEFAULT_wxUSE_CALCTRL=no | |
2181 | DEFAULT_wxUSE_CARET=no | |
2182 | DEFAULT_wxUSE_CHECKBOX=no | |
2183 | DEFAULT_wxUSE_CHECKLST=no | |
2184 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2185 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2186 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2187 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2188 | DEFAULT_wxUSE_DISPLAY=no |
2189 | DEFAULT_wxUSE_GAUGE=no | |
2190 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 2191 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2192 | DEFAULT_wxUSE_IMAGLIST=no |
2193 | DEFAULT_wxUSE_LISTBOOK=no | |
2194 | DEFAULT_wxUSE_LISTBOX=no | |
2195 | DEFAULT_wxUSE_LISTCTRL=no | |
2196 | DEFAULT_wxUSE_NOTEBOOK=no | |
2197 | DEFAULT_wxUSE_RADIOBOX=no | |
2198 | DEFAULT_wxUSE_RADIOBTN=no | |
2199 | DEFAULT_wxUSE_SASH=no | |
2200 | DEFAULT_wxUSE_SCROLLBAR=no | |
2201 | DEFAULT_wxUSE_SLIDER=no | |
2202 | DEFAULT_wxUSE_SPINBTN=no | |
2203 | DEFAULT_wxUSE_SPINCTRL=no | |
2204 | DEFAULT_wxUSE_SPLITTER=no | |
2205 | DEFAULT_wxUSE_STATBMP=no | |
2206 | DEFAULT_wxUSE_STATBOX=no | |
2207 | DEFAULT_wxUSE_STATLINE=no | |
2208 | DEFAULT_wxUSE_STATTEXT=no | |
2209 | DEFAULT_wxUSE_STATUSBAR=yes | |
2210 | DEFAULT_wxUSE_TABDIALOG=no | |
2211 | DEFAULT_wxUSE_TEXTCTRL=no | |
2212 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2213 | DEFAULT_wxUSE_TOOLBAR=no | |
2214 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2215 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2216 | DEFAULT_wxUSE_TREEBOOK=no |
a848cd7e SC |
2217 | DEFAULT_wxUSE_TREECTRL=no |
2218 | DEFAULT_wxUSE_POPUPWIN=no | |
2219 | DEFAULT_wxUSE_TIPWINDOW=no | |
2220 | ||
2221 | DEFAULT_wxUSE_UNICODE=no | |
2222 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2223 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2224 | ||
2225 | DEFAULT_wxUSE_PALETTE=no | |
2226 | DEFAULT_wxUSE_IMAGE=no | |
2227 | DEFAULT_wxUSE_GIF=no | |
2228 | DEFAULT_wxUSE_PCX=no | |
2229 | DEFAULT_wxUSE_PNM=no | |
2230 | DEFAULT_wxUSE_IFF=no | |
2231 | DEFAULT_wxUSE_XPM=no | |
2232 | DEFAULT_wxUSE_ICO_CUR=no | |
2233 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2234 | ||
2235 | DEFAULT_wxUSE_MONOLITHIC=no | |
2236 | DEFAULT_wxUSE_PLUGINS=no | |
2237 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2238 | else | |
2239 | DEFAULT_wxUSE_UNIVERSAL=no | |
2240 | DEFAULT_wxUSE_STL=no | |
2241 | ||
2242 | DEFAULT_wxUSE_NANOX=no | |
2243 | ||
2244 | DEFAULT_wxUSE_THREADS=yes | |
2245 | ||
2246 | DEFAULT_wxUSE_SHARED=yes | |
2247 | DEFAULT_wxUSE_OPTIMISE=yes | |
2248 | DEFAULT_wxUSE_PROFILE=no | |
2249 | DEFAULT_wxUSE_NO_DEPS=no | |
2250 | DEFAULT_wxUSE_NO_RTTI=no | |
2251 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2252 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2253 | DEFAULT_wxUSE_PERMISSIVE=no |
2254 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2255 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2256 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2257 | DEFAULT_wxUSE_MEM_TRACING=no | |
2258 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2259 | DEFAULT_wxUSE_DMALLOC=no | |
2260 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2261 | ||
2262 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2263 | DEFAULT_wxUSE_LOG=yes | |
2264 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2265 | DEFAULT_wxUSE_LOGGUI=yes | |
2266 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2267 | ||
2268 | DEFAULT_wxUSE_GUI=yes | |
2269 | ||
2270 | DEFAULT_wxUSE_REGEX=yes | |
2271 | DEFAULT_wxUSE_XML=yes | |
2272 | DEFAULT_wxUSE_EXPAT=yes | |
2273 | DEFAULT_wxUSE_ZLIB=yes | |
2274 | DEFAULT_wxUSE_LIBPNG=yes | |
2275 | DEFAULT_wxUSE_LIBJPEG=yes | |
2276 | DEFAULT_wxUSE_LIBTIFF=yes | |
2277 | DEFAULT_wxUSE_LIBXPM=yes | |
2278 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2279 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2280 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
3565d135 | 2281 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2282 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2283 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2284 | |
2285 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2286 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2287 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2288 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2289 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2290 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2291 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2292 | DEFAULT_wxUSE_DATETIME=yes | |
2293 | DEFAULT_wxUSE_TIMER=yes | |
2294 | DEFAULT_wxUSE_STOPWATCH=yes | |
2295 | DEFAULT_wxUSE_FILE=yes | |
2296 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2297 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2298 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2299 | DEFAULT_wxUSE_TEXTFILE=yes | |
2300 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2301 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2302 | DEFAULT_wxUSE_INTL=yes |
2303 | DEFAULT_wxUSE_CONFIG=yes | |
2304 | DEFAULT_wxUSE_FONTMAP=yes | |
2305 | DEFAULT_wxUSE_STREAMS=yes | |
2306 | DEFAULT_wxUSE_SOCKETS=yes | |
2307 | DEFAULT_wxUSE_OLE=yes | |
2308 | DEFAULT_wxUSE_DATAOBJ=yes | |
2309 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2310 | DEFAULT_wxUSE_JOYSTICK=yes | |
2311 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2312 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2313 | DEFAULT_wxUSE_LONGLONG=yes | |
2314 | DEFAULT_wxUSE_GEOMETRY=yes | |
2315 | ||
2316 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2317 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2318 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2319 | ||
2320 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2321 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2322 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2323 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2324 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2325 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2326 | |
8a7b1113 | 2327 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2328 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2329 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2330 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2331 | ||
2332 | DEFAULT_wxUSE_RESOURCES=no | |
2333 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2334 | DEFAULT_wxUSE_IPC=yes | |
2335 | DEFAULT_wxUSE_HELP=yes | |
2336 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2337 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2338 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2339 | DEFAULT_wxUSE_METAFILE=yes | |
2340 | DEFAULT_wxUSE_MIMETYPE=yes | |
2341 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2342 | DEFAULT_wxUSE_PROTOCOL=yes | |
2343 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2344 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2345 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2346 | DEFAULT_wxUSE_URL=yes | |
2347 | ||
2348 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2349 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2350 | DEFAULT_wxUSE_COLOURDLG=yes | |
2351 | DEFAULT_wxUSE_DIRDLG=yes | |
2352 | DEFAULT_wxUSE_FILEDLG=yes | |
2353 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2354 | DEFAULT_wxUSE_FONTDLG=yes | |
2355 | DEFAULT_wxUSE_MSGDLG=yes | |
2356 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2357 | DEFAULT_wxUSE_TEXTDLG=yes | |
2358 | DEFAULT_wxUSE_SPLASH=yes | |
2359 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2360 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2361 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2362 | ||
2363 | DEFAULT_wxUSE_MENUS=yes | |
2364 | DEFAULT_wxUSE_MINIFRAME=yes | |
2365 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2366 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2367 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2368 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2369 | DEFAULT_wxUSE_FILESYSTEM=yes |
2370 | DEFAULT_wxUSE_FS_INET=yes | |
2371 | DEFAULT_wxUSE_FS_ZIP=yes | |
2372 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2373 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2374 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2375 | DEFAULT_wxUSE_VALIDATORS=yes |
2376 | ||
2377 | DEFAULT_wxUSE_ACCEL=yes | |
2378 | DEFAULT_wxUSE_BUTTON=yes | |
2379 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2380 | DEFAULT_wxUSE_CALCTRL=yes | |
2381 | DEFAULT_wxUSE_CARET=yes | |
2382 | DEFAULT_wxUSE_CHECKBOX=yes | |
2383 | DEFAULT_wxUSE_CHECKLST=yes | |
2384 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2385 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2386 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2387 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2388 | DEFAULT_wxUSE_DISPLAY=yes |
2389 | DEFAULT_wxUSE_GAUGE=yes | |
2390 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 2391 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2392 | DEFAULT_wxUSE_IMAGLIST=yes |
2393 | DEFAULT_wxUSE_LISTBOOK=yes | |
2394 | DEFAULT_wxUSE_LISTBOX=yes | |
2395 | DEFAULT_wxUSE_LISTCTRL=yes | |
2396 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2397 | DEFAULT_wxUSE_RADIOBOX=yes | |
2398 | DEFAULT_wxUSE_RADIOBTN=yes | |
2399 | DEFAULT_wxUSE_SASH=yes | |
2400 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2401 | DEFAULT_wxUSE_SLIDER=yes | |
2402 | DEFAULT_wxUSE_SPINBTN=yes | |
2403 | DEFAULT_wxUSE_SPINCTRL=yes | |
2404 | DEFAULT_wxUSE_SPLITTER=yes | |
2405 | DEFAULT_wxUSE_STATBMP=yes | |
2406 | DEFAULT_wxUSE_STATBOX=yes | |
2407 | DEFAULT_wxUSE_STATLINE=yes | |
2408 | DEFAULT_wxUSE_STATTEXT=yes | |
2409 | DEFAULT_wxUSE_STATUSBAR=yes | |
2410 | DEFAULT_wxUSE_TABDIALOG=no | |
2411 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2412 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2413 | DEFAULT_wxUSE_TOOLBAR=yes | |
2414 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2415 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2416 | DEFAULT_wxUSE_TREEBOOK=yes |
a848cd7e SC |
2417 | DEFAULT_wxUSE_TREECTRL=yes |
2418 | DEFAULT_wxUSE_POPUPWIN=yes | |
2419 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2420 | ||
78de529b | 2421 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2422 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2423 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2424 | ||
2425 | DEFAULT_wxUSE_PALETTE=yes | |
2426 | DEFAULT_wxUSE_IMAGE=yes | |
2427 | DEFAULT_wxUSE_GIF=yes | |
2428 | DEFAULT_wxUSE_PCX=yes | |
2429 | DEFAULT_wxUSE_IFF=no | |
2430 | DEFAULT_wxUSE_PNM=yes | |
2431 | DEFAULT_wxUSE_XPM=yes | |
2432 | DEFAULT_wxUSE_ICO_CUR=yes | |
2433 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2434 | ||
2435 | DEFAULT_wxUSE_MONOLITHIC=no | |
2436 | DEFAULT_wxUSE_PLUGINS=no | |
2437 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2438 | |
f34ca037 | 2439 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2440 | fi |
2441 | ||
2442 | ||
2443 | ||
f34ca037 | 2444 | |
a848cd7e SC |
2445 | for toolkit in `echo $ALL_TOOLKITS`; do |
2446 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2447 | if test "x$LINE" != "x" ; then | |
2448 | has_toolkit_in_cache=1 | |
2449 | eval "DEFAULT_$LINE" | |
2450 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2451 | |
2452 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2453 | if test "x$LINE" != "x" ; then | |
2454 | eval "DEFAULT_$LINE" | |
2455 | fi | |
a848cd7e SC |
2456 | fi |
2457 | done | |
2458 | ||
2459 | ||
2460 | ||
2461 | enablestring= | |
2462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2463 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2464 | no_cache=0 | |
2465 | # Check whether --enable-gui or --disable-gui was given. | |
2466 | if test "${enable_gui+set}" = set; then | |
2467 | enableval="$enable_gui" | |
2468 | ||
2469 | if test "$enableval" = yes; then | |
2470 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2471 | else | |
2472 | ac_cv_use_gui='wxUSE_GUI=no' | |
2473 | fi | |
2474 | ||
2475 | else | |
2476 | ||
2477 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2478 | if test "x$LINE" != x ; then | |
2479 | eval "DEFAULT_$LINE" | |
2480 | else | |
2481 | no_cache=1 | |
2482 | fi | |
2483 | ||
2484 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2485 | ||
2486 | fi; | |
2487 | ||
2488 | eval "$ac_cv_use_gui" | |
2489 | if test "$no_cache" != 1; then | |
2490 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2491 | fi | |
2492 | ||
2493 | if test "$wxUSE_GUI" = yes; then | |
2494 | echo "$as_me:$LINENO: result: yes" >&5 | |
2495 | echo "${ECHO_T}yes" >&6 | |
2496 | else | |
2497 | echo "$as_me:$LINENO: result: no" >&5 | |
2498 | echo "${ECHO_T}no" >&6 | |
2499 | fi | |
2500 | ||
2501 | ||
2502 | enablestring= | |
2503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2504 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2505 | no_cache=0 | |
2506 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2507 | if test "${enable_monolithic+set}" = set; then | |
2508 | enableval="$enable_monolithic" | |
2509 | ||
2510 | if test "$enableval" = yes; then | |
2511 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2512 | else | |
2513 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2514 | fi | |
2515 | ||
2516 | else | |
2517 | ||
2518 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2519 | if test "x$LINE" != x ; then | |
2520 | eval "DEFAULT_$LINE" | |
2521 | else | |
2522 | no_cache=1 | |
2523 | fi | |
2524 | ||
2525 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2526 | ||
2527 | fi; | |
2528 | ||
2529 | eval "$ac_cv_use_monolithic" | |
2530 | if test "$no_cache" != 1; then | |
2531 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2532 | fi | |
2533 | ||
2534 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2535 | echo "$as_me:$LINENO: result: yes" >&5 | |
2536 | echo "${ECHO_T}yes" >&6 | |
2537 | else | |
2538 | echo "$as_me:$LINENO: result: no" >&5 | |
2539 | echo "${ECHO_T}no" >&6 | |
2540 | fi | |
2541 | ||
2542 | ||
2543 | enablestring= | |
2544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2545 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2546 | no_cache=0 | |
2547 | # Check whether --enable-plugins or --disable-plugins was given. | |
2548 | if test "${enable_plugins+set}" = set; then | |
2549 | enableval="$enable_plugins" | |
2550 | ||
2551 | if test "$enableval" = yes; then | |
2552 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2553 | else | |
2554 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2555 | fi | |
2556 | ||
2557 | else | |
2558 | ||
2559 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2560 | if test "x$LINE" != x ; then | |
2561 | eval "DEFAULT_$LINE" | |
2562 | else | |
2563 | no_cache=1 | |
2564 | fi | |
2565 | ||
2566 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2567 | ||
2568 | fi; | |
2569 | ||
2570 | eval "$ac_cv_use_plugins" | |
2571 | if test "$no_cache" != 1; then | |
2572 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2573 | fi | |
2574 | ||
2575 | if test "$wxUSE_PLUGINS" = yes; then | |
2576 | echo "$as_me:$LINENO: result: yes" >&5 | |
2577 | echo "${ECHO_T}yes" >&6 | |
2578 | else | |
2579 | echo "$as_me:$LINENO: result: no" >&5 | |
2580 | echo "${ECHO_T}no" >&6 | |
2581 | fi | |
2582 | ||
2583 | ||
1c14217d VZ |
2584 | withstring=without |
2585 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2586 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2587 | no_cache=0 | |
2588 | ||
2589 | # Check whether --with-subdirs or --without-subdirs was given. | |
2590 | if test "${with_subdirs+set}" = set; then | |
2591 | withval="$with_subdirs" | |
2592 | ||
2593 | if test "$withval" = yes; then | |
2594 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2595 | else | |
2596 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2597 | fi | |
2598 | ||
2599 | else | |
2600 | ||
2601 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2602 | if test "x$LINE" != x ; then | |
2603 | eval "DEFAULT_$LINE" | |
2604 | else | |
2605 | no_cache=1 | |
2606 | fi | |
2607 | ||
2608 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2609 | ||
2610 | fi; | |
2611 | ||
2612 | eval "$ac_cv_use_subdirs" | |
2613 | if test "$no_cache" != 1; then | |
2614 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2615 | fi | |
2616 | ||
2617 | if test "$wxWITH_SUBDIRS" = yes; then | |
2618 | echo "$as_me:$LINENO: result: yes" >&5 | |
2619 | echo "${ECHO_T}yes" >&6 | |
2620 | else | |
2621 | echo "$as_me:$LINENO: result: no" >&5 | |
2622 | echo "${ECHO_T}no" >&6 | |
2623 | fi | |
2624 | ||
2625 | ||
a848cd7e SC |
2626 | if test "$wxUSE_GUI" = "yes"; then |
2627 | ||
2628 | ||
2629 | enablestring= | |
2630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2631 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2632 | no_cache=0 | |
2633 | # Check whether --enable-universal or --disable-universal was given. | |
2634 | if test "${enable_universal+set}" = set; then | |
2635 | enableval="$enable_universal" | |
2636 | ||
2637 | if test "$enableval" = yes; then | |
2638 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2639 | else | |
2640 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2641 | fi | |
2642 | ||
2643 | else | |
2644 | ||
2645 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2646 | if test "x$LINE" != x ; then | |
2647 | eval "DEFAULT_$LINE" | |
2648 | else | |
2649 | no_cache=1 | |
2650 | fi | |
2651 | ||
2652 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2653 | ||
2654 | fi; | |
2655 | ||
2656 | eval "$ac_cv_use_universal" | |
2657 | if test "$no_cache" != 1; then | |
2658 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2659 | fi | |
2660 | ||
2661 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2662 | echo "$as_me:$LINENO: result: yes" >&5 | |
2663 | echo "${ECHO_T}yes" >&6 | |
2664 | else | |
2665 | echo "$as_me:$LINENO: result: no" >&5 | |
2666 | echo "${ECHO_T}no" >&6 | |
2667 | fi | |
2668 | ||
2669 | ||
2670 | # Check whether --with-gtk or --without-gtk was given. | |
2671 | if test "${with_gtk+set}" = set; then | |
2672 | withval="$with_gtk" | |
2673 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2674 | fi; | |
2675 | ||
2676 | # Check whether --with-motif or --without-motif was given. | |
2677 | if test "${with_motif+set}" = set; then | |
2678 | withval="$with_motif" | |
2679 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2680 | fi; | |
2681 | ||
2682 | # Check whether --with-mac or --without-mac was given. | |
2683 | if test "${with_mac+set}" = set; then | |
2684 | withval="$with_mac" | |
c228d3a4 | 2685 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2686 | fi; |
2687 | ||
2688 | # Check whether --with-cocoa or --without-cocoa was given. | |
2689 | if test "${with_cocoa+set}" = set; then | |
2690 | withval="$with_cocoa" | |
c228d3a4 | 2691 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2692 | fi; |
2693 | ||
2694 | # Check whether --with-wine or --without-wine was given. | |
2695 | if test "${with_wine+set}" = set; then | |
2696 | withval="$with_wine" | |
2697 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2698 | fi; | |
2699 | ||
2700 | # Check whether --with-msw or --without-msw was given. | |
2701 | if test "${with_msw+set}" = set; then | |
2702 | withval="$with_msw" | |
2703 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2704 | fi; | |
2705 | ||
2706 | # Check whether --with-pm or --without-pm was given. | |
2707 | if test "${with_pm+set}" = set; then | |
2708 | withval="$with_pm" | |
2709 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2710 | fi; | |
2711 | ||
2712 | # Check whether --with-mgl or --without-mgl was given. | |
2713 | if test "${with_mgl+set}" = set; then | |
2714 | withval="$with_mgl" | |
2715 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2716 | fi; | |
2717 | ||
2718 | # Check whether --with-microwin or --without-microwin was given. | |
2719 | if test "${with_microwin+set}" = set; then | |
2720 | withval="$with_microwin" | |
2721 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2722 | fi; | |
2723 | ||
2724 | # Check whether --with-x11 or --without-x11 was given. | |
2725 | if test "${with_x11+set}" = set; then | |
2726 | withval="$with_x11" | |
2727 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2728 | fi; | |
2729 | ||
2730 | enablestring= | |
2731 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2732 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2733 | no_cache=0 | |
2734 | # Check whether --enable-nanox or --disable-nanox was given. | |
2735 | if test "${enable_nanox+set}" = set; then | |
2736 | enableval="$enable_nanox" | |
2737 | ||
2738 | if test "$enableval" = yes; then | |
2739 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2740 | else | |
2741 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2742 | fi | |
2743 | ||
2744 | else | |
2745 | ||
2746 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2747 | if test "x$LINE" != x ; then | |
2748 | eval "DEFAULT_$LINE" | |
2749 | else | |
2750 | no_cache=1 | |
2751 | fi | |
2752 | ||
2753 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2754 | ||
2755 | fi; | |
2756 | ||
2757 | eval "$ac_cv_use_nanox" | |
2758 | if test "$no_cache" != 1; then | |
2759 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2760 | fi | |
2761 | ||
2762 | if test "$wxUSE_NANOX" = yes; then | |
2763 | echo "$as_me:$LINENO: result: yes" >&5 | |
2764 | echo "${ECHO_T}yes" >&6 | |
2765 | else | |
2766 | echo "$as_me:$LINENO: result: no" >&5 | |
2767 | echo "${ECHO_T}no" >&6 | |
2768 | fi | |
2769 | ||
2770 | ||
f34ca037 MW |
2771 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2772 | if test "${enable_gtk2+set}" = set; then | |
2773 | enableval="$enable_gtk2" | |
2774 | wxUSE_GTK2="$enableval" | |
2775 | fi; | |
a848cd7e | 2776 | |
a848cd7e SC |
2777 | enablestring= |
2778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2779 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2780 | no_cache=0 | |
2781 | # Check whether --enable-gpe or --disable-gpe was given. | |
2782 | if test "${enable_gpe+set}" = set; then | |
2783 | enableval="$enable_gpe" | |
2784 | ||
2785 | if test "$enableval" = yes; then | |
2786 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2787 | else | |
2788 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2789 | fi | |
2790 | ||
2791 | else | |
2792 | ||
2793 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2794 | if test "x$LINE" != x ; then | |
2795 | eval "DEFAULT_$LINE" | |
2796 | else | |
2797 | no_cache=1 | |
2798 | fi | |
2799 | ||
2800 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2801 | ||
2802 | fi; | |
2803 | ||
2804 | eval "$ac_cv_use_gpe" | |
2805 | if test "$no_cache" != 1; then | |
2806 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2807 | fi | |
2808 | ||
2809 | if test "$wxUSE_GPE" = yes; then | |
2810 | echo "$as_me:$LINENO: result: yes" >&5 | |
2811 | echo "${ECHO_T}yes" >&6 | |
2812 | else | |
2813 | echo "$as_me:$LINENO: result: no" >&5 | |
2814 | echo "${ECHO_T}no" >&6 | |
2815 | fi | |
2816 | ||
2817 | ||
2818 | ||
2819 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2820 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2821 | no_cache=0 | |
2822 | ||
2823 | # Check whether --with-libpng or --without-libpng was given. | |
2824 | if test "${with_libpng+set}" = set; then | |
2825 | withval="$with_libpng" | |
2826 | ||
2827 | if test "$withval" = yes; then | |
2828 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2829 | elif test "$withval" = no; then | |
2830 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2831 | elif test "$withval" = sys; then | |
2832 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2833 | elif test "$withval" = builtin; then | |
2834 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2835 | else | |
2836 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2837 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2838 | { (exit 1); exit 1; }; } | |
2839 | fi | |
2840 | ||
2841 | else | |
2842 | ||
2843 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2844 | if test "x$LINE" != x ; then | |
2845 | eval "DEFAULT_$LINE" | |
2846 | else | |
2847 | no_cache=1 | |
2848 | fi | |
2849 | ||
2850 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2851 | ||
2852 | fi; | |
2853 | ||
2854 | eval "$ac_cv_use_libpng" | |
2855 | if test "$no_cache" != 1; then | |
2856 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2857 | fi | |
2858 | ||
2859 | if test "$wxUSE_LIBPNG" = yes; then | |
2860 | echo "$as_me:$LINENO: result: yes" >&5 | |
2861 | echo "${ECHO_T}yes" >&6 | |
2862 | elif test "$wxUSE_LIBPNG" = no; then | |
2863 | echo "$as_me:$LINENO: result: no" >&5 | |
2864 | echo "${ECHO_T}no" >&6 | |
2865 | elif test "$wxUSE_LIBPNG" = sys; then | |
2866 | echo "$as_me:$LINENO: result: system version" >&5 | |
2867 | echo "${ECHO_T}system version" >&6 | |
2868 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2869 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2870 | echo "${ECHO_T}builtin version" >&6 | |
2871 | else | |
2872 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2873 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2874 | { (exit 1); exit 1; }; } | |
2875 | fi | |
2876 | ||
2877 | ||
2878 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2879 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2880 | no_cache=0 | |
2881 | ||
2882 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2883 | if test "${with_libjpeg+set}" = set; then | |
2884 | withval="$with_libjpeg" | |
2885 | ||
2886 | if test "$withval" = yes; then | |
2887 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2888 | elif test "$withval" = no; then | |
2889 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2890 | elif test "$withval" = sys; then | |
2891 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2892 | elif test "$withval" = builtin; then | |
2893 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2894 | else | |
2895 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2896 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2897 | { (exit 1); exit 1; }; } | |
2898 | fi | |
2899 | ||
2900 | else | |
2901 | ||
2902 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2903 | if test "x$LINE" != x ; then | |
2904 | eval "DEFAULT_$LINE" | |
2905 | else | |
2906 | no_cache=1 | |
2907 | fi | |
2908 | ||
2909 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2910 | ||
2911 | fi; | |
2912 | ||
2913 | eval "$ac_cv_use_libjpeg" | |
2914 | if test "$no_cache" != 1; then | |
2915 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2916 | fi | |
2917 | ||
2918 | if test "$wxUSE_LIBJPEG" = yes; then | |
2919 | echo "$as_me:$LINENO: result: yes" >&5 | |
2920 | echo "${ECHO_T}yes" >&6 | |
2921 | elif test "$wxUSE_LIBJPEG" = no; then | |
2922 | echo "$as_me:$LINENO: result: no" >&5 | |
2923 | echo "${ECHO_T}no" >&6 | |
2924 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2925 | echo "$as_me:$LINENO: result: system version" >&5 | |
2926 | echo "${ECHO_T}system version" >&6 | |
2927 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2928 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2929 | echo "${ECHO_T}builtin version" >&6 | |
2930 | else | |
2931 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2932 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2933 | { (exit 1); exit 1; }; } | |
2934 | fi | |
2935 | ||
2936 | ||
2937 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2938 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2939 | no_cache=0 | |
2940 | ||
2941 | # Check whether --with-libtiff or --without-libtiff was given. | |
2942 | if test "${with_libtiff+set}" = set; then | |
2943 | withval="$with_libtiff" | |
2944 | ||
2945 | if test "$withval" = yes; then | |
2946 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2947 | elif test "$withval" = no; then | |
2948 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2949 | elif test "$withval" = sys; then | |
2950 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2951 | elif test "$withval" = builtin; then | |
2952 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2953 | else | |
2954 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2955 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2956 | { (exit 1); exit 1; }; } | |
2957 | fi | |
2958 | ||
2959 | else | |
2960 | ||
2961 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2962 | if test "x$LINE" != x ; then | |
2963 | eval "DEFAULT_$LINE" | |
2964 | else | |
2965 | no_cache=1 | |
2966 | fi | |
2967 | ||
2968 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2969 | ||
2970 | fi; | |
2971 | ||
2972 | eval "$ac_cv_use_libtiff" | |
2973 | if test "$no_cache" != 1; then | |
2974 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2975 | fi | |
2976 | ||
2977 | if test "$wxUSE_LIBTIFF" = yes; then | |
2978 | echo "$as_me:$LINENO: result: yes" >&5 | |
2979 | echo "${ECHO_T}yes" >&6 | |
2980 | elif test "$wxUSE_LIBTIFF" = no; then | |
2981 | echo "$as_me:$LINENO: result: no" >&5 | |
2982 | echo "${ECHO_T}no" >&6 | |
2983 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2984 | echo "$as_me:$LINENO: result: system version" >&5 | |
2985 | echo "${ECHO_T}system version" >&6 | |
2986 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2987 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2988 | echo "${ECHO_T}builtin version" >&6 | |
2989 | else | |
2990 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2991 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2992 | { (exit 1); exit 1; }; } | |
2993 | fi | |
2994 | ||
2995 | ||
2996 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2997 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2998 | no_cache=0 | |
2999 | ||
3000 | # Check whether --with-libxpm or --without-libxpm was given. | |
3001 | if test "${with_libxpm+set}" = set; then | |
3002 | withval="$with_libxpm" | |
3003 | ||
3004 | if test "$withval" = yes; then | |
3005 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3006 | elif test "$withval" = no; then | |
3007 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3008 | elif test "$withval" = sys; then | |
3009 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3010 | elif test "$withval" = builtin; then | |
3011 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3012 | else | |
3013 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3014 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3015 | { (exit 1); exit 1; }; } | |
3016 | fi | |
3017 | ||
3018 | else | |
3019 | ||
3020 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3021 | if test "x$LINE" != x ; then | |
3022 | eval "DEFAULT_$LINE" | |
3023 | else | |
3024 | no_cache=1 | |
3025 | fi | |
3026 | ||
3027 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3028 | ||
3029 | fi; | |
3030 | ||
3031 | eval "$ac_cv_use_libxpm" | |
3032 | if test "$no_cache" != 1; then | |
3033 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3034 | fi | |
3035 | ||
3036 | if test "$wxUSE_LIBXPM" = yes; then | |
3037 | echo "$as_me:$LINENO: result: yes" >&5 | |
3038 | echo "${ECHO_T}yes" >&6 | |
3039 | elif test "$wxUSE_LIBXPM" = no; then | |
3040 | echo "$as_me:$LINENO: result: no" >&5 | |
3041 | echo "${ECHO_T}no" >&6 | |
3042 | elif test "$wxUSE_LIBXPM" = sys; then | |
3043 | echo "$as_me:$LINENO: result: system version" >&5 | |
3044 | echo "${ECHO_T}system version" >&6 | |
3045 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3046 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3047 | echo "${ECHO_T}builtin version" >&6 | |
3048 | else | |
3049 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3050 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3051 | { (exit 1); exit 1; }; } | |
3052 | fi | |
3053 | ||
3054 | ||
1c14217d VZ |
3055 | withstring= |
3056 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3057 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3058 | no_cache=0 |
3059 | ||
3060 | # Check whether --with-libmspack or --without-libmspack was given. | |
3061 | if test "${with_libmspack+set}" = set; then | |
3062 | withval="$with_libmspack" | |
3063 | ||
3064 | if test "$withval" = yes; then | |
3065 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3066 | else | |
3067 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3068 | fi | |
3069 | ||
3070 | else | |
3071 | ||
3072 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3073 | if test "x$LINE" != x ; then | |
3074 | eval "DEFAULT_$LINE" | |
3075 | else | |
3076 | no_cache=1 | |
3077 | fi | |
3078 | ||
3079 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3080 | ||
3081 | fi; | |
3082 | ||
3083 | eval "$ac_cv_use_libmspack" | |
3084 | if test "$no_cache" != 1; then | |
3085 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3086 | fi | |
3087 | ||
3088 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3089 | echo "$as_me:$LINENO: result: yes" >&5 | |
3090 | echo "${ECHO_T}yes" >&6 | |
3091 | else | |
3092 | echo "$as_me:$LINENO: result: no" >&5 | |
3093 | echo "${ECHO_T}no" >&6 | |
3094 | fi | |
3095 | ||
3096 | ||
1c14217d VZ |
3097 | withstring= |
3098 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3099 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3100 | no_cache=0 |
3101 | ||
3102 | # Check whether --with-sdl or --without-sdl was given. | |
3103 | if test "${with_sdl+set}" = set; then | |
3104 | withval="$with_sdl" | |
3105 | ||
3106 | if test "$withval" = yes; then | |
3107 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3108 | else | |
3109 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3110 | fi | |
3111 | ||
3112 | else | |
3113 | ||
3114 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3115 | if test "x$LINE" != x ; then | |
3116 | eval "DEFAULT_$LINE" | |
3117 | else | |
3118 | no_cache=1 | |
3119 | fi | |
3120 | ||
3121 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3122 | ||
3123 | fi; | |
3124 | ||
3125 | eval "$ac_cv_use_sdl" | |
3126 | if test "$no_cache" != 1; then | |
3127 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3128 | fi | |
3129 | ||
3130 | if test "$wxUSE_LIBSDL" = yes; then | |
3131 | echo "$as_me:$LINENO: result: yes" >&5 | |
3132 | echo "${ECHO_T}yes" >&6 | |
3133 | else | |
3134 | echo "$as_me:$LINENO: result: no" >&5 | |
3135 | echo "${ECHO_T}no" >&6 | |
3136 | fi | |
3137 | ||
3138 | ||
1c14217d VZ |
3139 | withstring= |
3140 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3141 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3142 | no_cache=0 |
3143 | ||
3144 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3145 | if test "${with_gnomeprint+set}" = set; then | |
3146 | withval="$with_gnomeprint" | |
3147 | ||
3148 | if test "$withval" = yes; then | |
3149 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3150 | else | |
3151 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3152 | fi | |
3153 | ||
3154 | else | |
3155 | ||
3156 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3157 | if test "x$LINE" != x ; then | |
3158 | eval "DEFAULT_$LINE" | |
3159 | else | |
3160 | no_cache=1 | |
3161 | fi | |
3162 | ||
3163 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3164 | ||
3165 | fi; | |
3166 | ||
3167 | eval "$ac_cv_use_gnomeprint" | |
3168 | if test "$no_cache" != 1; then | |
3169 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3170 | fi | |
3171 | ||
3172 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3173 | echo "$as_me:$LINENO: result: yes" >&5 | |
3174 | echo "${ECHO_T}yes" >&6 | |
3175 | else | |
3176 | echo "$as_me:$LINENO: result: no" >&5 | |
3177 | echo "${ECHO_T}no" >&6 | |
3178 | fi | |
3179 | ||
3180 | ||
3565d135 RR |
3181 | withstring= |
3182 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3183 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3184 | no_cache=0 | |
3185 | ||
3186 | # Check whether --with-hildon or --without-hildon was given. | |
3187 | if test "${with_hildon+set}" = set; then | |
3188 | withval="$with_hildon" | |
3189 | ||
3190 | if test "$withval" = yes; then | |
3191 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3192 | else | |
3193 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3194 | fi | |
3195 | ||
3196 | else | |
3197 | ||
3198 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3199 | if test "x$LINE" != x ; then | |
3200 | eval "DEFAULT_$LINE" | |
3201 | else | |
3202 | no_cache=1 | |
3203 | fi | |
3204 | ||
3205 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3206 | ||
3207 | fi; | |
3208 | ||
3209 | eval "$ac_cv_use_hildon" | |
3210 | if test "$no_cache" != 1; then | |
3211 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3212 | fi | |
3213 | ||
3214 | if test "$wxUSE_LIBHILDON" = yes; then | |
3215 | echo "$as_me:$LINENO: result: yes" >&5 | |
3216 | echo "${ECHO_T}yes" >&6 | |
3217 | else | |
3218 | echo "$as_me:$LINENO: result: no" >&5 | |
3219 | echo "${ECHO_T}no" >&6 | |
3220 | fi | |
3221 | ||
3222 | ||
1c14217d VZ |
3223 | withstring= |
3224 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3225 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3226 | no_cache=0 |
3227 | ||
3228 | # Check whether --with-opengl or --without-opengl was given. | |
3229 | if test "${with_opengl+set}" = set; then | |
3230 | withval="$with_opengl" | |
3231 | ||
3232 | if test "$withval" = yes; then | |
3233 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3234 | else | |
3235 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3236 | fi | |
3237 | ||
3238 | else | |
3239 | ||
3240 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3241 | if test "x$LINE" != x ; then | |
3242 | eval "DEFAULT_$LINE" | |
3243 | else | |
3244 | no_cache=1 | |
3245 | fi | |
3246 | ||
3247 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3248 | ||
3249 | fi; | |
3250 | ||
3251 | eval "$ac_cv_use_opengl" | |
3252 | if test "$no_cache" != 1; then | |
3253 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3254 | fi | |
3255 | ||
3256 | if test "$wxUSE_OPENGL" = yes; then | |
3257 | echo "$as_me:$LINENO: result: yes" >&5 | |
3258 | echo "${ECHO_T}yes" >&6 | |
3259 | else | |
3260 | echo "$as_me:$LINENO: result: no" >&5 | |
3261 | echo "${ECHO_T}no" >&6 | |
3262 | fi | |
3263 | ||
3264 | ||
3265 | fi | |
3266 | ||
3267 | ||
1c14217d VZ |
3268 | withstring= |
3269 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3270 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3271 | no_cache=0 |
3272 | ||
3273 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3274 | if test "${with_dmalloc+set}" = set; then | |
3275 | withval="$with_dmalloc" | |
3276 | ||
3277 | if test "$withval" = yes; then | |
3278 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3279 | else | |
3280 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3281 | fi | |
3282 | ||
3283 | else | |
3284 | ||
3285 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3286 | if test "x$LINE" != x ; then | |
3287 | eval "DEFAULT_$LINE" | |
3288 | else | |
3289 | no_cache=1 | |
3290 | fi | |
3291 | ||
3292 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3293 | ||
3294 | fi; | |
3295 | ||
3296 | eval "$ac_cv_use_dmalloc" | |
3297 | if test "$no_cache" != 1; then | |
3298 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3299 | fi | |
3300 | ||
3301 | if test "$wxUSE_DMALLOC" = yes; then | |
3302 | echo "$as_me:$LINENO: result: yes" >&5 | |
3303 | echo "${ECHO_T}yes" >&6 | |
3304 | else | |
3305 | echo "$as_me:$LINENO: result: no" >&5 | |
3306 | echo "${ECHO_T}no" >&6 | |
3307 | fi | |
3308 | ||
3309 | ||
3310 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3311 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3312 | no_cache=0 | |
3313 | ||
3314 | # Check whether --with-regex or --without-regex was given. | |
3315 | if test "${with_regex+set}" = set; then | |
3316 | withval="$with_regex" | |
3317 | ||
3318 | if test "$withval" = yes; then | |
3319 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3320 | elif test "$withval" = no; then | |
3321 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3322 | elif test "$withval" = sys; then | |
3323 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3324 | elif test "$withval" = builtin; then | |
3325 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3326 | else | |
3327 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3328 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3329 | { (exit 1); exit 1; }; } | |
3330 | fi | |
3331 | ||
3332 | else | |
3333 | ||
3334 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3335 | if test "x$LINE" != x ; then | |
3336 | eval "DEFAULT_$LINE" | |
3337 | else | |
3338 | no_cache=1 | |
3339 | fi | |
3340 | ||
3341 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3342 | ||
3343 | fi; | |
3344 | ||
3345 | eval "$ac_cv_use_regex" | |
3346 | if test "$no_cache" != 1; then | |
3347 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3348 | fi | |
3349 | ||
3350 | if test "$wxUSE_REGEX" = yes; then | |
3351 | echo "$as_me:$LINENO: result: yes" >&5 | |
3352 | echo "${ECHO_T}yes" >&6 | |
3353 | elif test "$wxUSE_REGEX" = no; then | |
3354 | echo "$as_me:$LINENO: result: no" >&5 | |
3355 | echo "${ECHO_T}no" >&6 | |
3356 | elif test "$wxUSE_REGEX" = sys; then | |
3357 | echo "$as_me:$LINENO: result: system version" >&5 | |
3358 | echo "${ECHO_T}system version" >&6 | |
3359 | elif test "$wxUSE_REGEX" = builtin; then | |
3360 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3361 | echo "${ECHO_T}builtin version" >&6 | |
3362 | else | |
3363 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3364 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3365 | { (exit 1); exit 1; }; } | |
3366 | fi | |
3367 | ||
3368 | ||
3369 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3370 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3371 | no_cache=0 | |
3372 | ||
3373 | # Check whether --with-zlib or --without-zlib was given. | |
3374 | if test "${with_zlib+set}" = set; then | |
3375 | withval="$with_zlib" | |
3376 | ||
3377 | if test "$withval" = yes; then | |
3378 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3379 | elif test "$withval" = no; then | |
3380 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3381 | elif test "$withval" = sys; then | |
3382 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3383 | elif test "$withval" = builtin; then | |
3384 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3385 | else | |
3386 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3387 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3388 | { (exit 1); exit 1; }; } | |
3389 | fi | |
3390 | ||
3391 | else | |
3392 | ||
3393 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3394 | if test "x$LINE" != x ; then | |
3395 | eval "DEFAULT_$LINE" | |
3396 | else | |
3397 | no_cache=1 | |
3398 | fi | |
3399 | ||
3400 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3401 | ||
3402 | fi; | |
3403 | ||
3404 | eval "$ac_cv_use_zlib" | |
3405 | if test "$no_cache" != 1; then | |
3406 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3407 | fi | |
3408 | ||
3409 | if test "$wxUSE_ZLIB" = yes; then | |
3410 | echo "$as_me:$LINENO: result: yes" >&5 | |
3411 | echo "${ECHO_T}yes" >&6 | |
3412 | elif test "$wxUSE_ZLIB" = no; then | |
3413 | echo "$as_me:$LINENO: result: no" >&5 | |
3414 | echo "${ECHO_T}no" >&6 | |
3415 | elif test "$wxUSE_ZLIB" = sys; then | |
3416 | echo "$as_me:$LINENO: result: system version" >&5 | |
3417 | echo "${ECHO_T}system version" >&6 | |
3418 | elif test "$wxUSE_ZLIB" = builtin; then | |
3419 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3420 | echo "${ECHO_T}builtin version" >&6 | |
3421 | else | |
3422 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3423 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3424 | { (exit 1); exit 1; }; } | |
3425 | fi | |
3426 | ||
3427 | ||
3428 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3429 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3430 | no_cache=0 | |
3431 | ||
3432 | # Check whether --with-odbc or --without-odbc was given. | |
3433 | if test "${with_odbc+set}" = set; then | |
3434 | withval="$with_odbc" | |
3435 | ||
3436 | if test "$withval" = yes; then | |
3437 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3438 | elif test "$withval" = no; then | |
3439 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3440 | elif test "$withval" = sys; then | |
3441 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3442 | elif test "$withval" = builtin; then | |
3443 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3444 | else | |
3445 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3446 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3447 | { (exit 1); exit 1; }; } | |
3448 | fi | |
3449 | ||
3450 | else | |
3451 | ||
3452 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3453 | if test "x$LINE" != x ; then | |
3454 | eval "DEFAULT_$LINE" | |
3455 | else | |
3456 | no_cache=1 | |
3457 | fi | |
3458 | ||
3459 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3460 | ||
3461 | fi; | |
3462 | ||
3463 | eval "$ac_cv_use_odbc" | |
3464 | if test "$no_cache" != 1; then | |
3465 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3466 | fi | |
3467 | ||
3468 | if test "$wxUSE_ODBC" = yes; then | |
3469 | echo "$as_me:$LINENO: result: yes" >&5 | |
3470 | echo "${ECHO_T}yes" >&6 | |
3471 | elif test "$wxUSE_ODBC" = no; then | |
3472 | echo "$as_me:$LINENO: result: no" >&5 | |
3473 | echo "${ECHO_T}no" >&6 | |
3474 | elif test "$wxUSE_ODBC" = sys; then | |
3475 | echo "$as_me:$LINENO: result: system version" >&5 | |
3476 | echo "${ECHO_T}system version" >&6 | |
3477 | elif test "$wxUSE_ODBC" = builtin; then | |
3478 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3479 | echo "${ECHO_T}builtin version" >&6 | |
3480 | else | |
3481 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3482 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3483 | { (exit 1); exit 1; }; } | |
3484 | fi | |
3485 | ||
3486 | ||
3487 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3488 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3489 | no_cache=0 | |
3490 | ||
3491 | # Check whether --with-expat or --without-expat was given. | |
3492 | if test "${with_expat+set}" = set; then | |
3493 | withval="$with_expat" | |
3494 | ||
3495 | if test "$withval" = yes; then | |
3496 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3497 | elif test "$withval" = no; then | |
3498 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3499 | elif test "$withval" = sys; then | |
3500 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3501 | elif test "$withval" = builtin; then | |
3502 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3503 | else | |
3504 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3505 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3506 | { (exit 1); exit 1; }; } | |
3507 | fi | |
3508 | ||
3509 | else | |
3510 | ||
3511 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3512 | if test "x$LINE" != x ; then | |
3513 | eval "DEFAULT_$LINE" | |
3514 | else | |
3515 | no_cache=1 | |
3516 | fi | |
3517 | ||
3518 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3519 | ||
3520 | fi; | |
3521 | ||
3522 | eval "$ac_cv_use_expat" | |
3523 | if test "$no_cache" != 1; then | |
3524 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3525 | fi | |
3526 | ||
3527 | if test "$wxUSE_EXPAT" = yes; then | |
3528 | echo "$as_me:$LINENO: result: yes" >&5 | |
3529 | echo "${ECHO_T}yes" >&6 | |
3530 | elif test "$wxUSE_EXPAT" = no; then | |
3531 | echo "$as_me:$LINENO: result: no" >&5 | |
3532 | echo "${ECHO_T}no" >&6 | |
3533 | elif test "$wxUSE_EXPAT" = sys; then | |
3534 | echo "$as_me:$LINENO: result: system version" >&5 | |
3535 | echo "${ECHO_T}system version" >&6 | |
3536 | elif test "$wxUSE_EXPAT" = builtin; then | |
3537 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3538 | echo "${ECHO_T}builtin version" >&6 | |
3539 | else | |
3540 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3541 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3542 | { (exit 1); exit 1; }; } | |
3543 | fi | |
3544 | ||
3545 | ||
3546 | ||
3547 | ||
3548 | enablestring= | |
3549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3550 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3551 | no_cache=0 | |
3552 | # Check whether --enable-shared or --disable-shared was given. | |
3553 | if test "${enable_shared+set}" = set; then | |
3554 | enableval="$enable_shared" | |
3555 | ||
3556 | if test "$enableval" = yes; then | |
3557 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3558 | else | |
3559 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3560 | fi | |
3561 | ||
3562 | else | |
3563 | ||
3564 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3565 | if test "x$LINE" != x ; then | |
3566 | eval "DEFAULT_$LINE" | |
3567 | else | |
3568 | no_cache=1 | |
3569 | fi | |
3570 | ||
3571 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3572 | ||
3573 | fi; | |
3574 | ||
3575 | eval "$ac_cv_use_shared" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_SHARED" = yes; then | |
3581 | echo "$as_me:$LINENO: result: yes" >&5 | |
3582 | echo "${ECHO_T}yes" >&6 | |
3583 | else | |
3584 | echo "$as_me:$LINENO: result: no" >&5 | |
3585 | echo "${ECHO_T}no" >&6 | |
3586 | fi | |
3587 | ||
3588 | ||
3589 | enablestring= | |
3590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3591 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3592 | no_cache=0 | |
3593 | # Check whether --enable-optimise or --disable-optimise was given. | |
3594 | if test "${enable_optimise+set}" = set; then | |
3595 | enableval="$enable_optimise" | |
3596 | ||
3597 | if test "$enableval" = yes; then | |
3598 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3599 | else | |
3600 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3601 | fi | |
3602 | ||
3603 | else | |
3604 | ||
3605 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3606 | if test "x$LINE" != x ; then | |
3607 | eval "DEFAULT_$LINE" | |
3608 | else | |
3609 | no_cache=1 | |
3610 | fi | |
3611 | ||
3612 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3613 | ||
3614 | fi; | |
3615 | ||
3616 | eval "$ac_cv_use_optimise" | |
3617 | if test "$no_cache" != 1; then | |
3618 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3619 | fi | |
3620 | ||
3621 | if test "$wxUSE_OPTIMISE" = yes; then | |
3622 | echo "$as_me:$LINENO: result: yes" >&5 | |
3623 | echo "${ECHO_T}yes" >&6 | |
3624 | else | |
3625 | echo "$as_me:$LINENO: result: no" >&5 | |
3626 | echo "${ECHO_T}no" >&6 | |
3627 | fi | |
3628 | ||
3629 | ||
3630 | enablestring= | |
3631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3632 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3633 | no_cache=0 | |
3634 | # Check whether --enable-debug or --disable-debug was given. | |
3635 | if test "${enable_debug+set}" = set; then | |
3636 | enableval="$enable_debug" | |
3637 | ||
3638 | if test "$enableval" = yes; then | |
3639 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3640 | else | |
3641 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3642 | fi | |
3643 | ||
3644 | else | |
3645 | ||
3646 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3647 | if test "x$LINE" != x ; then | |
3648 | eval "DEFAULT_$LINE" | |
3649 | else | |
3650 | no_cache=1 | |
3651 | fi | |
3652 | ||
3653 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3654 | ||
3655 | fi; | |
3656 | ||
3657 | eval "$ac_cv_use_debug" | |
3658 | if test "$no_cache" != 1; then | |
3659 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3660 | fi | |
3661 | ||
3662 | if test "$wxUSE_DEBUG" = yes; then | |
3663 | echo "$as_me:$LINENO: result: yes" >&5 | |
3664 | echo "${ECHO_T}yes" >&6 | |
3665 | else | |
3666 | echo "$as_me:$LINENO: result: no" >&5 | |
3667 | echo "${ECHO_T}no" >&6 | |
3668 | fi | |
3669 | ||
3670 | ||
3671 | enablestring= | |
3672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3673 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3674 | no_cache=0 | |
3675 | # Check whether --enable-stl or --disable-stl was given. | |
3676 | if test "${enable_stl+set}" = set; then | |
3677 | enableval="$enable_stl" | |
3678 | ||
3679 | if test "$enableval" = yes; then | |
3680 | ac_cv_use_stl='wxUSE_STL=yes' | |
3681 | else | |
3682 | ac_cv_use_stl='wxUSE_STL=no' | |
3683 | fi | |
3684 | ||
3685 | else | |
3686 | ||
3687 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3688 | if test "x$LINE" != x ; then | |
3689 | eval "DEFAULT_$LINE" | |
3690 | else | |
3691 | no_cache=1 | |
3692 | fi | |
3693 | ||
3694 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3695 | ||
3696 | fi; | |
3697 | ||
3698 | eval "$ac_cv_use_stl" | |
3699 | if test "$no_cache" != 1; then | |
3700 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3701 | fi | |
3702 | ||
3703 | if test "$wxUSE_STL" = yes; then | |
3704 | echo "$as_me:$LINENO: result: yes" >&5 | |
3705 | echo "${ECHO_T}yes" >&6 | |
3706 | else | |
3707 | echo "$as_me:$LINENO: result: no" >&5 | |
3708 | echo "${ECHO_T}no" >&6 | |
3709 | fi | |
3710 | ||
3711 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3712 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3713 | |
3714 | enablestring= | |
3715 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3716 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3717 | no_cache=0 | |
3718 | # Check whether --enable-omf or --disable-omf was given. | |
3719 | if test "${enable_omf+set}" = set; then | |
3720 | enableval="$enable_omf" | |
3721 | ||
3722 | if test "$enableval" = yes; then | |
3723 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3724 | else | |
3725 | ac_cv_use_omf='wxUSE_OMF=no' | |
3726 | fi | |
3727 | ||
3728 | else | |
3729 | ||
3730 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3731 | if test "x$LINE" != x ; then | |
3732 | eval "DEFAULT_$LINE" | |
3733 | else | |
3734 | no_cache=1 | |
3735 | fi | |
3736 | ||
3737 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3738 | ||
3739 | fi; | |
3740 | ||
3741 | eval "$ac_cv_use_omf" | |
3742 | if test "$no_cache" != 1; then | |
3743 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3744 | fi | |
3745 | ||
3746 | if test "$wxUSE_OMF" = yes; then | |
3747 | echo "$as_me:$LINENO: result: yes" >&5 | |
3748 | echo "${ECHO_T}yes" >&6 | |
3749 | else | |
3750 | echo "$as_me:$LINENO: result: no" >&5 | |
3751 | echo "${ECHO_T}no" >&6 | |
3752 | fi | |
3753 | ||
3754 | fi | |
3755 | ||
3756 | if test "$wxUSE_DEBUG" = "yes"; then | |
3757 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3758 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3759 | BUILD=debug | |
3760 | elif test "$wxUSE_DEBUG" = "no"; then | |
3761 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3762 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3763 | BUILD=release | |
3764 | fi | |
3765 | ||
3766 | ||
3767 | enablestring= | |
3768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3769 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3770 | no_cache=0 | |
3771 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3772 | if test "${enable_debug_flag+set}" = set; then | |
3773 | enableval="$enable_debug_flag" | |
3774 | ||
3775 | if test "$enableval" = yes; then | |
3776 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3777 | else | |
3778 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3779 | fi | |
3780 | ||
3781 | else | |
3782 | ||
3783 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3784 | if test "x$LINE" != x ; then | |
3785 | eval "DEFAULT_$LINE" | |
3786 | else | |
3787 | no_cache=1 | |
3788 | fi | |
3789 | ||
3790 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3791 | ||
3792 | fi; | |
3793 | ||
3794 | eval "$ac_cv_use_debug_flag" | |
3795 | if test "$no_cache" != 1; then | |
3796 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3797 | fi | |
3798 | ||
3799 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3800 | echo "$as_me:$LINENO: result: yes" >&5 | |
3801 | echo "${ECHO_T}yes" >&6 | |
3802 | else | |
3803 | echo "$as_me:$LINENO: result: no" >&5 | |
3804 | echo "${ECHO_T}no" >&6 | |
3805 | fi | |
3806 | ||
3807 | ||
3808 | enablestring= | |
3809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3810 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3811 | no_cache=0 | |
3812 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3813 | if test "${enable_debug_info+set}" = set; then | |
3814 | enableval="$enable_debug_info" | |
3815 | ||
3816 | if test "$enableval" = yes; then | |
3817 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3818 | else | |
3819 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3820 | fi | |
3821 | ||
3822 | else | |
3823 | ||
3824 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3825 | if test "x$LINE" != x ; then | |
3826 | eval "DEFAULT_$LINE" | |
3827 | else | |
3828 | no_cache=1 | |
3829 | fi | |
3830 | ||
3831 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3832 | ||
3833 | fi; | |
3834 | ||
3835 | eval "$ac_cv_use_debug_info" | |
3836 | if test "$no_cache" != 1; then | |
3837 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3838 | fi | |
3839 | ||
3840 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3841 | echo "$as_me:$LINENO: result: yes" >&5 | |
3842 | echo "${ECHO_T}yes" >&6 | |
3843 | else | |
3844 | echo "$as_me:$LINENO: result: no" >&5 | |
3845 | echo "${ECHO_T}no" >&6 | |
3846 | fi | |
3847 | ||
3848 | ||
3849 | enablestring= | |
3850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3851 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3852 | no_cache=0 | |
3853 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3854 | if test "${enable_debug_gdb+set}" = set; then | |
3855 | enableval="$enable_debug_gdb" | |
3856 | ||
3857 | if test "$enableval" = yes; then | |
3858 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3859 | else | |
3860 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3861 | fi | |
3862 | ||
3863 | else | |
3864 | ||
3865 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3866 | if test "x$LINE" != x ; then | |
3867 | eval "DEFAULT_$LINE" | |
3868 | else | |
3869 | no_cache=1 | |
3870 | fi | |
3871 | ||
3872 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3873 | ||
3874 | fi; | |
3875 | ||
3876 | eval "$ac_cv_use_debug_gdb" | |
3877 | if test "$no_cache" != 1; then | |
3878 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3879 | fi | |
3880 | ||
3881 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3882 | echo "$as_me:$LINENO: result: yes" >&5 | |
3883 | echo "${ECHO_T}yes" >&6 | |
3884 | else | |
3885 | echo "$as_me:$LINENO: result: no" >&5 | |
3886 | echo "${ECHO_T}no" >&6 | |
3887 | fi | |
3888 | ||
3889 | ||
3890 | enablestring= | |
3891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3892 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3893 | no_cache=0 | |
3894 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3895 | if test "${enable_debug_cntxt+set}" = set; then | |
3896 | enableval="$enable_debug_cntxt" | |
3897 | ||
3898 | if test "$enableval" = yes; then | |
3899 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3900 | else | |
3901 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3902 | fi | |
3903 | ||
3904 | else | |
3905 | ||
3906 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3907 | if test "x$LINE" != x ; then | |
3908 | eval "DEFAULT_$LINE" | |
3909 | else | |
3910 | no_cache=1 | |
3911 | fi | |
3912 | ||
3913 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3914 | ||
3915 | fi; | |
3916 | ||
3917 | eval "$ac_cv_use_debug_cntxt" | |
3918 | if test "$no_cache" != 1; then | |
3919 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3920 | fi | |
3921 | ||
3922 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3923 | echo "$as_me:$LINENO: result: yes" >&5 | |
3924 | echo "${ECHO_T}yes" >&6 | |
3925 | else | |
3926 | echo "$as_me:$LINENO: result: no" >&5 | |
3927 | echo "${ECHO_T}no" >&6 | |
3928 | fi | |
3929 | ||
3930 | ||
3931 | enablestring= | |
3932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3933 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3934 | no_cache=0 | |
3935 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3936 | if test "${enable_mem_tracing+set}" = set; then | |
3937 | enableval="$enable_mem_tracing" | |
3938 | ||
3939 | if test "$enableval" = yes; then | |
3940 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3941 | else | |
3942 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3943 | fi | |
3944 | ||
3945 | else | |
3946 | ||
3947 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3948 | if test "x$LINE" != x ; then | |
3949 | eval "DEFAULT_$LINE" | |
3950 | else | |
3951 | no_cache=1 | |
3952 | fi | |
3953 | ||
3954 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3955 | ||
3956 | fi; | |
3957 | ||
3958 | eval "$ac_cv_use_mem_tracing" | |
3959 | if test "$no_cache" != 1; then | |
3960 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3961 | fi | |
3962 | ||
3963 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3964 | echo "$as_me:$LINENO: result: yes" >&5 | |
3965 | echo "${ECHO_T}yes" >&6 | |
3966 | else | |
3967 | echo "$as_me:$LINENO: result: no" >&5 | |
3968 | echo "${ECHO_T}no" >&6 | |
3969 | fi | |
3970 | ||
3971 | ||
3972 | enablestring= | |
3973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3974 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3975 | no_cache=0 | |
3976 | # Check whether --enable-profile or --disable-profile was given. | |
3977 | if test "${enable_profile+set}" = set; then | |
3978 | enableval="$enable_profile" | |
3979 | ||
3980 | if test "$enableval" = yes; then | |
3981 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3982 | else | |
3983 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3984 | fi | |
3985 | ||
3986 | else | |
3987 | ||
3988 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3989 | if test "x$LINE" != x ; then | |
3990 | eval "DEFAULT_$LINE" | |
3991 | else | |
3992 | no_cache=1 | |
3993 | fi | |
3994 | ||
3995 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3996 | ||
3997 | fi; | |
3998 | ||
3999 | eval "$ac_cv_use_profile" | |
4000 | if test "$no_cache" != 1; then | |
4001 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4002 | fi | |
4003 | ||
4004 | if test "$wxUSE_PROFILE" = yes; then | |
4005 | echo "$as_me:$LINENO: result: yes" >&5 | |
4006 | echo "${ECHO_T}yes" >&6 | |
4007 | else | |
4008 | echo "$as_me:$LINENO: result: no" >&5 | |
4009 | echo "${ECHO_T}no" >&6 | |
4010 | fi | |
4011 | ||
4012 | ||
4013 | enablestring= | |
4014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4015 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4016 | no_cache=0 | |
4017 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4018 | if test "${enable_no_rtti+set}" = set; then | |
4019 | enableval="$enable_no_rtti" | |
4020 | ||
4021 | if test "$enableval" = yes; then | |
4022 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4023 | else | |
4024 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4025 | fi | |
4026 | ||
4027 | else | |
4028 | ||
4029 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4030 | if test "x$LINE" != x ; then | |
4031 | eval "DEFAULT_$LINE" | |
4032 | else | |
4033 | no_cache=1 | |
4034 | fi | |
4035 | ||
4036 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4037 | ||
4038 | fi; | |
4039 | ||
4040 | eval "$ac_cv_use_no_rtti" | |
4041 | if test "$no_cache" != 1; then | |
4042 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4043 | fi | |
4044 | ||
4045 | if test "$wxUSE_NO_RTTI" = yes; then | |
4046 | echo "$as_me:$LINENO: result: yes" >&5 | |
4047 | echo "${ECHO_T}yes" >&6 | |
4048 | else | |
4049 | echo "$as_me:$LINENO: result: no" >&5 | |
4050 | echo "${ECHO_T}no" >&6 | |
4051 | fi | |
4052 | ||
4053 | ||
4054 | enablestring= | |
4055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4056 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4057 | no_cache=0 | |
4058 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4059 | if test "${enable_no_exceptions+set}" = set; then | |
4060 | enableval="$enable_no_exceptions" | |
4061 | ||
4062 | if test "$enableval" = yes; then | |
4063 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4064 | else | |
4065 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4066 | fi | |
4067 | ||
4068 | else | |
4069 | ||
4070 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4071 | if test "x$LINE" != x ; then | |
4072 | eval "DEFAULT_$LINE" | |
4073 | else | |
4074 | no_cache=1 | |
4075 | fi | |
4076 | ||
4077 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4078 | ||
4079 | fi; | |
4080 | ||
4081 | eval "$ac_cv_use_no_exceptions" | |
4082 | if test "$no_cache" != 1; then | |
4083 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4084 | fi | |
4085 | ||
4086 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4087 | echo "$as_me:$LINENO: result: yes" >&5 | |
4088 | echo "${ECHO_T}yes" >&6 | |
4089 | else | |
4090 | echo "$as_me:$LINENO: result: no" >&5 | |
4091 | echo "${ECHO_T}no" >&6 | |
4092 | fi | |
4093 | ||
4094 | ||
4095 | enablestring= | |
4096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4097 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4098 | no_cache=0 | |
4099 | # Check whether --enable-permissive or --disable-permissive was given. | |
4100 | if test "${enable_permissive+set}" = set; then | |
4101 | enableval="$enable_permissive" | |
4102 | ||
4103 | if test "$enableval" = yes; then | |
4104 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4105 | else | |
4106 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4107 | fi | |
4108 | ||
4109 | else | |
4110 | ||
4111 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4112 | if test "x$LINE" != x ; then | |
4113 | eval "DEFAULT_$LINE" | |
4114 | else | |
4115 | no_cache=1 | |
4116 | fi | |
4117 | ||
4118 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4119 | ||
4120 | fi; | |
4121 | ||
4122 | eval "$ac_cv_use_permissive" | |
4123 | if test "$no_cache" != 1; then | |
4124 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4125 | fi | |
4126 | ||
4127 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4128 | echo "$as_me:$LINENO: result: yes" >&5 | |
4129 | echo "${ECHO_T}yes" >&6 | |
4130 | else | |
4131 | echo "$as_me:$LINENO: result: no" >&5 | |
4132 | echo "${ECHO_T}no" >&6 | |
4133 | fi | |
4134 | ||
4135 | ||
4136 | enablestring= | |
4137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4138 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4139 | no_cache=0 | |
4140 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4141 | if test "${enable_no_deps+set}" = set; then | |
4142 | enableval="$enable_no_deps" | |
4143 | ||
4144 | if test "$enableval" = yes; then | |
4145 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4146 | else | |
4147 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4148 | fi | |
4149 | ||
4150 | else | |
4151 | ||
4152 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4153 | if test "x$LINE" != x ; then | |
4154 | eval "DEFAULT_$LINE" | |
4155 | else | |
4156 | no_cache=1 | |
4157 | fi | |
4158 | ||
4159 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4160 | ||
4161 | fi; | |
4162 | ||
4163 | eval "$ac_cv_use_no_deps" | |
4164 | if test "$no_cache" != 1; then | |
4165 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4166 | fi | |
4167 | ||
4168 | if test "$wxUSE_NO_DEPS" = yes; then | |
4169 | echo "$as_me:$LINENO: result: yes" >&5 | |
4170 | echo "${ECHO_T}yes" >&6 | |
4171 | else | |
4172 | echo "$as_me:$LINENO: result: no" >&5 | |
4173 | echo "${ECHO_T}no" >&6 | |
4174 | fi | |
4175 | ||
4176 | ||
4177 | ||
dee1a63f MB |
4178 | enablestring=enable |
4179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4180 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4181 | no_cache=0 |
dee1a63f MB |
4182 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4183 | if test "${enable_compat24+set}" = set; then | |
4184 | enableval="$enable_compat24" | |
a848cd7e SC |
4185 | |
4186 | if test "$enableval" = yes; then | |
dee1a63f | 4187 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4188 | else |
dee1a63f | 4189 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4190 | fi |
4191 | ||
4192 | else | |
4193 | ||
dee1a63f | 4194 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4195 | if test "x$LINE" != x ; then |
4196 | eval "DEFAULT_$LINE" | |
4197 | else | |
4198 | no_cache=1 | |
4199 | fi | |
4200 | ||
dee1a63f | 4201 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4202 | |
4203 | fi; | |
4204 | ||
dee1a63f | 4205 | eval "$ac_cv_use_compat24" |
a848cd7e | 4206 | if test "$no_cache" != 1; then |
dee1a63f | 4207 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4208 | fi |
4209 | ||
dee1a63f | 4210 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4211 | echo "$as_me:$LINENO: result: yes" >&5 |
4212 | echo "${ECHO_T}yes" >&6 | |
4213 | else | |
4214 | echo "$as_me:$LINENO: result: no" >&5 | |
4215 | echo "${ECHO_T}no" >&6 | |
4216 | fi | |
4217 | ||
4218 | ||
4219 | enablestring=disable | |
dee1a63f MB |
4220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4221 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4222 | no_cache=0 |
dee1a63f MB |
4223 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4224 | if test "${enable_compat26+set}" = set; then | |
4225 | enableval="$enable_compat26" | |
a848cd7e SC |
4226 | |
4227 | if test "$enableval" = yes; then | |
dee1a63f | 4228 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4229 | else |
dee1a63f | 4230 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4231 | fi |
4232 | ||
4233 | else | |
4234 | ||
dee1a63f | 4235 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4236 | if test "x$LINE" != x ; then |
4237 | eval "DEFAULT_$LINE" | |
4238 | else | |
4239 | no_cache=1 | |
4240 | fi | |
4241 | ||
dee1a63f | 4242 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4243 | |
4244 | fi; | |
4245 | ||
dee1a63f | 4246 | eval "$ac_cv_use_compat26" |
a848cd7e | 4247 | if test "$no_cache" != 1; then |
dee1a63f | 4248 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4249 | fi |
4250 | ||
dee1a63f | 4251 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4252 | echo "$as_me:$LINENO: result: yes" >&5 |
4253 | echo "${ECHO_T}yes" >&6 | |
4254 | else | |
4255 | echo "$as_me:$LINENO: result: no" >&5 | |
4256 | echo "${ECHO_T}no" >&6 | |
4257 | fi | |
4258 | ||
4259 | ||
ffa0583f RL |
4260 | |
4261 | enablestring= | |
4262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4263 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4264 | no_cache=0 | |
4265 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4266 | if test "${enable_rpath+set}" = set; then |
4267 | enableval="$enable_rpath" | |
ffa0583f RL |
4268 | |
4269 | if test "$enableval" = yes; then | |
4270 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4271 | else | |
4272 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4273 | fi | |
4274 | ||
4275 | else | |
4276 | ||
4277 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4278 | if test "x$LINE" != x ; then | |
4279 | eval "DEFAULT_$LINE" | |
4280 | else | |
4281 | no_cache=1 | |
4282 | fi | |
4283 | ||
4284 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4285 | ||
a848cd7e SC |
4286 | fi; |
4287 | ||
ffa0583f RL |
4288 | eval "$ac_cv_use_rpath" |
4289 | if test "$no_cache" != 1; then | |
4290 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4291 | fi | |
4292 | ||
4293 | if test "$wxUSE_RPATH" = yes; then | |
4294 | echo "$as_me:$LINENO: result: yes" >&5 | |
4295 | echo "${ECHO_T}yes" >&6 | |
4296 | else | |
4297 | echo "$as_me:$LINENO: result: no" >&5 | |
4298 | echo "${ECHO_T}no" >&6 | |
4299 | fi | |
4300 | ||
a848cd7e SC |
4301 | |
4302 | ||
4303 | ||
4304 | ||
4305 | enablestring= | |
4306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4307 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4308 | no_cache=0 | |
4309 | # Check whether --enable-intl or --disable-intl was given. | |
4310 | if test "${enable_intl+set}" = set; then | |
4311 | enableval="$enable_intl" | |
4312 | ||
4313 | if test "$enableval" = yes; then | |
4314 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4315 | else | |
4316 | ac_cv_use_intl='wxUSE_INTL=no' | |
4317 | fi | |
4318 | ||
4319 | else | |
4320 | ||
4321 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4322 | if test "x$LINE" != x ; then | |
4323 | eval "DEFAULT_$LINE" | |
4324 | else | |
4325 | no_cache=1 | |
4326 | fi | |
4327 | ||
4328 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4329 | ||
4330 | fi; | |
4331 | ||
4332 | eval "$ac_cv_use_intl" | |
4333 | if test "$no_cache" != 1; then | |
4334 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4335 | fi | |
4336 | ||
4337 | if test "$wxUSE_INTL" = yes; then | |
4338 | echo "$as_me:$LINENO: result: yes" >&5 | |
4339 | echo "${ECHO_T}yes" >&6 | |
4340 | else | |
4341 | echo "$as_me:$LINENO: result: no" >&5 | |
4342 | echo "${ECHO_T}no" >&6 | |
4343 | fi | |
4344 | ||
4345 | ||
4346 | enablestring= | |
4347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4348 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4349 | no_cache=0 | |
4350 | # Check whether --enable-config or --disable-config was given. | |
4351 | if test "${enable_config+set}" = set; then | |
4352 | enableval="$enable_config" | |
4353 | ||
4354 | if test "$enableval" = yes; then | |
4355 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4356 | else | |
4357 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4358 | fi | |
4359 | ||
4360 | else | |
4361 | ||
4362 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4363 | if test "x$LINE" != x ; then | |
4364 | eval "DEFAULT_$LINE" | |
4365 | else | |
4366 | no_cache=1 | |
4367 | fi | |
4368 | ||
4369 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4370 | ||
4371 | fi; | |
4372 | ||
4373 | eval "$ac_cv_use_config" | |
4374 | if test "$no_cache" != 1; then | |
4375 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4376 | fi | |
4377 | ||
4378 | if test "$wxUSE_CONFIG" = yes; then | |
4379 | echo "$as_me:$LINENO: result: yes" >&5 | |
4380 | echo "${ECHO_T}yes" >&6 | |
4381 | else | |
4382 | echo "$as_me:$LINENO: result: no" >&5 | |
4383 | echo "${ECHO_T}no" >&6 | |
4384 | fi | |
4385 | ||
4386 | ||
4387 | ||
4388 | enablestring= | |
4389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4390 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4391 | no_cache=0 | |
4392 | # Check whether --enable-protocols or --disable-protocols was given. | |
4393 | if test "${enable_protocols+set}" = set; then | |
4394 | enableval="$enable_protocols" | |
4395 | ||
4396 | if test "$enableval" = yes; then | |
4397 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4398 | else | |
4399 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4400 | fi | |
4401 | ||
4402 | else | |
4403 | ||
4404 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4405 | if test "x$LINE" != x ; then | |
4406 | eval "DEFAULT_$LINE" | |
4407 | else | |
4408 | no_cache=1 | |
4409 | fi | |
4410 | ||
4411 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4412 | ||
4413 | fi; | |
4414 | ||
4415 | eval "$ac_cv_use_protocols" | |
4416 | if test "$no_cache" != 1; then | |
4417 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4418 | fi | |
4419 | ||
4420 | if test "$wxUSE_PROTOCOL" = yes; then | |
4421 | echo "$as_me:$LINENO: result: yes" >&5 | |
4422 | echo "${ECHO_T}yes" >&6 | |
4423 | else | |
4424 | echo "$as_me:$LINENO: result: no" >&5 | |
4425 | echo "${ECHO_T}no" >&6 | |
4426 | fi | |
4427 | ||
4428 | ||
4429 | enablestring= | |
4430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4431 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4432 | no_cache=0 | |
4433 | # Check whether --enable-ftp or --disable-ftp was given. | |
4434 | if test "${enable_ftp+set}" = set; then | |
4435 | enableval="$enable_ftp" | |
4436 | ||
4437 | if test "$enableval" = yes; then | |
4438 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4439 | else | |
4440 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4441 | fi | |
4442 | ||
4443 | else | |
4444 | ||
4445 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4446 | if test "x$LINE" != x ; then | |
4447 | eval "DEFAULT_$LINE" | |
4448 | else | |
4449 | no_cache=1 | |
4450 | fi | |
4451 | ||
4452 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4453 | ||
4454 | fi; | |
4455 | ||
4456 | eval "$ac_cv_use_ftp" | |
4457 | if test "$no_cache" != 1; then | |
4458 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4459 | fi | |
4460 | ||
4461 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4462 | echo "$as_me:$LINENO: result: yes" >&5 | |
4463 | echo "${ECHO_T}yes" >&6 | |
4464 | else | |
4465 | echo "$as_me:$LINENO: result: no" >&5 | |
4466 | echo "${ECHO_T}no" >&6 | |
4467 | fi | |
4468 | ||
4469 | ||
4470 | enablestring= | |
4471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4472 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4473 | no_cache=0 | |
4474 | # Check whether --enable-http or --disable-http was given. | |
4475 | if test "${enable_http+set}" = set; then | |
4476 | enableval="$enable_http" | |
4477 | ||
4478 | if test "$enableval" = yes; then | |
4479 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4480 | else | |
4481 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4482 | fi | |
4483 | ||
4484 | else | |
4485 | ||
4486 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4487 | if test "x$LINE" != x ; then | |
4488 | eval "DEFAULT_$LINE" | |
4489 | else | |
4490 | no_cache=1 | |
4491 | fi | |
4492 | ||
4493 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4494 | ||
4495 | fi; | |
4496 | ||
4497 | eval "$ac_cv_use_http" | |
4498 | if test "$no_cache" != 1; then | |
4499 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4500 | fi | |
4501 | ||
4502 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4503 | echo "$as_me:$LINENO: result: yes" >&5 | |
4504 | echo "${ECHO_T}yes" >&6 | |
4505 | else | |
4506 | echo "$as_me:$LINENO: result: no" >&5 | |
4507 | echo "${ECHO_T}no" >&6 | |
4508 | fi | |
4509 | ||
4510 | ||
4511 | enablestring= | |
4512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4513 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4514 | no_cache=0 | |
4515 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4516 | if test "${enable_fileproto+set}" = set; then | |
4517 | enableval="$enable_fileproto" | |
4518 | ||
4519 | if test "$enableval" = yes; then | |
4520 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4521 | else | |
4522 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4523 | fi | |
4524 | ||
4525 | else | |
4526 | ||
4527 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4528 | if test "x$LINE" != x ; then | |
4529 | eval "DEFAULT_$LINE" | |
4530 | else | |
4531 | no_cache=1 | |
4532 | fi | |
4533 | ||
4534 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4535 | ||
4536 | fi; | |
4537 | ||
4538 | eval "$ac_cv_use_fileproto" | |
4539 | if test "$no_cache" != 1; then | |
4540 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4541 | fi | |
4542 | ||
4543 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4544 | echo "$as_me:$LINENO: result: yes" >&5 | |
4545 | echo "${ECHO_T}yes" >&6 | |
4546 | else | |
4547 | echo "$as_me:$LINENO: result: no" >&5 | |
4548 | echo "${ECHO_T}no" >&6 | |
4549 | fi | |
4550 | ||
4551 | ||
4552 | enablestring= | |
4553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4554 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4555 | no_cache=0 | |
4556 | # Check whether --enable-sockets or --disable-sockets was given. | |
4557 | if test "${enable_sockets+set}" = set; then | |
4558 | enableval="$enable_sockets" | |
4559 | ||
4560 | if test "$enableval" = yes; then | |
4561 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4562 | else | |
4563 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4564 | fi | |
4565 | ||
4566 | else | |
4567 | ||
4568 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4569 | if test "x$LINE" != x ; then | |
4570 | eval "DEFAULT_$LINE" | |
4571 | else | |
4572 | no_cache=1 | |
4573 | fi | |
4574 | ||
4575 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4576 | ||
4577 | fi; | |
4578 | ||
4579 | eval "$ac_cv_use_sockets" | |
4580 | if test "$no_cache" != 1; then | |
4581 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4582 | fi | |
4583 | ||
4584 | if test "$wxUSE_SOCKETS" = yes; then | |
4585 | echo "$as_me:$LINENO: result: yes" >&5 | |
4586 | echo "${ECHO_T}yes" >&6 | |
4587 | else | |
4588 | echo "$as_me:$LINENO: result: no" >&5 | |
4589 | echo "${ECHO_T}no" >&6 | |
4590 | fi | |
4591 | ||
4592 | ||
4593 | enablestring= | |
4594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4595 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4596 | no_cache=0 | |
4597 | # Check whether --enable-ole or --disable-ole was given. | |
4598 | if test "${enable_ole+set}" = set; then | |
4599 | enableval="$enable_ole" | |
4600 | ||
4601 | if test "$enableval" = yes; then | |
4602 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4603 | else | |
4604 | ac_cv_use_ole='wxUSE_OLE=no' | |
4605 | fi | |
4606 | ||
4607 | else | |
4608 | ||
4609 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4610 | if test "x$LINE" != x ; then | |
4611 | eval "DEFAULT_$LINE" | |
4612 | else | |
4613 | no_cache=1 | |
4614 | fi | |
4615 | ||
4616 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4617 | ||
4618 | fi; | |
4619 | ||
4620 | eval "$ac_cv_use_ole" | |
4621 | if test "$no_cache" != 1; then | |
4622 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4623 | fi | |
4624 | ||
4625 | if test "$wxUSE_OLE" = yes; then | |
4626 | echo "$as_me:$LINENO: result: yes" >&5 | |
4627 | echo "${ECHO_T}yes" >&6 | |
4628 | else | |
4629 | echo "$as_me:$LINENO: result: no" >&5 | |
4630 | echo "${ECHO_T}no" >&6 | |
4631 | fi | |
4632 | ||
4633 | ||
4634 | enablestring= | |
4635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4636 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4637 | no_cache=0 | |
4638 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4639 | if test "${enable_dataobj+set}" = set; then | |
4640 | enableval="$enable_dataobj" | |
4641 | ||
4642 | if test "$enableval" = yes; then | |
4643 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4644 | else | |
4645 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4646 | fi | |
4647 | ||
4648 | else | |
4649 | ||
4650 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4651 | if test "x$LINE" != x ; then | |
4652 | eval "DEFAULT_$LINE" | |
4653 | else | |
4654 | no_cache=1 | |
4655 | fi | |
4656 | ||
4657 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4658 | ||
4659 | fi; | |
4660 | ||
4661 | eval "$ac_cv_use_dataobj" | |
4662 | if test "$no_cache" != 1; then | |
4663 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4664 | fi | |
4665 | ||
4666 | if test "$wxUSE_DATAOBJ" = yes; then | |
4667 | echo "$as_me:$LINENO: result: yes" >&5 | |
4668 | echo "${ECHO_T}yes" >&6 | |
4669 | else | |
4670 | echo "$as_me:$LINENO: result: no" >&5 | |
4671 | echo "${ECHO_T}no" >&6 | |
4672 | fi | |
4673 | ||
4674 | ||
4675 | ||
4676 | enablestring= | |
4677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4678 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4679 | no_cache=0 | |
4680 | # Check whether --enable-ipc or --disable-ipc was given. | |
4681 | if test "${enable_ipc+set}" = set; then | |
4682 | enableval="$enable_ipc" | |
4683 | ||
4684 | if test "$enableval" = yes; then | |
4685 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4686 | else | |
4687 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4688 | fi | |
4689 | ||
4690 | else | |
4691 | ||
4692 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4693 | if test "x$LINE" != x ; then | |
4694 | eval "DEFAULT_$LINE" | |
4695 | else | |
4696 | no_cache=1 | |
4697 | fi | |
4698 | ||
4699 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4700 | ||
4701 | fi; | |
4702 | ||
4703 | eval "$ac_cv_use_ipc" | |
4704 | if test "$no_cache" != 1; then | |
4705 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4706 | fi | |
4707 | ||
4708 | if test "$wxUSE_IPC" = yes; then | |
4709 | echo "$as_me:$LINENO: result: yes" >&5 | |
4710 | echo "${ECHO_T}yes" >&6 | |
4711 | else | |
4712 | echo "$as_me:$LINENO: result: no" >&5 | |
4713 | echo "${ECHO_T}no" >&6 | |
4714 | fi | |
4715 | ||
4716 | ||
4717 | ||
4718 | enablestring= | |
4719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4720 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4721 | no_cache=0 | |
4722 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4723 | if test "${enable_apple_ieee+set}" = set; then | |
4724 | enableval="$enable_apple_ieee" | |
4725 | ||
4726 | if test "$enableval" = yes; then | |
4727 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4728 | else | |
4729 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4730 | fi | |
4731 | ||
4732 | else | |
4733 | ||
4734 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4735 | if test "x$LINE" != x ; then | |
4736 | eval "DEFAULT_$LINE" | |
4737 | else | |
4738 | no_cache=1 | |
4739 | fi | |
4740 | ||
4741 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4742 | ||
4743 | fi; | |
4744 | ||
4745 | eval "$ac_cv_use_apple_ieee" | |
4746 | if test "$no_cache" != 1; then | |
4747 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4748 | fi | |
4749 | ||
4750 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4751 | echo "$as_me:$LINENO: result: yes" >&5 | |
4752 | echo "${ECHO_T}yes" >&6 | |
4753 | else | |
4754 | echo "$as_me:$LINENO: result: no" >&5 | |
4755 | echo "${ECHO_T}no" >&6 | |
4756 | fi | |
4757 | ||
4758 | ||
81f90336 MW |
4759 | enablestring= |
4760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4761 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4762 | no_cache=0 | |
4763 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4764 | if test "${enable_arcstream+set}" = set; then | |
4765 | enableval="$enable_arcstream" | |
4766 | ||
4767 | if test "$enableval" = yes; then | |
9e8e867f | 4768 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4769 | else |
9e8e867f | 4770 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4771 | fi |
4772 | ||
4773 | else | |
4774 | ||
9e8e867f | 4775 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4776 | if test "x$LINE" != x ; then |
4777 | eval "DEFAULT_$LINE" | |
4778 | else | |
4779 | no_cache=1 | |
4780 | fi | |
4781 | ||
9e8e867f | 4782 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4783 | |
4784 | fi; | |
4785 | ||
4786 | eval "$ac_cv_use_arcstream" | |
4787 | if test "$no_cache" != 1; then | |
4788 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4789 | fi | |
4790 | ||
9e8e867f | 4791 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4792 | echo "$as_me:$LINENO: result: yes" >&5 |
4793 | echo "${ECHO_T}yes" >&6 | |
4794 | else | |
4795 | echo "$as_me:$LINENO: result: no" >&5 | |
4796 | echo "${ECHO_T}no" >&6 | |
4797 | fi | |
4798 | ||
4799 | ||
a848cd7e | 4800 | enablestring= |
36b6448c VZ |
4801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4802 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4803 | no_cache=0 |
36b6448c VZ |
4804 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4805 | if test "${enable_backtrace+set}" = set; then | |
4806 | enableval="$enable_backtrace" | |
a848cd7e SC |
4807 | |
4808 | if test "$enableval" = yes; then | |
36b6448c | 4809 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4810 | else |
36b6448c | 4811 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4812 | fi |
4813 | ||
4814 | else | |
4815 | ||
36b6448c | 4816 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4817 | if test "x$LINE" != x ; then |
4818 | eval "DEFAULT_$LINE" | |
4819 | else | |
4820 | no_cache=1 | |
4821 | fi | |
4822 | ||
36b6448c | 4823 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4824 | |
4825 | fi; | |
4826 | ||
36b6448c | 4827 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4828 | if test "$no_cache" != 1; then |
36b6448c | 4829 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4830 | fi |
4831 | ||
36b6448c | 4832 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4833 | echo "$as_me:$LINENO: result: yes" >&5 |
4834 | echo "${ECHO_T}yes" >&6 | |
4835 | else | |
4836 | echo "$as_me:$LINENO: result: no" >&5 | |
4837 | echo "${ECHO_T}no" >&6 | |
4838 | fi | |
4839 | ||
4840 | ||
eaff0f0d | 4841 | enablestring= |
36b6448c VZ |
4842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4843 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4844 | no_cache=0 |
36b6448c VZ |
4845 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4846 | if test "${enable_catch_segvs+set}" = set; then | |
4847 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4848 | |
4849 | if test "$enableval" = yes; then | |
36b6448c | 4850 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4851 | else |
36b6448c | 4852 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4853 | fi |
4854 | ||
4855 | else | |
4856 | ||
36b6448c | 4857 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4858 | if test "x$LINE" != x ; then |
4859 | eval "DEFAULT_$LINE" | |
4860 | else | |
4861 | no_cache=1 | |
4862 | fi | |
4863 | ||
36b6448c | 4864 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4865 | |
4866 | fi; | |
4867 | ||
36b6448c | 4868 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4869 | if test "$no_cache" != 1; then |
36b6448c | 4870 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4871 | fi |
4872 | ||
36b6448c | 4873 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4874 | echo "$as_me:$LINENO: result: yes" >&5 |
4875 | echo "${ECHO_T}yes" >&6 | |
4876 | else | |
4877 | echo "$as_me:$LINENO: result: no" >&5 | |
4878 | echo "${ECHO_T}no" >&6 | |
4879 | fi | |
4880 | ||
4881 | ||
a848cd7e SC |
4882 | enablestring= |
4883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4884 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4885 | no_cache=0 | |
4886 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4887 | if test "${enable_cmdline+set}" = set; then | |
4888 | enableval="$enable_cmdline" | |
4889 | ||
4890 | if test "$enableval" = yes; then | |
4891 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4892 | else | |
4893 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4894 | fi | |
4895 | ||
4896 | else | |
4897 | ||
4898 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4899 | if test "x$LINE" != x ; then | |
4900 | eval "DEFAULT_$LINE" | |
4901 | else | |
4902 | no_cache=1 | |
4903 | fi | |
4904 | ||
4905 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4906 | ||
4907 | fi; | |
4908 | ||
4909 | eval "$ac_cv_use_cmdline" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4915 | echo "$as_me:$LINENO: result: yes" >&5 | |
4916 | echo "${ECHO_T}yes" >&6 | |
4917 | else | |
4918 | echo "$as_me:$LINENO: result: no" >&5 | |
4919 | echo "${ECHO_T}no" >&6 | |
4920 | fi | |
4921 | ||
4922 | ||
4923 | enablestring= | |
4924 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4925 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4926 | no_cache=0 | |
4927 | # Check whether --enable-datetime or --disable-datetime was given. | |
4928 | if test "${enable_datetime+set}" = set; then | |
4929 | enableval="$enable_datetime" | |
4930 | ||
4931 | if test "$enableval" = yes; then | |
4932 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4933 | else | |
4934 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4935 | fi | |
4936 | ||
4937 | else | |
4938 | ||
4939 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4940 | if test "x$LINE" != x ; then | |
4941 | eval "DEFAULT_$LINE" | |
4942 | else | |
4943 | no_cache=1 | |
4944 | fi | |
4945 | ||
4946 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4947 | ||
4948 | fi; | |
4949 | ||
4950 | eval "$ac_cv_use_datetime" | |
4951 | if test "$no_cache" != 1; then | |
4952 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4953 | fi | |
4954 | ||
4955 | if test "$wxUSE_DATETIME" = yes; then | |
4956 | echo "$as_me:$LINENO: result: yes" >&5 | |
4957 | echo "${ECHO_T}yes" >&6 | |
4958 | else | |
4959 | echo "$as_me:$LINENO: result: no" >&5 | |
4960 | echo "${ECHO_T}no" >&6 | |
4961 | fi | |
4962 | ||
4963 | ||
36b6448c VZ |
4964 | enablestring= |
4965 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4966 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4967 | no_cache=0 | |
4968 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4969 | if test "${enable_debugreport+set}" = set; then | |
4970 | enableval="$enable_debugreport" | |
4971 | ||
4972 | if test "$enableval" = yes; then | |
4973 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4974 | else | |
4975 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4976 | fi | |
4977 | ||
4978 | else | |
4979 | ||
4980 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4981 | if test "x$LINE" != x ; then | |
4982 | eval "DEFAULT_$LINE" | |
4983 | else | |
4984 | no_cache=1 | |
4985 | fi | |
4986 | ||
4987 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4988 | ||
4989 | fi; | |
4990 | ||
4991 | eval "$ac_cv_use_debugreport" | |
4992 | if test "$no_cache" != 1; then | |
4993 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4994 | fi | |
4995 | ||
4996 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4997 | echo "$as_me:$LINENO: result: yes" >&5 | |
4998 | echo "${ECHO_T}yes" >&6 | |
4999 | else | |
5000 | echo "$as_me:$LINENO: result: no" >&5 | |
5001 | echo "${ECHO_T}no" >&6 | |
5002 | fi | |
5003 | ||
5004 | ||
a848cd7e SC |
5005 | enablestring= |
5006 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5007 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5008 | no_cache=0 | |
5009 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5010 | if test "${enable_dialupman+set}" = set; then | |
5011 | enableval="$enable_dialupman" | |
5012 | ||
5013 | if test "$enableval" = yes; then | |
5014 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5015 | else | |
5016 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5017 | fi | |
5018 | ||
5019 | else | |
5020 | ||
5021 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5022 | if test "x$LINE" != x ; then | |
5023 | eval "DEFAULT_$LINE" | |
5024 | else | |
5025 | no_cache=1 | |
5026 | fi | |
5027 | ||
5028 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5029 | ||
5030 | fi; | |
5031 | ||
5032 | eval "$ac_cv_use_dialupman" | |
5033 | if test "$no_cache" != 1; then | |
5034 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5035 | fi | |
5036 | ||
5037 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5038 | echo "$as_me:$LINENO: result: yes" >&5 | |
5039 | echo "${ECHO_T}yes" >&6 | |
5040 | else | |
5041 | echo "$as_me:$LINENO: result: no" >&5 | |
5042 | echo "${ECHO_T}no" >&6 | |
5043 | fi | |
5044 | ||
5045 | ||
5046 | enablestring= | |
5047 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5048 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5049 | no_cache=0 | |
5050 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5051 | if test "${enable_dynlib+set}" = set; then | |
5052 | enableval="$enable_dynlib" | |
5053 | ||
5054 | if test "$enableval" = yes; then | |
5055 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5056 | else | |
5057 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5058 | fi | |
5059 | ||
5060 | else | |
5061 | ||
5062 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5063 | if test "x$LINE" != x ; then | |
5064 | eval "DEFAULT_$LINE" | |
5065 | else | |
5066 | no_cache=1 | |
5067 | fi | |
5068 | ||
5069 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5070 | ||
5071 | fi; | |
5072 | ||
5073 | eval "$ac_cv_use_dynlib" | |
5074 | if test "$no_cache" != 1; then | |
5075 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5076 | fi | |
5077 | ||
5078 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5079 | echo "$as_me:$LINENO: result: yes" >&5 | |
5080 | echo "${ECHO_T}yes" >&6 | |
5081 | else | |
5082 | echo "$as_me:$LINENO: result: no" >&5 | |
5083 | echo "${ECHO_T}no" >&6 | |
5084 | fi | |
5085 | ||
5086 | ||
5087 | enablestring= | |
5088 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5089 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5090 | no_cache=0 | |
5091 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5092 | if test "${enable_dynamicloader+set}" = set; then | |
5093 | enableval="$enable_dynamicloader" | |
5094 | ||
5095 | if test "$enableval" = yes; then | |
5096 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5097 | else | |
5098 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5099 | fi | |
5100 | ||
5101 | else | |
5102 | ||
5103 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5104 | if test "x$LINE" != x ; then | |
5105 | eval "DEFAULT_$LINE" | |
5106 | else | |
5107 | no_cache=1 | |
5108 | fi | |
5109 | ||
5110 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5111 | ||
5112 | fi; | |
5113 | ||
5114 | eval "$ac_cv_use_dynamicloader" | |
5115 | if test "$no_cache" != 1; then | |
5116 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5117 | fi | |
5118 | ||
5119 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5120 | echo "$as_me:$LINENO: result: yes" >&5 | |
5121 | echo "${ECHO_T}yes" >&6 | |
5122 | else | |
5123 | echo "$as_me:$LINENO: result: no" >&5 | |
5124 | echo "${ECHO_T}no" >&6 | |
5125 | fi | |
5126 | ||
5127 | ||
5128 | enablestring= | |
5129 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5130 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5131 | no_cache=0 | |
5132 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5133 | if test "${enable_exceptions+set}" = set; then | |
5134 | enableval="$enable_exceptions" | |
5135 | ||
5136 | if test "$enableval" = yes; then | |
5137 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5138 | else | |
5139 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5140 | fi | |
5141 | ||
5142 | else | |
5143 | ||
5144 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5145 | if test "x$LINE" != x ; then | |
5146 | eval "DEFAULT_$LINE" | |
5147 | else | |
5148 | no_cache=1 | |
5149 | fi | |
5150 | ||
5151 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5152 | ||
5153 | fi; | |
5154 | ||
5155 | eval "$ac_cv_use_exceptions" | |
5156 | if test "$no_cache" != 1; then | |
5157 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5158 | fi | |
5159 | ||
5160 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5161 | echo "$as_me:$LINENO: result: yes" >&5 | |
5162 | echo "${ECHO_T}yes" >&6 | |
5163 | else | |
5164 | echo "$as_me:$LINENO: result: no" >&5 | |
5165 | echo "${ECHO_T}no" >&6 | |
5166 | fi | |
5167 | ||
5168 | ||
5169 | enablestring= | |
5170 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5171 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5172 | no_cache=0 | |
5173 | # Check whether --enable-ffile or --disable-ffile was given. | |
5174 | if test "${enable_ffile+set}" = set; then | |
5175 | enableval="$enable_ffile" | |
5176 | ||
5177 | if test "$enableval" = yes; then | |
5178 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5179 | else | |
5180 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5181 | fi | |
5182 | ||
5183 | else | |
5184 | ||
5185 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5186 | if test "x$LINE" != x ; then | |
5187 | eval "DEFAULT_$LINE" | |
5188 | else | |
5189 | no_cache=1 | |
5190 | fi | |
5191 | ||
5192 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5193 | ||
5194 | fi; | |
5195 | ||
5196 | eval "$ac_cv_use_ffile" | |
5197 | if test "$no_cache" != 1; then | |
5198 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5199 | fi | |
5200 | ||
5201 | if test "$wxUSE_FFILE" = yes; then | |
5202 | echo "$as_me:$LINENO: result: yes" >&5 | |
5203 | echo "${ECHO_T}yes" >&6 | |
5204 | else | |
5205 | echo "$as_me:$LINENO: result: no" >&5 | |
5206 | echo "${ECHO_T}no" >&6 | |
5207 | fi | |
5208 | ||
5209 | ||
5210 | enablestring= | |
5211 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5212 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5213 | no_cache=0 | |
5214 | # Check whether --enable-file or --disable-file was given. | |
5215 | if test "${enable_file+set}" = set; then | |
5216 | enableval="$enable_file" | |
5217 | ||
5218 | if test "$enableval" = yes; then | |
5219 | ac_cv_use_file='wxUSE_FILE=yes' | |
5220 | else | |
5221 | ac_cv_use_file='wxUSE_FILE=no' | |
5222 | fi | |
5223 | ||
5224 | else | |
5225 | ||
5226 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5227 | if test "x$LINE" != x ; then | |
5228 | eval "DEFAULT_$LINE" | |
5229 | else | |
5230 | no_cache=1 | |
5231 | fi | |
5232 | ||
5233 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5234 | ||
5235 | fi; | |
5236 | ||
5237 | eval "$ac_cv_use_file" | |
5238 | if test "$no_cache" != 1; then | |
5239 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5240 | fi | |
5241 | ||
5242 | if test "$wxUSE_FILE" = yes; then | |
5243 | echo "$as_me:$LINENO: result: yes" >&5 | |
5244 | echo "${ECHO_T}yes" >&6 | |
5245 | else | |
5246 | echo "$as_me:$LINENO: result: no" >&5 | |
5247 | echo "${ECHO_T}no" >&6 | |
5248 | fi | |
5249 | ||
5250 | ||
5251 | enablestring= | |
5252 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5253 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5254 | no_cache=0 | |
5255 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5256 | if test "${enable_filesystem+set}" = set; then | |
5257 | enableval="$enable_filesystem" | |
5258 | ||
5259 | if test "$enableval" = yes; then | |
5260 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5261 | else | |
5262 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5263 | fi | |
5264 | ||
5265 | else | |
5266 | ||
5267 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5268 | if test "x$LINE" != x ; then | |
5269 | eval "DEFAULT_$LINE" | |
5270 | else | |
5271 | no_cache=1 | |
5272 | fi | |
5273 | ||
5274 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5275 | ||
5276 | fi; | |
5277 | ||
5278 | eval "$ac_cv_use_filesystem" | |
5279 | if test "$no_cache" != 1; then | |
5280 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5281 | fi | |
5282 | ||
5283 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5284 | echo "$as_me:$LINENO: result: yes" >&5 | |
5285 | echo "${ECHO_T}yes" >&6 | |
5286 | else | |
5287 | echo "$as_me:$LINENO: result: no" >&5 | |
5288 | echo "${ECHO_T}no" >&6 | |
5289 | fi | |
5290 | ||
5291 | ||
5292 | enablestring= | |
5293 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5294 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5295 | no_cache=0 | |
5296 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5297 | if test "${enable_fontmap+set}" = set; then | |
5298 | enableval="$enable_fontmap" | |
5299 | ||
5300 | if test "$enableval" = yes; then | |
5301 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5302 | else | |
5303 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5304 | fi | |
5305 | ||
5306 | else | |
5307 | ||
5308 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5309 | if test "x$LINE" != x ; then | |
5310 | eval "DEFAULT_$LINE" | |
5311 | else | |
5312 | no_cache=1 | |
5313 | fi | |
5314 | ||
5315 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5316 | ||
5317 | fi; | |
5318 | ||
5319 | eval "$ac_cv_use_fontmap" | |
5320 | if test "$no_cache" != 1; then | |
5321 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5322 | fi | |
5323 | ||
5324 | if test "$wxUSE_FONTMAP" = yes; then | |
5325 | echo "$as_me:$LINENO: result: yes" >&5 | |
5326 | echo "${ECHO_T}yes" >&6 | |
5327 | else | |
5328 | echo "$as_me:$LINENO: result: no" >&5 | |
5329 | echo "${ECHO_T}no" >&6 | |
5330 | fi | |
5331 | ||
5332 | ||
5333 | enablestring= | |
5334 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5335 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5336 | no_cache=0 | |
5337 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5338 | if test "${enable_fs_inet+set}" = set; then | |
5339 | enableval="$enable_fs_inet" | |
5340 | ||
5341 | if test "$enableval" = yes; then | |
5342 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5343 | else | |
5344 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5345 | fi | |
5346 | ||
5347 | else | |
5348 | ||
5349 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5350 | if test "x$LINE" != x ; then | |
5351 | eval "DEFAULT_$LINE" | |
5352 | else | |
5353 | no_cache=1 | |
5354 | fi | |
5355 | ||
5356 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5357 | ||
5358 | fi; | |
5359 | ||
5360 | eval "$ac_cv_use_fs_inet" | |
5361 | if test "$no_cache" != 1; then | |
5362 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5363 | fi | |
5364 | ||
5365 | if test "$wxUSE_FS_INET" = yes; then | |
5366 | echo "$as_me:$LINENO: result: yes" >&5 | |
5367 | echo "${ECHO_T}yes" >&6 | |
5368 | else | |
5369 | echo "$as_me:$LINENO: result: no" >&5 | |
5370 | echo "${ECHO_T}no" >&6 | |
5371 | fi | |
5372 | ||
5373 | ||
5374 | enablestring= | |
5375 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5376 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5377 | no_cache=0 | |
5378 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5379 | if test "${enable_fs_zip+set}" = set; then | |
5380 | enableval="$enable_fs_zip" | |
5381 | ||
5382 | if test "$enableval" = yes; then | |
5383 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5384 | else | |
5385 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5386 | fi | |
5387 | ||
5388 | else | |
5389 | ||
5390 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5391 | if test "x$LINE" != x ; then | |
5392 | eval "DEFAULT_$LINE" | |
5393 | else | |
5394 | no_cache=1 | |
5395 | fi | |
5396 | ||
5397 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5398 | ||
5399 | fi; | |
5400 | ||
5401 | eval "$ac_cv_use_fs_zip" | |
5402 | if test "$no_cache" != 1; then | |
5403 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5404 | fi | |
5405 | ||
5406 | if test "$wxUSE_FS_ZIP" = yes; then | |
5407 | echo "$as_me:$LINENO: result: yes" >&5 | |
5408 | echo "${ECHO_T}yes" >&6 | |
5409 | else | |
5410 | echo "$as_me:$LINENO: result: no" >&5 | |
5411 | echo "${ECHO_T}no" >&6 | |
5412 | fi | |
5413 | ||
5414 | ||
5415 | enablestring= | |
5416 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5417 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5418 | no_cache=0 | |
5419 | # Check whether --enable-geometry or --disable-geometry was given. | |
5420 | if test "${enable_geometry+set}" = set; then | |
5421 | enableval="$enable_geometry" | |
5422 | ||
5423 | if test "$enableval" = yes; then | |
5424 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5425 | else | |
5426 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5427 | fi | |
5428 | ||
5429 | else | |
5430 | ||
5431 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5432 | if test "x$LINE" != x ; then | |
5433 | eval "DEFAULT_$LINE" | |
5434 | else | |
5435 | no_cache=1 | |
5436 | fi | |
5437 | ||
5438 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5439 | ||
5440 | fi; | |
5441 | ||
5442 | eval "$ac_cv_use_geometry" | |
5443 | if test "$no_cache" != 1; then | |
5444 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5445 | fi | |
5446 | ||
5447 | if test "$wxUSE_GEOMETRY" = yes; then | |
5448 | echo "$as_me:$LINENO: result: yes" >&5 | |
5449 | echo "${ECHO_T}yes" >&6 | |
5450 | else | |
5451 | echo "$as_me:$LINENO: result: no" >&5 | |
5452 | echo "${ECHO_T}no" >&6 | |
5453 | fi | |
5454 | ||
5455 | ||
5456 | enablestring= | |
5457 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5458 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5459 | no_cache=0 | |
5460 | # Check whether --enable-log or --disable-log was given. | |
5461 | if test "${enable_log+set}" = set; then | |
5462 | enableval="$enable_log" | |
5463 | ||
5464 | if test "$enableval" = yes; then | |
5465 | ac_cv_use_log='wxUSE_LOG=yes' | |
5466 | else | |
5467 | ac_cv_use_log='wxUSE_LOG=no' | |
5468 | fi | |
5469 | ||
5470 | else | |
5471 | ||
5472 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5473 | if test "x$LINE" != x ; then | |
5474 | eval "DEFAULT_$LINE" | |
5475 | else | |
5476 | no_cache=1 | |
5477 | fi | |
5478 | ||
5479 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5480 | ||
5481 | fi; | |
5482 | ||
5483 | eval "$ac_cv_use_log" | |
5484 | if test "$no_cache" != 1; then | |
5485 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5486 | fi | |
5487 | ||
5488 | if test "$wxUSE_LOG" = yes; then | |
5489 | echo "$as_me:$LINENO: result: yes" >&5 | |
5490 | echo "${ECHO_T}yes" >&6 | |
5491 | else | |
5492 | echo "$as_me:$LINENO: result: no" >&5 | |
5493 | echo "${ECHO_T}no" >&6 | |
5494 | fi | |
5495 | ||
5496 | ||
5497 | enablestring= | |
5498 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5499 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5500 | no_cache=0 | |
5501 | # Check whether --enable-longlong or --disable-longlong was given. | |
5502 | if test "${enable_longlong+set}" = set; then | |
5503 | enableval="$enable_longlong" | |
5504 | ||
5505 | if test "$enableval" = yes; then | |
5506 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5507 | else | |
5508 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5509 | fi | |
5510 | ||
5511 | else | |
5512 | ||
5513 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5514 | if test "x$LINE" != x ; then | |
5515 | eval "DEFAULT_$LINE" | |
5516 | else | |
5517 | no_cache=1 | |
5518 | fi | |
5519 | ||
5520 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5521 | ||
5522 | fi; | |
5523 | ||
5524 | eval "$ac_cv_use_longlong" | |
5525 | if test "$no_cache" != 1; then | |
5526 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5527 | fi | |
5528 | ||
5529 | if test "$wxUSE_LONGLONG" = yes; then | |
5530 | echo "$as_me:$LINENO: result: yes" >&5 | |
5531 | echo "${ECHO_T}yes" >&6 | |
5532 | else | |
5533 | echo "$as_me:$LINENO: result: no" >&5 | |
5534 | echo "${ECHO_T}no" >&6 | |
5535 | fi | |
5536 | ||
5537 | ||
5538 | enablestring= | |
5539 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5540 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5541 | no_cache=0 | |
5542 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5543 | if test "${enable_mimetype+set}" = set; then | |
5544 | enableval="$enable_mimetype" | |
5545 | ||
5546 | if test "$enableval" = yes; then | |
5547 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5548 | else | |
5549 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5550 | fi | |
5551 | ||
5552 | else | |
5553 | ||
5554 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5555 | if test "x$LINE" != x ; then | |
5556 | eval "DEFAULT_$LINE" | |
5557 | else | |
5558 | no_cache=1 | |
5559 | fi | |
5560 | ||
5561 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5562 | ||
5563 | fi; | |
5564 | ||
5565 | eval "$ac_cv_use_mimetype" | |
5566 | if test "$no_cache" != 1; then | |
5567 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5568 | fi | |
5569 | ||
5570 | if test "$wxUSE_MIMETYPE" = yes; then | |
5571 | echo "$as_me:$LINENO: result: yes" >&5 | |
5572 | echo "${ECHO_T}yes" >&6 | |
5573 | else | |
5574 | echo "$as_me:$LINENO: result: no" >&5 | |
5575 | echo "${ECHO_T}no" >&6 | |
5576 | fi | |
5577 | ||
5578 | ||
5579 | enablestring= | |
5580 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5581 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5582 | no_cache=0 | |
5583 | # Check whether --enable-mslu or --disable-mslu was given. | |
5584 | if test "${enable_mslu+set}" = set; then | |
5585 | enableval="$enable_mslu" | |
5586 | ||
5587 | if test "$enableval" = yes; then | |
5588 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5589 | else | |
5590 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5591 | fi | |
5592 | ||
5593 | else | |
5594 | ||
5595 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5596 | if test "x$LINE" != x ; then | |
5597 | eval "DEFAULT_$LINE" | |
5598 | else | |
5599 | no_cache=1 | |
5600 | fi | |
5601 | ||
5602 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5603 | ||
5604 | fi; | |
5605 | ||
5606 | eval "$ac_cv_use_mslu" | |
5607 | if test "$no_cache" != 1; then | |
5608 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5609 | fi | |
5610 | ||
5611 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5612 | echo "$as_me:$LINENO: result: yes" >&5 | |
5613 | echo "${ECHO_T}yes" >&6 | |
5614 | else | |
5615 | echo "$as_me:$LINENO: result: no" >&5 | |
5616 | echo "${ECHO_T}no" >&6 | |
5617 | fi | |
5618 | ||
5619 | ||
5620 | enablestring= | |
5621 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5622 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5623 | no_cache=0 | |
5624 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5625 | if test "${enable_snglinst+set}" = set; then | |
5626 | enableval="$enable_snglinst" | |
5627 | ||
5628 | if test "$enableval" = yes; then | |
5629 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5630 | else | |
5631 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5632 | fi | |
5633 | ||
5634 | else | |
5635 | ||
5636 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5637 | if test "x$LINE" != x ; then | |
5638 | eval "DEFAULT_$LINE" | |
5639 | else | |
5640 | no_cache=1 | |
5641 | fi | |
5642 | ||
5643 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5644 | ||
5645 | fi; | |
5646 | ||
5647 | eval "$ac_cv_use_snglinst" | |
5648 | if test "$no_cache" != 1; then | |
5649 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5650 | fi | |
5651 | ||
5652 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5653 | echo "$as_me:$LINENO: result: yes" >&5 | |
5654 | echo "${ECHO_T}yes" >&6 | |
5655 | else | |
5656 | echo "$as_me:$LINENO: result: no" >&5 | |
5657 | echo "${ECHO_T}no" >&6 | |
5658 | fi | |
5659 | ||
5660 | ||
5661 | enablestring= | |
07158944 VZ |
5662 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5663 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5664 | no_cache=0 |
07158944 VZ |
5665 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5666 | if test "${enable_std_iostreams+set}" = set; then | |
5667 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5668 | |
5669 | if test "$enableval" = yes; then | |
07158944 | 5670 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5671 | else |
07158944 | 5672 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5673 | fi |
5674 | ||
5675 | else | |
5676 | ||
07158944 | 5677 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5678 | if test "x$LINE" != x ; then |
5679 | eval "DEFAULT_$LINE" | |
5680 | else | |
5681 | no_cache=1 | |
5682 | fi | |
5683 | ||
07158944 | 5684 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5685 | |
5686 | fi; | |
5687 | ||
07158944 | 5688 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5689 | if test "$no_cache" != 1; then |
07158944 | 5690 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5691 | fi |
5692 | ||
07158944 | 5693 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5694 | echo "$as_me:$LINENO: result: yes" >&5 |
5695 | echo "${ECHO_T}yes" >&6 | |
5696 | else | |
5697 | echo "$as_me:$LINENO: result: no" >&5 | |
5698 | echo "${ECHO_T}no" >&6 | |
5699 | fi | |
5700 | ||
5701 | ||
59746b65 MW |
5702 | enablestring= |
5703 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5704 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5705 | no_cache=0 | |
5706 | # Check whether --enable-std_string or --disable-std_string was given. | |
5707 | if test "${enable_std_string+set}" = set; then | |
5708 | enableval="$enable_std_string" | |
5709 | ||
5710 | if test "$enableval" = yes; then | |
5711 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5712 | else | |
5713 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5714 | fi | |
5715 | ||
5716 | else | |
5717 | ||
5718 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5719 | if test "x$LINE" != x ; then | |
5720 | eval "DEFAULT_$LINE" | |
5721 | else | |
5722 | no_cache=1 | |
5723 | fi | |
5724 | ||
5725 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5726 | ||
5727 | fi; | |
5728 | ||
5729 | eval "$ac_cv_use_std_string" | |
5730 | if test "$no_cache" != 1; then | |
5731 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5732 | fi | |
5733 | ||
5734 | if test "$wxUSE_STD_STRING" = yes; then | |
5735 | echo "$as_me:$LINENO: result: yes" >&5 | |
5736 | echo "${ECHO_T}yes" >&6 | |
5737 | else | |
5738 | echo "$as_me:$LINENO: result: no" >&5 | |
5739 | echo "${ECHO_T}no" >&6 | |
5740 | fi | |
5741 | ||
5742 | ||
a848cd7e | 5743 | enablestring= |
07158944 VZ |
5744 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5745 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5746 | no_cache=0 |
07158944 VZ |
5747 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5748 | if test "${enable_stdpaths+set}" = set; then | |
5749 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5750 | |
5751 | if test "$enableval" = yes; then | |
07158944 | 5752 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5753 | else |
07158944 | 5754 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5755 | fi |
5756 | ||
5757 | else | |
5758 | ||
07158944 | 5759 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5760 | if test "x$LINE" != x ; then |
5761 | eval "DEFAULT_$LINE" | |
5762 | else | |
5763 | no_cache=1 | |
5764 | fi | |
5765 | ||
07158944 | 5766 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5767 | |
5768 | fi; | |
5769 | ||
07158944 | 5770 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5771 | if test "$no_cache" != 1; then |
07158944 | 5772 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5773 | fi |
5774 | ||
07158944 | 5775 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5776 | echo "$as_me:$LINENO: result: yes" >&5 |
5777 | echo "${ECHO_T}yes" >&6 | |
5778 | else | |
5779 | echo "$as_me:$LINENO: result: no" >&5 | |
5780 | echo "${ECHO_T}no" >&6 | |
5781 | fi | |
5782 | ||
5783 | ||
5784 | enablestring= | |
5785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5786 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5787 | no_cache=0 | |
5788 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5789 | if test "${enable_stopwatch+set}" = set; then | |
5790 | enableval="$enable_stopwatch" | |
5791 | ||
5792 | if test "$enableval" = yes; then | |
5793 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5794 | else | |
5795 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5796 | fi | |
5797 | ||
5798 | else | |
5799 | ||
5800 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5801 | if test "x$LINE" != x ; then | |
5802 | eval "DEFAULT_$LINE" | |
5803 | else | |
5804 | no_cache=1 | |
5805 | fi | |
5806 | ||
5807 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5808 | ||
5809 | fi; | |
5810 | ||
5811 | eval "$ac_cv_use_stopwatch" | |
5812 | if test "$no_cache" != 1; then | |
5813 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5814 | fi | |
5815 | ||
5816 | if test "$wxUSE_STOPWATCH" = yes; then | |
5817 | echo "$as_me:$LINENO: result: yes" >&5 | |
5818 | echo "${ECHO_T}yes" >&6 | |
5819 | else | |
5820 | echo "$as_me:$LINENO: result: no" >&5 | |
5821 | echo "${ECHO_T}no" >&6 | |
5822 | fi | |
5823 | ||
5824 | ||
07158944 VZ |
5825 | enablestring= |
5826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5827 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5828 | no_cache=0 | |
5829 | # Check whether --enable-streams or --disable-streams was given. | |
5830 | if test "${enable_streams+set}" = set; then | |
5831 | enableval="$enable_streams" | |
5832 | ||
5833 | if test "$enableval" = yes; then | |
5834 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5835 | else | |
5836 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5837 | fi | |
5838 | ||
5839 | else | |
5840 | ||
5841 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5842 | if test "x$LINE" != x ; then | |
5843 | eval "DEFAULT_$LINE" | |
5844 | else | |
5845 | no_cache=1 | |
5846 | fi | |
5847 | ||
5848 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5849 | ||
5850 | fi; | |
5851 | ||
5852 | eval "$ac_cv_use_streams" | |
5853 | if test "$no_cache" != 1; then | |
5854 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5855 | fi | |
5856 | ||
5857 | if test "$wxUSE_STREAMS" = yes; then | |
5858 | echo "$as_me:$LINENO: result: yes" >&5 | |
5859 | echo "${ECHO_T}yes" >&6 | |
5860 | else | |
5861 | echo "$as_me:$LINENO: result: no" >&5 | |
5862 | echo "${ECHO_T}no" >&6 | |
5863 | fi | |
5864 | ||
5865 | ||
a848cd7e SC |
5866 | enablestring= |
5867 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5868 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5869 | no_cache=0 | |
5870 | # Check whether --enable-system_options or --disable-system_options was given. | |
5871 | if test "${enable_system_options+set}" = set; then | |
5872 | enableval="$enable_system_options" | |
5873 | ||
5874 | if test "$enableval" = yes; then | |
5875 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5876 | else | |
5877 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5878 | fi | |
5879 | ||
5880 | else | |
5881 | ||
5882 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5883 | if test "x$LINE" != x ; then | |
5884 | eval "DEFAULT_$LINE" | |
5885 | else | |
5886 | no_cache=1 | |
5887 | fi | |
5888 | ||
5889 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5890 | ||
5891 | fi; | |
5892 | ||
5893 | eval "$ac_cv_use_system_options" | |
5894 | if test "$no_cache" != 1; then | |
5895 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5896 | fi | |
5897 | ||
5898 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5899 | echo "$as_me:$LINENO: result: yes" >&5 | |
5900 | echo "${ECHO_T}yes" >&6 | |
5901 | else | |
5902 | echo "$as_me:$LINENO: result: no" >&5 | |
5903 | echo "${ECHO_T}no" >&6 | |
5904 | fi | |
5905 | ||
5906 | ||
5907 | enablestring= | |
5908 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5909 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5910 | no_cache=0 | |
5911 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5912 | if test "${enable_textbuf+set}" = set; then | |
5913 | enableval="$enable_textbuf" | |
5914 | ||
5915 | if test "$enableval" = yes; then | |
5916 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5917 | else | |
5918 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5919 | fi | |
5920 | ||
5921 | else | |
5922 | ||
5923 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5924 | if test "x$LINE" != x ; then | |
5925 | eval "DEFAULT_$LINE" | |
5926 | else | |
5927 | no_cache=1 | |
5928 | fi | |
5929 | ||
5930 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5931 | ||
5932 | fi; | |
5933 | ||
5934 | eval "$ac_cv_use_textbuf" | |
5935 | if test "$no_cache" != 1; then | |
5936 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5937 | fi | |
5938 | ||
5939 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5940 | echo "$as_me:$LINENO: result: yes" >&5 | |
5941 | echo "${ECHO_T}yes" >&6 | |
5942 | else | |
5943 | echo "$as_me:$LINENO: result: no" >&5 | |
5944 | echo "${ECHO_T}no" >&6 | |
5945 | fi | |
5946 | ||
5947 | ||
5948 | enablestring= | |
5949 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5950 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5951 | no_cache=0 | |
5952 | # Check whether --enable-textfile or --disable-textfile was given. | |
5953 | if test "${enable_textfile+set}" = set; then | |
5954 | enableval="$enable_textfile" | |
5955 | ||
5956 | if test "$enableval" = yes; then | |
5957 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5958 | else | |
5959 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5960 | fi | |
5961 | ||
5962 | else | |
5963 | ||
5964 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5965 | if test "x$LINE" != x ; then | |
5966 | eval "DEFAULT_$LINE" | |
5967 | else | |
5968 | no_cache=1 | |
5969 | fi | |
5970 | ||
5971 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5972 | ||
5973 | fi; | |
5974 | ||
5975 | eval "$ac_cv_use_textfile" | |
5976 | if test "$no_cache" != 1; then | |
5977 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5978 | fi | |
5979 | ||
5980 | if test "$wxUSE_TEXTFILE" = yes; then | |
5981 | echo "$as_me:$LINENO: result: yes" >&5 | |
5982 | echo "${ECHO_T}yes" >&6 | |
5983 | else | |
5984 | echo "$as_me:$LINENO: result: no" >&5 | |
5985 | echo "${ECHO_T}no" >&6 | |
5986 | fi | |
5987 | ||
5988 | ||
5989 | enablestring= | |
5990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5991 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5992 | no_cache=0 | |
5993 | # Check whether --enable-timer or --disable-timer was given. | |
5994 | if test "${enable_timer+set}" = set; then | |
5995 | enableval="$enable_timer" | |
5996 | ||
5997 | if test "$enableval" = yes; then | |
5998 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5999 | else | |
6000 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6001 | fi | |
6002 | ||
6003 | else | |
6004 | ||
6005 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6006 | if test "x$LINE" != x ; then | |
6007 | eval "DEFAULT_$LINE" | |
6008 | else | |
6009 | no_cache=1 | |
6010 | fi | |
6011 | ||
6012 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6013 | ||
6014 | fi; | |
6015 | ||
6016 | eval "$ac_cv_use_timer" | |
6017 | if test "$no_cache" != 1; then | |
6018 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6019 | fi | |
6020 | ||
6021 | if test "$wxUSE_TIMER" = yes; then | |
6022 | echo "$as_me:$LINENO: result: yes" >&5 | |
6023 | echo "${ECHO_T}yes" >&6 | |
6024 | else | |
6025 | echo "$as_me:$LINENO: result: no" >&5 | |
6026 | echo "${ECHO_T}no" >&6 | |
6027 | fi | |
6028 | ||
6029 | ||
6030 | enablestring= | |
6031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6032 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6033 | no_cache=0 | |
6034 | # Check whether --enable-unicode or --disable-unicode was given. | |
6035 | if test "${enable_unicode+set}" = set; then | |
6036 | enableval="$enable_unicode" | |
6037 | ||
6038 | if test "$enableval" = yes; then | |
6039 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6040 | else | |
6041 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6042 | fi | |
6043 | ||
6044 | else | |
6045 | ||
6046 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6047 | if test "x$LINE" != x ; then | |
6048 | eval "DEFAULT_$LINE" | |
6049 | else | |
6050 | no_cache=1 | |
6051 | fi | |
6052 | ||
6053 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6054 | ||
6055 | fi; | |
6056 | ||
6057 | eval "$ac_cv_use_unicode" | |
6058 | if test "$no_cache" != 1; then | |
6059 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6060 | fi | |
6061 | ||
6062 | if test "$wxUSE_UNICODE" = yes; then | |
6063 | echo "$as_me:$LINENO: result: yes" >&5 | |
6064 | echo "${ECHO_T}yes" >&6 | |
6065 | else | |
6066 | echo "$as_me:$LINENO: result: no" >&5 | |
6067 | echo "${ECHO_T}no" >&6 | |
6068 | fi | |
6069 | ||
6070 | ||
6071 | enablestring= | |
6072 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6073 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6074 | no_cache=0 | |
6075 | # Check whether --enable-sound or --disable-sound was given. | |
6076 | if test "${enable_sound+set}" = set; then | |
6077 | enableval="$enable_sound" | |
6078 | ||
6079 | if test "$enableval" = yes; then | |
6080 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6081 | else | |
6082 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6083 | fi | |
6084 | ||
6085 | else | |
6086 | ||
6087 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6088 | if test "x$LINE" != x ; then | |
6089 | eval "DEFAULT_$LINE" | |
6090 | else | |
6091 | no_cache=1 | |
6092 | fi | |
6093 | ||
6094 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6095 | ||
6096 | fi; | |
6097 | ||
6098 | eval "$ac_cv_use_sound" | |
6099 | if test "$no_cache" != 1; then | |
6100 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6101 | fi | |
6102 | ||
6103 | if test "$wxUSE_SOUND" = yes; then | |
6104 | echo "$as_me:$LINENO: result: yes" >&5 | |
6105 | echo "${ECHO_T}yes" >&6 | |
6106 | else | |
6107 | echo "$as_me:$LINENO: result: no" >&5 | |
6108 | echo "${ECHO_T}no" >&6 | |
6109 | fi | |
6110 | ||
6111 | ||
3b57de8b RL |
6112 | enablestring= |
6113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6114 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6115 | no_cache=0 | |
6116 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6117 | if test "${enable_mediactrl+set}" = set; then | |
6118 | enableval="$enable_mediactrl" | |
6119 | ||
6120 | if test "$enableval" = yes; then | |
6121 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6122 | else | |
6123 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6124 | fi | |
6125 | ||
6126 | else | |
6127 | ||
6128 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6129 | if test "x$LINE" != x ; then | |
6130 | eval "DEFAULT_$LINE" | |
6131 | else | |
6132 | no_cache=1 | |
6133 | fi | |
6134 | ||
6135 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6136 | ||
6137 | fi; | |
6138 | ||
6139 | eval "$ac_cv_use_mediactrl" | |
6140 | if test "$no_cache" != 1; then | |
6141 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6142 | fi | |
6143 | ||
6144 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6145 | echo "$as_me:$LINENO: result: yes" >&5 | |
6146 | echo "${ECHO_T}yes" >&6 | |
6147 | else | |
6148 | echo "$as_me:$LINENO: result: no" >&5 | |
6149 | echo "${ECHO_T}no" >&6 | |
6150 | fi | |
6151 | ||
6152 | ||
a848cd7e SC |
6153 | enablestring= |
6154 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6155 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6156 | no_cache=0 | |
6157 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6158 | if test "${enable_wxprintfv+set}" = set; then | |
6159 | enableval="$enable_wxprintfv" | |
6160 | ||
6161 | if test "$enableval" = yes; then | |
6162 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6163 | else | |
6164 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6165 | fi | |
6166 | ||
6167 | else | |
6168 | ||
6169 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6170 | if test "x$LINE" != x ; then | |
6171 | eval "DEFAULT_$LINE" | |
6172 | else | |
6173 | no_cache=1 | |
6174 | fi | |
6175 | ||
6176 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6177 | ||
6178 | fi; | |
6179 | ||
6180 | eval "$ac_cv_use_wxprintfv" | |
6181 | if test "$no_cache" != 1; then | |
6182 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6183 | fi | |
6184 | ||
6185 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6186 | echo "$as_me:$LINENO: result: yes" >&5 | |
6187 | echo "${ECHO_T}yes" >&6 | |
6188 | else | |
6189 | echo "$as_me:$LINENO: result: no" >&5 | |
6190 | echo "${ECHO_T}no" >&6 | |
6191 | fi | |
6192 | ||
6193 | ||
6194 | enablestring= | |
6195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6196 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6197 | no_cache=0 | |
6198 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6199 | if test "${enable_zipstream+set}" = set; then | |
6200 | enableval="$enable_zipstream" | |
6201 | ||
6202 | if test "$enableval" = yes; then | |
6203 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6204 | else | |
6205 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6206 | fi | |
6207 | ||
6208 | else | |
6209 | ||
6210 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6211 | if test "x$LINE" != x ; then | |
6212 | eval "DEFAULT_$LINE" | |
6213 | else | |
6214 | no_cache=1 | |
6215 | fi | |
6216 | ||
6217 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6218 | ||
6219 | fi; | |
6220 | ||
6221 | eval "$ac_cv_use_zipstream" | |
6222 | if test "$no_cache" != 1; then | |
6223 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6224 | fi | |
6225 | ||
6226 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6227 | echo "$as_me:$LINENO: result: yes" >&5 | |
6228 | echo "${ECHO_T}yes" >&6 | |
6229 | else | |
6230 | echo "$as_me:$LINENO: result: no" >&5 | |
6231 | echo "${ECHO_T}no" >&6 | |
6232 | fi | |
6233 | ||
6234 | ||
a848cd7e SC |
6235 | |
6236 | enablestring= | |
6237 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6238 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6239 | no_cache=0 | |
6240 | # Check whether --enable-url or --disable-url was given. | |
6241 | if test "${enable_url+set}" = set; then | |
6242 | enableval="$enable_url" | |
6243 | ||
6244 | if test "$enableval" = yes; then | |
6245 | ac_cv_use_url='wxUSE_URL=yes' | |
6246 | else | |
6247 | ac_cv_use_url='wxUSE_URL=no' | |
6248 | fi | |
6249 | ||
6250 | else | |
6251 | ||
6252 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6253 | if test "x$LINE" != x ; then | |
6254 | eval "DEFAULT_$LINE" | |
6255 | else | |
6256 | no_cache=1 | |
6257 | fi | |
6258 | ||
6259 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6260 | ||
6261 | fi; | |
6262 | ||
6263 | eval "$ac_cv_use_url" | |
6264 | if test "$no_cache" != 1; then | |
6265 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6266 | fi | |
6267 | ||
6268 | if test "$wxUSE_URL" = yes; then | |
6269 | echo "$as_me:$LINENO: result: yes" >&5 | |
6270 | echo "${ECHO_T}yes" >&6 | |
6271 | else | |
6272 | echo "$as_me:$LINENO: result: no" >&5 | |
6273 | echo "${ECHO_T}no" >&6 | |
6274 | fi | |
6275 | ||
6276 | ||
6277 | enablestring= | |
6278 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6279 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6280 | no_cache=0 | |
6281 | # Check whether --enable-protocol or --disable-protocol was given. | |
6282 | if test "${enable_protocol+set}" = set; then | |
6283 | enableval="$enable_protocol" | |
6284 | ||
6285 | if test "$enableval" = yes; then | |
6286 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6287 | else | |
6288 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6289 | fi | |
6290 | ||
6291 | else | |
6292 | ||
6293 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6294 | if test "x$LINE" != x ; then | |
6295 | eval "DEFAULT_$LINE" | |
6296 | else | |
6297 | no_cache=1 | |
6298 | fi | |
6299 | ||
6300 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6301 | ||
6302 | fi; | |
6303 | ||
6304 | eval "$ac_cv_use_protocol" | |
6305 | if test "$no_cache" != 1; then | |
6306 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6307 | fi | |
6308 | ||
6309 | if test "$wxUSE_PROTOCOL" = yes; then | |
6310 | echo "$as_me:$LINENO: result: yes" >&5 | |
6311 | echo "${ECHO_T}yes" >&6 | |
6312 | else | |
6313 | echo "$as_me:$LINENO: result: no" >&5 | |
6314 | echo "${ECHO_T}no" >&6 | |
6315 | fi | |
6316 | ||
6317 | ||
6318 | enablestring= | |
6319 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6320 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6321 | no_cache=0 | |
6322 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6323 | if test "${enable_protocol_http+set}" = set; then | |
6324 | enableval="$enable_protocol_http" | |
6325 | ||
6326 | if test "$enableval" = yes; then | |
6327 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6328 | else | |
6329 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6330 | fi | |
6331 | ||
6332 | else | |
6333 | ||
6334 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6335 | if test "x$LINE" != x ; then | |
6336 | eval "DEFAULT_$LINE" | |
6337 | else | |
6338 | no_cache=1 | |
6339 | fi | |
6340 | ||
6341 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6342 | ||
6343 | fi; | |
6344 | ||
6345 | eval "$ac_cv_use_protocol_http" | |
6346 | if test "$no_cache" != 1; then | |
6347 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6348 | fi | |
6349 | ||
6350 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6351 | echo "$as_me:$LINENO: result: yes" >&5 | |
6352 | echo "${ECHO_T}yes" >&6 | |
6353 | else | |
6354 | echo "$as_me:$LINENO: result: no" >&5 | |
6355 | echo "${ECHO_T}no" >&6 | |
6356 | fi | |
6357 | ||
6358 | ||
6359 | enablestring= | |
6360 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6361 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6362 | no_cache=0 | |
6363 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6364 | if test "${enable_protocol_ftp+set}" = set; then | |
6365 | enableval="$enable_protocol_ftp" | |
6366 | ||
6367 | if test "$enableval" = yes; then | |
6368 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6369 | else | |
6370 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6371 | fi | |
6372 | ||
6373 | else | |
6374 | ||
6375 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6376 | if test "x$LINE" != x ; then | |
6377 | eval "DEFAULT_$LINE" | |
6378 | else | |
6379 | no_cache=1 | |
6380 | fi | |
6381 | ||
6382 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6383 | ||
6384 | fi; | |
6385 | ||
6386 | eval "$ac_cv_use_protocol_ftp" | |
6387 | if test "$no_cache" != 1; then | |
6388 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6389 | fi | |
6390 | ||
6391 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6392 | echo "$as_me:$LINENO: result: yes" >&5 | |
6393 | echo "${ECHO_T}yes" >&6 | |
6394 | else | |
6395 | echo "$as_me:$LINENO: result: no" >&5 | |
6396 | echo "${ECHO_T}no" >&6 | |
6397 | fi | |
6398 | ||
6399 | ||
6400 | enablestring= | |
6401 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6402 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6403 | no_cache=0 | |
6404 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6405 | if test "${enable_protocol_file+set}" = set; then | |
6406 | enableval="$enable_protocol_file" | |
6407 | ||
6408 | if test "$enableval" = yes; then | |
6409 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6410 | else | |
6411 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6412 | fi | |
6413 | ||
6414 | else | |
6415 | ||
6416 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6417 | if test "x$LINE" != x ; then | |
6418 | eval "DEFAULT_$LINE" | |
6419 | else | |
6420 | no_cache=1 | |
6421 | fi | |
6422 | ||
6423 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6424 | ||
6425 | fi; | |
6426 | ||
6427 | eval "$ac_cv_use_protocol_file" | |
6428 | if test "$no_cache" != 1; then | |
6429 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6430 | fi | |
6431 | ||
6432 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6433 | echo "$as_me:$LINENO: result: yes" >&5 | |
6434 | echo "${ECHO_T}yes" >&6 | |
6435 | else | |
6436 | echo "$as_me:$LINENO: result: no" >&5 | |
6437 | echo "${ECHO_T}no" >&6 | |
6438 | fi | |
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | enablestring= | |
6445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6446 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6447 | no_cache=0 | |
6448 | # Check whether --enable-threads or --disable-threads was given. | |
6449 | if test "${enable_threads+set}" = set; then | |
6450 | enableval="$enable_threads" | |
6451 | ||
6452 | if test "$enableval" = yes; then | |
6453 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6454 | else | |
6455 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6456 | fi | |
6457 | ||
6458 | else | |
6459 | ||
6460 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6461 | if test "x$LINE" != x ; then | |
6462 | eval "DEFAULT_$LINE" | |
6463 | else | |
6464 | no_cache=1 | |
6465 | fi | |
6466 | ||
6467 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6468 | ||
6469 | fi; | |
6470 | ||
6471 | eval "$ac_cv_use_threads" | |
6472 | if test "$no_cache" != 1; then | |
6473 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6474 | fi | |
6475 | ||
6476 | if test "$wxUSE_THREADS" = yes; then | |
6477 | echo "$as_me:$LINENO: result: yes" >&5 | |
6478 | echo "${ECHO_T}yes" >&6 | |
6479 | else | |
6480 | echo "$as_me:$LINENO: result: no" >&5 | |
6481 | echo "${ECHO_T}no" >&6 | |
6482 | fi | |
6483 | ||
6484 | ||
6485 | if test "$wxUSE_GUI" = "yes"; then | |
6486 | ||
6487 | ||
6488 | ||
6489 | enablestring= | |
6490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6491 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6492 | no_cache=0 | |
6493 | # Check whether --enable-docview or --disable-docview was given. | |
6494 | if test "${enable_docview+set}" = set; then | |
6495 | enableval="$enable_docview" | |
6496 | ||
6497 | if test "$enableval" = yes; then | |
6498 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6499 | else | |
6500 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6501 | fi | |
6502 | ||
6503 | else | |
6504 | ||
6505 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6506 | if test "x$LINE" != x ; then | |
6507 | eval "DEFAULT_$LINE" | |
6508 | else | |
6509 | no_cache=1 | |
6510 | fi | |
6511 | ||
6512 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6513 | ||
6514 | fi; | |
6515 | ||
6516 | eval "$ac_cv_use_docview" | |
6517 | if test "$no_cache" != 1; then | |
6518 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6519 | fi | |
6520 | ||
6521 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6522 | echo "$as_me:$LINENO: result: yes" >&5 | |
6523 | echo "${ECHO_T}yes" >&6 | |
6524 | else | |
6525 | echo "$as_me:$LINENO: result: no" >&5 | |
6526 | echo "${ECHO_T}no" >&6 | |
6527 | fi | |
6528 | ||
6529 | ||
6530 | enablestring= | |
6531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6532 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6533 | no_cache=0 | |
6534 | # Check whether --enable-help or --disable-help was given. | |
6535 | if test "${enable_help+set}" = set; then | |
6536 | enableval="$enable_help" | |
6537 | ||
6538 | if test "$enableval" = yes; then | |
6539 | ac_cv_use_help='wxUSE_HELP=yes' | |
6540 | else | |
6541 | ac_cv_use_help='wxUSE_HELP=no' | |
6542 | fi | |
6543 | ||
6544 | else | |
6545 | ||
6546 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6547 | if test "x$LINE" != x ; then | |
6548 | eval "DEFAULT_$LINE" | |
6549 | else | |
6550 | no_cache=1 | |
6551 | fi | |
6552 | ||
6553 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6554 | ||
6555 | fi; | |
6556 | ||
6557 | eval "$ac_cv_use_help" | |
6558 | if test "$no_cache" != 1; then | |
6559 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6560 | fi | |
6561 | ||
6562 | if test "$wxUSE_HELP" = yes; then | |
6563 | echo "$as_me:$LINENO: result: yes" >&5 | |
6564 | echo "${ECHO_T}yes" >&6 | |
6565 | else | |
6566 | echo "$as_me:$LINENO: result: no" >&5 | |
6567 | echo "${ECHO_T}no" >&6 | |
6568 | fi | |
6569 | ||
6570 | ||
6571 | enablestring= | |
6572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6573 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6574 | no_cache=0 | |
6575 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6576 | if test "${enable_mshtmlhelp+set}" = set; then | |
6577 | enableval="$enable_mshtmlhelp" | |
6578 | ||
6579 | if test "$enableval" = yes; then | |
6580 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6581 | else | |
6582 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6583 | fi | |
6584 | ||
6585 | else | |
6586 | ||
6587 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6588 | if test "x$LINE" != x ; then | |
6589 | eval "DEFAULT_$LINE" | |
6590 | else | |
6591 | no_cache=1 | |
6592 | fi | |
6593 | ||
6594 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6595 | ||
6596 | fi; | |
6597 | ||
6598 | eval "$ac_cv_use_mshtmlhelp" | |
6599 | if test "$no_cache" != 1; then | |
6600 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6601 | fi | |
6602 | ||
6603 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6604 | echo "$as_me:$LINENO: result: yes" >&5 | |
6605 | echo "${ECHO_T}yes" >&6 | |
6606 | else | |
6607 | echo "$as_me:$LINENO: result: no" >&5 | |
6608 | echo "${ECHO_T}no" >&6 | |
6609 | fi | |
6610 | ||
6611 | ||
6612 | enablestring= | |
6613 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6614 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6615 | no_cache=0 | |
6616 | # Check whether --enable-html or --disable-html was given. | |
6617 | if test "${enable_html+set}" = set; then | |
6618 | enableval="$enable_html" | |
6619 | ||
6620 | if test "$enableval" = yes; then | |
6621 | ac_cv_use_html='wxUSE_HTML=yes' | |
6622 | else | |
6623 | ac_cv_use_html='wxUSE_HTML=no' | |
6624 | fi | |
6625 | ||
6626 | else | |
6627 | ||
6628 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6629 | if test "x$LINE" != x ; then | |
6630 | eval "DEFAULT_$LINE" | |
6631 | else | |
6632 | no_cache=1 | |
6633 | fi | |
6634 | ||
6635 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6636 | ||
6637 | fi; | |
6638 | ||
6639 | eval "$ac_cv_use_html" | |
6640 | if test "$no_cache" != 1; then | |
6641 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6642 | fi | |
6643 | ||
6644 | if test "$wxUSE_HTML" = yes; then | |
6645 | echo "$as_me:$LINENO: result: yes" >&5 | |
6646 | echo "${ECHO_T}yes" >&6 | |
6647 | else | |
6648 | echo "$as_me:$LINENO: result: no" >&5 | |
6649 | echo "${ECHO_T}no" >&6 | |
6650 | fi | |
6651 | ||
6652 | ||
6653 | enablestring= | |
6654 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6655 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6656 | no_cache=0 | |
6657 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6658 | if test "${enable_htmlhelp+set}" = set; then | |
6659 | enableval="$enable_htmlhelp" | |
6660 | ||
6661 | if test "$enableval" = yes; then | |
6662 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6663 | else | |
6664 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6665 | fi | |
6666 | ||
6667 | else | |
6668 | ||
6669 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6670 | if test "x$LINE" != x ; then | |
6671 | eval "DEFAULT_$LINE" | |
6672 | else | |
6673 | no_cache=1 | |
6674 | fi | |
6675 | ||
6676 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6677 | ||
6678 | fi; | |
6679 | ||
6680 | eval "$ac_cv_use_htmlhelp" | |
6681 | if test "$no_cache" != 1; then | |
6682 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6683 | fi | |
6684 | ||
6685 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6686 | echo "$as_me:$LINENO: result: yes" >&5 | |
6687 | echo "${ECHO_T}yes" >&6 | |
6688 | else | |
6689 | echo "$as_me:$LINENO: result: no" >&5 | |
6690 | echo "${ECHO_T}no" >&6 | |
6691 | fi | |
6692 | ||
6693 | ||
9a8f0513 VS |
6694 | enablestring= |
6695 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6696 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6697 | no_cache=0 | |
6698 | # Check whether --enable-xrc or --disable-xrc was given. | |
6699 | if test "${enable_xrc+set}" = set; then | |
6700 | enableval="$enable_xrc" | |
6701 | ||
6702 | if test "$enableval" = yes; then | |
6703 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6704 | else | |
6705 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6706 | fi | |
6707 | ||
6708 | else | |
6709 | ||
6710 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6711 | if test "x$LINE" != x ; then | |
6712 | eval "DEFAULT_$LINE" | |
6713 | else | |
6714 | no_cache=1 | |
6715 | fi | |
6716 | ||
6717 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6718 | ||
6719 | fi; | |
6720 | ||
6721 | eval "$ac_cv_use_xrc" | |
6722 | if test "$no_cache" != 1; then | |
6723 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6724 | fi | |
6725 | ||
6726 | if test "$wxUSE_XRC" = yes; then | |
6727 | echo "$as_me:$LINENO: result: yes" >&5 | |
6728 | echo "${ECHO_T}yes" >&6 | |
6729 | else | |
6730 | echo "$as_me:$LINENO: result: no" >&5 | |
6731 | echo "${ECHO_T}no" >&6 | |
6732 | fi | |
6733 | ||
6734 | ||
a848cd7e SC |
6735 | enablestring= |
6736 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6737 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6738 | no_cache=0 | |
6739 | # Check whether --enable-constraints or --disable-constraints was given. | |
6740 | if test "${enable_constraints+set}" = set; then | |
6741 | enableval="$enable_constraints" | |
6742 | ||
6743 | if test "$enableval" = yes; then | |
6744 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6745 | else | |
6746 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6747 | fi | |
6748 | ||
6749 | else | |
6750 | ||
6751 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6752 | if test "x$LINE" != x ; then | |
6753 | eval "DEFAULT_$LINE" | |
6754 | else | |
6755 | no_cache=1 | |
6756 | fi | |
6757 | ||
6758 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6759 | ||
6760 | fi; | |
6761 | ||
6762 | eval "$ac_cv_use_constraints" | |
6763 | if test "$no_cache" != 1; then | |
6764 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6765 | fi | |
6766 | ||
6767 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6768 | echo "$as_me:$LINENO: result: yes" >&5 | |
6769 | echo "${ECHO_T}yes" >&6 | |
6770 | else | |
6771 | echo "$as_me:$LINENO: result: no" >&5 | |
6772 | echo "${ECHO_T}no" >&6 | |
6773 | fi | |
6774 | ||
6775 | ||
6776 | enablestring= | |
6777 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6778 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6779 | no_cache=0 | |
6780 | # Check whether --enable-printarch or --disable-printarch was given. | |
6781 | if test "${enable_printarch+set}" = set; then | |
6782 | enableval="$enable_printarch" | |
6783 | ||
6784 | if test "$enableval" = yes; then | |
6785 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6786 | else | |
6787 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6788 | fi | |
6789 | ||
6790 | else | |
6791 | ||
6792 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6793 | if test "x$LINE" != x ; then | |
6794 | eval "DEFAULT_$LINE" | |
6795 | else | |
6796 | no_cache=1 | |
6797 | fi | |
6798 | ||
6799 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6800 | ||
6801 | fi; | |
6802 | ||
6803 | eval "$ac_cv_use_printarch" | |
6804 | if test "$no_cache" != 1; then | |
6805 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6806 | fi | |
6807 | ||
6808 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6809 | echo "$as_me:$LINENO: result: yes" >&5 | |
6810 | echo "${ECHO_T}yes" >&6 | |
6811 | else | |
6812 | echo "$as_me:$LINENO: result: no" >&5 | |
6813 | echo "${ECHO_T}no" >&6 | |
6814 | fi | |
6815 | ||
6816 | ||
6817 | enablestring= | |
6818 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6819 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6820 | no_cache=0 | |
6821 | # Check whether --enable-mdi or --disable-mdi was given. | |
6822 | if test "${enable_mdi+set}" = set; then | |
6823 | enableval="$enable_mdi" | |
6824 | ||
6825 | if test "$enableval" = yes; then | |
8a7b1113 | 6826 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6827 | else |
8a7b1113 | 6828 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6829 | fi |
6830 | ||
6831 | else | |
6832 | ||
8a7b1113 | 6833 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6834 | if test "x$LINE" != x ; then |
6835 | eval "DEFAULT_$LINE" | |
6836 | else | |
6837 | no_cache=1 | |
6838 | fi | |
6839 | ||
8a7b1113 | 6840 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6841 | |
6842 | fi; | |
6843 | ||
6844 | eval "$ac_cv_use_mdi" | |
6845 | if test "$no_cache" != 1; then | |
6846 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6847 | fi | |
6848 | ||
8a7b1113 VZ |
6849 | if test "$wxUSE_MDI" = yes; then |
6850 | echo "$as_me:$LINENO: result: yes" >&5 | |
6851 | echo "${ECHO_T}yes" >&6 | |
6852 | else | |
6853 | echo "$as_me:$LINENO: result: no" >&5 | |
6854 | echo "${ECHO_T}no" >&6 | |
6855 | fi | |
6856 | ||
6857 | ||
6858 | enablestring= | |
6859 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6860 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6861 | no_cache=0 | |
6862 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6863 | if test "${enable_mdidoc+set}" = set; then | |
6864 | enableval="$enable_mdidoc" | |
6865 | ||
6866 | if test "$enableval" = yes; then | |
6867 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6868 | else | |
6869 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6870 | fi | |
6871 | ||
6872 | else | |
6873 | ||
6874 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6875 | if test "x$LINE" != x ; then | |
6876 | eval "DEFAULT_$LINE" | |
6877 | else | |
6878 | no_cache=1 | |
6879 | fi | |
6880 | ||
6881 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6882 | ||
6883 | fi; | |
6884 | ||
6885 | eval "$ac_cv_use_mdidoc" | |
6886 | if test "$no_cache" != 1; then | |
6887 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6888 | fi | |
6889 | ||
a848cd7e SC |
6890 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6891 | echo "$as_me:$LINENO: result: yes" >&5 | |
6892 | echo "${ECHO_T}yes" >&6 | |
6893 | else | |
6894 | echo "$as_me:$LINENO: result: no" >&5 | |
6895 | echo "${ECHO_T}no" >&6 | |
6896 | fi | |
6897 | ||
6898 | ||
6899 | enablestring= | |
6900 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6901 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6902 | no_cache=0 | |
6903 | # Check whether --enable-loggui or --disable-loggui was given. | |
6904 | if test "${enable_loggui+set}" = set; then | |
6905 | enableval="$enable_loggui" | |
6906 | ||
6907 | if test "$enableval" = yes; then | |
6908 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6909 | else | |
6910 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6911 | fi | |
6912 | ||
6913 | else | |
6914 | ||
6915 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6916 | if test "x$LINE" != x ; then | |
6917 | eval "DEFAULT_$LINE" | |
6918 | else | |
6919 | no_cache=1 | |
6920 | fi | |
6921 | ||
6922 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6923 | ||
6924 | fi; | |
6925 | ||
6926 | eval "$ac_cv_use_loggui" | |
6927 | if test "$no_cache" != 1; then | |
6928 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6929 | fi | |
6930 | ||
6931 | if test "$wxUSE_LOGGUI" = yes; then | |
6932 | echo "$as_me:$LINENO: result: yes" >&5 | |
6933 | echo "${ECHO_T}yes" >&6 | |
6934 | else | |
6935 | echo "$as_me:$LINENO: result: no" >&5 | |
6936 | echo "${ECHO_T}no" >&6 | |
6937 | fi | |
6938 | ||
6939 | ||
6940 | enablestring= | |
6941 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6942 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6943 | no_cache=0 | |
6944 | # Check whether --enable-logwin or --disable-logwin was given. | |
6945 | if test "${enable_logwin+set}" = set; then | |
6946 | enableval="$enable_logwin" | |
6947 | ||
6948 | if test "$enableval" = yes; then | |
6949 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6950 | else | |
6951 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6952 | fi | |
6953 | ||
6954 | else | |
6955 | ||
6956 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6957 | if test "x$LINE" != x ; then | |
6958 | eval "DEFAULT_$LINE" | |
6959 | else | |
6960 | no_cache=1 | |
6961 | fi | |
6962 | ||
6963 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6964 | ||
6965 | fi; | |
6966 | ||
6967 | eval "$ac_cv_use_logwin" | |
6968 | if test "$no_cache" != 1; then | |
6969 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6970 | fi | |
6971 | ||
6972 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6973 | echo "$as_me:$LINENO: result: yes" >&5 | |
6974 | echo "${ECHO_T}yes" >&6 | |
6975 | else | |
6976 | echo "$as_me:$LINENO: result: no" >&5 | |
6977 | echo "${ECHO_T}no" >&6 | |
6978 | fi | |
6979 | ||
6980 | ||
6981 | enablestring= | |
6982 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6983 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6984 | no_cache=0 | |
6985 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6986 | if test "${enable_logdialog+set}" = set; then | |
6987 | enableval="$enable_logdialog" | |
6988 | ||
6989 | if test "$enableval" = yes; then | |
6990 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6991 | else | |
6992 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6993 | fi | |
6994 | ||
6995 | else | |
6996 | ||
6997 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6998 | if test "x$LINE" != x ; then | |
6999 | eval "DEFAULT_$LINE" | |
7000 | else | |
7001 | no_cache=1 | |
7002 | fi | |
7003 | ||
7004 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7005 | ||
7006 | fi; | |
7007 | ||
7008 | eval "$ac_cv_use_logdialog" | |
7009 | if test "$no_cache" != 1; then | |
7010 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7011 | fi | |
7012 | ||
7013 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7014 | echo "$as_me:$LINENO: result: yes" >&5 | |
7015 | echo "${ECHO_T}yes" >&6 | |
7016 | else | |
7017 | echo "$as_me:$LINENO: result: no" >&5 | |
7018 | echo "${ECHO_T}no" >&6 | |
7019 | fi | |
7020 | ||
7021 | ||
646b6ec1 VS |
7022 | enablestring= |
7023 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7024 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7025 | no_cache=0 | |
7026 | # Check whether --enable-webkit or --disable-webkit was given. | |
7027 | if test "${enable_webkit+set}" = set; then | |
7028 | enableval="$enable_webkit" | |
7029 | ||
7030 | if test "$enableval" = yes; then | |
7031 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7032 | else | |
7033 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7034 | fi | |
7035 | ||
7036 | else | |
7037 | ||
7038 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7039 | if test "x$LINE" != x ; then | |
7040 | eval "DEFAULT_$LINE" | |
7041 | else | |
7042 | no_cache=1 | |
7043 | fi | |
7044 | ||
7045 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7046 | ||
7047 | fi; | |
7048 | ||
7049 | eval "$ac_cv_use_webkit" | |
7050 | if test "$no_cache" != 1; then | |
7051 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7052 | fi | |
7053 | ||
7054 | if test "$wxUSE_WEBKIT" = yes; then | |
7055 | echo "$as_me:$LINENO: result: yes" >&5 | |
7056 | echo "${ECHO_T}yes" >&6 | |
7057 | else | |
7058 | echo "$as_me:$LINENO: result: no" >&5 | |
7059 | echo "${ECHO_T}no" >&6 | |
7060 | fi | |
7061 | ||
7062 | ||
91dea314 MW |
7063 | enablestring= |
7064 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7065 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7066 | no_cache=0 | |
7067 | # Check whether --enable-html or --disable-html was given. | |
7068 | if test "${enable_html+set}" = set; then | |
7069 | enableval="$enable_html" | |
7070 | ||
7071 | if test "$enableval" = yes; then | |
7072 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7073 | else | |
7074 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7075 | fi | |
7076 | ||
7077 | else | |
7078 | ||
7079 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7080 | if test "x$LINE" != x ; then | |
7081 | eval "DEFAULT_$LINE" | |
7082 | else | |
7083 | no_cache=1 | |
7084 | fi | |
7085 | ||
7086 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7087 | ||
7088 | fi; | |
7089 | ||
7090 | eval "$ac_cv_use_html" | |
7091 | if test "$no_cache" != 1; then | |
7092 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7093 | fi | |
7094 | ||
7095 | if test "$wxUSE_RICHTEXT" = yes; then | |
7096 | echo "$as_me:$LINENO: result: yes" >&5 | |
7097 | echo "${ECHO_T}yes" >&6 | |
7098 | else | |
7099 | echo "$as_me:$LINENO: result: no" >&5 | |
7100 | echo "${ECHO_T}no" >&6 | |
7101 | fi | |
7102 | ||
7103 | ||
a848cd7e SC |
7104 | |
7105 | enablestring= | |
7106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7107 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7108 | no_cache=0 | |
7109 | # Check whether --enable-postscript or --disable-postscript was given. | |
7110 | if test "${enable_postscript+set}" = set; then | |
7111 | enableval="$enable_postscript" | |
7112 | ||
7113 | if test "$enableval" = yes; then | |
7114 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7115 | else | |
7116 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7117 | fi | |
7118 | ||
7119 | else | |
7120 | ||
7121 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7122 | if test "x$LINE" != x ; then | |
7123 | eval "DEFAULT_$LINE" | |
7124 | else | |
7125 | no_cache=1 | |
7126 | fi | |
7127 | ||
7128 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7129 | ||
7130 | fi; | |
7131 | ||
7132 | eval "$ac_cv_use_postscript" | |
7133 | if test "$no_cache" != 1; then | |
7134 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7135 | fi | |
7136 | ||
7137 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7138 | echo "$as_me:$LINENO: result: yes" >&5 | |
7139 | echo "${ECHO_T}yes" >&6 | |
7140 | else | |
7141 | echo "$as_me:$LINENO: result: no" >&5 | |
7142 | echo "${ECHO_T}no" >&6 | |
7143 | fi | |
7144 | ||
7145 | ||
7146 | ||
7147 | ||
7148 | ||
7149 | enablestring= | |
7150 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7151 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7152 | no_cache=0 | |
7153 | # Check whether --enable-prologio or --disable-prologio was given. | |
7154 | if test "${enable_prologio+set}" = set; then | |
7155 | enableval="$enable_prologio" | |
7156 | ||
7157 | if test "$enableval" = yes; then | |
7158 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7159 | else | |
7160 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7161 | fi | |
7162 | ||
7163 | else | |
7164 | ||
7165 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7166 | if test "x$LINE" != x ; then | |
7167 | eval "DEFAULT_$LINE" | |
7168 | else | |
7169 | no_cache=1 | |
7170 | fi | |
7171 | ||
7172 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7173 | ||
7174 | fi; | |
7175 | ||
7176 | eval "$ac_cv_use_prologio" | |
7177 | if test "$no_cache" != 1; then | |
7178 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7179 | fi | |
7180 | ||
7181 | if test "$wxUSE_PROLOGIO" = yes; then | |
7182 | echo "$as_me:$LINENO: result: yes" >&5 | |
7183 | echo "${ECHO_T}yes" >&6 | |
7184 | else | |
7185 | echo "$as_me:$LINENO: result: no" >&5 | |
7186 | echo "${ECHO_T}no" >&6 | |
7187 | fi | |
7188 | ||
7189 | ||
7190 | enablestring= | |
7191 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7192 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7193 | no_cache=0 | |
7194 | # Check whether --enable-resources or --disable-resources was given. | |
7195 | if test "${enable_resources+set}" = set; then | |
7196 | enableval="$enable_resources" | |
7197 | ||
7198 | if test "$enableval" = yes; then | |
7199 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7200 | else | |
7201 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7202 | fi | |
7203 | ||
7204 | else | |
7205 | ||
7206 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7207 | if test "x$LINE" != x ; then | |
7208 | eval "DEFAULT_$LINE" | |
7209 | else | |
7210 | no_cache=1 | |
7211 | fi | |
7212 | ||
7213 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7214 | ||
7215 | fi; | |
7216 | ||
7217 | eval "$ac_cv_use_resources" | |
7218 | if test "$no_cache" != 1; then | |
7219 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7220 | fi | |
7221 | ||
7222 | if test "$wxUSE_RESOURCES" = yes; then | |
7223 | echo "$as_me:$LINENO: result: yes" >&5 | |
7224 | echo "${ECHO_T}yes" >&6 | |
7225 | else | |
7226 | echo "$as_me:$LINENO: result: no" >&5 | |
7227 | echo "${ECHO_T}no" >&6 | |
7228 | fi | |
7229 | ||
7230 | ||
7231 | ||
7232 | ||
7233 | enablestring= | |
7234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7235 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7236 | no_cache=0 | |
7237 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7238 | if test "${enable_clipboard+set}" = set; then | |
7239 | enableval="$enable_clipboard" | |
7240 | ||
7241 | if test "$enableval" = yes; then | |
7242 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7243 | else | |
7244 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7245 | fi | |
7246 | ||
7247 | else | |
7248 | ||
7249 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7250 | if test "x$LINE" != x ; then | |
7251 | eval "DEFAULT_$LINE" | |
7252 | else | |
7253 | no_cache=1 | |
7254 | fi | |
7255 | ||
7256 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7257 | ||
7258 | fi; | |
7259 | ||
7260 | eval "$ac_cv_use_clipboard" | |
7261 | if test "$no_cache" != 1; then | |
7262 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7263 | fi | |
7264 | ||
7265 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7266 | echo "$as_me:$LINENO: result: yes" >&5 | |
7267 | echo "${ECHO_T}yes" >&6 | |
7268 | else | |
7269 | echo "$as_me:$LINENO: result: no" >&5 | |
7270 | echo "${ECHO_T}no" >&6 | |
7271 | fi | |
7272 | ||
7273 | ||
7274 | enablestring= | |
7275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7276 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7277 | no_cache=0 | |
7278 | # Check whether --enable-dnd or --disable-dnd was given. | |
7279 | if test "${enable_dnd+set}" = set; then | |
7280 | enableval="$enable_dnd" | |
7281 | ||
7282 | if test "$enableval" = yes; then | |
7283 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7284 | else | |
7285 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7286 | fi | |
7287 | ||
7288 | else | |
7289 | ||
7290 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7291 | if test "x$LINE" != x ; then | |
7292 | eval "DEFAULT_$LINE" | |
7293 | else | |
7294 | no_cache=1 | |
7295 | fi | |
7296 | ||
7297 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7298 | ||
7299 | fi; | |
7300 | ||
7301 | eval "$ac_cv_use_dnd" | |
7302 | if test "$no_cache" != 1; then | |
7303 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7304 | fi | |
7305 | ||
7306 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7307 | echo "$as_me:$LINENO: result: yes" >&5 | |
7308 | echo "${ECHO_T}yes" >&6 | |
7309 | else | |
7310 | echo "$as_me:$LINENO: result: no" >&5 | |
7311 | echo "${ECHO_T}no" >&6 | |
7312 | fi | |
7313 | ||
7314 | ||
7315 | enablestring= | |
7316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7317 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7318 | no_cache=0 | |
7319 | # Check whether --enable-metafile or --disable-metafile was given. | |
7320 | if test "${enable_metafile+set}" = set; then | |
7321 | enableval="$enable_metafile" | |
7322 | ||
7323 | if test "$enableval" = yes; then | |
7324 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7325 | else | |
7326 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7327 | fi | |
7328 | ||
7329 | else | |
7330 | ||
7331 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7332 | if test "x$LINE" != x ; then | |
7333 | eval "DEFAULT_$LINE" | |
7334 | else | |
7335 | no_cache=1 | |
7336 | fi | |
7337 | ||
7338 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7339 | ||
7340 | fi; | |
7341 | ||
7342 | eval "$ac_cv_use_metafile" | |
7343 | if test "$no_cache" != 1; then | |
7344 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7345 | fi | |
7346 | ||
7347 | if test "$wxUSE_METAFILE" = yes; then | |
7348 | echo "$as_me:$LINENO: result: yes" >&5 | |
7349 | echo "${ECHO_T}yes" >&6 | |
7350 | else | |
7351 | echo "$as_me:$LINENO: result: no" >&5 | |
7352 | echo "${ECHO_T}no" >&6 | |
7353 | fi | |
7354 | ||
7355 | ||
7356 | ||
7357 | ||
7358 | ||
7359 | enablestring= | |
7360 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7361 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7362 | no_cache=0 | |
7363 | # Check whether --enable-controls or --disable-controls was given. | |
7364 | if test "${enable_controls+set}" = set; then | |
7365 | enableval="$enable_controls" | |
7366 | ||
7367 | if test "$enableval" = yes; then | |
7368 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7369 | else | |
7370 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7371 | fi | |
7372 | ||
7373 | else | |
7374 | ||
7375 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7376 | if test "x$LINE" != x ; then | |
7377 | eval "DEFAULT_$LINE" | |
7378 | else | |
7379 | no_cache=1 | |
7380 | fi | |
7381 | ||
7382 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7383 | ||
7384 | fi; | |
7385 | ||
7386 | eval "$ac_cv_use_controls" | |
7387 | if test "$no_cache" != 1; then | |
7388 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7389 | fi | |
7390 | ||
7391 | if test "$wxUSE_CONTROLS" = yes; then | |
7392 | echo "$as_me:$LINENO: result: yes" >&5 | |
7393 | echo "${ECHO_T}yes" >&6 | |
7394 | else | |
7395 | echo "$as_me:$LINENO: result: no" >&5 | |
7396 | echo "${ECHO_T}no" >&6 | |
7397 | fi | |
7398 | ||
7399 | ||
7400 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7401 | DEFAULT_wxUSE_ACCEL=yes | |
7402 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7403 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7404 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7405 | DEFAULT_wxUSE_CARET=yes |
7406 | DEFAULT_wxUSE_COMBOBOX=yes | |
7407 | DEFAULT_wxUSE_CHECKBOX=yes | |
7408 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7409 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7410 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7411 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7412 | DEFAULT_wxUSE_GAUGE=yes |
7413 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 7414 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7415 | DEFAULT_wxUSE_IMAGLIST=yes |
7416 | DEFAULT_wxUSE_LISTBOOK=yes | |
7417 | DEFAULT_wxUSE_LISTBOX=yes | |
7418 | DEFAULT_wxUSE_LISTCTRL=yes | |
7419 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7420 | DEFAULT_wxUSE_RADIOBOX=yes | |
7421 | DEFAULT_wxUSE_RADIOBTN=yes | |
7422 | DEFAULT_wxUSE_SASH=yes | |
7423 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7424 | DEFAULT_wxUSE_SLIDER=yes | |
7425 | DEFAULT_wxUSE_SPINBTN=yes | |
7426 | DEFAULT_wxUSE_SPINCTRL=yes | |
7427 | DEFAULT_wxUSE_SPLITTER=yes | |
7428 | DEFAULT_wxUSE_STATBMP=yes | |
7429 | DEFAULT_wxUSE_STATBOX=yes | |
7430 | DEFAULT_wxUSE_STATLINE=yes | |
7431 | DEFAULT_wxUSE_STATUSBAR=yes | |
7432 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7433 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7434 | DEFAULT_wxUSE_TOOLBAR=yes | |
7435 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7436 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7437 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7438 | DEFAULT_wxUSE_TREEBOOK=yes |
a848cd7e SC |
7439 | DEFAULT_wxUSE_TREECTRL=yes |
7440 | DEFAULT_wxUSE_POPUPWIN=yes | |
7441 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7442 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7443 | DEFAULT_wxUSE_ACCEL=no | |
7444 | DEFAULT_wxUSE_BMPBUTTON=no | |
7445 | DEFAULT_wxUSE_BUTTON=no | |
7446 | DEFAULT_wxUSE_CALCTRL=no | |
7447 | DEFAULT_wxUSE_CARET=no | |
7448 | DEFAULT_wxUSE_COMBOBOX=no | |
7449 | DEFAULT_wxUSE_CHECKBOX=no | |
7450 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7451 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7452 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7453 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7454 | DEFAULT_wxUSE_GAUGE=no |
7455 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 7456 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7457 | DEFAULT_wxUSE_IMAGLIST=no |
7458 | DEFAULT_wxUSE_LISTBOOK=no | |
7459 | DEFAULT_wxUSE_LISTBOX=no | |
7460 | DEFAULT_wxUSE_LISTCTRL=no | |
7461 | DEFAULT_wxUSE_NOTEBOOK=no | |
7462 | DEFAULT_wxUSE_RADIOBOX=no | |
7463 | DEFAULT_wxUSE_RADIOBTN=no | |
7464 | DEFAULT_wxUSE_SASH=no | |
7465 | DEFAULT_wxUSE_SCROLLBAR=no | |
7466 | DEFAULT_wxUSE_SLIDER=no | |
7467 | DEFAULT_wxUSE_SPINBTN=no | |
7468 | DEFAULT_wxUSE_SPINCTRL=no | |
7469 | DEFAULT_wxUSE_SPLITTER=no | |
7470 | DEFAULT_wxUSE_STATBMP=no | |
7471 | DEFAULT_wxUSE_STATBOX=no | |
7472 | DEFAULT_wxUSE_STATLINE=no | |
7473 | DEFAULT_wxUSE_STATUSBAR=no | |
7474 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7475 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7476 | DEFAULT_wxUSE_TOOLBAR=no | |
7477 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7478 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7479 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7480 | DEFAULT_wxUSE_TREEBOOK=no |
a848cd7e SC |
7481 | DEFAULT_wxUSE_TREECTRL=no |
7482 | DEFAULT_wxUSE_POPUPWIN=no | |
7483 | DEFAULT_wxUSE_TIPWINDOW=no | |
7484 | fi | |
7485 | ||
a848cd7e SC |
7486 | |
7487 | enablestring= | |
7488 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7489 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7490 | no_cache=0 | |
7491 | # Check whether --enable-accel or --disable-accel was given. | |
7492 | if test "${enable_accel+set}" = set; then | |
7493 | enableval="$enable_accel" | |
7494 | ||
7495 | if test "$enableval" = yes; then | |
7496 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7497 | else | |
7498 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7499 | fi | |
7500 | ||
7501 | else | |
7502 | ||
7503 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7504 | if test "x$LINE" != x ; then | |
7505 | eval "DEFAULT_$LINE" | |
7506 | else | |
7507 | no_cache=1 | |
7508 | fi | |
7509 | ||
7510 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7511 | ||
7512 | fi; | |
7513 | ||
7514 | eval "$ac_cv_use_accel" | |
7515 | if test "$no_cache" != 1; then | |
7516 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7517 | fi | |
7518 | ||
7519 | if test "$wxUSE_ACCEL" = yes; then | |
7520 | echo "$as_me:$LINENO: result: yes" >&5 | |
7521 | echo "${ECHO_T}yes" >&6 | |
7522 | else | |
7523 | echo "$as_me:$LINENO: result: no" >&5 | |
7524 | echo "${ECHO_T}no" >&6 | |
7525 | fi | |
7526 | ||
7527 | ||
7528 | enablestring= | |
7529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7530 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7531 | no_cache=0 | |
7532 | # Check whether --enable-button or --disable-button was given. | |
7533 | if test "${enable_button+set}" = set; then | |
7534 | enableval="$enable_button" | |
7535 | ||
7536 | if test "$enableval" = yes; then | |
7537 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7538 | else | |
7539 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7540 | fi | |
7541 | ||
7542 | else | |
7543 | ||
7544 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7545 | if test "x$LINE" != x ; then | |
7546 | eval "DEFAULT_$LINE" | |
7547 | else | |
7548 | no_cache=1 | |
7549 | fi | |
7550 | ||
7551 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7552 | ||
7553 | fi; | |
7554 | ||
7555 | eval "$ac_cv_use_button" | |
7556 | if test "$no_cache" != 1; then | |
7557 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7558 | fi | |
7559 | ||
7560 | if test "$wxUSE_BUTTON" = yes; then | |
7561 | echo "$as_me:$LINENO: result: yes" >&5 | |
7562 | echo "${ECHO_T}yes" >&6 | |
7563 | else | |
7564 | echo "$as_me:$LINENO: result: no" >&5 | |
7565 | echo "${ECHO_T}no" >&6 | |
7566 | fi | |
7567 | ||
7568 | ||
7569 | enablestring= | |
7570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7571 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7572 | no_cache=0 | |
7573 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7574 | if test "${enable_bmpbutton+set}" = set; then | |
7575 | enableval="$enable_bmpbutton" | |
7576 | ||
7577 | if test "$enableval" = yes; then | |
7578 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7579 | else | |
7580 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7581 | fi | |
7582 | ||
7583 | else | |
7584 | ||
7585 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7586 | if test "x$LINE" != x ; then | |
7587 | eval "DEFAULT_$LINE" | |
7588 | else | |
7589 | no_cache=1 | |
7590 | fi | |
7591 | ||
7592 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7593 | ||
7594 | fi; | |
7595 | ||
7596 | eval "$ac_cv_use_bmpbutton" | |
7597 | if test "$no_cache" != 1; then | |
7598 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7599 | fi | |
7600 | ||
7601 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7602 | echo "$as_me:$LINENO: result: yes" >&5 | |
7603 | echo "${ECHO_T}yes" >&6 | |
7604 | else | |
7605 | echo "$as_me:$LINENO: result: no" >&5 | |
7606 | echo "${ECHO_T}no" >&6 | |
7607 | fi | |
7608 | ||
7609 | ||
7610 | enablestring= | |
7611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7612 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7613 | no_cache=0 | |
7614 | # Check whether --enable-calendar or --disable-calendar was given. | |
7615 | if test "${enable_calendar+set}" = set; then | |
7616 | enableval="$enable_calendar" | |
7617 | ||
7618 | if test "$enableval" = yes; then | |
7619 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7620 | else | |
7621 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7622 | fi | |
7623 | ||
7624 | else | |
7625 | ||
7626 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7627 | if test "x$LINE" != x ; then | |
7628 | eval "DEFAULT_$LINE" | |
7629 | else | |
7630 | no_cache=1 | |
7631 | fi | |
7632 | ||
7633 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7634 | ||
7635 | fi; | |
7636 | ||
7637 | eval "$ac_cv_use_calendar" | |
7638 | if test "$no_cache" != 1; then | |
7639 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7640 | fi | |
7641 | ||
7642 | if test "$wxUSE_CALCTRL" = yes; then | |
7643 | echo "$as_me:$LINENO: result: yes" >&5 | |
7644 | echo "${ECHO_T}yes" >&6 | |
7645 | else | |
7646 | echo "$as_me:$LINENO: result: no" >&5 | |
7647 | echo "${ECHO_T}no" >&6 | |
7648 | fi | |
7649 | ||
7650 | ||
7651 | enablestring= | |
7652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7653 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7654 | no_cache=0 | |
7655 | # Check whether --enable-caret or --disable-caret was given. | |
7656 | if test "${enable_caret+set}" = set; then | |
7657 | enableval="$enable_caret" | |
7658 | ||
7659 | if test "$enableval" = yes; then | |
7660 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7661 | else | |
7662 | ac_cv_use_caret='wxUSE_CARET=no' | |
7663 | fi | |
7664 | ||
7665 | else | |
7666 | ||
7667 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7668 | if test "x$LINE" != x ; then | |
7669 | eval "DEFAULT_$LINE" | |
7670 | else | |
7671 | no_cache=1 | |
7672 | fi | |
7673 | ||
7674 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7675 | ||
7676 | fi; | |
7677 | ||
7678 | eval "$ac_cv_use_caret" | |
7679 | if test "$no_cache" != 1; then | |
7680 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7681 | fi | |
7682 | ||
7683 | if test "$wxUSE_CARET" = yes; then | |
7684 | echo "$as_me:$LINENO: result: yes" >&5 | |
7685 | echo "${ECHO_T}yes" >&6 | |
7686 | else | |
7687 | echo "$as_me:$LINENO: result: no" >&5 | |
7688 | echo "${ECHO_T}no" >&6 | |
7689 | fi | |
7690 | ||
7691 | ||
7692 | enablestring= | |
7693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7694 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7695 | no_cache=0 | |
7696 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7697 | if test "${enable_checkbox+set}" = set; then | |
7698 | enableval="$enable_checkbox" | |
7699 | ||
7700 | if test "$enableval" = yes; then | |
7701 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7702 | else | |
7703 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7704 | fi | |
7705 | ||
7706 | else | |
7707 | ||
7708 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7709 | if test "x$LINE" != x ; then | |
7710 | eval "DEFAULT_$LINE" | |
7711 | else | |
7712 | no_cache=1 | |
7713 | fi | |
7714 | ||
7715 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7716 | ||
7717 | fi; | |
7718 | ||
7719 | eval "$ac_cv_use_checkbox" | |
7720 | if test "$no_cache" != 1; then | |
7721 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7722 | fi | |
7723 | ||
7724 | if test "$wxUSE_CHECKBOX" = yes; then | |
7725 | echo "$as_me:$LINENO: result: yes" >&5 | |
7726 | echo "${ECHO_T}yes" >&6 | |
7727 | else | |
7728 | echo "$as_me:$LINENO: result: no" >&5 | |
7729 | echo "${ECHO_T}no" >&6 | |
7730 | fi | |
7731 | ||
7732 | ||
7733 | enablestring= | |
7734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7735 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7736 | no_cache=0 | |
7737 | # Check whether --enable-checklst or --disable-checklst was given. | |
7738 | if test "${enable_checklst+set}" = set; then | |
7739 | enableval="$enable_checklst" | |
7740 | ||
7741 | if test "$enableval" = yes; then | |
7742 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7743 | else | |
7744 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7745 | fi | |
7746 | ||
7747 | else | |
7748 | ||
7749 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7750 | if test "x$LINE" != x ; then | |
7751 | eval "DEFAULT_$LINE" | |
7752 | else | |
7753 | no_cache=1 | |
7754 | fi | |
7755 | ||
7756 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7757 | ||
7758 | fi; | |
7759 | ||
7760 | eval "$ac_cv_use_checklst" | |
7761 | if test "$no_cache" != 1; then | |
7762 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7763 | fi | |
7764 | ||
7765 | if test "$wxUSE_CHECKLST" = yes; then | |
7766 | echo "$as_me:$LINENO: result: yes" >&5 | |
7767 | echo "${ECHO_T}yes" >&6 | |
7768 | else | |
7769 | echo "$as_me:$LINENO: result: no" >&5 | |
7770 | echo "${ECHO_T}no" >&6 | |
7771 | fi | |
7772 | ||
7773 | ||
7774 | enablestring= | |
7775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7776 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7777 | no_cache=0 | |
7778 | # Check whether --enable-choice or --disable-choice was given. | |
7779 | if test "${enable_choice+set}" = set; then | |
7780 | enableval="$enable_choice" | |
7781 | ||
7782 | if test "$enableval" = yes; then | |
7783 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7784 | else | |
7785 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7786 | fi | |
7787 | ||
7788 | else | |
7789 | ||
7790 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7791 | if test "x$LINE" != x ; then | |
7792 | eval "DEFAULT_$LINE" | |
7793 | else | |
7794 | no_cache=1 | |
7795 | fi | |
7796 | ||
7797 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7798 | ||
7799 | fi; | |
7800 | ||
7801 | eval "$ac_cv_use_choice" | |
7802 | if test "$no_cache" != 1; then | |
7803 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7804 | fi | |
7805 | ||
7806 | if test "$wxUSE_CHOICE" = yes; then | |
7807 | echo "$as_me:$LINENO: result: yes" >&5 | |
7808 | echo "${ECHO_T}yes" >&6 | |
7809 | else | |
7810 | echo "$as_me:$LINENO: result: no" >&5 | |
7811 | echo "${ECHO_T}no" >&6 | |
7812 | fi | |
7813 | ||
7814 | ||
92bbdbcd WS |
7815 | enablestring= |
7816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7817 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7818 | no_cache=0 | |
7819 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7820 | if test "${enable_choicebook+set}" = set; then | |
7821 | enableval="$enable_choicebook" | |
7822 | ||
7823 | if test "$enableval" = yes; then | |
7824 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7825 | else | |
7826 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7827 | fi | |
7828 | ||
7829 | else | |
7830 | ||
7831 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7832 | if test "x$LINE" != x ; then | |
7833 | eval "DEFAULT_$LINE" | |
7834 | else | |
7835 | no_cache=1 | |
7836 | fi | |
7837 | ||
7838 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7839 | ||
7840 | fi; | |
7841 | ||
7842 | eval "$ac_cv_use_choicebook" | |
7843 | if test "$no_cache" != 1; then | |
7844 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7845 | fi | |
7846 | ||
7847 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7848 | echo "$as_me:$LINENO: result: yes" >&5 | |
7849 | echo "${ECHO_T}yes" >&6 | |
7850 | else | |
7851 | echo "$as_me:$LINENO: result: no" >&5 | |
7852 | echo "${ECHO_T}no" >&6 | |
7853 | fi | |
7854 | ||
7855 | ||
a848cd7e SC |
7856 | enablestring= |
7857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7858 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7859 | no_cache=0 | |
7860 | # Check whether --enable-combobox or --disable-combobox was given. | |
7861 | if test "${enable_combobox+set}" = set; then | |
7862 | enableval="$enable_combobox" | |
7863 | ||
7864 | if test "$enableval" = yes; then | |
7865 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7866 | else | |
7867 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7868 | fi | |
7869 | ||
7870 | else | |
7871 | ||
7872 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7873 | if test "x$LINE" != x ; then | |
7874 | eval "DEFAULT_$LINE" | |
7875 | else | |
7876 | no_cache=1 | |
7877 | fi | |
7878 | ||
7879 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7880 | ||
7881 | fi; | |
7882 | ||
7883 | eval "$ac_cv_use_combobox" | |
7884 | if test "$no_cache" != 1; then | |
7885 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7886 | fi | |
7887 | ||
7888 | if test "$wxUSE_COMBOBOX" = yes; then | |
7889 | echo "$as_me:$LINENO: result: yes" >&5 | |
7890 | echo "${ECHO_T}yes" >&6 | |
7891 | else | |
7892 | echo "$as_me:$LINENO: result: no" >&5 | |
7893 | echo "${ECHO_T}no" >&6 | |
7894 | fi | |
7895 | ||
7896 | ||
da98e9be VZ |
7897 | enablestring= |
7898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7899 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7900 | no_cache=0 | |
7901 | # Check whether --enable-datepick or --disable-datepick was given. | |
7902 | if test "${enable_datepick+set}" = set; then | |
7903 | enableval="$enable_datepick" | |
7904 | ||
7905 | if test "$enableval" = yes; then | |
7906 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7907 | else | |
7908 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7909 | fi | |
7910 | ||
7911 | else | |
7912 | ||
7913 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7914 | if test "x$LINE" != x ; then | |
7915 | eval "DEFAULT_$LINE" | |
7916 | else | |
7917 | no_cache=1 | |
7918 | fi | |
7919 | ||
7920 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7921 | ||
7922 | fi; | |
7923 | ||
7924 | eval "$ac_cv_use_datepick" | |
7925 | if test "$no_cache" != 1; then | |
7926 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7927 | fi | |
7928 | ||
7929 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7930 | echo "$as_me:$LINENO: result: yes" >&5 | |
7931 | echo "${ECHO_T}yes" >&6 | |
7932 | else | |
7933 | echo "$as_me:$LINENO: result: no" >&5 | |
7934 | echo "${ECHO_T}no" >&6 | |
7935 | fi | |
7936 | ||
7937 | ||
a848cd7e SC |
7938 | enablestring= |
7939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7940 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7941 | no_cache=0 | |
7942 | # Check whether --enable-display or --disable-display was given. | |
7943 | if test "${enable_display+set}" = set; then | |
7944 | enableval="$enable_display" | |
7945 | ||
7946 | if test "$enableval" = yes; then | |
7947 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7948 | else | |
7949 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7950 | fi | |
7951 | ||
7952 | else | |
7953 | ||
7954 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7955 | if test "x$LINE" != x ; then | |
7956 | eval "DEFAULT_$LINE" | |
7957 | else | |
7958 | no_cache=1 | |
7959 | fi | |
7960 | ||
7961 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7962 | ||
7963 | fi; | |
7964 | ||
7965 | eval "$ac_cv_use_display" | |
7966 | if test "$no_cache" != 1; then | |
7967 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7968 | fi | |
7969 | ||
7970 | if test "$wxUSE_DISPLAY" = yes; then | |
7971 | echo "$as_me:$LINENO: result: yes" >&5 | |
7972 | echo "${ECHO_T}yes" >&6 | |
7973 | else | |
7974 | echo "$as_me:$LINENO: result: no" >&5 | |
7975 | echo "${ECHO_T}no" >&6 | |
7976 | fi | |
7977 | ||
7978 | ||
7979 | enablestring= | |
7980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7981 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7982 | no_cache=0 | |
7983 | # Check whether --enable-gauge or --disable-gauge was given. | |
7984 | if test "${enable_gauge+set}" = set; then | |
7985 | enableval="$enable_gauge" | |
7986 | ||
7987 | if test "$enableval" = yes; then | |
7988 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7989 | else | |
7990 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7991 | fi | |
7992 | ||
7993 | else | |
7994 | ||
7995 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7996 | if test "x$LINE" != x ; then | |
7997 | eval "DEFAULT_$LINE" | |
7998 | else | |
7999 | no_cache=1 | |
8000 | fi | |
8001 | ||
8002 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8003 | ||
8004 | fi; | |
8005 | ||
8006 | eval "$ac_cv_use_gauge" | |
8007 | if test "$no_cache" != 1; then | |
8008 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8009 | fi | |
8010 | ||
8011 | if test "$wxUSE_GAUGE" = yes; then | |
8012 | echo "$as_me:$LINENO: result: yes" >&5 | |
8013 | echo "${ECHO_T}yes" >&6 | |
8014 | else | |
8015 | echo "$as_me:$LINENO: result: no" >&5 | |
8016 | echo "${ECHO_T}no" >&6 | |
8017 | fi | |
8018 | ||
8019 | ||
8020 | enablestring= | |
8021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8022 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8023 | no_cache=0 | |
8024 | # Check whether --enable-grid or --disable-grid was given. | |
8025 | if test "${enable_grid+set}" = set; then | |
8026 | enableval="$enable_grid" | |
8027 | ||
8028 | if test "$enableval" = yes; then | |
8029 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8030 | else | |
8031 | ac_cv_use_grid='wxUSE_GRID=no' | |
8032 | fi | |
8033 | ||
8034 | else | |
8035 | ||
8036 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8037 | if test "x$LINE" != x ; then | |
8038 | eval "DEFAULT_$LINE" | |
8039 | else | |
8040 | no_cache=1 | |
8041 | fi | |
8042 | ||
8043 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8044 | ||
8045 | fi; | |
8046 | ||
8047 | eval "$ac_cv_use_grid" | |
8048 | if test "$no_cache" != 1; then | |
8049 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8050 | fi | |
8051 | ||
8052 | if test "$wxUSE_GRID" = yes; then | |
8053 | echo "$as_me:$LINENO: result: yes" >&5 | |
8054 | echo "${ECHO_T}yes" >&6 | |
8055 | else | |
8056 | echo "$as_me:$LINENO: result: no" >&5 | |
8057 | echo "${ECHO_T}no" >&6 | |
8058 | fi | |
8059 | ||
8060 | ||
20e34ecc RR |
8061 | enablestring= |
8062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8063 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8064 | no_cache=0 | |
8065 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8066 | if test "${enable_dataviewctrl+set}" = set; then | |
8067 | enableval="$enable_dataviewctrl" | |
8068 | ||
8069 | if test "$enableval" = yes; then | |
8070 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8071 | else | |
8072 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8073 | fi | |
8074 | ||
8075 | else | |
8076 | ||
8077 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8078 | if test "x$LINE" != x ; then | |
8079 | eval "DEFAULT_$LINE" | |
8080 | else | |
8081 | no_cache=1 | |
8082 | fi | |
8083 | ||
8084 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8085 | ||
8086 | fi; | |
8087 | ||
8088 | eval "$ac_cv_use_dataviewctrl" | |
8089 | if test "$no_cache" != 1; then | |
8090 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8091 | fi | |
8092 | ||
8093 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8094 | echo "$as_me:$LINENO: result: yes" >&5 | |
8095 | echo "${ECHO_T}yes" >&6 | |
8096 | else | |
8097 | echo "$as_me:$LINENO: result: no" >&5 | |
8098 | echo "${ECHO_T}no" >&6 | |
8099 | fi | |
8100 | ||
8101 | ||
a848cd7e SC |
8102 | enablestring= |
8103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8104 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8105 | no_cache=0 | |
8106 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8107 | if test "${enable_imaglist+set}" = set; then | |
8108 | enableval="$enable_imaglist" | |
8109 | ||
8110 | if test "$enableval" = yes; then | |
8111 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8112 | else | |
8113 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8114 | fi | |
8115 | ||
8116 | else | |
8117 | ||
8118 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8119 | if test "x$LINE" != x ; then | |
8120 | eval "DEFAULT_$LINE" | |
8121 | else | |
8122 | no_cache=1 | |
8123 | fi | |
8124 | ||
8125 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8126 | ||
8127 | fi; | |
8128 | ||
8129 | eval "$ac_cv_use_imaglist" | |
8130 | if test "$no_cache" != 1; then | |
8131 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8132 | fi | |
8133 | ||
8134 | if test "$wxUSE_IMAGLIST" = yes; then | |
8135 | echo "$as_me:$LINENO: result: yes" >&5 | |
8136 | echo "${ECHO_T}yes" >&6 | |
8137 | else | |
8138 | echo "$as_me:$LINENO: result: no" >&5 | |
8139 | echo "${ECHO_T}no" >&6 | |
8140 | fi | |
8141 | ||
8142 | ||
8143 | enablestring= | |
8144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8145 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8146 | no_cache=0 | |
8147 | # Check whether --enable-listbook or --disable-listbook was given. | |
8148 | if test "${enable_listbook+set}" = set; then | |
8149 | enableval="$enable_listbook" | |
8150 | ||
8151 | if test "$enableval" = yes; then | |
8152 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8153 | else | |
8154 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8155 | fi | |
8156 | ||
8157 | else | |
8158 | ||
8159 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8160 | if test "x$LINE" != x ; then | |
8161 | eval "DEFAULT_$LINE" | |
8162 | else | |
8163 | no_cache=1 | |
8164 | fi | |
8165 | ||
8166 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8167 | ||
8168 | fi; | |
8169 | ||
8170 | eval "$ac_cv_use_listbook" | |
8171 | if test "$no_cache" != 1; then | |
8172 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8173 | fi | |
8174 | ||
8175 | if test "$wxUSE_LISTBOOK" = yes; then | |
8176 | echo "$as_me:$LINENO: result: yes" >&5 | |
8177 | echo "${ECHO_T}yes" >&6 | |
8178 | else | |
8179 | echo "$as_me:$LINENO: result: no" >&5 | |
8180 | echo "${ECHO_T}no" >&6 | |
8181 | fi | |
8182 | ||
8183 | ||
8184 | enablestring= | |
8185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8186 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8187 | no_cache=0 | |
8188 | # Check whether --enable-listbox or --disable-listbox was given. | |
8189 | if test "${enable_listbox+set}" = set; then | |
8190 | enableval="$enable_listbox" | |
8191 | ||
8192 | if test "$enableval" = yes; then | |
8193 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8194 | else | |
8195 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8196 | fi | |
8197 | ||
8198 | else | |
8199 | ||
8200 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8201 | if test "x$LINE" != x ; then | |
8202 | eval "DEFAULT_$LINE" | |
8203 | else | |
8204 | no_cache=1 | |
8205 | fi | |
8206 | ||
8207 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8208 | ||
8209 | fi; | |
8210 | ||
8211 | eval "$ac_cv_use_listbox" | |
8212 | if test "$no_cache" != 1; then | |
8213 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8214 | fi | |
8215 | ||
8216 | if test "$wxUSE_LISTBOX" = yes; then | |
8217 | echo "$as_me:$LINENO: result: yes" >&5 | |
8218 | echo "${ECHO_T}yes" >&6 | |
8219 | else | |
8220 | echo "$as_me:$LINENO: result: no" >&5 | |
8221 | echo "${ECHO_T}no" >&6 | |
8222 | fi | |
8223 | ||
8224 | ||
8225 | enablestring= | |
8226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8227 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8228 | no_cache=0 | |
8229 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8230 | if test "${enable_listctrl+set}" = set; then | |
8231 | enableval="$enable_listctrl" | |
8232 | ||
8233 | if test "$enableval" = yes; then | |
8234 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8235 | else | |
8236 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8237 | fi | |
8238 | ||
8239 | else | |
8240 | ||
8241 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8242 | if test "x$LINE" != x ; then | |
8243 | eval "DEFAULT_$LINE" | |
8244 | else | |
8245 | no_cache=1 | |
8246 | fi | |
8247 | ||
8248 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8249 | ||
8250 | fi; | |
8251 | ||
8252 | eval "$ac_cv_use_listctrl" | |
8253 | if test "$no_cache" != 1; then | |
8254 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8255 | fi | |
8256 | ||
8257 | if test "$wxUSE_LISTCTRL" = yes; then | |
8258 | echo "$as_me:$LINENO: result: yes" >&5 | |
8259 | echo "${ECHO_T}yes" >&6 | |
8260 | else | |
8261 | echo "$as_me:$LINENO: result: no" >&5 | |
8262 | echo "${ECHO_T}no" >&6 | |
8263 | fi | |
8264 | ||
8265 | ||
8266 | enablestring= | |
8267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8268 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8269 | no_cache=0 | |
8270 | # Check whether --enable-notebook or --disable-notebook was given. | |
8271 | if test "${enable_notebook+set}" = set; then | |
8272 | enableval="$enable_notebook" | |
8273 | ||
8274 | if test "$enableval" = yes; then | |
8275 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8276 | else | |
8277 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8278 | fi | |
8279 | ||
8280 | else | |
8281 | ||
8282 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8283 | if test "x$LINE" != x ; then | |
8284 | eval "DEFAULT_$LINE" | |
8285 | else | |
8286 | no_cache=1 | |
8287 | fi | |
8288 | ||
8289 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8290 | ||
8291 | fi; | |
8292 | ||
8293 | eval "$ac_cv_use_notebook" | |
8294 | if test "$no_cache" != 1; then | |
8295 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8296 | fi | |
8297 | ||
8298 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8299 | echo "$as_me:$LINENO: result: yes" >&5 | |
8300 | echo "${ECHO_T}yes" >&6 | |
8301 | else | |
8302 | echo "$as_me:$LINENO: result: no" >&5 | |
8303 | echo "${ECHO_T}no" >&6 | |
8304 | fi | |
8305 | ||
8306 | ||
8307 | enablestring= | |
8308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8309 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8310 | no_cache=0 | |
8311 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8312 | if test "${enable_radiobox+set}" = set; then | |
8313 | enableval="$enable_radiobox" | |
8314 | ||
8315 | if test "$enableval" = yes; then | |
8316 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8317 | else | |
8318 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8319 | fi | |
8320 | ||
8321 | else | |
8322 | ||
8323 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8324 | if test "x$LINE" != x ; then | |
8325 | eval "DEFAULT_$LINE" | |
8326 | else | |
8327 | no_cache=1 | |
8328 | fi | |
8329 | ||
8330 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8331 | ||
8332 | fi; | |
8333 | ||
8334 | eval "$ac_cv_use_radiobox" | |
8335 | if test "$no_cache" != 1; then | |
8336 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8337 | fi | |
8338 | ||
8339 | if test "$wxUSE_RADIOBOX" = yes; then | |
8340 | echo "$as_me:$LINENO: result: yes" >&5 | |
8341 | echo "${ECHO_T}yes" >&6 | |
8342 | else | |
8343 | echo "$as_me:$LINENO: result: no" >&5 | |
8344 | echo "${ECHO_T}no" >&6 | |
8345 | fi | |
8346 | ||
8347 | ||
8348 | enablestring= | |
8349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8350 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8351 | no_cache=0 | |
8352 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8353 | if test "${enable_radiobtn+set}" = set; then | |
8354 | enableval="$enable_radiobtn" | |
8355 | ||
8356 | if test "$enableval" = yes; then | |
8357 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8358 | else | |
8359 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8360 | fi | |
8361 | ||
8362 | else | |
8363 | ||
8364 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8365 | if test "x$LINE" != x ; then | |
8366 | eval "DEFAULT_$LINE" | |
8367 | else | |
8368 | no_cache=1 | |
8369 | fi | |
8370 | ||
8371 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8372 | ||
8373 | fi; | |
8374 | ||
8375 | eval "$ac_cv_use_radiobtn" | |
8376 | if test "$no_cache" != 1; then | |
8377 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8378 | fi | |
8379 | ||
8380 | if test "$wxUSE_RADIOBTN" = yes; then | |
8381 | echo "$as_me:$LINENO: result: yes" >&5 | |
8382 | echo "${ECHO_T}yes" >&6 | |
8383 | else | |
8384 | echo "$as_me:$LINENO: result: no" >&5 | |
8385 | echo "${ECHO_T}no" >&6 | |
8386 | fi | |
8387 | ||
8388 | ||
8389 | enablestring= | |
8390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8391 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8392 | no_cache=0 | |
8393 | # Check whether --enable-sash or --disable-sash was given. | |
8394 | if test "${enable_sash+set}" = set; then | |
8395 | enableval="$enable_sash" | |
8396 | ||
8397 | if test "$enableval" = yes; then | |
8398 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8399 | else | |
8400 | ac_cv_use_sash='wxUSE_SASH=no' | |
8401 | fi | |
8402 | ||
8403 | else | |
8404 | ||
8405 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8406 | if test "x$LINE" != x ; then | |
8407 | eval "DEFAULT_$LINE" | |
8408 | else | |
8409 | no_cache=1 | |
8410 | fi | |
8411 | ||
8412 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8413 | ||
8414 | fi; | |
8415 | ||
8416 | eval "$ac_cv_use_sash" | |
8417 | if test "$no_cache" != 1; then | |
8418 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8419 | fi | |
8420 | ||
8421 | if test "$wxUSE_SASH" = yes; then | |
8422 | echo "$as_me:$LINENO: result: yes" >&5 | |
8423 | echo "${ECHO_T}yes" >&6 | |
8424 | else | |
8425 | echo "$as_me:$LINENO: result: no" >&5 | |
8426 | echo "${ECHO_T}no" >&6 | |
8427 | fi | |
8428 | ||
8429 | ||
8430 | enablestring= | |
8431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8432 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8433 | no_cache=0 | |
8434 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8435 | if test "${enable_scrollbar+set}" = set; then | |
8436 | enableval="$enable_scrollbar" | |
8437 | ||
8438 | if test "$enableval" = yes; then | |
8439 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8440 | else | |
8441 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8442 | fi | |
8443 | ||
8444 | else | |
8445 | ||
8446 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8447 | if test "x$LINE" != x ; then | |
8448 | eval "DEFAULT_$LINE" | |
8449 | else | |
8450 | no_cache=1 | |
8451 | fi | |
8452 | ||
8453 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8454 | ||
8455 | fi; | |
8456 | ||
8457 | eval "$ac_cv_use_scrollbar" | |
8458 | if test "$no_cache" != 1; then | |
8459 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8460 | fi | |
8461 | ||
8462 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8463 | echo "$as_me:$LINENO: result: yes" >&5 | |
8464 | echo "${ECHO_T}yes" >&6 | |
8465 | else | |
8466 | echo "$as_me:$LINENO: result: no" >&5 | |
8467 | echo "${ECHO_T}no" >&6 | |
8468 | fi | |
8469 | ||
8470 | ||
8471 | enablestring= | |
8472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8473 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8474 | no_cache=0 | |
8475 | # Check whether --enable-slider or --disable-slider was given. | |
8476 | if test "${enable_slider+set}" = set; then | |
8477 | enableval="$enable_slider" | |
8478 | ||
8479 | if test "$enableval" = yes; then | |
8480 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8481 | else | |
8482 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8483 | fi | |
8484 | ||
8485 | else | |
8486 | ||
8487 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8488 | if test "x$LINE" != x ; then | |
8489 | eval "DEFAULT_$LINE" | |
8490 | else | |
8491 | no_cache=1 | |
8492 | fi | |
8493 | ||
8494 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8495 | ||
8496 | fi; | |
8497 | ||
8498 | eval "$ac_cv_use_slider" | |
8499 | if test "$no_cache" != 1; then | |
8500 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8501 | fi | |
8502 | ||
8503 | if test "$wxUSE_SLIDER" = yes; then | |
8504 | echo "$as_me:$LINENO: result: yes" >&5 | |
8505 | echo "${ECHO_T}yes" >&6 | |
8506 | else | |
8507 | echo "$as_me:$LINENO: result: no" >&5 | |
8508 | echo "${ECHO_T}no" >&6 | |
8509 | fi | |
8510 | ||
8511 | ||
8512 | enablestring= | |
8513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8514 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8515 | no_cache=0 | |
8516 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8517 | if test "${enable_spinbtn+set}" = set; then | |
8518 | enableval="$enable_spinbtn" | |
8519 | ||
8520 | if test "$enableval" = yes; then | |
8521 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8522 | else | |
8523 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8524 | fi | |
8525 | ||
8526 | else | |
8527 | ||
8528 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8529 | if test "x$LINE" != x ; then | |
8530 | eval "DEFAULT_$LINE" | |
8531 | else | |
8532 | no_cache=1 | |
8533 | fi | |
8534 | ||
8535 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8536 | ||
8537 | fi; | |
8538 | ||
8539 | eval "$ac_cv_use_spinbtn" | |
8540 | if test "$no_cache" != 1; then | |
8541 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8542 | fi | |
8543 | ||
8544 | if test "$wxUSE_SPINBTN" = yes; then | |
8545 | echo "$as_me:$LINENO: result: yes" >&5 | |
8546 | echo "${ECHO_T}yes" >&6 | |
8547 | else | |
8548 | echo "$as_me:$LINENO: result: no" >&5 | |
8549 | echo "${ECHO_T}no" >&6 | |
8550 | fi | |
8551 | ||
8552 | ||
8553 | enablestring= | |
8554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8555 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8556 | no_cache=0 | |
8557 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8558 | if test "${enable_spinctrl+set}" = set; then | |
8559 | enableval="$enable_spinctrl" | |
8560 | ||
8561 | if test "$enableval" = yes; then | |
8562 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8563 | else | |
8564 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8565 | fi | |
8566 | ||
8567 | else | |
8568 | ||
8569 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8570 | if test "x$LINE" != x ; then | |
8571 | eval "DEFAULT_$LINE" | |
8572 | else | |
8573 | no_cache=1 | |
8574 | fi | |
8575 | ||
8576 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8577 | ||
8578 | fi; | |
8579 | ||
8580 | eval "$ac_cv_use_spinctrl" | |
8581 | if test "$no_cache" != 1; then | |
8582 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8583 | fi | |
8584 | ||
8585 | if test "$wxUSE_SPINCTRL" = yes; then | |
8586 | echo "$as_me:$LINENO: result: yes" >&5 | |
8587 | echo "${ECHO_T}yes" >&6 | |
8588 | else | |
8589 | echo "$as_me:$LINENO: result: no" >&5 | |
8590 | echo "${ECHO_T}no" >&6 | |
8591 | fi | |
8592 | ||
8593 | ||
8594 | enablestring= | |
8595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8596 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8597 | no_cache=0 | |
8598 | # Check whether --enable-splitter or --disable-splitter was given. | |
8599 | if test "${enable_splitter+set}" = set; then | |
8600 | enableval="$enable_splitter" | |
8601 | ||
8602 | if test "$enableval" = yes; then | |
8603 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8604 | else | |
8605 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8606 | fi | |
8607 | ||
8608 | else | |
8609 | ||
8610 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8611 | if test "x$LINE" != x ; then | |
8612 | eval "DEFAULT_$LINE" | |
8613 | else | |
8614 | no_cache=1 | |
8615 | fi | |
8616 | ||
8617 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8618 | ||
8619 | fi; | |
8620 | ||
8621 | eval "$ac_cv_use_splitter" | |
8622 | if test "$no_cache" != 1; then | |
8623 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8624 | fi | |
8625 | ||
8626 | if test "$wxUSE_SPLITTER" = yes; then | |
8627 | echo "$as_me:$LINENO: result: yes" >&5 | |
8628 | echo "${ECHO_T}yes" >&6 | |
8629 | else | |
8630 | echo "$as_me:$LINENO: result: no" >&5 | |
8631 | echo "${ECHO_T}no" >&6 | |
8632 | fi | |
8633 | ||
8634 | ||
8635 | enablestring= | |
8636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8637 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8638 | no_cache=0 | |
8639 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8640 | if test "${enable_statbmp+set}" = set; then | |
8641 | enableval="$enable_statbmp" | |
8642 | ||
8643 | if test "$enableval" = yes; then | |
8644 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8645 | else | |
8646 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8647 | fi | |
8648 | ||
8649 | else | |
8650 | ||
8651 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8652 | if test "x$LINE" != x ; then | |
8653 | eval "DEFAULT_$LINE" | |
8654 | else | |
8655 | no_cache=1 | |
8656 | fi | |
8657 | ||
8658 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8659 | ||
8660 | fi; | |
8661 | ||
8662 | eval "$ac_cv_use_statbmp" | |
8663 | if test "$no_cache" != 1; then | |
8664 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8665 | fi | |
8666 | ||
8667 | if test "$wxUSE_STATBMP" = yes; then | |
8668 | echo "$as_me:$LINENO: result: yes" >&5 | |
8669 | echo "${ECHO_T}yes" >&6 | |
8670 | else | |
8671 | echo "$as_me:$LINENO: result: no" >&5 | |
8672 | echo "${ECHO_T}no" >&6 | |
8673 | fi | |
8674 | ||
8675 | ||
8676 | enablestring= | |
8677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8678 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8679 | no_cache=0 | |
8680 | # Check whether --enable-statbox or --disable-statbox was given. | |
8681 | if test "${enable_statbox+set}" = set; then | |
8682 | enableval="$enable_statbox" | |
8683 | ||
8684 | if test "$enableval" = yes; then | |
8685 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8686 | else | |
8687 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8688 | fi | |
8689 | ||
8690 | else | |
8691 | ||
8692 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8693 | if test "x$LINE" != x ; then | |
8694 | eval "DEFAULT_$LINE" | |
8695 | else | |
8696 | no_cache=1 | |
8697 | fi | |
8698 | ||
8699 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8700 | ||
8701 | fi; | |
8702 | ||
8703 | eval "$ac_cv_use_statbox" | |
8704 | if test "$no_cache" != 1; then | |
8705 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8706 | fi | |
8707 | ||
8708 | if test "$wxUSE_STATBOX" = yes; then | |
8709 | echo "$as_me:$LINENO: result: yes" >&5 | |
8710 | echo "${ECHO_T}yes" >&6 | |
8711 | else | |
8712 | echo "$as_me:$LINENO: result: no" >&5 | |
8713 | echo "${ECHO_T}no" >&6 | |
8714 | fi | |
8715 | ||
8716 | ||
8717 | enablestring= | |
8718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8719 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8720 | no_cache=0 | |
8721 | # Check whether --enable-statline or --disable-statline was given. | |
8722 | if test "${enable_statline+set}" = set; then | |
8723 | enableval="$enable_statline" | |
8724 | ||
8725 | if test "$enableval" = yes; then | |
8726 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8727 | else | |
8728 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8729 | fi | |
8730 | ||
8731 | else | |
8732 | ||
8733 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8734 | if test "x$LINE" != x ; then | |
8735 | eval "DEFAULT_$LINE" | |
8736 | else | |
8737 | no_cache=1 | |
8738 | fi | |
8739 | ||
8740 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8741 | ||
8742 | fi; | |
8743 | ||
8744 | eval "$ac_cv_use_statline" | |
8745 | if test "$no_cache" != 1; then | |
8746 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8747 | fi | |
8748 | ||
8749 | if test "$wxUSE_STATLINE" = yes; then | |
8750 | echo "$as_me:$LINENO: result: yes" >&5 | |
8751 | echo "${ECHO_T}yes" >&6 | |
8752 | else | |
8753 | echo "$as_me:$LINENO: result: no" >&5 | |
8754 | echo "${ECHO_T}no" >&6 | |
8755 | fi | |
8756 | ||
8757 | ||
8758 | enablestring= | |
8759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8760 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8761 | no_cache=0 | |
8762 | # Check whether --enable-stattext or --disable-stattext was given. | |
8763 | if test "${enable_stattext+set}" = set; then | |
8764 | enableval="$enable_stattext" | |
8765 | ||
8766 | if test "$enableval" = yes; then | |
8767 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8768 | else | |
8769 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8770 | fi | |
8771 | ||
8772 | else | |
8773 | ||
8774 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8775 | if test "x$LINE" != x ; then | |
8776 | eval "DEFAULT_$LINE" | |
8777 | else | |
8778 | no_cache=1 | |
8779 | fi | |
8780 | ||
8781 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8782 | ||
8783 | fi; | |
8784 | ||
8785 | eval "$ac_cv_use_stattext" | |
8786 | if test "$no_cache" != 1; then | |
8787 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8788 | fi | |
8789 | ||
8790 | if test "$wxUSE_STATTEXT" = yes; then | |
8791 | echo "$as_me:$LINENO: result: yes" >&5 | |
8792 | echo "${ECHO_T}yes" >&6 | |
8793 | else | |
8794 | echo "$as_me:$LINENO: result: no" >&5 | |
8795 | echo "${ECHO_T}no" >&6 | |
8796 | fi | |
8797 | ||
8798 | ||
8799 | enablestring= | |
8800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8801 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8802 | no_cache=0 | |
8803 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8804 | if test "${enable_statusbar+set}" = set; then | |
8805 | enableval="$enable_statusbar" | |
8806 | ||
8807 | if test "$enableval" = yes; then | |
8808 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8809 | else | |
8810 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8811 | fi | |
8812 | ||
8813 | else | |
8814 | ||
8815 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8816 | if test "x$LINE" != x ; then | |
8817 | eval "DEFAULT_$LINE" | |
8818 | else | |
8819 | no_cache=1 | |
8820 | fi | |
8821 | ||
8822 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8823 | ||
8824 | fi; | |
8825 | ||
8826 | eval "$ac_cv_use_statusbar" | |
8827 | if test "$no_cache" != 1; then | |
8828 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8829 | fi | |
8830 | ||
8831 | if test "$wxUSE_STATUSBAR" = yes; then | |
8832 | echo "$as_me:$LINENO: result: yes" >&5 | |
8833 | echo "${ECHO_T}yes" >&6 | |
8834 | else | |
8835 | echo "$as_me:$LINENO: result: no" >&5 | |
8836 | echo "${ECHO_T}no" >&6 | |
8837 | fi | |
8838 | ||
8839 | ||
8840 | enablestring= | |
8841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8842 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8843 | no_cache=0 | |
8844 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8845 | if test "${enable_tabdialog+set}" = set; then | |
8846 | enableval="$enable_tabdialog" | |
8847 | ||
8848 | if test "$enableval" = yes; then | |
8849 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8850 | else | |
8851 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8852 | fi | |
8853 | ||
8854 | else | |
8855 | ||
8856 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8857 | if test "x$LINE" != x ; then | |
8858 | eval "DEFAULT_$LINE" | |
8859 | else | |
8860 | no_cache=1 | |
8861 | fi | |
8862 | ||
8863 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8864 | ||
8865 | fi; | |
8866 | ||
8867 | eval "$ac_cv_use_tabdialog" | |
8868 | if test "$no_cache" != 1; then | |
8869 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8870 | fi | |
8871 | ||
8872 | if test "$wxUSE_TABDIALOG" = yes; then | |
8873 | echo "$as_me:$LINENO: result: yes" >&5 | |
8874 | echo "${ECHO_T}yes" >&6 | |
8875 | else | |
8876 | echo "$as_me:$LINENO: result: no" >&5 | |
8877 | echo "${ECHO_T}no" >&6 | |
8878 | fi | |
8879 | ||
8880 | ||
8881 | enablestring= | |
8882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8883 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8884 | no_cache=0 | |
8885 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8886 | if test "${enable_textctrl+set}" = set; then | |
8887 | enableval="$enable_textctrl" | |
8888 | ||
8889 | if test "$enableval" = yes; then | |
8890 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8891 | else | |
8892 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8893 | fi | |
8894 | ||
8895 | else | |
8896 | ||
8897 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8898 | if test "x$LINE" != x ; then | |
8899 | eval "DEFAULT_$LINE" | |
8900 | else | |
8901 | no_cache=1 | |
8902 | fi | |
8903 | ||
8904 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8905 | ||
8906 | fi; | |
8907 | ||
8908 | eval "$ac_cv_use_textctrl" | |
8909 | if test "$no_cache" != 1; then | |
8910 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8911 | fi | |
8912 | ||
8913 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8914 | echo "$as_me:$LINENO: result: yes" >&5 | |
8915 | echo "${ECHO_T}yes" >&6 | |
8916 | else | |
8917 | echo "$as_me:$LINENO: result: no" >&5 | |
8918 | echo "${ECHO_T}no" >&6 | |
8919 | fi | |
8920 | ||
8921 | ||
8922 | enablestring= | |
8923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8924 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8925 | no_cache=0 | |
8926 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8927 | if test "${enable_togglebtn+set}" = set; then | |
8928 | enableval="$enable_togglebtn" | |
8929 | ||
8930 | if test "$enableval" = yes; then | |
8931 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8932 | else | |
8933 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8934 | fi | |
8935 | ||
8936 | else | |
8937 | ||
8938 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8939 | if test "x$LINE" != x ; then | |
8940 | eval "DEFAULT_$LINE" | |
8941 | else | |
8942 | no_cache=1 | |
8943 | fi | |
8944 | ||
8945 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8946 | ||
8947 | fi; | |
8948 | ||
8949 | eval "$ac_cv_use_togglebtn" | |
8950 | if test "$no_cache" != 1; then | |
8951 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8952 | fi | |
8953 | ||
8954 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8955 | echo "$as_me:$LINENO: result: yes" >&5 | |
8956 | echo "${ECHO_T}yes" >&6 | |
8957 | else | |
8958 | echo "$as_me:$LINENO: result: no" >&5 | |
8959 | echo "${ECHO_T}no" >&6 | |
8960 | fi | |
8961 | ||
8962 | ||
8963 | enablestring= | |
8964 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8965 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8966 | no_cache=0 | |
8967 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8968 | if test "${enable_toolbar+set}" = set; then | |
8969 | enableval="$enable_toolbar" | |
8970 | ||
8971 | if test "$enableval" = yes; then | |
8972 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8973 | else | |
8974 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8975 | fi | |
8976 | ||
8977 | else | |
8978 | ||
8979 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8980 | if test "x$LINE" != x ; then | |
8981 | eval "DEFAULT_$LINE" | |
8982 | else | |
8983 | no_cache=1 | |
8984 | fi | |
8985 | ||
8986 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8987 | ||
8988 | fi; | |
8989 | ||
8990 | eval "$ac_cv_use_toolbar" | |
8991 | if test "$no_cache" != 1; then | |
8992 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8993 | fi | |
8994 | ||
8995 | if test "$wxUSE_TOOLBAR" = yes; then | |
8996 | echo "$as_me:$LINENO: result: yes" >&5 | |
8997 | echo "${ECHO_T}yes" >&6 | |
8998 | else | |
8999 | echo "$as_me:$LINENO: result: no" >&5 | |
9000 | echo "${ECHO_T}no" >&6 | |
9001 | fi | |
9002 | ||
9003 | ||
9004 | enablestring= | |
9005 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9006 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9007 | no_cache=0 | |
9008 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9009 | if test "${enable_tbarnative+set}" = set; then | |
9010 | enableval="$enable_tbarnative" | |
9011 | ||
9012 | if test "$enableval" = yes; then | |
9013 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9014 | else | |
9015 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9016 | fi | |
9017 | ||
9018 | else | |
9019 | ||
9020 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9021 | if test "x$LINE" != x ; then | |
9022 | eval "DEFAULT_$LINE" | |
9023 | else | |
9024 | no_cache=1 | |
9025 | fi | |
9026 | ||
9027 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9028 | ||
9029 | fi; | |
9030 | ||
9031 | eval "$ac_cv_use_tbarnative" | |
9032 | if test "$no_cache" != 1; then | |
9033 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9034 | fi | |
9035 | ||
9036 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9037 | echo "$as_me:$LINENO: result: yes" >&5 | |
9038 | echo "${ECHO_T}yes" >&6 | |
9039 | else | |
9040 | echo "$as_me:$LINENO: result: no" >&5 | |
9041 | echo "${ECHO_T}no" >&6 | |
9042 | fi | |
9043 | ||
9044 | ||
9045 | enablestring= | |
9046 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9047 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9048 | no_cache=0 | |
9049 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9050 | if test "${enable_tbarsmpl+set}" = set; then | |
9051 | enableval="$enable_tbarsmpl" | |
9052 | ||
9053 | if test "$enableval" = yes; then | |
9054 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9055 | else | |
9056 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9057 | fi | |
9058 | ||
9059 | else | |
9060 | ||
9061 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9062 | if test "x$LINE" != x ; then | |
9063 | eval "DEFAULT_$LINE" | |
9064 | else | |
9065 | no_cache=1 | |
9066 | fi | |
9067 | ||
9068 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9069 | ||
9070 | fi; | |
9071 | ||
9072 | eval "$ac_cv_use_tbarsmpl" | |
9073 | if test "$no_cache" != 1; then | |
9074 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9075 | fi | |
9076 | ||
9077 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9078 | echo "$as_me:$LINENO: result: yes" >&5 | |
9079 | echo "${ECHO_T}yes" >&6 | |
9080 | else | |
9081 | echo "$as_me:$LINENO: result: no" >&5 | |
9082 | echo "${ECHO_T}no" >&6 | |
9083 | fi | |
9084 | ||
9085 | ||
0093c2fc VZ |
9086 | enablestring= |
9087 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9088 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9089 | no_cache=0 | |
9090 | # Check whether --enable-treebook or --disable-treebook was given. | |
9091 | if test "${enable_treebook+set}" = set; then | |
9092 | enableval="$enable_treebook" | |
9093 | ||
9094 | if test "$enableval" = yes; then | |
9095 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9096 | else | |
9097 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9098 | fi | |
9099 | ||
9100 | else | |
9101 | ||
9102 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9103 | if test "x$LINE" != x ; then | |
9104 | eval "DEFAULT_$LINE" | |
9105 | else | |
9106 | no_cache=1 | |
9107 | fi | |
9108 | ||
9109 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9110 | ||
9111 | fi; | |
9112 | ||
9113 | eval "$ac_cv_use_treebook" | |
9114 | if test "$no_cache" != 1; then | |
9115 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9116 | fi | |
9117 | ||
9118 | if test "$wxUSE_TREEBOOK" = yes; then | |
9119 | echo "$as_me:$LINENO: result: yes" >&5 | |
9120 | echo "${ECHO_T}yes" >&6 | |
9121 | else | |
9122 | echo "$as_me:$LINENO: result: no" >&5 | |
9123 | echo "${ECHO_T}no" >&6 | |
9124 | fi | |
9125 | ||
9126 | ||
a848cd7e SC |
9127 | enablestring= |
9128 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9129 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9130 | no_cache=0 | |
9131 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9132 | if test "${enable_treectrl+set}" = set; then | |
9133 | enableval="$enable_treectrl" | |
9134 | ||
9135 | if test "$enableval" = yes; then | |
9136 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9137 | else | |
9138 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9139 | fi | |
9140 | ||
9141 | else | |
9142 | ||
9143 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9144 | if test "x$LINE" != x ; then | |
9145 | eval "DEFAULT_$LINE" | |
9146 | else | |
9147 | no_cache=1 | |
9148 | fi | |
9149 | ||
9150 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9151 | ||
9152 | fi; | |
9153 | ||
9154 | eval "$ac_cv_use_treectrl" | |
9155 | if test "$no_cache" != 1; then | |
9156 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9157 | fi | |
9158 | ||
9159 | if test "$wxUSE_TREECTRL" = yes; then | |
9160 | echo "$as_me:$LINENO: result: yes" >&5 | |
9161 | echo "${ECHO_T}yes" >&6 | |
9162 | else | |
9163 | echo "$as_me:$LINENO: result: no" >&5 | |
9164 | echo "${ECHO_T}no" >&6 | |
9165 | fi | |
9166 | ||
9167 | ||
9168 | enablestring= | |
9169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9170 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9171 | no_cache=0 | |
9172 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9173 | if test "${enable_tipwindow+set}" = set; then | |
9174 | enableval="$enable_tipwindow" | |
9175 | ||
9176 | if test "$enableval" = yes; then | |
9177 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9178 | else | |
9179 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9180 | fi | |
9181 | ||
9182 | else | |
9183 | ||
9184 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9185 | if test "x$LINE" != x ; then | |
9186 | eval "DEFAULT_$LINE" | |
9187 | else | |
9188 | no_cache=1 | |
9189 | fi | |
9190 | ||
9191 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9192 | ||
9193 | fi; | |
9194 | ||
9195 | eval "$ac_cv_use_tipwindow" | |
9196 | if test "$no_cache" != 1; then | |
9197 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9198 | fi | |
9199 | ||
9200 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9201 | echo "$as_me:$LINENO: result: yes" >&5 | |
9202 | echo "${ECHO_T}yes" >&6 | |
9203 | else | |
9204 | echo "$as_me:$LINENO: result: no" >&5 | |
9205 | echo "${ECHO_T}no" >&6 | |
9206 | fi | |
9207 | ||
9208 | ||
9209 | enablestring= | |
9210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9211 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9212 | no_cache=0 | |
9213 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9214 | if test "${enable_popupwin+set}" = set; then | |
9215 | enableval="$enable_popupwin" | |
9216 | ||
9217 | if test "$enableval" = yes; then | |
9218 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9219 | else | |
9220 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9221 | fi | |
9222 | ||
9223 | else | |
9224 | ||
9225 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9226 | if test "x$LINE" != x ; then | |
9227 | eval "DEFAULT_$LINE" | |
9228 | else | |
9229 | no_cache=1 | |
9230 | fi | |
9231 | ||
9232 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9233 | ||
9234 | fi; | |
9235 | ||
9236 | eval "$ac_cv_use_popupwin" | |
9237 | if test "$no_cache" != 1; then | |
9238 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9239 | fi | |
9240 | ||
9241 | if test "$wxUSE_POPUPWIN" = yes; then | |
9242 | echo "$as_me:$LINENO: result: yes" >&5 | |
9243 | echo "${ECHO_T}yes" >&6 | |
9244 | else | |
9245 | echo "$as_me:$LINENO: result: no" >&5 | |
9246 | echo "${ECHO_T}no" >&6 | |
9247 | fi | |
9248 | ||
9249 | ||
9250 | ||
9251 | ||
9252 | enablestring= | |
9253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9254 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9255 | no_cache=0 | |
9256 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9257 | if test "${enable_commondlg+set}" = set; then | |
9258 | enableval="$enable_commondlg" | |
9259 | ||
9260 | if test "$enableval" = yes; then | |
9261 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9262 | else | |
9263 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9264 | fi | |
9265 | ||
9266 | else | |
9267 | ||
9268 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9269 | if test "x$LINE" != x ; then | |
9270 | eval "DEFAULT_$LINE" | |
9271 | else | |
9272 | no_cache=1 | |
9273 | fi | |
9274 | ||
9275 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9276 | ||
9277 | fi; | |
9278 | ||
9279 | eval "$ac_cv_use_commondlg" | |
9280 | if test "$no_cache" != 1; then | |
9281 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9282 | fi | |
9283 | ||
9284 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9285 | echo "$as_me:$LINENO: result: yes" >&5 | |
9286 | echo "${ECHO_T}yes" >&6 | |
9287 | else | |
9288 | echo "$as_me:$LINENO: result: no" >&5 | |
9289 | echo "${ECHO_T}no" >&6 | |
9290 | fi | |
9291 | ||
9292 | ||
9293 | enablestring= | |
9294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9295 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9296 | no_cache=0 | |
9297 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9298 | if test "${enable_choicedlg+set}" = set; then | |
9299 | enableval="$enable_choicedlg" | |
9300 | ||
9301 | if test "$enableval" = yes; then | |
9302 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9303 | else | |
9304 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9305 | fi | |
9306 | ||
9307 | else | |
9308 | ||
9309 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9310 | if test "x$LINE" != x ; then | |
9311 | eval "DEFAULT_$LINE" | |
9312 | else | |
9313 | no_cache=1 | |
9314 | fi | |
9315 | ||
9316 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9317 | ||
9318 | fi; | |
9319 | ||
9320 | eval "$ac_cv_use_choicedlg" | |
9321 | if test "$no_cache" != 1; then | |
9322 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9323 | fi | |
9324 | ||
9325 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9326 | echo "$as_me:$LINENO: result: yes" >&5 | |
9327 | echo "${ECHO_T}yes" >&6 | |
9328 | else | |
9329 | echo "$as_me:$LINENO: result: no" >&5 | |
9330 | echo "${ECHO_T}no" >&6 | |
9331 | fi | |
9332 | ||
9333 | ||
9334 | enablestring= | |
9335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9336 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9337 | no_cache=0 | |
9338 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9339 | if test "${enable_coldlg+set}" = set; then | |
9340 | enableval="$enable_coldlg" | |
9341 | ||
9342 | if test "$enableval" = yes; then | |
9343 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9344 | else | |
9345 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9346 | fi | |
9347 | ||
9348 | else | |
9349 | ||
9350 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9351 | if test "x$LINE" != x ; then | |
9352 | eval "DEFAULT_$LINE" | |
9353 | else | |
9354 | no_cache=1 | |
9355 | fi | |
9356 | ||
9357 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9358 | ||
9359 | fi; | |
9360 | ||
9361 | eval "$ac_cv_use_coldlg" | |
9362 | if test "$no_cache" != 1; then | |
9363 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9364 | fi | |
9365 | ||
9366 | if test "$wxUSE_COLOURDLG" = yes; then | |
9367 | echo "$as_me:$LINENO: result: yes" >&5 | |
9368 | echo "${ECHO_T}yes" >&6 | |
9369 | else | |
9370 | echo "$as_me:$LINENO: result: no" >&5 | |
9371 | echo "${ECHO_T}no" >&6 | |
9372 | fi | |
9373 | ||
9374 | ||
9375 | enablestring= | |
9376 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9377 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9378 | no_cache=0 | |
9379 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9380 | if test "${enable_filedlg+set}" = set; then | |
9381 | enableval="$enable_filedlg" | |
9382 | ||
9383 | if test "$enableval" = yes; then | |
9384 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9385 | else | |
9386 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9387 | fi | |
9388 | ||
9389 | else | |
9390 | ||
9391 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9392 | if test "x$LINE" != x ; then | |
9393 | eval "DEFAULT_$LINE" | |
9394 | else | |
9395 | no_cache=1 | |
9396 | fi | |
9397 | ||
9398 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9399 | ||
9400 | fi; | |
9401 | ||
9402 | eval "$ac_cv_use_filedlg" | |
9403 | if test "$no_cache" != 1; then | |
9404 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9405 | fi | |
9406 | ||
9407 | if test "$wxUSE_FILEDLG" = yes; then | |
9408 | echo "$as_me:$LINENO: result: yes" >&5 | |
9409 | echo "${ECHO_T}yes" >&6 | |
9410 | else | |
9411 | echo "$as_me:$LINENO: result: no" >&5 | |
9412 | echo "${ECHO_T}no" >&6 | |
9413 | fi | |
9414 | ||
9415 | ||
9416 | enablestring= | |
9417 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9418 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9419 | no_cache=0 | |
9420 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9421 | if test "${enable_finddlg+set}" = set; then | |
9422 | enableval="$enable_finddlg" | |
9423 | ||
9424 | if test "$enableval" = yes; then | |
9425 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9426 | else | |
9427 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9428 | fi | |
9429 | ||
9430 | else | |
9431 | ||
9432 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9433 | if test "x$LINE" != x ; then | |
9434 | eval "DEFAULT_$LINE" | |
9435 | else | |
9436 | no_cache=1 | |
9437 | fi | |
9438 | ||
9439 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9440 | ||
9441 | fi; | |
9442 | ||
9443 | eval "$ac_cv_use_finddlg" | |
9444 | if test "$no_cache" != 1; then | |
9445 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9446 | fi | |
9447 | ||
9448 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9449 | echo "$as_me:$LINENO: result: yes" >&5 | |
9450 | echo "${ECHO_T}yes" >&6 | |
9451 | else | |
9452 | echo "$as_me:$LINENO: result: no" >&5 | |
9453 | echo "${ECHO_T}no" >&6 | |
9454 | fi | |
9455 | ||
9456 | ||
9457 | enablestring= | |
9458 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9459 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9460 | no_cache=0 | |
9461 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9462 | if test "${enable_fontdlg+set}" = set; then | |
9463 | enableval="$enable_fontdlg" | |
9464 | ||
9465 | if test "$enableval" = yes; then | |
9466 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9467 | else | |
9468 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9469 | fi | |
9470 | ||
9471 | else | |
9472 | ||
9473 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9474 | if test "x$LINE" != x ; then | |
9475 | eval "DEFAULT_$LINE" | |
9476 | else | |
9477 | no_cache=1 | |
9478 | fi | |
9479 | ||
9480 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9481 | ||
9482 | fi; | |
9483 | ||
9484 | eval "$ac_cv_use_fontdlg" | |
9485 | if test "$no_cache" != 1; then | |
9486 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9487 | fi | |
9488 | ||
9489 | if test "$wxUSE_FONTDLG" = yes; then | |
9490 | echo "$as_me:$LINENO: result: yes" >&5 | |
9491 | echo "${ECHO_T}yes" >&6 | |
9492 | else | |
9493 | echo "$as_me:$LINENO: result: no" >&5 | |
9494 | echo "${ECHO_T}no" >&6 | |
9495 | fi | |
9496 | ||
9497 | ||
9498 | enablestring= | |
9499 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9500 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9501 | no_cache=0 | |
9502 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9503 | if test "${enable_dirdlg+set}" = set; then | |
9504 | enableval="$enable_dirdlg" | |
9505 | ||
9506 | if test "$enableval" = yes; then | |
9507 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9508 | else | |
9509 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9510 | fi | |
9511 | ||
9512 | else | |
9513 | ||
9514 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9515 | if test "x$LINE" != x ; then | |
9516 | eval "DEFAULT_$LINE" | |
9517 | else | |
9518 | no_cache=1 | |
9519 | fi | |
9520 | ||
9521 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9522 | ||
9523 | fi; | |
9524 | ||
9525 | eval "$ac_cv_use_dirdlg" | |
9526 | if test "$no_cache" != 1; then | |
9527 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9528 | fi | |
9529 | ||
9530 | if test "$wxUSE_DIRDLG" = yes; then | |
9531 | echo "$as_me:$LINENO: result: yes" >&5 | |
9532 | echo "${ECHO_T}yes" >&6 | |
9533 | else | |
9534 | echo "$as_me:$LINENO: result: no" >&5 | |
9535 | echo "${ECHO_T}no" >&6 | |
9536 | fi | |
9537 | ||
9538 | ||
9539 | enablestring= | |
9540 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9541 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9542 | no_cache=0 | |
9543 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9544 | if test "${enable_msgdlg+set}" = set; then | |
9545 | enableval="$enable_msgdlg" | |
9546 | ||
9547 | if test "$enableval" = yes; then | |
9548 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9549 | else | |
9550 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9551 | fi | |
9552 | ||
9553 | else | |
9554 | ||
9555 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9556 | if test "x$LINE" != x ; then | |
9557 | eval "DEFAULT_$LINE" | |
9558 | else | |
9559 | no_cache=1 | |
9560 | fi | |
9561 | ||
9562 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9563 | ||
9564 | fi; | |
9565 | ||
9566 | eval "$ac_cv_use_msgdlg" | |
9567 | if test "$no_cache" != 1; then | |
9568 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9569 | fi | |
9570 | ||
9571 | if test "$wxUSE_MSGDLG" = yes; then | |
9572 | echo "$as_me:$LINENO: result: yes" >&5 | |
9573 | echo "${ECHO_T}yes" >&6 | |
9574 | else | |
9575 | echo "$as_me:$LINENO: result: no" >&5 | |
9576 | echo "${ECHO_T}no" >&6 | |
9577 | fi | |
9578 | ||
9579 | ||
9580 | enablestring= | |
9581 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9582 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9583 | no_cache=0 | |
9584 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9585 | if test "${enable_numberdlg+set}" = set; then | |
9586 | enableval="$enable_numberdlg" | |
9587 | ||
9588 | if test "$enableval" = yes; then | |
9589 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9590 | else | |
9591 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9592 | fi | |
9593 | ||
9594 | else | |
9595 | ||
9596 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9597 | if test "x$LINE" != x ; then | |
9598 | eval "DEFAULT_$LINE" | |
9599 | else | |
9600 | no_cache=1 | |
9601 | fi | |
9602 | ||
9603 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9604 | ||
9605 | fi; | |
9606 | ||
9607 | eval "$ac_cv_use_numberdlg" | |
9608 | if test "$no_cache" != 1; then | |
9609 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9610 | fi | |
9611 | ||
9612 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9613 | echo "$as_me:$LINENO: result: yes" >&5 | |
9614 | echo "${ECHO_T}yes" >&6 | |
9615 | else | |
9616 | echo "$as_me:$LINENO: result: no" >&5 | |
9617 | echo "${ECHO_T}no" >&6 | |
9618 | fi | |
9619 | ||
9620 | ||
9621 | enablestring= | |
9622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9623 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9624 | no_cache=0 | |
9625 | # Check whether --enable-splash or --disable-splash was given. | |
9626 | if test "${enable_splash+set}" = set; then | |
9627 | enableval="$enable_splash" | |
9628 | ||
9629 | if test "$enableval" = yes; then | |
9630 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9631 | else | |
9632 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9633 | fi | |
9634 | ||
9635 | else | |
9636 | ||
9637 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9638 | if test "x$LINE" != x ; then | |
9639 | eval "DEFAULT_$LINE" | |
9640 | else | |
9641 | no_cache=1 | |
9642 | fi | |
9643 | ||
9644 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9645 | ||
9646 | fi; | |
9647 | ||
9648 | eval "$ac_cv_use_splash" | |
9649 | if test "$no_cache" != 1; then | |
9650 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9651 | fi | |
9652 | ||
9653 | if test "$wxUSE_SPLASH" = yes; then | |
9654 | echo "$as_me:$LINENO: result: yes" >&5 | |
9655 | echo "${ECHO_T}yes" >&6 | |
9656 | else | |
9657 | echo "$as_me:$LINENO: result: no" >&5 | |
9658 | echo "${ECHO_T}no" >&6 | |
9659 | fi | |
9660 | ||
9661 | ||
9662 | enablestring= | |
9663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9664 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9665 | no_cache=0 | |
9666 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9667 | if test "${enable_textdlg+set}" = set; then | |
9668 | enableval="$enable_textdlg" | |
9669 | ||
9670 | if test "$enableval" = yes; then | |
9671 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9672 | else | |
9673 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9674 | fi | |
9675 | ||
9676 | else | |
9677 | ||
9678 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9679 | if test "x$LINE" != x ; then | |
9680 | eval "DEFAULT_$LINE" | |
9681 | else | |
9682 | no_cache=1 | |
9683 | fi | |
9684 | ||
9685 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9686 | ||
9687 | fi; | |
9688 | ||
9689 | eval "$ac_cv_use_textdlg" | |
9690 | if test "$no_cache" != 1; then | |
9691 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9692 | fi | |
9693 | ||
9694 | if test "$wxUSE_TEXTDLG" = yes; then | |
9695 | echo "$as_me:$LINENO: result: yes" >&5 | |
9696 | echo "${ECHO_T}yes" >&6 | |
9697 | else | |
9698 | echo "$as_me:$LINENO: result: no" >&5 | |
9699 | echo "${ECHO_T}no" >&6 | |
9700 | fi | |
9701 | ||
9702 | ||
9703 | enablestring= | |
9704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9705 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9706 | no_cache=0 | |
9707 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9708 | if test "${enable_tipdlg+set}" = set; then | |
9709 | enableval="$enable_tipdlg" | |
9710 | ||
9711 | if test "$enableval" = yes; then | |
9712 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9713 | else | |
9714 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9715 | fi | |
9716 | ||
9717 | else | |
9718 | ||
9719 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9720 | if test "x$LINE" != x ; then | |
9721 | eval "DEFAULT_$LINE" | |
9722 | else | |
9723 | no_cache=1 | |
9724 | fi | |
9725 | ||
9726 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9727 | ||
9728 | fi; | |
9729 | ||
9730 | eval "$ac_cv_use_tipdlg" | |
9731 | if test "$no_cache" != 1; then | |
9732 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9733 | fi | |
9734 | ||
9735 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9736 | echo "$as_me:$LINENO: result: yes" >&5 | |
9737 | echo "${ECHO_T}yes" >&6 | |
9738 | else | |
9739 | echo "$as_me:$LINENO: result: no" >&5 | |
9740 | echo "${ECHO_T}no" >&6 | |
9741 | fi | |
9742 | ||
9743 | ||
9744 | enablestring= | |
9745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9746 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9747 | no_cache=0 | |
9748 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9749 | if test "${enable_progressdlg+set}" = set; then | |
9750 | enableval="$enable_progressdlg" | |
9751 | ||
9752 | if test "$enableval" = yes; then | |
9753 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9754 | else | |
9755 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9756 | fi | |
9757 | ||
9758 | else | |
9759 | ||
9760 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9761 | if test "x$LINE" != x ; then | |
9762 | eval "DEFAULT_$LINE" | |
9763 | else | |
9764 | no_cache=1 | |
9765 | fi | |
9766 | ||
9767 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9768 | ||
9769 | fi; | |
9770 | ||
9771 | eval "$ac_cv_use_progressdlg" | |
9772 | if test "$no_cache" != 1; then | |
9773 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9774 | fi | |
9775 | ||
9776 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9777 | echo "$as_me:$LINENO: result: yes" >&5 | |
9778 | echo "${ECHO_T}yes" >&6 | |
9779 | else | |
9780 | echo "$as_me:$LINENO: result: no" >&5 | |
9781 | echo "${ECHO_T}no" >&6 | |
9782 | fi | |
9783 | ||
9784 | ||
9785 | enablestring= | |
9786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9787 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9788 | no_cache=0 | |
9789 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9790 | if test "${enable_wizarddlg+set}" = set; then | |
9791 | enableval="$enable_wizarddlg" | |
9792 | ||
9793 | if test "$enableval" = yes; then | |
9794 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9795 | else | |
9796 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9797 | fi | |
9798 | ||
9799 | else | |
9800 | ||
9801 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9802 | if test "x$LINE" != x ; then | |
9803 | eval "DEFAULT_$LINE" | |
9804 | else | |
9805 | no_cache=1 | |
9806 | fi | |
9807 | ||
9808 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9809 | ||
9810 | fi; | |
9811 | ||
9812 | eval "$ac_cv_use_wizarddlg" | |
9813 | if test "$no_cache" != 1; then | |
9814 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9815 | fi | |
9816 | ||
9817 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9818 | echo "$as_me:$LINENO: result: yes" >&5 | |
9819 | echo "${ECHO_T}yes" >&6 | |
9820 | else | |
9821 | echo "$as_me:$LINENO: result: no" >&5 | |
9822 | echo "${ECHO_T}no" >&6 | |
9823 | fi | |
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | enablestring= | |
9829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9830 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9831 | no_cache=0 | |
9832 | # Check whether --enable-menus or --disable-menus was given. | |
9833 | if test "${enable_menus+set}" = set; then | |
9834 | enableval="$enable_menus" | |
9835 | ||
9836 | if test "$enableval" = yes; then | |
9837 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9838 | else | |
9839 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9840 | fi | |
9841 | ||
9842 | else | |
9843 | ||
9844 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9845 | if test "x$LINE" != x ; then | |
9846 | eval "DEFAULT_$LINE" | |
9847 | else | |
9848 | no_cache=1 | |
9849 | fi | |
9850 | ||
9851 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9852 | ||
9853 | fi; | |
9854 | ||
9855 | eval "$ac_cv_use_menus" | |
9856 | if test "$no_cache" != 1; then | |
9857 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9858 | fi | |
9859 | ||
9860 | if test "$wxUSE_MENUS" = yes; then | |
9861 | echo "$as_me:$LINENO: result: yes" >&5 | |
9862 | echo "${ECHO_T}yes" >&6 | |
9863 | else | |
9864 | echo "$as_me:$LINENO: result: no" >&5 | |
9865 | echo "${ECHO_T}no" >&6 | |
9866 | fi | |
9867 | ||
9868 | ||
9869 | enablestring= | |
9870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9871 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9872 | no_cache=0 | |
9873 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9874 | if test "${enable_miniframe+set}" = set; then | |
9875 | enableval="$enable_miniframe" | |
9876 | ||
9877 | if test "$enableval" = yes; then | |
9878 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9879 | else | |
9880 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9881 | fi | |
9882 | ||
9883 | else | |
9884 | ||
9885 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9886 | if test "x$LINE" != x ; then | |
9887 | eval "DEFAULT_$LINE" | |
9888 | else | |
9889 | no_cache=1 | |
9890 | fi | |
9891 | ||
9892 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9893 | ||
9894 | fi; | |
9895 | ||
9896 | eval "$ac_cv_use_miniframe" | |
9897 | if test "$no_cache" != 1; then | |
9898 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9899 | fi | |
9900 | ||
9901 | if test "$wxUSE_MINIFRAME" = yes; then | |
9902 | echo "$as_me:$LINENO: result: yes" >&5 | |
9903 | echo "${ECHO_T}yes" >&6 | |
9904 | else | |
9905 | echo "$as_me:$LINENO: result: no" >&5 | |
9906 | echo "${ECHO_T}no" >&6 | |
9907 | fi | |
9908 | ||
9909 | ||
9910 | enablestring= | |
9911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9912 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9913 | no_cache=0 | |
9914 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9915 | if test "${enable_tooltips+set}" = set; then | |
9916 | enableval="$enable_tooltips" | |
9917 | ||
9918 | if test "$enableval" = yes; then | |
9919 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9920 | else | |
9921 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9922 | fi | |
9923 | ||
9924 | else | |
9925 | ||
9926 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9927 | if test "x$LINE" != x ; then | |
9928 | eval "DEFAULT_$LINE" | |
9929 | else | |
9930 | no_cache=1 | |
9931 | fi | |
9932 | ||
9933 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9934 | ||
9935 | fi; | |
9936 | ||
9937 | eval "$ac_cv_use_tooltips" | |
9938 | if test "$no_cache" != 1; then | |
9939 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9940 | fi | |
9941 | ||
9942 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9943 | echo "$as_me:$LINENO: result: yes" >&5 | |
9944 | echo "${ECHO_T}yes" >&6 | |
9945 | else | |
9946 | echo "$as_me:$LINENO: result: no" >&5 | |
9947 | echo "${ECHO_T}no" >&6 | |
9948 | fi | |
9949 | ||
9950 | ||
9951 | enablestring= | |
9952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9953 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9954 | no_cache=0 | |
9955 | # Check whether --enable-splines or --disable-splines was given. | |
9956 | if test "${enable_splines+set}" = set; then | |
9957 | enableval="$enable_splines" | |
9958 | ||
9959 | if test "$enableval" = yes; then | |
9960 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9961 | else | |
9962 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9963 | fi | |
9964 | ||
9965 | else | |
9966 | ||
9967 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9968 | if test "x$LINE" != x ; then | |
9969 | eval "DEFAULT_$LINE" | |
9970 | else | |
9971 | no_cache=1 | |
9972 | fi | |
9973 | ||
9974 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9975 | ||
9976 | fi; | |
9977 | ||
9978 | eval "$ac_cv_use_splines" | |
9979 | if test "$no_cache" != 1; then | |
9980 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9981 | fi | |
9982 | ||
9983 | if test "$wxUSE_SPLINES" = yes; then | |
9984 | echo "$as_me:$LINENO: result: yes" >&5 | |
9985 | echo "${ECHO_T}yes" >&6 | |
9986 | else | |
9987 | echo "$as_me:$LINENO: result: no" >&5 | |
9988 | echo "${ECHO_T}no" >&6 | |
9989 | fi | |
9990 | ||
9991 | ||
fbe2ca43 SN |
9992 | enablestring= |
9993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9994 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9995 | no_cache=0 | |
9996 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9997 | if test "${enable_mousewheel+set}" = set; then | |
9998 | enableval="$enable_mousewheel" | |
9999 | ||
10000 | if test "$enableval" = yes; then | |
10001 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10002 | else | |
10003 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10004 | fi | |
10005 | ||
10006 | else | |
10007 | ||
10008 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10009 | if test "x$LINE" != x ; then | |
10010 | eval "DEFAULT_$LINE" | |
10011 | else | |
10012 | no_cache=1 | |
10013 | fi | |
10014 | ||
10015 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10016 | ||
10017 | fi; | |
10018 | ||
10019 | eval "$ac_cv_use_mousewheel" | |
10020 | if test "$no_cache" != 1; then | |
10021 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10022 | fi | |
10023 | ||
10024 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10025 | echo "$as_me:$LINENO: result: yes" >&5 | |
10026 | echo "${ECHO_T}yes" >&6 | |
10027 | else | |
10028 | echo "$as_me:$LINENO: result: no" >&5 | |
10029 | echo "${ECHO_T}no" >&6 | |
10030 | fi | |
10031 | ||
10032 | ||
a848cd7e SC |
10033 | enablestring= |
10034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10035 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10036 | no_cache=0 | |
10037 | # Check whether --enable-validators or --disable-validators was given. | |
10038 | if test "${enable_validators+set}" = set; then | |
10039 | enableval="$enable_validators" | |
10040 | ||
10041 | if test "$enableval" = yes; then | |
10042 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10043 | else | |
10044 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10045 | fi | |
10046 | ||
10047 | else | |
10048 | ||
10049 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10050 | if test "x$LINE" != x ; then | |
10051 | eval "DEFAULT_$LINE" | |
10052 | else | |
10053 | no_cache=1 | |
10054 | fi | |
10055 | ||
10056 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10057 | ||
10058 | fi; | |
10059 | ||
10060 | eval "$ac_cv_use_validators" | |
10061 | if test "$no_cache" != 1; then | |
10062 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10063 | fi | |
10064 | ||
10065 | if test "$wxUSE_VALIDATORS" = yes; then | |
10066 | echo "$as_me:$LINENO: result: yes" >&5 | |
10067 | echo "${ECHO_T}yes" >&6 | |
10068 | else | |
10069 | echo "$as_me:$LINENO: result: no" >&5 | |
10070 | echo "${ECHO_T}no" >&6 | |
10071 | fi | |
10072 | ||
10073 | ||
10074 | enablestring= | |
10075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10076 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10077 | no_cache=0 | |
10078 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10079 | if test "${enable_busyinfo+set}" = set; then | |
10080 | enableval="$enable_busyinfo" | |
10081 | ||
10082 | if test "$enableval" = yes; then | |
10083 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10084 | else | |
10085 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10086 | fi | |
10087 | ||
10088 | else | |
10089 | ||
10090 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10091 | if test "x$LINE" != x ; then | |
10092 | eval "DEFAULT_$LINE" | |
10093 | else | |
10094 | no_cache=1 | |
10095 | fi | |
10096 | ||
10097 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10098 | ||
10099 | fi; | |
10100 | ||
10101 | eval "$ac_cv_use_busyinfo" | |
10102 | if test "$no_cache" != 1; then | |
10103 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10104 | fi | |
10105 | ||
10106 | if test "$wxUSE_BUSYINFO" = yes; then | |
10107 | echo "$as_me:$LINENO: result: yes" >&5 | |
10108 | echo "${ECHO_T}yes" >&6 | |
10109 | else | |
10110 | echo "$as_me:$LINENO: result: no" >&5 | |
10111 | echo "${ECHO_T}no" >&6 | |
10112 | fi | |
10113 | ||
10114 | ||
10115 | enablestring= | |
10116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10117 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10118 | no_cache=0 | |
10119 | # Check whether --enable-joystick or --disable-joystick was given. | |
10120 | if test "${enable_joystick+set}" = set; then | |
10121 | enableval="$enable_joystick" | |
10122 | ||
10123 | if test "$enableval" = yes; then | |
10124 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10125 | else | |
10126 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10127 | fi | |
10128 | ||
10129 | else | |
10130 | ||
10131 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10132 | if test "x$LINE" != x ; then | |
10133 | eval "DEFAULT_$LINE" | |
10134 | else | |
10135 | no_cache=1 | |
10136 | fi | |
10137 | ||
10138 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10139 | ||
10140 | fi; | |
10141 | ||
10142 | eval "$ac_cv_use_joystick" | |
10143 | if test "$no_cache" != 1; then | |
10144 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10145 | fi | |
10146 | ||
10147 | if test "$wxUSE_JOYSTICK" = yes; then | |
10148 | echo "$as_me:$LINENO: result: yes" >&5 | |
10149 | echo "${ECHO_T}yes" >&6 | |
10150 | else | |
10151 | echo "$as_me:$LINENO: result: no" >&5 | |
10152 | echo "${ECHO_T}no" >&6 | |
10153 | fi | |
10154 | ||
10155 | ||
10156 | enablestring= | |
10157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10158 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10159 | no_cache=0 | |
10160 | # Check whether --enable-metafile or --disable-metafile was given. | |
10161 | if test "${enable_metafile+set}" = set; then | |
10162 | enableval="$enable_metafile" | |
10163 | ||
10164 | if test "$enableval" = yes; then | |
10165 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10166 | else | |
10167 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10168 | fi | |
10169 | ||
10170 | else | |
10171 | ||
10172 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10173 | if test "x$LINE" != x ; then | |
10174 | eval "DEFAULT_$LINE" | |
10175 | else | |
10176 | no_cache=1 | |
10177 | fi | |
10178 | ||
10179 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10180 | ||
10181 | fi; | |
10182 | ||
10183 | eval "$ac_cv_use_metafile" | |
10184 | if test "$no_cache" != 1; then | |
10185 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10186 | fi | |
10187 | ||
10188 | if test "$wxUSE_METAFILE" = yes; then | |
10189 | echo "$as_me:$LINENO: result: yes" >&5 | |
10190 | echo "${ECHO_T}yes" >&6 | |
10191 | else | |
10192 | echo "$as_me:$LINENO: result: no" >&5 | |
10193 | echo "${ECHO_T}no" >&6 | |
10194 | fi | |
10195 | ||
10196 | ||
10197 | enablestring= | |
10198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10199 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10200 | no_cache=0 | |
10201 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10202 | if test "${enable_dragimage+set}" = set; then | |
10203 | enableval="$enable_dragimage" | |
10204 | ||
10205 | if test "$enableval" = yes; then | |
10206 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10207 | else | |
10208 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10209 | fi | |
10210 | ||
10211 | else | |
10212 | ||
10213 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10214 | if test "x$LINE" != x ; then | |
10215 | eval "DEFAULT_$LINE" | |
10216 | else | |
10217 | no_cache=1 | |
10218 | fi | |
10219 | ||
10220 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10221 | ||
10222 | fi; | |
10223 | ||
10224 | eval "$ac_cv_use_dragimage" | |
10225 | if test "$no_cache" != 1; then | |
10226 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10227 | fi | |
10228 | ||
10229 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10230 | echo "$as_me:$LINENO: result: yes" >&5 | |
10231 | echo "${ECHO_T}yes" >&6 | |
10232 | else | |
10233 | echo "$as_me:$LINENO: result: no" >&5 | |
10234 | echo "${ECHO_T}no" >&6 | |
10235 | fi | |
10236 | ||
10237 | ||
10238 | enablestring= | |
10239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10240 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10241 | no_cache=0 | |
10242 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10243 | if test "${enable_accessibility+set}" = set; then | |
10244 | enableval="$enable_accessibility" | |
10245 | ||
10246 | if test "$enableval" = yes; then | |
10247 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10248 | else | |
10249 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10250 | fi | |
10251 | ||
10252 | else | |
10253 | ||
10254 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10255 | if test "x$LINE" != x ; then | |
10256 | eval "DEFAULT_$LINE" | |
10257 | else | |
10258 | no_cache=1 | |
10259 | fi | |
10260 | ||
10261 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10262 | ||
10263 | fi; | |
10264 | ||
10265 | eval "$ac_cv_use_accessibility" | |
10266 | if test "$no_cache" != 1; then | |
10267 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10268 | fi | |
10269 | ||
10270 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10271 | echo "$as_me:$LINENO: result: yes" >&5 | |
10272 | echo "${ECHO_T}yes" >&6 | |
10273 | else | |
10274 | echo "$as_me:$LINENO: result: no" >&5 | |
10275 | echo "${ECHO_T}no" >&6 | |
10276 | fi | |
10277 | ||
10278 | ||
38b4a946 VZ |
10279 | if test "$wxUSE_MSW" = "1"; then |
10280 | ||
10281 | enablestring= | |
10282 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10283 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10284 | no_cache=0 | |
10285 | # Check whether --enable-dccache or --disable-dccache was given. | |
10286 | if test "${enable_dccache+set}" = set; then | |
10287 | enableval="$enable_dccache" | |
10288 | ||
10289 | if test "$enableval" = yes; then | |
10290 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10291 | else | |
10292 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10293 | fi | |
10294 | ||
10295 | else | |
10296 | ||
10297 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10298 | if test "x$LINE" != x ; then | |
10299 | eval "DEFAULT_$LINE" | |
10300 | else | |
10301 | no_cache=1 | |
10302 | fi | |
10303 | ||
10304 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10305 | ||
10306 | fi; | |
10307 | ||
10308 | eval "$ac_cv_use_dccache" | |
10309 | if test "$no_cache" != 1; then | |
10310 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10311 | fi | |
10312 | ||
10313 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10314 | echo "$as_me:$LINENO: result: yes" >&5 | |
10315 | echo "${ECHO_T}yes" >&6 | |
10316 | else | |
10317 | echo "$as_me:$LINENO: result: no" >&5 | |
10318 | echo "${ECHO_T}no" >&6 | |
10319 | fi | |
10320 | ||
10321 | fi | |
10322 | ||
a848cd7e SC |
10323 | |
10324 | ||
10325 | enablestring= | |
10326 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10327 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10328 | no_cache=0 | |
10329 | # Check whether --enable-palette or --disable-palette was given. | |
10330 | if test "${enable_palette+set}" = set; then | |
10331 | enableval="$enable_palette" | |
10332 | ||
10333 | if test "$enableval" = yes; then | |
10334 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10335 | else | |
10336 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10337 | fi | |
10338 | ||
10339 | else | |
10340 | ||
10341 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10342 | if test "x$LINE" != x ; then | |
10343 | eval "DEFAULT_$LINE" | |
10344 | else | |
10345 | no_cache=1 | |
10346 | fi | |
10347 | ||
10348 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10349 | ||
10350 | fi; | |
10351 | ||
10352 | eval "$ac_cv_use_palette" | |
10353 | if test "$no_cache" != 1; then | |
10354 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10355 | fi | |
10356 | ||
10357 | if test "$wxUSE_PALETTE" = yes; then | |
10358 | echo "$as_me:$LINENO: result: yes" >&5 | |
10359 | echo "${ECHO_T}yes" >&6 | |
10360 | else | |
10361 | echo "$as_me:$LINENO: result: no" >&5 | |
10362 | echo "${ECHO_T}no" >&6 | |
10363 | fi | |
10364 | ||
10365 | ||
10366 | enablestring= | |
10367 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10368 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10369 | no_cache=0 | |
10370 | # Check whether --enable-image or --disable-image was given. | |
10371 | if test "${enable_image+set}" = set; then | |
10372 | enableval="$enable_image" | |
10373 | ||
10374 | if test "$enableval" = yes; then | |
10375 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10376 | else | |
10377 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10378 | fi | |
10379 | ||
10380 | else | |
10381 | ||
10382 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10383 | if test "x$LINE" != x ; then | |
10384 | eval "DEFAULT_$LINE" | |
10385 | else | |
10386 | no_cache=1 | |
10387 | fi | |
10388 | ||
10389 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10390 | ||
10391 | fi; | |
10392 | ||
10393 | eval "$ac_cv_use_image" | |
10394 | if test "$no_cache" != 1; then | |
10395 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10396 | fi | |
10397 | ||
10398 | if test "$wxUSE_IMAGE" = yes; then | |
10399 | echo "$as_me:$LINENO: result: yes" >&5 | |
10400 | echo "${ECHO_T}yes" >&6 | |
10401 | else | |
10402 | echo "$as_me:$LINENO: result: no" >&5 | |
10403 | echo "${ECHO_T}no" >&6 | |
10404 | fi | |
10405 | ||
10406 | ||
10407 | enablestring= | |
10408 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10409 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10410 | no_cache=0 | |
10411 | # Check whether --enable-gif or --disable-gif was given. | |
10412 | if test "${enable_gif+set}" = set; then | |
10413 | enableval="$enable_gif" | |
10414 | ||
10415 | if test "$enableval" = yes; then | |
10416 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10417 | else | |
10418 | ac_cv_use_gif='wxUSE_GIF=no' | |
10419 | fi | |
10420 | ||
10421 | else | |
10422 | ||
10423 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10424 | if test "x$LINE" != x ; then | |
10425 | eval "DEFAULT_$LINE" | |
10426 | else | |
10427 | no_cache=1 | |
10428 | fi | |
10429 | ||
10430 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10431 | ||
10432 | fi; | |
10433 | ||
10434 | eval "$ac_cv_use_gif" | |
10435 | if test "$no_cache" != 1; then | |
10436 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10437 | fi | |
10438 | ||
10439 | if test "$wxUSE_GIF" = yes; then | |
10440 | echo "$as_me:$LINENO: result: yes" >&5 | |
10441 | echo "${ECHO_T}yes" >&6 | |
10442 | else | |
10443 | echo "$as_me:$LINENO: result: no" >&5 | |
10444 | echo "${ECHO_T}no" >&6 | |
10445 | fi | |
10446 | ||
10447 | ||
10448 | enablestring= | |
10449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10450 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10451 | no_cache=0 | |
10452 | # Check whether --enable-pcx or --disable-pcx was given. | |
10453 | if test "${enable_pcx+set}" = set; then | |
10454 | enableval="$enable_pcx" | |
10455 | ||
10456 | if test "$enableval" = yes; then | |
10457 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10458 | else | |
10459 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10460 | fi | |
10461 | ||
10462 | else | |
10463 | ||
10464 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10465 | if test "x$LINE" != x ; then | |
10466 | eval "DEFAULT_$LINE" | |
10467 | else | |
10468 | no_cache=1 | |
10469 | fi | |
10470 | ||
10471 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10472 | ||
10473 | fi; | |
10474 | ||
10475 | eval "$ac_cv_use_pcx" | |
10476 | if test "$no_cache" != 1; then | |
10477 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10478 | fi | |
10479 | ||
10480 | if test "$wxUSE_PCX" = yes; then | |
10481 | echo "$as_me:$LINENO: result: yes" >&5 | |
10482 | echo "${ECHO_T}yes" >&6 | |
10483 | else | |
10484 | echo "$as_me:$LINENO: result: no" >&5 | |
10485 | echo "${ECHO_T}no" >&6 | |
10486 | fi | |
10487 | ||
10488 | ||
10489 | enablestring= | |
10490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10491 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10492 | no_cache=0 | |
10493 | # Check whether --enable-iff or --disable-iff was given. | |
10494 | if test "${enable_iff+set}" = set; then | |
10495 | enableval="$enable_iff" | |
10496 | ||
10497 | if test "$enableval" = yes; then | |
10498 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10499 | else | |
10500 | ac_cv_use_iff='wxUSE_IFF=no' | |
10501 | fi | |
10502 | ||
10503 | else | |
10504 | ||
10505 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10506 | if test "x$LINE" != x ; then | |
10507 | eval "DEFAULT_$LINE" | |
10508 | else | |
10509 | no_cache=1 | |
10510 | fi | |
10511 | ||
10512 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10513 | ||
10514 | fi; | |
10515 | ||
10516 | eval "$ac_cv_use_iff" | |
10517 | if test "$no_cache" != 1; then | |
10518 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10519 | fi | |
10520 | ||
10521 | if test "$wxUSE_IFF" = yes; then | |
10522 | echo "$as_me:$LINENO: result: yes" >&5 | |
10523 | echo "${ECHO_T}yes" >&6 | |
10524 | else | |
10525 | echo "$as_me:$LINENO: result: no" >&5 | |
10526 | echo "${ECHO_T}no" >&6 | |
10527 | fi | |
10528 | ||
10529 | ||
10530 | enablestring= | |
10531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10532 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10533 | no_cache=0 | |
10534 | # Check whether --enable-pnm or --disable-pnm was given. | |
10535 | if test "${enable_pnm+set}" = set; then | |
10536 | enableval="$enable_pnm" | |
10537 | ||
10538 | if test "$enableval" = yes; then | |
10539 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10540 | else | |
10541 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10542 | fi | |
10543 | ||
10544 | else | |
10545 | ||
10546 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10547 | if test "x$LINE" != x ; then | |
10548 | eval "DEFAULT_$LINE" | |
10549 | else | |
10550 | no_cache=1 | |
10551 | fi | |
10552 | ||
10553 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10554 | ||
10555 | fi; | |
10556 | ||
10557 | eval "$ac_cv_use_pnm" | |
10558 | if test "$no_cache" != 1; then | |
10559 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10560 | fi | |
10561 | ||
10562 | if test "$wxUSE_PNM" = yes; then | |
10563 | echo "$as_me:$LINENO: result: yes" >&5 | |
10564 | echo "${ECHO_T}yes" >&6 | |
10565 | else | |
10566 | echo "$as_me:$LINENO: result: no" >&5 | |
10567 | echo "${ECHO_T}no" >&6 | |
10568 | fi | |
10569 | ||
10570 | ||
10571 | enablestring= | |
10572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10573 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10574 | no_cache=0 | |
10575 | # Check whether --enable-xpm or --disable-xpm was given. | |
10576 | if test "${enable_xpm+set}" = set; then | |
10577 | enableval="$enable_xpm" | |
10578 | ||
10579 | if test "$enableval" = yes; then | |
10580 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10581 | else | |
10582 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10583 | fi | |
10584 | ||
10585 | else | |
10586 | ||
10587 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10588 | if test "x$LINE" != x ; then | |
10589 | eval "DEFAULT_$LINE" | |
10590 | else | |
10591 | no_cache=1 | |
10592 | fi | |
10593 | ||
10594 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10595 | ||
10596 | fi; | |
10597 | ||
10598 | eval "$ac_cv_use_xpm" | |
10599 | if test "$no_cache" != 1; then | |
10600 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10601 | fi | |
10602 | ||
10603 | if test "$wxUSE_XPM" = yes; then | |
10604 | echo "$as_me:$LINENO: result: yes" >&5 | |
10605 | echo "${ECHO_T}yes" >&6 | |
10606 | else | |
10607 | echo "$as_me:$LINENO: result: no" >&5 | |
10608 | echo "${ECHO_T}no" >&6 | |
10609 | fi | |
10610 | ||
10611 | ||
10612 | enablestring= | |
10613 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10614 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10615 | no_cache=0 | |
10616 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10617 | if test "${enable_ico_cur+set}" = set; then | |
10618 | enableval="$enable_ico_cur" | |
10619 | ||
10620 | if test "$enableval" = yes; then | |
10621 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10622 | else | |
10623 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10624 | fi | |
10625 | ||
10626 | else | |
10627 | ||
10628 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10629 | if test "x$LINE" != x ; then | |
10630 | eval "DEFAULT_$LINE" | |
10631 | else | |
10632 | no_cache=1 | |
10633 | fi | |
10634 | ||
10635 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10636 | ||
10637 | fi; | |
10638 | ||
10639 | eval "$ac_cv_use_ico_cur" | |
10640 | if test "$no_cache" != 1; then | |
10641 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10642 | fi | |
10643 | ||
10644 | if test "$wxUSE_ICO_CUR" = yes; then | |
10645 | echo "$as_me:$LINENO: result: yes" >&5 | |
10646 | echo "${ECHO_T}yes" >&6 | |
10647 | else | |
10648 | echo "$as_me:$LINENO: result: no" >&5 | |
10649 | echo "${ECHO_T}no" >&6 | |
10650 | fi | |
10651 | ||
10652 | ||
10653 | fi | |
10654 | ||
10655 | ||
10656 | ||
ceec2216 RL |
10657 | # Check whether --with-flavour or --without-flavour was given. |
10658 | if test "${with_flavour+set}" = set; then | |
10659 | withval="$with_flavour" | |
10660 | WX_FLAVOUR="$withval" | |
10661 | fi; | |
10662 | ||
10663 | ||
10664 | ||
a848cd7e SC |
10665 | enablestring= |
10666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10667 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10668 | no_cache=0 | |
10669 | # Check whether --enable-official_build or --disable-official_build was given. | |
10670 | if test "${enable_official_build+set}" = set; then | |
10671 | enableval="$enable_official_build" | |
10672 | ||
10673 | if test "$enableval" = yes; then | |
10674 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10675 | else | |
10676 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10677 | fi | |
10678 | ||
10679 | else | |
10680 | ||
10681 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10682 | if test "x$LINE" != x ; then | |
10683 | eval "DEFAULT_$LINE" | |
10684 | else | |
10685 | no_cache=1 | |
10686 | fi | |
10687 | ||
10688 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10689 | ||
10690 | fi; | |
10691 | ||
10692 | eval "$ac_cv_use_official_build" | |
10693 | if test "$no_cache" != 1; then | |
10694 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10695 | fi | |
10696 | ||
10697 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10698 | echo "$as_me:$LINENO: result: yes" >&5 | |
10699 | echo "${ECHO_T}yes" >&6 | |
10700 | else | |
10701 | echo "$as_me:$LINENO: result: no" >&5 | |
10702 | echo "${ECHO_T}no" >&6 | |
10703 | fi | |
10704 | ||
10705 | # Check whether --enable-vendor or --disable-vendor was given. | |
10706 | if test "${enable_vendor+set}" = set; then | |
10707 | enableval="$enable_vendor" | |
10708 | VENDOR="$enableval" | |
10709 | fi; | |
10710 | if test "x$VENDOR" = "x"; then | |
10711 | VENDOR="custom" | |
10712 | fi | |
10713 | ||
a848cd7e SC |
10714 | |
10715 | ||
10716 | ||
10717 | echo "saving argument cache $wx_arg_cache_file" | |
10718 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10719 | ||
10720 | ||
10721 | ||
10722 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10723 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10724 | ||
10725 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10726 | if test "$wxUSE_WINE" = "yes"; then | |
10727 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10728 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10729 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10730 | wxUSE_SHARED=no | |
10731 | fi | |
10732 | ||
f597b41c | 10733 | |
a848cd7e SC |
10734 | if test "$wxUSE_GUI" = "yes"; then |
10735 | ||
10736 | if test "$USE_BEOS" = 1; then | |
10737 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10738 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10739 | { (exit 1); exit 1; }; } | |
10740 | fi | |
10741 | ||
10742 | if test "$TOOLKIT_GIVEN" = 1; then | |
10743 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10744 | var=wxUSE_$toolkit | |
10745 | eval "value=\$${var}" | |
f34ca037 MW |
10746 | if test "x$value" = "xno"; then |
10747 | eval "$var=0" | |
10748 | elif test "x$value" != "x"; then | |
10749 | eval "$var=1" | |
10750 | fi | |
10751 | ||
10752 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10753 | eval "wx${toolkit}_VERSION=$value" | |
10754 | fi | |
a848cd7e SC |
10755 | done |
10756 | else | |
10757 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10758 | if test "$has_toolkit_in_cache" != 1; then | |
10759 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10760 | else | |
10761 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10762 | |
10763 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10764 | if test "x$version" != "x"; then | |
10765 | eval "wx${toolkit}_VERSION=$version" | |
10766 | fi | |
a848cd7e SC |
10767 | fi |
10768 | eval "wxUSE_$toolkit=\$${var}" | |
10769 | done | |
10770 | fi | |
10771 | ||
10772 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10773 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10774 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10775 | ||
10776 | case "${host}" in | |
10777 | *-pc-os2_emx | *-pc-os2-emx ) | |
10778 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10779 | esac | |
10780 | ||
10781 | case "$NUM_TOOLKITS" in | |
10782 | 1) | |
10783 | ;; | |
10784 | 0) | |
10785 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10786 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10787 | { (exit 1); exit 1; }; } | |
10788 | ;; | |
10789 | *) | |
10790 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10791 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10792 | { (exit 1); exit 1; }; } | |
10793 | esac | |
10794 | ||
f34ca037 MW |
10795 | # to be removed when --disable-gtk2 isn't needed |
10796 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10797 | wxGTK_VERSION=2 | |
10798 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10799 | wxGTK_VERSION=1 | |
10800 | fi | |
10801 | ||
a848cd7e SC |
10802 | for toolkit in `echo $ALL_TOOLKITS`; do |
10803 | var=wxUSE_$toolkit | |
10804 | eval "value=\$${var}" | |
10805 | if test "x$value" != x; then | |
10806 | cache_var=CACHE_$toolkit | |
10807 | eval "cache=\$${cache_var}" | |
10808 | if test "$cache" = 1; then | |
10809 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10810 | eval "version=\$wx${toolkit}_VERSION" |
10811 | if test "x$version" != "x"; then | |
10812 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10813 | fi | |
a848cd7e SC |
10814 | fi |
10815 | if test "$value" = 1; then | |
10816 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10817 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10818 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10819 | fi | |
10820 | fi | |
10821 | done | |
10822 | else | |
10823 | if test "x$host_alias" != "x"; then | |
10824 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10825 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10826 | else | |
10827 | echo "$as_me:$LINENO: result: base only" >&5 | |
10828 | echo "${ECHO_T}base only" >&6 | |
10829 | fi | |
10830 | fi | |
10831 | ||
10832 | wants_win32=0 | |
10833 | doesnt_want_win32=0 | |
10834 | case "${host}" in | |
10835 | *-*-cygwin*) | |
10836 | if test "$wxUSE_MSW" = 1 ; then | |
10837 | wants_win32=1 | |
7275146d | 10838 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10839 | else |
10840 | doesnt_want_win32=1 | |
10841 | fi | |
10842 | ;; | |
10843 | *-*-mingw*) | |
10844 | wants_win32=1 | |
10845 | ;; | |
10846 | esac | |
10847 | ||
10848 | if test "$wxUSE_WINE" = "yes"; then | |
10849 | wants_win32=1 | |
10850 | CC=winegcc | |
10851 | CXX=wineg++ | |
a848cd7e SC |
10852 | LDFLAGS_GUI="-mwindows" |
10853 | fi | |
10854 | ||
10855 | if test "$wants_win32" = 1 ; then | |
10856 | USE_UNIX=0 | |
10857 | USE_WIN32=1 | |
10858 | cat >>confdefs.h <<\_ACEOF | |
10859 | #define __WIN32__ 1 | |
10860 | _ACEOF | |
10861 | ||
10862 | cat >>confdefs.h <<\_ACEOF | |
10863 | #define __WIN95__ 1 | |
10864 | _ACEOF | |
10865 | ||
10866 | cat >>confdefs.h <<\_ACEOF | |
10867 | #define __WINDOWS__ 1 | |
10868 | _ACEOF | |
10869 | ||
10870 | cat >>confdefs.h <<\_ACEOF | |
10871 | #define __GNUWIN32__ 1 | |
10872 | _ACEOF | |
10873 | ||
10874 | cat >>confdefs.h <<\_ACEOF | |
10875 | #define STRICT 1 | |
10876 | _ACEOF | |
10877 | ||
10878 | cat >>confdefs.h <<\_ACEOF | |
10879 | #define WINVER 0x0400 | |
10880 | _ACEOF | |
10881 | ||
10882 | fi | |
10883 | if test "$doesnt_want_win32" = 1 ; then | |
10884 | USE_UNIX=1 | |
10885 | USE_WIN32=0 | |
10886 | fi | |
10887 | ||
10888 | if test "$USE_UNIX" = 1 ; then | |
10889 | wxUSE_UNIX=yes | |
10890 | cat >>confdefs.h <<\_ACEOF | |
10891 | #define __UNIX__ 1 | |
10892 | _ACEOF | |
10893 | ||
10894 | fi | |
10895 | ||
10896 | ||
10897 | cat >confcache <<\_ACEOF | |
10898 | # This file is a shell script that caches the results of configure | |
10899 | # tests run on this system so they can be shared between configure | |
10900 | # scripts and configure runs, see configure's option --config-cache. | |
10901 | # It is not useful on other systems. If it contains results you don't | |
10902 | # want to keep, you may remove or edit it. | |
10903 | # | |
10904 | # config.status only pays attention to the cache file if you give it | |
10905 | # the --recheck option to rerun configure. | |
10906 | # | |
10907 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10908 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10909 | # following values. | |
10910 | ||
10911 | _ACEOF | |
10912 | ||
10913 | # The following way of writing the cache mishandles newlines in values, | |
10914 | # but we know of no workaround that is simple, portable, and efficient. | |
10915 | # So, don't put newlines in cache variables' values. | |
10916 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10917 | # and sets the high bit in the cache file unless we assign to the vars. | |
10918 | { | |
10919 | (set) 2>&1 | | |
10920 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10921 | *ac_space=\ *) | |
10922 | # `set' does not quote correctly, so add quotes (double-quote | |
10923 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10924 | sed -n \ | |
ac1cb8d3 VS |
10925 | "s/'/'\\\\''/g; |
10926 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10927 | ;; |
10928 | *) | |
10929 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10930 | sed -n \ | |
ac1cb8d3 | 10931 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10932 | ;; |
10933 | esac; | |
10934 | } | | |
10935 | sed ' | |
10936 | t clear | |
10937 | : clear | |
10938 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10939 | t end | |
10940 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10941 | : end' >>confcache | |
10942 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10943 | if test -w $cache_file; then | |
10944 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10945 | cat confcache >$cache_file | |
10946 | else | |
10947 | echo "not updating unwritable cache $cache_file" | |
10948 | fi | |
10949 | fi | |
10950 | rm -f confcache | |
10951 | ||
a848cd7e | 10952 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
10953 | |
10954 | ||
3006edc0 | 10955 | |
6dcfc289 | 10956 | ac_ext=c |
a848cd7e SC |
10957 | ac_cpp='$CPP $CPPFLAGS' |
10958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10961 | if test -n "$ac_tool_prefix"; then | |
10962 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10963 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10966 | if test "${ac_cv_prog_CC+set}" = set; then | |
10967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10968 | else | |
10969 | if test -n "$CC"; then | |
10970 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10971 | else | |
10972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10973 | for as_dir in $PATH | |
10974 | do | |
10975 | IFS=$as_save_IFS | |
10976 | test -z "$as_dir" && as_dir=. | |
10977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10979 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10981 | break 2 | |
10982 | fi | |
10983 | done | |
10984 | done | |
10985 | ||
10986 | fi | |
10987 | fi | |
10988 | CC=$ac_cv_prog_CC | |
10989 | if test -n "$CC"; then | |
10990 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10991 | echo "${ECHO_T}$CC" >&6 | |
10992 | else | |
10993 | echo "$as_me:$LINENO: result: no" >&5 | |
10994 | echo "${ECHO_T}no" >&6 | |
10995 | fi | |
10996 | ||
10997 | fi | |
10998 | if test -z "$ac_cv_prog_CC"; then | |
10999 | ac_ct_CC=$CC | |
11000 | # Extract the first word of "gcc", so it can be a program name with args. | |
11001 | set dummy gcc; ac_word=$2 | |
11002 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11004 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11006 | else | |
11007 | if test -n "$ac_ct_CC"; then | |
11008 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11009 | else | |
11010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11011 | for as_dir in $PATH | |
11012 | do | |
11013 | IFS=$as_save_IFS | |
11014 | test -z "$as_dir" && as_dir=. | |
11015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11016 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11017 | ac_cv_prog_ac_ct_CC="gcc" | |
11018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11019 | break 2 | |
11020 | fi | |
11021 | done | |
11022 | done | |
11023 | ||
11024 | fi | |
11025 | fi | |
11026 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11027 | if test -n "$ac_ct_CC"; then | |
11028 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11029 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11030 | else | |
11031 | echo "$as_me:$LINENO: result: no" >&5 | |
11032 | echo "${ECHO_T}no" >&6 | |
11033 | fi | |
11034 | ||
11035 | CC=$ac_ct_CC | |
11036 | else | |
11037 | CC="$ac_cv_prog_CC" | |
11038 | fi | |
11039 | ||
11040 | if test -z "$CC"; then | |
11041 | if test -n "$ac_tool_prefix"; then | |
11042 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11043 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11044 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11046 | if test "${ac_cv_prog_CC+set}" = set; then | |
11047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11048 | else | |
11049 | if test -n "$CC"; then | |
11050 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11051 | else | |
11052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11053 | for as_dir in $PATH | |
11054 | do | |
11055 | IFS=$as_save_IFS | |
11056 | test -z "$as_dir" && as_dir=. | |
11057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11058 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11059 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11060 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11061 | break 2 | |
11062 | fi | |
11063 | done | |
11064 | done | |
11065 | ||
11066 | fi | |
11067 | fi | |
11068 | CC=$ac_cv_prog_CC | |
11069 | if test -n "$CC"; then | |
11070 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11071 | echo "${ECHO_T}$CC" >&6 | |
11072 | else | |
11073 | echo "$as_me:$LINENO: result: no" >&5 | |
11074 | echo "${ECHO_T}no" >&6 | |
11075 | fi | |
11076 | ||
11077 | fi | |
11078 | if test -z "$ac_cv_prog_CC"; then | |
11079 | ac_ct_CC=$CC | |
11080 | # Extract the first word of "cc", so it can be a program name with args. | |
11081 | set dummy cc; ac_word=$2 | |
11082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11084 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11086 | else | |
11087 | if test -n "$ac_ct_CC"; then | |
11088 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11089 | else | |
11090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11091 | for as_dir in $PATH | |
11092 | do | |
11093 | IFS=$as_save_IFS | |
11094 | test -z "$as_dir" && as_dir=. | |
11095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11097 | ac_cv_prog_ac_ct_CC="cc" | |
11098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11099 | break 2 | |
11100 | fi | |
11101 | done | |
11102 | done | |
11103 | ||
11104 | fi | |
11105 | fi | |
11106 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11107 | if test -n "$ac_ct_CC"; then | |
11108 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11109 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11110 | else | |
11111 | echo "$as_me:$LINENO: result: no" >&5 | |
11112 | echo "${ECHO_T}no" >&6 | |
11113 | fi | |
11114 | ||
11115 | CC=$ac_ct_CC | |
11116 | else | |
11117 | CC="$ac_cv_prog_CC" | |
11118 | fi | |
11119 | ||
11120 | fi | |
11121 | if test -z "$CC"; then | |
11122 | # Extract the first word of "cc", so it can be a program name with args. | |
11123 | set dummy cc; ac_word=$2 | |
11124 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11126 | if test "${ac_cv_prog_CC+set}" = set; then | |
11127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11128 | else | |
11129 | if test -n "$CC"; then | |
11130 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11131 | else | |
11132 | ac_prog_rejected=no | |
11133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11134 | for as_dir in $PATH | |
11135 | do | |
11136 | IFS=$as_save_IFS | |
11137 | test -z "$as_dir" && as_dir=. | |
11138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11140 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11141 | ac_prog_rejected=yes | |
11142 | continue | |
11143 | fi | |
11144 | ac_cv_prog_CC="cc" | |
11145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11146 | break 2 | |
11147 | fi | |
11148 | done | |
11149 | done | |
11150 | ||
11151 | if test $ac_prog_rejected = yes; then | |
11152 | # We found a bogon in the path, so make sure we never use it. | |
11153 | set dummy $ac_cv_prog_CC | |
11154 | shift | |
11155 | if test $# != 0; then | |
11156 | # We chose a different compiler from the bogus one. | |
11157 | # However, it has the same basename, so the bogon will be chosen | |
11158 | # first if we set CC to just the basename; use the full file name. | |
11159 | shift | |
11160 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11161 | fi | |
11162 | fi | |
11163 | fi | |
11164 | fi | |
11165 | CC=$ac_cv_prog_CC | |
11166 | if test -n "$CC"; then | |
11167 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11168 | echo "${ECHO_T}$CC" >&6 | |
11169 | else | |
11170 | echo "$as_me:$LINENO: result: no" >&5 | |
11171 | echo "${ECHO_T}no" >&6 | |
11172 | fi | |
11173 | ||
11174 | fi | |
11175 | if test -z "$CC"; then | |
11176 | if test -n "$ac_tool_prefix"; then | |
11177 | for ac_prog in cl | |
11178 | do | |
11179 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11180 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11183 | if test "${ac_cv_prog_CC+set}" = set; then | |
11184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11185 | else | |
11186 | if test -n "$CC"; then | |
11187 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11188 | else | |
11189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11190 | for as_dir in $PATH | |
11191 | do | |
11192 | IFS=$as_save_IFS | |
11193 | test -z "$as_dir" && as_dir=. | |
11194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11195 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11196 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11198 | break 2 | |
11199 | fi | |
11200 | done | |
11201 | done | |
11202 | ||
11203 | fi | |
11204 | fi | |
11205 | CC=$ac_cv_prog_CC | |
11206 | if test -n "$CC"; then | |
11207 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11208 | echo "${ECHO_T}$CC" >&6 | |
11209 | else | |
11210 | echo "$as_me:$LINENO: result: no" >&5 | |
11211 | echo "${ECHO_T}no" >&6 | |
11212 | fi | |
11213 | ||
11214 | test -n "$CC" && break | |
11215 | done | |
11216 | fi | |
11217 | if test -z "$CC"; then | |
11218 | ac_ct_CC=$CC | |
11219 | for ac_prog in cl | |
11220 | do | |
11221 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11222 | set dummy $ac_prog; ac_word=$2 | |
11223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11225 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11227 | else | |
11228 | if test -n "$ac_ct_CC"; then | |
11229 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11230 | else | |
11231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11232 | for as_dir in $PATH | |
11233 | do | |
11234 | IFS=$as_save_IFS | |
11235 | test -z "$as_dir" && as_dir=. | |
11236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11238 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11240 | break 2 | |
11241 | fi | |
11242 | done | |
11243 | done | |
11244 | ||
11245 | fi | |
11246 | fi | |
11247 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11248 | if test -n "$ac_ct_CC"; then | |
11249 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11250 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11251 | else | |
11252 | echo "$as_me:$LINENO: result: no" >&5 | |
11253 | echo "${ECHO_T}no" >&6 | |
11254 | fi | |
11255 | ||
11256 | test -n "$ac_ct_CC" && break | |
11257 | done | |
11258 | ||
11259 | CC=$ac_ct_CC | |
11260 | fi | |
11261 | ||
11262 | fi | |
11263 | ||
11264 | ||
11265 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11266 | See \`config.log' for more details." >&5 | |
11267 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11268 | See \`config.log' for more details." >&2;} | |
11269 | { (exit 1); exit 1; }; } | |
11270 | ||
11271 | # Provide some information about the compiler. | |
11272 | echo "$as_me:$LINENO:" \ | |
11273 | "checking for C compiler version" >&5 | |
11274 | ac_compiler=`set X $ac_compile; echo $2` | |
11275 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11276 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11277 | ac_status=$? | |
11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11279 | (exit $ac_status); } | |
11280 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11281 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11282 | ac_status=$? | |
11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11284 | (exit $ac_status); } | |
11285 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11286 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11287 | ac_status=$? | |
11288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11289 | (exit $ac_status); } | |
11290 | ||
11291 | cat >conftest.$ac_ext <<_ACEOF | |
11292 | /* confdefs.h. */ | |
11293 | _ACEOF | |
11294 | cat confdefs.h >>conftest.$ac_ext | |
11295 | cat >>conftest.$ac_ext <<_ACEOF | |
11296 | /* end confdefs.h. */ | |
11297 | ||
11298 | int | |
11299 | main () | |
11300 | { | |
11301 | ||
11302 | ; | |
11303 | return 0; | |
11304 | } | |
11305 | _ACEOF | |
11306 | ac_clean_files_save=$ac_clean_files | |
11307 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11308 | # Try to create an executable without -o first, disregard a.out. | |
11309 | # It will help us diagnose broken compilers, and finding out an intuition | |
11310 | # of exeext. | |
ac1cb8d3 VS |
11311 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11312 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11313 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11314 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11315 | (eval $ac_link_default) 2>&5 | |
11316 | ac_status=$? | |
11317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11318 | (exit $ac_status); }; then | |
11319 | # Find the output, starting from the most likely. This scheme is | |
11320 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11321 | # resort. | |
11322 | ||
11323 | # Be careful to initialize this variable, since it used to be cached. | |
11324 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11325 | ac_cv_exeext= | |
11326 | # b.out is created by i960 compilers. | |
11327 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11328 | do | |
11329 | test -f "$ac_file" || continue | |
11330 | case $ac_file in | |
11331 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11332 | ;; |
a848cd7e | 11333 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11334 | # This is the source file. |
11335 | ;; | |
a848cd7e | 11336 | [ab].out ) |
ac1cb8d3 VS |
11337 | # We found the default executable, but exeext='' is most |
11338 | # certainly right. | |
11339 | break;; | |
a848cd7e | 11340 | *.* ) |
ac1cb8d3 VS |
11341 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11342 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11343 | # but it would be cool to find out if it's true. Does anybody | |
11344 | # maintain Libtool? --akim. | |
11345 | export ac_cv_exeext | |
11346 | break;; | |
a848cd7e | 11347 | * ) |
ac1cb8d3 | 11348 | break;; |
a848cd7e SC |
11349 | esac |
11350 | done | |
11351 | else | |
11352 | echo "$as_me: failed program was:" >&5 | |
11353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11354 | ||
11355 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11356 | See \`config.log' for more details." >&5 | |
11357 | echo "$as_me: error: C compiler cannot create executables | |
11358 | See \`config.log' for more details." >&2;} | |
11359 | { (exit 77); exit 77; }; } | |
11360 | fi | |
11361 | ||
11362 | ac_exeext=$ac_cv_exeext | |
11363 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11364 | echo "${ECHO_T}$ac_file" >&6 | |
11365 | ||
11366 | # Check the compiler produces executables we can run. If not, either | |
11367 | # the compiler is broken, or we cross compile. | |
11368 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11369 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11370 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11371 | # If not cross compiling, check that we can run a simple program. | |
11372 | if test "$cross_compiling" != yes; then | |
11373 | if { ac_try='./$ac_file' | |
11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11375 | (eval $ac_try) 2>&5 | |
11376 | ac_status=$? | |
11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11378 | (exit $ac_status); }; }; then | |
11379 | cross_compiling=no | |
11380 | else | |
11381 | if test "$cross_compiling" = maybe; then | |
11382 | cross_compiling=yes | |
11383 | else | |
11384 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11385 | If you meant to cross compile, use \`--host'. | |
11386 | See \`config.log' for more details." >&5 | |
11387 | echo "$as_me: error: cannot run C compiled programs. | |
11388 | If you meant to cross compile, use \`--host'. | |
11389 | See \`config.log' for more details." >&2;} | |
11390 | { (exit 1); exit 1; }; } | |
11391 | fi | |
11392 | fi | |
11393 | fi | |
11394 | echo "$as_me:$LINENO: result: yes" >&5 | |
11395 | echo "${ECHO_T}yes" >&6 | |
11396 | ||
11397 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11398 | ac_clean_files=$ac_clean_files_save | |
11399 | # Check the compiler produces executables we can run. If not, either | |
11400 | # the compiler is broken, or we cross compile. | |
11401 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11402 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11403 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11404 | echo "${ECHO_T}$cross_compiling" >&6 | |
11405 | ||
11406 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11407 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11409 | (eval $ac_link) 2>&5 | |
11410 | ac_status=$? | |
11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11412 | (exit $ac_status); }; then | |
11413 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11414 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11415 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11416 | # `rm'. | |
11417 | for ac_file in conftest.exe conftest conftest.*; do | |
11418 | test -f "$ac_file" || continue | |
11419 | case $ac_file in | |
11420 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11421 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11422 | export ac_cv_exeext |
11423 | break;; | |
a848cd7e SC |
11424 | * ) break;; |
11425 | esac | |
11426 | done | |
11427 | else | |
11428 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11429 | See \`config.log' for more details." >&5 | |
11430 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11431 | See \`config.log' for more details." >&2;} | |
11432 | { (exit 1); exit 1; }; } | |
11433 | fi | |
11434 | ||
11435 | rm -f conftest$ac_cv_exeext | |
11436 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11437 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11438 | ||
11439 | rm -f conftest.$ac_ext | |
11440 | EXEEXT=$ac_cv_exeext | |
11441 | ac_exeext=$EXEEXT | |
11442 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11443 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11444 | if test "${ac_cv_objext+set}" = set; then | |
11445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11446 | else | |
11447 | cat >conftest.$ac_ext <<_ACEOF | |
11448 | /* confdefs.h. */ | |
11449 | _ACEOF | |
11450 | cat confdefs.h >>conftest.$ac_ext | |
11451 | cat >>conftest.$ac_ext <<_ACEOF | |
11452 | /* end confdefs.h. */ | |
11453 | ||
11454 | int | |
11455 | main () | |
11456 | { | |
11457 | ||
11458 | ; | |
11459 | return 0; | |
11460 | } | |
11461 | _ACEOF | |
11462 | rm -f conftest.o conftest.obj | |
11463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11464 | (eval $ac_compile) 2>&5 | |
11465 | ac_status=$? | |
11466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11467 | (exit $ac_status); }; then | |
11468 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11469 | case $ac_file in | |
11470 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11471 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11472 | break;; | |
11473 | esac | |
11474 | done | |
11475 | else | |
11476 | echo "$as_me: failed program was:" >&5 | |
11477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11478 | ||
11479 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11480 | See \`config.log' for more details." >&5 | |
11481 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11482 | See \`config.log' for more details." >&2;} | |
11483 | { (exit 1); exit 1; }; } | |
11484 | fi | |
11485 | ||
11486 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11487 | fi | |
11488 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11489 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11490 | OBJEXT=$ac_cv_objext | |
11491 | ac_objext=$OBJEXT | |
11492 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11493 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11494 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11496 | else | |
11497 | cat >conftest.$ac_ext <<_ACEOF | |
11498 | /* confdefs.h. */ | |
11499 | _ACEOF | |
11500 | cat confdefs.h >>conftest.$ac_ext | |
11501 | cat >>conftest.$ac_ext <<_ACEOF | |
11502 | /* end confdefs.h. */ | |
11503 | ||
11504 | int | |
11505 | main () | |
11506 | { | |
11507 | #ifndef __GNUC__ | |
11508 | choke me | |
11509 | #endif | |
11510 | ||
11511 | ; | |
11512 | return 0; | |
11513 | } | |
11514 | _ACEOF | |
11515 | rm -f conftest.$ac_objext | |
11516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11517 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11518 | ac_status=$? |
ac1cb8d3 VS |
11519 | grep -v '^ *+' conftest.er1 >conftest.err |
11520 | rm -f conftest.er1 | |
11521 | cat conftest.err >&5 | |
a848cd7e SC |
11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11523 | (exit $ac_status); } && | |
3565d135 RR |
11524 | { ac_try='test -z "$ac_c_werror_flag" |
11525 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11527 | (eval $ac_try) 2>&5 | |
11528 | ac_status=$? | |
11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11530 | (exit $ac_status); }; } && | |
11531 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11533 | (eval $ac_try) 2>&5 | |
11534 | ac_status=$? | |
11535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11536 | (exit $ac_status); }; }; then | |
11537 | ac_compiler_gnu=yes | |
11538 | else | |
11539 | echo "$as_me: failed program was:" >&5 | |
11540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11541 | ||
11542 | ac_compiler_gnu=no | |
11543 | fi | |
ac1cb8d3 | 11544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11545 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11546 | ||
11547 | fi | |
11548 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11549 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11550 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11551 | ac_test_CFLAGS=${CFLAGS+set} | |
11552 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 11553 | CFLAGS="-g" |
a848cd7e SC |
11554 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11555 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11556 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11558 | else | |
11559 | cat >conftest.$ac_ext <<_ACEOF | |
11560 | /* confdefs.h. */ | |
11561 | _ACEOF | |
11562 | cat confdefs.h >>conftest.$ac_ext | |
11563 | cat >>conftest.$ac_ext <<_ACEOF | |
11564 | /* end confdefs.h. */ | |
11565 | ||
11566 | int | |
11567 | main () | |
11568 | { | |
11569 | ||
11570 | ; | |
11571 | return 0; | |
11572 | } | |
11573 | _ACEOF | |
11574 | rm -f conftest.$ac_objext | |
11575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11576 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11577 | ac_status=$? |
ac1cb8d3 VS |
11578 | grep -v '^ *+' conftest.er1 >conftest.err |
11579 | rm -f conftest.er1 | |
11580 | cat conftest.err >&5 | |
a848cd7e SC |
11581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11582 | (exit $ac_status); } && | |
3565d135 RR |
11583 | { ac_try='test -z "$ac_c_werror_flag" |
11584 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11586 | (eval $ac_try) 2>&5 | |
11587 | ac_status=$? | |
11588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11589 | (exit $ac_status); }; } && | |
11590 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11592 | (eval $ac_try) 2>&5 | |
11593 | ac_status=$? | |
11594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11595 | (exit $ac_status); }; }; then | |
11596 | ac_cv_prog_cc_g=yes | |
11597 | else | |
11598 | echo "$as_me: failed program was:" >&5 | |
11599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11600 | ||
11601 | ac_cv_prog_cc_g=no | |
11602 | fi | |
ac1cb8d3 | 11603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11604 | fi |
11605 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11606 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11607 | if test "$ac_test_CFLAGS" = set; then | |
11608 | CFLAGS=$ac_save_CFLAGS | |
11609 | elif test $ac_cv_prog_cc_g = yes; then | |
11610 | if test "$GCC" = yes; then | |
11611 | CFLAGS="-g -O2" | |
11612 | else | |
11613 | CFLAGS="-g" | |
11614 | fi | |
11615 | else | |
11616 | if test "$GCC" = yes; then | |
11617 | CFLAGS="-O2" | |
11618 | else | |
11619 | CFLAGS= | |
11620 | fi | |
11621 | fi | |
11622 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11623 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11624 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11626 | else | |
11627 | ac_cv_prog_cc_stdc=no | |
11628 | ac_save_CC=$CC | |
11629 | cat >conftest.$ac_ext <<_ACEOF | |
11630 | /* confdefs.h. */ | |
11631 | _ACEOF | |
11632 | cat confdefs.h >>conftest.$ac_ext | |
11633 | cat >>conftest.$ac_ext <<_ACEOF | |
11634 | /* end confdefs.h. */ | |
11635 | #include <stdarg.h> | |
11636 | #include <stdio.h> | |
11637 | #include <sys/types.h> | |
11638 | #include <sys/stat.h> | |
11639 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11640 | struct buf { int x; }; | |
11641 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11642 | static char *e (p, i) | |
11643 | char **p; | |
11644 | int i; | |
11645 | { | |
11646 | return p[i]; | |
11647 | } | |
11648 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11649 | { | |
11650 | char *s; | |
11651 | va_list v; | |
11652 | va_start (v,p); | |
11653 | s = g (p, va_arg (v,int)); | |
11654 | va_end (v); | |
11655 | return s; | |
11656 | } | |
ac1cb8d3 VS |
11657 | |
11658 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11659 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11660 | These don't provoke an error unfortunately, instead are silently treated | |
11661 | as 'x'. The following induces an error, until -std1 is added to get | |
11662 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11663 | array size at least. It's necessary to write '\x00'==0 to get something | |
11664 | that's true only with -std1. */ | |
11665 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11666 | ||
a848cd7e SC |
11667 | int test (int i, double x); |
11668 | struct s1 {int (*f) (int a);}; | |
11669 | struct s2 {int (*f) (double a);}; | |
11670 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11671 | int argc; | |
11672 | char **argv; | |
11673 | int | |
11674 | main () | |
11675 | { | |
11676 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11677 | ; | |
11678 | return 0; | |
11679 | } | |
11680 | _ACEOF | |
11681 | # Don't try gcc -ansi; that turns off useful extensions and | |
11682 | # breaks some systems' header files. | |
11683 | # AIX -qlanglvl=ansi | |
11684 | # Ultrix and OSF/1 -std1 | |
11685 | # HP-UX 10.20 and later -Ae | |
11686 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11687 | # SVR4 -Xc -D__EXTENSIONS__ | |
11688 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11689 | do | |
11690 | CC="$ac_save_CC $ac_arg" | |
11691 | rm -f conftest.$ac_objext | |
11692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11693 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11694 | ac_status=$? |
ac1cb8d3 VS |
11695 | grep -v '^ *+' conftest.er1 >conftest.err |
11696 | rm -f conftest.er1 | |
11697 | cat conftest.err >&5 | |
a848cd7e SC |
11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11699 | (exit $ac_status); } && | |
3565d135 RR |
11700 | { ac_try='test -z "$ac_c_werror_flag" |
11701 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11703 | (eval $ac_try) 2>&5 | |
11704 | ac_status=$? | |
11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11706 | (exit $ac_status); }; } && | |
11707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11709 | (eval $ac_try) 2>&5 | |
11710 | ac_status=$? | |
11711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11712 | (exit $ac_status); }; }; then | |
11713 | ac_cv_prog_cc_stdc=$ac_arg | |
11714 | break | |
11715 | else | |
11716 | echo "$as_me: failed program was:" >&5 | |
11717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11718 | ||
11719 | fi | |
ac1cb8d3 | 11720 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11721 | done |
11722 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11723 | CC=$ac_save_CC | |
11724 | ||
11725 | fi | |
11726 | ||
11727 | case "x$ac_cv_prog_cc_stdc" in | |
11728 | x|xno) | |
11729 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11730 | echo "${ECHO_T}none needed" >&6 ;; | |
11731 | *) | |
11732 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11733 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11734 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11735 | esac | |
11736 | ||
11737 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11738 | # in C++ we need to declare it. In case someone uses the same compiler | |
11739 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11740 | # the declaration of exit, since it's the most demanding environment. | |
11741 | cat >conftest.$ac_ext <<_ACEOF | |
11742 | #ifndef __cplusplus | |
11743 | choke me | |
11744 | #endif | |
11745 | _ACEOF | |
11746 | rm -f conftest.$ac_objext | |
11747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11748 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11749 | ac_status=$? |
ac1cb8d3 VS |
11750 | grep -v '^ *+' conftest.er1 >conftest.err |
11751 | rm -f conftest.er1 | |
11752 | cat conftest.err >&5 | |
a848cd7e SC |
11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11754 | (exit $ac_status); } && | |
3565d135 RR |
11755 | { ac_try='test -z "$ac_c_werror_flag" |
11756 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11758 | (eval $ac_try) 2>&5 | |
11759 | ac_status=$? | |
11760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11761 | (exit $ac_status); }; } && | |
11762 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11764 | (eval $ac_try) 2>&5 | |
11765 | ac_status=$? | |
11766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11767 | (exit $ac_status); }; }; then | |
11768 | for ac_declaration in \ | |
ac1cb8d3 | 11769 | '' \ |
a848cd7e SC |
11770 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11771 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11772 | 'extern "C" void exit (int) throw ();' \ | |
11773 | 'extern "C" void exit (int);' \ | |
11774 | 'void exit (int);' | |
11775 | do | |
11776 | cat >conftest.$ac_ext <<_ACEOF | |
11777 | /* confdefs.h. */ | |
11778 | _ACEOF | |
11779 | cat confdefs.h >>conftest.$ac_ext | |
11780 | cat >>conftest.$ac_ext <<_ACEOF | |
11781 | /* end confdefs.h. */ | |
de59c161 | 11782 | $ac_declaration |
ac1cb8d3 | 11783 | #include <stdlib.h> |
a848cd7e SC |
11784 | int |
11785 | main () | |
11786 | { | |
11787 | exit (42); | |
11788 | ; | |
11789 | return 0; | |
11790 | } | |
11791 | _ACEOF | |
11792 | rm -f conftest.$ac_objext | |
11793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11795 | ac_status=$? |
ac1cb8d3 VS |
11796 | grep -v '^ *+' conftest.er1 >conftest.err |
11797 | rm -f conftest.er1 | |
11798 | cat conftest.err >&5 | |
a848cd7e SC |
11799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11800 | (exit $ac_status); } && | |
3565d135 RR |
11801 | { ac_try='test -z "$ac_c_werror_flag" |
11802 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11804 | (eval $ac_try) 2>&5 | |
11805 | ac_status=$? | |
11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11807 | (exit $ac_status); }; } && | |
11808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11810 | (eval $ac_try) 2>&5 | |
11811 | ac_status=$? | |
11812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11813 | (exit $ac_status); }; }; then | |
11814 | : | |
11815 | else | |
11816 | echo "$as_me: failed program was:" >&5 | |
11817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11818 | ||
11819 | continue | |
11820 | fi | |
ac1cb8d3 | 11821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11822 | cat >conftest.$ac_ext <<_ACEOF |
11823 | /* confdefs.h. */ | |
11824 | _ACEOF | |
11825 | cat confdefs.h >>conftest.$ac_ext | |
11826 | cat >>conftest.$ac_ext <<_ACEOF | |
11827 | /* end confdefs.h. */ | |
11828 | $ac_declaration | |
11829 | int | |
11830 | main () | |
11831 | { | |
11832 | exit (42); | |
11833 | ; | |
11834 | return 0; | |
11835 | } | |
11836 | _ACEOF | |
11837 | rm -f conftest.$ac_objext | |
11838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11839 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11840 | ac_status=$? |
ac1cb8d3 VS |
11841 | grep -v '^ *+' conftest.er1 >conftest.err |
11842 | rm -f conftest.er1 | |
11843 | cat conftest.err >&5 | |
a848cd7e SC |
11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11845 | (exit $ac_status); } && | |
3565d135 RR |
11846 | { ac_try='test -z "$ac_c_werror_flag" |
11847 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11849 | (eval $ac_try) 2>&5 | |
11850 | ac_status=$? | |
11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11852 | (exit $ac_status); }; } && | |
11853 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11855 | (eval $ac_try) 2>&5 | |
11856 | ac_status=$? | |
11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11858 | (exit $ac_status); }; }; then | |
11859 | break | |
11860 | else | |
11861 | echo "$as_me: failed program was:" >&5 | |
11862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11863 | ||
11864 | fi | |
ac1cb8d3 | 11865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11866 | done |
11867 | rm -f conftest* | |
11868 | if test -n "$ac_declaration"; then | |
11869 | echo '#ifdef __cplusplus' >>confdefs.h | |
11870 | echo $ac_declaration >>confdefs.h | |
11871 | echo '#endif' >>confdefs.h | |
11872 | fi | |
11873 | ||
11874 | else | |
11875 | echo "$as_me: failed program was:" >&5 | |
11876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11877 | ||
11878 | fi | |
ac1cb8d3 | 11879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11880 | ac_ext=c |
11881 | ac_cpp='$CPP $CPPFLAGS' | |
11882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11885 | ||
ab0ad5f1 VZ |
11886 | |
11887 | ||
11888 | ac_ext=c | |
11889 | ac_cpp='$CPP $CPPFLAGS' | |
11890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11893 | ||
11894 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
11895 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
11896 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
11897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11898 | else | |
11899 | cat >conftest.$ac_ext <<_ACEOF | |
11900 | /* confdefs.h. */ | |
11901 | _ACEOF | |
11902 | cat confdefs.h >>conftest.$ac_ext | |
11903 | cat >>conftest.$ac_ext <<_ACEOF | |
11904 | /* end confdefs.h. */ | |
11905 | ||
11906 | int | |
11907 | main () | |
11908 | { | |
11909 | ||
11910 | #ifndef __INTEL_COMPILER | |
11911 | choke me | |
11912 | #endif | |
11913 | ||
11914 | ; | |
11915 | return 0; | |
11916 | } | |
11917 | _ACEOF | |
11918 | rm -f conftest.$ac_objext | |
11919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11920 | (eval $ac_compile) 2>conftest.er1 | |
11921 | ac_status=$? | |
11922 | grep -v '^ *+' conftest.er1 >conftest.err | |
11923 | rm -f conftest.er1 | |
11924 | cat conftest.err >&5 | |
11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11926 | (exit $ac_status); } && | |
3565d135 RR |
11927 | { ac_try='test -z "$ac_c_werror_flag" |
11928 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
11929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11930 | (eval $ac_try) 2>&5 | |
11931 | ac_status=$? | |
11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11933 | (exit $ac_status); }; } && | |
11934 | { ac_try='test -s conftest.$ac_objext' | |
11935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11936 | (eval $ac_try) 2>&5 | |
11937 | ac_status=$? | |
11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11939 | (exit $ac_status); }; }; then | |
11940 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
11941 | else | |
11942 | echo "$as_me: failed program was:" >&5 | |
11943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11944 | ||
11945 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
11946 | ||
11947 | fi | |
11948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11949 | ||
11950 | ||
11951 | fi | |
11952 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
11953 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
11954 | ac_ext=c | |
11955 | ac_cpp='$CPP $CPPFLAGS' | |
11956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11959 | ||
11960 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
11961 | :; INTELCC=yes | |
11962 | else | |
11963 | :; | |
11964 | fi | |
11965 | ||
11966 | ||
11967 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
11968 | if test "xCC" = "xC"; then |
11969 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 11970 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 11971 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
11972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11973 | else | |
11974 | cat >conftest.$ac_ext <<_ACEOF | |
11975 | /* confdefs.h. */ | |
11976 | _ACEOF | |
11977 | cat confdefs.h >>conftest.$ac_ext | |
11978 | cat >>conftest.$ac_ext <<_ACEOF | |
11979 | /* end confdefs.h. */ | |
11980 | ||
11981 | int | |
11982 | main () | |
11983 | { | |
11984 | ||
11985 | ; | |
11986 | return 0; | |
11987 | } | |
11988 | _ACEOF | |
11989 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11991 | (eval $ac_compile) 2>&5 | |
11992 | ac_status=$? | |
11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11994 | (exit $ac_status); }; then | |
11995 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11996 | case $ac_file in | |
11997 | conftest.$ac_ext.o) | |
0093c2fc | 11998 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
11999 | ;; |
12000 | *) | |
12001 | ;; | |
12002 | esac | |
12003 | done | |
12004 | else | |
12005 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12006 | See \`config.log' for more details." >&5 | |
12007 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12008 | See \`config.log' for more details." >&2;} | |
12009 | { (exit 1); exit 1; }; } | |
12010 | ||
12011 | fi | |
12012 | ||
12013 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12014 | ||
12015 | fi | |
0093c2fc VZ |
12016 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12017 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12018 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12019 | if test "c" = "c"; then |
0093c2fc | 12020 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12021 | fi |
12022 | if test "c" = "cxx"; then | |
0093c2fc | 12023 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12024 | fi |
12025 | fi | |
12026 | ||
0093c2fc | 12027 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12028 | unset ac_cv_prog_cc_g |
12029 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12030 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12031 | CFLAGS="-g" |
480ccd21 DE |
12032 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12033 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12034 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12036 | else | |
12037 | cat >conftest.$ac_ext <<_ACEOF | |
12038 | /* confdefs.h. */ | |
12039 | _ACEOF | |
12040 | cat confdefs.h >>conftest.$ac_ext | |
12041 | cat >>conftest.$ac_ext <<_ACEOF | |
12042 | /* end confdefs.h. */ | |
12043 | ||
12044 | int | |
12045 | main () | |
12046 | { | |
12047 | ||
12048 | ; | |
12049 | return 0; | |
12050 | } | |
12051 | _ACEOF | |
12052 | rm -f conftest.$ac_objext | |
12053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12054 | (eval $ac_compile) 2>conftest.er1 | |
12055 | ac_status=$? | |
12056 | grep -v '^ *+' conftest.er1 >conftest.err | |
12057 | rm -f conftest.er1 | |
12058 | cat conftest.err >&5 | |
12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12060 | (exit $ac_status); } && | |
3565d135 RR |
12061 | { ac_try='test -z "$ac_c_werror_flag" |
12062 | || test ! -s conftest.err' | |
480ccd21 DE |
12063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12064 | (eval $ac_try) 2>&5 | |
12065 | ac_status=$? | |
12066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12067 | (exit $ac_status); }; } && | |
12068 | { ac_try='test -s conftest.$ac_objext' | |
12069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12070 | (eval $ac_try) 2>&5 | |
12071 | ac_status=$? | |
12072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12073 | (exit $ac_status); }; }; then | |
12074 | ac_cv_prog_cc_g=yes | |
12075 | else | |
12076 | echo "$as_me: failed program was:" >&5 | |
12077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12078 | ||
12079 | ac_cv_prog_cc_g=no | |
12080 | fi | |
12081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12082 | fi | |
12083 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12084 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12085 | if test "$ac_test_CFLAGS" = set; then | |
12086 | CFLAGS=$ac_save_CFLAGS | |
12087 | elif test $ac_cv_prog_cc_g = yes; then | |
12088 | if test "$GCC" = yes; then | |
12089 | CFLAGS="-g -O2" | |
12090 | else | |
12091 | CFLAGS="-g" | |
12092 | fi | |
12093 | else | |
12094 | if test "$GCC" = yes; then | |
12095 | CFLAGS="-O2" | |
12096 | else | |
12097 | CFLAGS= | |
12098 | fi | |
12099 | fi | |
3006edc0 | 12100 | fi |
ab0ad5f1 | 12101 | fi |
3006edc0 VZ |
12102 | |
12103 | case `uname -s` in | |
12104 | AIX*) | |
12105 | ac_ext=c | |
12106 | ac_cpp='$CPP $CPPFLAGS' | |
12107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12110 | ||
12111 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12112 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12113 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12115 | else | |
12116 | cat >conftest.$ac_ext <<_ACEOF | |
12117 | /* confdefs.h. */ | |
12118 | _ACEOF | |
12119 | cat confdefs.h >>conftest.$ac_ext | |
12120 | cat >>conftest.$ac_ext <<_ACEOF | |
12121 | /* end confdefs.h. */ | |
12122 | ||
12123 | int | |
12124 | main () | |
12125 | { | |
12126 | #ifndef __xlC__ | |
12127 | choke me | |
12128 | #endif | |
12129 | ||
12130 | ; | |
12131 | return 0; | |
12132 | } | |
12133 | _ACEOF | |
12134 | rm -f conftest.$ac_objext | |
12135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12136 | (eval $ac_compile) 2>conftest.er1 | |
12137 | ac_status=$? | |
12138 | grep -v '^ *+' conftest.er1 >conftest.err | |
12139 | rm -f conftest.er1 | |
12140 | cat conftest.err >&5 | |
12141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12142 | (exit $ac_status); } && | |
3565d135 RR |
12143 | { ac_try='test -z "$ac_c_werror_flag" |
12144 | || test ! -s conftest.err' | |
3006edc0 VZ |
12145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12146 | (eval $ac_try) 2>&5 | |
12147 | ac_status=$? | |
12148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12149 | (exit $ac_status); }; } && | |
12150 | { ac_try='test -s conftest.$ac_objext' | |
12151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12152 | (eval $ac_try) 2>&5 | |
12153 | ac_status=$? | |
12154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12155 | (exit $ac_status); }; }; then | |
0093c2fc | 12156 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12157 | else |
12158 | echo "$as_me: failed program was:" >&5 | |
12159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12160 | ||
0093c2fc | 12161 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12162 | fi |
12163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12164 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12165 | |
12166 | fi | |
0093c2fc VZ |
12167 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12168 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12169 | |
0093c2fc | 12170 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12171 | ac_ext=c |
12172 | ac_cpp='$CPP $CPPFLAGS' | |
12173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12176 | ||
12177 | ||
12178 | ;; | |
12179 | ||
12180 | Darwin) | |
12181 | ac_ext=c | |
95986553 DE |
12182 | ac_cpp='$CPP $CPPFLAGS' |
12183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12186 | ||
12187 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12188 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12189 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12191 | else | |
12192 | cat >conftest.$ac_ext <<_ACEOF | |
12193 | /* confdefs.h. */ | |
12194 | _ACEOF | |
12195 | cat confdefs.h >>conftest.$ac_ext | |
12196 | cat >>conftest.$ac_ext <<_ACEOF | |
12197 | /* end confdefs.h. */ | |
12198 | ||
12199 | int | |
12200 | main () | |
12201 | { | |
12202 | #ifndef __MWERKS__ | |
12203 | choke me | |
12204 | #endif | |
12205 | ||
12206 | ; | |
12207 | return 0; | |
12208 | } | |
12209 | _ACEOF | |
12210 | rm -f conftest.$ac_objext | |
12211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12212 | (eval $ac_compile) 2>conftest.er1 | |
12213 | ac_status=$? | |
12214 | grep -v '^ *+' conftest.er1 >conftest.err | |
12215 | rm -f conftest.er1 | |
12216 | cat conftest.err >&5 | |
12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12218 | (exit $ac_status); } && | |
3565d135 RR |
12219 | { ac_try='test -z "$ac_c_werror_flag" |
12220 | || test ! -s conftest.err' | |
95986553 DE |
12221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12222 | (eval $ac_try) 2>&5 | |
12223 | ac_status=$? | |
12224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12225 | (exit $ac_status); }; } && | |
12226 | { ac_try='test -s conftest.$ac_objext' | |
12227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12228 | (eval $ac_try) 2>&5 | |
12229 | ac_status=$? | |
12230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12231 | (exit $ac_status); }; }; then | |
12232 | bakefile_compiler_mwerks=yes | |
12233 | else | |
12234 | echo "$as_me: failed program was:" >&5 | |
12235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12236 | ||
12237 | bakefile_compiler_mwerks=no | |
12238 | fi | |
12239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12240 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12241 | ||
12242 | fi | |
12243 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12244 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12245 | ||
0e6fa1d9 | 12246 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12247 | ac_ext=c |
12248 | ac_cpp='$CPP $CPPFLAGS' | |
12249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12252 | ||
12253 | ||
3006edc0 | 12254 | ac_ext=c |
9273ffba DE |
12255 | ac_cpp='$CPP $CPPFLAGS' |
12256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12259 | ||
12260 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12261 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12262 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12264 | else | |
12265 | cat >conftest.$ac_ext <<_ACEOF | |
12266 | /* confdefs.h. */ | |
12267 | _ACEOF | |
12268 | cat confdefs.h >>conftest.$ac_ext | |
12269 | cat >>conftest.$ac_ext <<_ACEOF | |
12270 | /* end confdefs.h. */ | |
12271 | ||
12272 | int | |
12273 | main () | |
12274 | { | |
12275 | #ifndef __xlC__ | |
12276 | choke me | |
12277 | #endif | |
12278 | ||
12279 | ; | |
12280 | return 0; | |
12281 | } | |
12282 | _ACEOF | |
12283 | rm -f conftest.$ac_objext | |
12284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12285 | (eval $ac_compile) 2>conftest.er1 | |
12286 | ac_status=$? | |
12287 | grep -v '^ *+' conftest.er1 >conftest.err | |
12288 | rm -f conftest.er1 | |
12289 | cat conftest.err >&5 | |
12290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12291 | (exit $ac_status); } && | |
3565d135 RR |
12292 | { ac_try='test -z "$ac_c_werror_flag" |
12293 | || test ! -s conftest.err' | |
9273ffba DE |
12294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12295 | (eval $ac_try) 2>&5 | |
12296 | ac_status=$? | |
12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12298 | (exit $ac_status); }; } && | |
12299 | { ac_try='test -s conftest.$ac_objext' | |
12300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12301 | (eval $ac_try) 2>&5 | |
12302 | ac_status=$? | |
12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12304 | (exit $ac_status); }; }; then | |
0093c2fc | 12305 | bakefile_compiler_xlc=yes |
9273ffba DE |
12306 | else |
12307 | echo "$as_me: failed program was:" >&5 | |
12308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12309 | ||
0093c2fc | 12310 | bakefile_compiler_xlc=no |
9273ffba DE |
12311 | fi |
12312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12313 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12314 | |
12315 | fi | |
0093c2fc VZ |
12316 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12317 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12318 | |
0093c2fc | 12319 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12320 | ac_ext=c |
12321 | ac_cpp='$CPP $CPPFLAGS' | |
12322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12325 | ||
12326 | ||
3006edc0 VZ |
12327 | ;; |
12328 | ||
12329 | IRIX*) | |
a848cd7e | 12330 | |
6dcfc289 | 12331 | |
0ad5d837 VZ |
12332 | ac_ext=c |
12333 | ac_cpp='$CPP $CPPFLAGS' | |
12334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12337 | ||
12338 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12339 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12340 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12342 | else | |
12343 | cat >conftest.$ac_ext <<_ACEOF | |
12344 | /* confdefs.h. */ | |
12345 | _ACEOF | |
12346 | cat confdefs.h >>conftest.$ac_ext | |
12347 | cat >>conftest.$ac_ext <<_ACEOF | |
12348 | /* end confdefs.h. */ | |
12349 | ||
12350 | int | |
12351 | main () | |
12352 | { | |
12353 | ||
12354 | #ifndef _SGI_COMPILER_VERSION | |
12355 | choke me | |
12356 | #endif | |
12357 | ||
12358 | ; | |
12359 | return 0; | |
12360 | } | |
12361 | _ACEOF | |
12362 | rm -f conftest.$ac_objext | |
12363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12364 | (eval $ac_compile) 2>conftest.er1 | |
12365 | ac_status=$? | |
12366 | grep -v '^ *+' conftest.er1 >conftest.err | |
12367 | rm -f conftest.er1 | |
12368 | cat conftest.err >&5 | |
12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12370 | (exit $ac_status); } && | |
3565d135 RR |
12371 | { ac_try='test -z "$ac_c_werror_flag" |
12372 | || test ! -s conftest.err' | |
0ad5d837 VZ |
12373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12374 | (eval $ac_try) 2>&5 | |
12375 | ac_status=$? | |
12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12377 | (exit $ac_status); }; } && | |
12378 | { ac_try='test -s conftest.$ac_objext' | |
12379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12380 | (eval $ac_try) 2>&5 | |
12381 | ac_status=$? | |
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12383 | (exit $ac_status); }; }; then | |
12384 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12385 | else | |
12386 | echo "$as_me: failed program was:" >&5 | |
12387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12388 | ||
12389 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12390 | ||
12391 | fi | |
12392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12393 | ||
12394 | ||
12395 | fi | |
12396 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12397 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12398 | ac_ext=c | |
12399 | ac_cpp='$CPP $CPPFLAGS' | |
12400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12403 | ||
12404 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12405 | :; SGICC=yes | |
12406 | else | |
12407 | :; | |
12408 | fi | |
12409 | ||
12410 | ||
3006edc0 VZ |
12411 | ;; |
12412 | ||
0093c2fc | 12413 | HP-UX*) |
3006edc0 VZ |
12414 | |
12415 | ||
12416 | ac_ext=c | |
12417 | ac_cpp='$CPP $CPPFLAGS' | |
12418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12421 | ||
0093c2fc VZ |
12422 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12423 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12424 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12426 | else | |
12427 | cat >conftest.$ac_ext <<_ACEOF | |
12428 | /* confdefs.h. */ | |
12429 | _ACEOF | |
12430 | cat confdefs.h >>conftest.$ac_ext | |
12431 | cat >>conftest.$ac_ext <<_ACEOF | |
12432 | /* end confdefs.h. */ | |
12433 | ||
12434 | int | |
12435 | main () | |
12436 | { | |
12437 | ||
0093c2fc | 12438 | #ifndef __HP_cc |
3006edc0 VZ |
12439 | choke me |
12440 | #endif | |
12441 | ||
12442 | ; | |
12443 | return 0; | |
12444 | } | |
12445 | _ACEOF | |
12446 | rm -f conftest.$ac_objext | |
12447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12448 | (eval $ac_compile) 2>conftest.er1 | |
12449 | ac_status=$? | |
12450 | grep -v '^ *+' conftest.er1 >conftest.err | |
12451 | rm -f conftest.er1 | |
12452 | cat conftest.err >&5 | |
12453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12454 | (exit $ac_status); } && | |
3565d135 RR |
12455 | { ac_try='test -z "$ac_c_werror_flag" |
12456 | || test ! -s conftest.err' | |
3006edc0 VZ |
12457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12458 | (eval $ac_try) 2>&5 | |
12459 | ac_status=$? | |
12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12461 | (exit $ac_status); }; } && | |
12462 | { ac_try='test -s conftest.$ac_objext' | |
12463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12464 | (eval $ac_try) 2>&5 | |
12465 | ac_status=$? | |
12466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12467 | (exit $ac_status); }; }; then | |
0093c2fc | 12468 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
12469 | else |
12470 | echo "$as_me: failed program was:" >&5 | |
12471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12472 | ||
0093c2fc | 12473 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
12474 | |
12475 | fi | |
12476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12477 | ||
12478 | ||
12479 | fi | |
0093c2fc VZ |
12480 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12481 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
12482 | ac_ext=c |
12483 | ac_cpp='$CPP $CPPFLAGS' | |
12484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12487 | ||
0093c2fc VZ |
12488 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12489 | :; HPCC=yes | |
a1aa0349 VZ |
12490 | else |
12491 | :; | |
12492 | fi | |
12493 | ||
12494 | ||
12495 | ;; | |
12496 | ||
0093c2fc | 12497 | OSF1) |
a1aa0349 VZ |
12498 | |
12499 | ||
12500 | ac_ext=c | |
12501 | ac_cpp='$CPP $CPPFLAGS' | |
12502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12505 | ||
0093c2fc VZ |
12506 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
12507 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
12508 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
12509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12510 | else | |
12511 | cat >conftest.$ac_ext <<_ACEOF | |
12512 | /* confdefs.h. */ | |
12513 | _ACEOF | |
12514 | cat confdefs.h >>conftest.$ac_ext | |
12515 | cat >>conftest.$ac_ext <<_ACEOF | |
12516 | /* end confdefs.h. */ | |
12517 | ||
12518 | int | |
12519 | main () | |
12520 | { | |
12521 | ||
0093c2fc | 12522 | #ifndef __DECC |
a1aa0349 VZ |
12523 | choke me |
12524 | #endif | |
12525 | ||
12526 | ; | |
12527 | return 0; | |
12528 | } | |
12529 | _ACEOF | |
12530 | rm -f conftest.$ac_objext | |
12531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12532 | (eval $ac_compile) 2>conftest.er1 | |
12533 | ac_status=$? | |
12534 | grep -v '^ *+' conftest.er1 >conftest.err | |
12535 | rm -f conftest.er1 | |
12536 | cat conftest.err >&5 | |
12537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12538 | (exit $ac_status); } && | |
3565d135 RR |
12539 | { ac_try='test -z "$ac_c_werror_flag" |
12540 | || test ! -s conftest.err' | |
a1aa0349 VZ |
12541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12542 | (eval $ac_try) 2>&5 | |
12543 | ac_status=$? | |
12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12545 | (exit $ac_status); }; } && | |
12546 | { ac_try='test -s conftest.$ac_objext' | |
12547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12548 | (eval $ac_try) 2>&5 | |
12549 | ac_status=$? | |
12550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12551 | (exit $ac_status); }; }; then | |
0093c2fc | 12552 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
12553 | else |
12554 | echo "$as_me: failed program was:" >&5 | |
12555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12556 | ||
0093c2fc | 12557 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
12558 | |
12559 | fi | |
12560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12561 | ||
12562 | ||
12563 | fi | |
0093c2fc VZ |
12564 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
12565 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
12566 | ac_ext=c |
12567 | ac_cpp='$CPP $CPPFLAGS' | |
12568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12571 | ||
0093c2fc VZ |
12572 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
12573 | :; COMPAQCC=yes | |
12574 | else | |
12575 | :; | |
12576 | fi | |
12577 | ||
12578 | ||
12579 | ;; | |
12580 | ||
12581 | SunOS) | |
12582 | ||
12583 | ||
12584 | ac_ext=c | |
12585 | ac_cpp='$CPP $CPPFLAGS' | |
12586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12589 | ||
12590 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12591 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12592 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12594 | else | |
12595 | cat >conftest.$ac_ext <<_ACEOF | |
12596 | /* confdefs.h. */ | |
12597 | _ACEOF | |
12598 | cat confdefs.h >>conftest.$ac_ext | |
12599 | cat >>conftest.$ac_ext <<_ACEOF | |
12600 | /* end confdefs.h. */ | |
12601 | ||
12602 | int | |
12603 | main () | |
12604 | { | |
12605 | ||
12606 | #ifndef __SUNPRO_C | |
12607 | choke me | |
12608 | #endif | |
12609 | ||
12610 | ; | |
12611 | return 0; | |
12612 | } | |
12613 | _ACEOF | |
12614 | rm -f conftest.$ac_objext | |
12615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12616 | (eval $ac_compile) 2>conftest.er1 | |
12617 | ac_status=$? | |
12618 | grep -v '^ *+' conftest.er1 >conftest.err | |
12619 | rm -f conftest.er1 | |
12620 | cat conftest.err >&5 | |
12621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12622 | (exit $ac_status); } && | |
3565d135 RR |
12623 | { ac_try='test -z "$ac_c_werror_flag" |
12624 | || test ! -s conftest.err' | |
0093c2fc VZ |
12625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12626 | (eval $ac_try) 2>&5 | |
12627 | ac_status=$? | |
12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12629 | (exit $ac_status); }; } && | |
12630 | { ac_try='test -s conftest.$ac_objext' | |
12631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12632 | (eval $ac_try) 2>&5 | |
12633 | ac_status=$? | |
12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12635 | (exit $ac_status); }; }; then | |
12636 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12637 | else | |
12638 | echo "$as_me: failed program was:" >&5 | |
12639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12640 | ||
12641 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12642 | ||
12643 | fi | |
12644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12645 | ||
12646 | ||
12647 | fi | |
12648 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12649 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12650 | ac_ext=c | |
12651 | ac_cpp='$CPP $CPPFLAGS' | |
12652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12655 | ||
12656 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12657 | :; SUNCC=yes | |
3006edc0 VZ |
12658 | else |
12659 | :; | |
12660 | fi | |
12661 | ||
12662 | ||
12663 | ;; | |
12664 | esac | |
ab0ad5f1 | 12665 | fi |
a9e5b1f0 MW |
12666 | |
12667 | ||
3006edc0 | 12668 | |
a848cd7e SC |
12669 | ac_ext=c |
12670 | ac_cpp='$CPP $CPPFLAGS' | |
12671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12674 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12675 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12676 | # On Suns, sometimes $CPP names a directory. | |
12677 | if test -n "$CPP" && test -d "$CPP"; then | |
12678 | CPP= | |
12679 | fi | |
12680 | if test -z "$CPP"; then | |
12681 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12683 | else | |
12684 | # Double quotes because CPP needs to be expanded | |
12685 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12686 | do | |
12687 | ac_preproc_ok=false | |
12688 | for ac_c_preproc_warn_flag in '' yes | |
12689 | do | |
12690 | # Use a header file that comes with gcc, so configuring glibc | |
12691 | # with a fresh cross-compiler works. | |
12692 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12693 | # <limits.h> exists even on freestanding compilers. | |
12694 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12695 | # not just through cpp. "Syntax error" is here to catch this case. | |
12696 | cat >conftest.$ac_ext <<_ACEOF | |
12697 | /* confdefs.h. */ | |
12698 | _ACEOF | |
12699 | cat confdefs.h >>conftest.$ac_ext | |
12700 | cat >>conftest.$ac_ext <<_ACEOF | |
12701 | /* end confdefs.h. */ | |
12702 | #ifdef __STDC__ | |
12703 | # include <limits.h> | |
12704 | #else | |
12705 | # include <assert.h> | |
12706 | #endif | |
ac1cb8d3 | 12707 | Syntax error |
a848cd7e SC |
12708 | _ACEOF |
12709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12711 | ac_status=$? | |
12712 | grep -v '^ *+' conftest.er1 >conftest.err | |
12713 | rm -f conftest.er1 | |
12714 | cat conftest.err >&5 | |
12715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12716 | (exit $ac_status); } >/dev/null; then | |
12717 | if test -s conftest.err; then | |
12718 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12719 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12720 | else |
12721 | ac_cpp_err= | |
12722 | fi | |
12723 | else | |
12724 | ac_cpp_err=yes | |
12725 | fi | |
12726 | if test -z "$ac_cpp_err"; then | |
12727 | : | |
12728 | else | |
12729 | echo "$as_me: failed program was:" >&5 | |
12730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12731 | ||
12732 | # Broken: fails on valid input. | |
12733 | continue | |
12734 | fi | |
12735 | rm -f conftest.err conftest.$ac_ext | |
12736 | ||
12737 | # OK, works on sane cases. Now check whether non-existent headers | |
12738 | # can be detected and how. | |
12739 | cat >conftest.$ac_ext <<_ACEOF | |
12740 | /* confdefs.h. */ | |
12741 | _ACEOF | |
12742 | cat confdefs.h >>conftest.$ac_ext | |
12743 | cat >>conftest.$ac_ext <<_ACEOF | |
12744 | /* end confdefs.h. */ | |
12745 | #include <ac_nonexistent.h> | |
12746 | _ACEOF | |
12747 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12748 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12749 | ac_status=$? | |
12750 | grep -v '^ *+' conftest.er1 >conftest.err | |
12751 | rm -f conftest.er1 | |
12752 | cat conftest.err >&5 | |
12753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12754 | (exit $ac_status); } >/dev/null; then | |
12755 | if test -s conftest.err; then | |
12756 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12757 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12758 | else |
12759 | ac_cpp_err= | |
12760 | fi | |
12761 | else | |
12762 | ac_cpp_err=yes | |
12763 | fi | |
12764 | if test -z "$ac_cpp_err"; then | |
12765 | # Broken: success on invalid input. | |
12766 | continue | |
12767 | else | |
12768 | echo "$as_me: failed program was:" >&5 | |
12769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12770 | ||
12771 | # Passes both tests. | |
12772 | ac_preproc_ok=: | |
12773 | break | |
12774 | fi | |
12775 | rm -f conftest.err conftest.$ac_ext | |
12776 | ||
12777 | done | |
12778 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12779 | rm -f conftest.err conftest.$ac_ext | |
12780 | if $ac_preproc_ok; then | |
12781 | break | |
12782 | fi | |
12783 | ||
12784 | done | |
12785 | ac_cv_prog_CPP=$CPP | |
12786 | ||
12787 | fi | |
12788 | CPP=$ac_cv_prog_CPP | |
12789 | else | |
12790 | ac_cv_prog_CPP=$CPP | |
12791 | fi | |
12792 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12793 | echo "${ECHO_T}$CPP" >&6 | |
12794 | ac_preproc_ok=false | |
12795 | for ac_c_preproc_warn_flag in '' yes | |
12796 | do | |
12797 | # Use a header file that comes with gcc, so configuring glibc | |
12798 | # with a fresh cross-compiler works. | |
12799 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12800 | # <limits.h> exists even on freestanding compilers. | |
12801 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12802 | # not just through cpp. "Syntax error" is here to catch this case. | |
12803 | cat >conftest.$ac_ext <<_ACEOF | |
12804 | /* confdefs.h. */ | |
12805 | _ACEOF | |
12806 | cat confdefs.h >>conftest.$ac_ext | |
12807 | cat >>conftest.$ac_ext <<_ACEOF | |
12808 | /* end confdefs.h. */ | |
12809 | #ifdef __STDC__ | |
12810 | # include <limits.h> | |
12811 | #else | |
12812 | # include <assert.h> | |
12813 | #endif | |
ac1cb8d3 | 12814 | Syntax error |
a848cd7e SC |
12815 | _ACEOF |
12816 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12817 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12818 | ac_status=$? | |
12819 | grep -v '^ *+' conftest.er1 >conftest.err | |
12820 | rm -f conftest.er1 | |
12821 | cat conftest.err >&5 | |
12822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12823 | (exit $ac_status); } >/dev/null; then | |
12824 | if test -s conftest.err; then | |
12825 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12826 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12827 | else |
12828 | ac_cpp_err= | |
12829 | fi | |
12830 | else | |
12831 | ac_cpp_err=yes | |
12832 | fi | |
12833 | if test -z "$ac_cpp_err"; then | |
12834 | : | |
12835 | else | |
12836 | echo "$as_me: failed program was:" >&5 | |
12837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12838 | ||
12839 | # Broken: fails on valid input. | |
12840 | continue | |
12841 | fi | |
12842 | rm -f conftest.err conftest.$ac_ext | |
12843 | ||
12844 | # OK, works on sane cases. Now check whether non-existent headers | |
12845 | # can be detected and how. | |
12846 | cat >conftest.$ac_ext <<_ACEOF | |
12847 | /* confdefs.h. */ | |
12848 | _ACEOF | |
12849 | cat confdefs.h >>conftest.$ac_ext | |
12850 | cat >>conftest.$ac_ext <<_ACEOF | |
12851 | /* end confdefs.h. */ | |
12852 | #include <ac_nonexistent.h> | |
12853 | _ACEOF | |
12854 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12855 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12856 | ac_status=$? | |
12857 | grep -v '^ *+' conftest.er1 >conftest.err | |
12858 | rm -f conftest.er1 | |
12859 | cat conftest.err >&5 | |
12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12861 | (exit $ac_status); } >/dev/null; then | |
12862 | if test -s conftest.err; then | |
12863 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12864 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12865 | else |
12866 | ac_cpp_err= | |
12867 | fi | |
12868 | else | |
12869 | ac_cpp_err=yes | |
12870 | fi | |
12871 | if test -z "$ac_cpp_err"; then | |
12872 | # Broken: success on invalid input. | |
12873 | continue | |
12874 | else | |
12875 | echo "$as_me: failed program was:" >&5 | |
12876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12877 | ||
12878 | # Passes both tests. | |
12879 | ac_preproc_ok=: | |
12880 | break | |
12881 | fi | |
12882 | rm -f conftest.err conftest.$ac_ext | |
12883 | ||
12884 | done | |
12885 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12886 | rm -f conftest.err conftest.$ac_ext | |
12887 | if $ac_preproc_ok; then | |
12888 | : | |
12889 | else | |
12890 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12891 | See \`config.log' for more details." >&5 | |
12892 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12893 | See \`config.log' for more details." >&2;} | |
12894 | { (exit 1); exit 1; }; } | |
12895 | fi | |
12896 | ||
12897 | ac_ext=c | |
12898 | ac_cpp='$CPP $CPPFLAGS' | |
12899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12902 | ||
12903 | ||
12904 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12905 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12906 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12908 | else | |
12909 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12910 | then ac_cv_prog_egrep='grep -E' | |
12911 | else ac_cv_prog_egrep='egrep' | |
12912 | fi | |
12913 | fi | |
12914 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12915 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12916 | EGREP=$ac_cv_prog_egrep | |
12917 | ||
12918 | ||
12919 | if test $ac_cv_c_compiler_gnu = yes; then | |
12920 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12921 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12922 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12924 | else | |
12925 | ac_pattern="Autoconf.*'x'" | |
12926 | cat >conftest.$ac_ext <<_ACEOF | |
12927 | /* confdefs.h. */ | |
12928 | _ACEOF | |
12929 | cat confdefs.h >>conftest.$ac_ext | |
12930 | cat >>conftest.$ac_ext <<_ACEOF | |
12931 | /* end confdefs.h. */ | |
12932 | #include <sgtty.h> | |
12933 | Autoconf TIOCGETP | |
12934 | _ACEOF | |
12935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12936 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12937 | ac_cv_prog_gcc_traditional=yes | |
12938 | else | |
12939 | ac_cv_prog_gcc_traditional=no | |
12940 | fi | |
12941 | rm -f conftest* | |
12942 | ||
12943 | ||
12944 | if test $ac_cv_prog_gcc_traditional = no; then | |
12945 | cat >conftest.$ac_ext <<_ACEOF | |
12946 | /* confdefs.h. */ | |
12947 | _ACEOF | |
12948 | cat confdefs.h >>conftest.$ac_ext | |
12949 | cat >>conftest.$ac_ext <<_ACEOF | |
12950 | /* end confdefs.h. */ | |
12951 | #include <termio.h> | |
12952 | Autoconf TCGETA | |
12953 | _ACEOF | |
12954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12955 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12956 | ac_cv_prog_gcc_traditional=yes | |
12957 | fi | |
12958 | rm -f conftest* | |
12959 | ||
12960 | fi | |
12961 | fi | |
12962 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12963 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12964 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12965 | CC="$CC -traditional" | |
12966 | fi | |
12967 | fi | |
12968 | ||
12969 | ||
12970 | ||
12971 | ||
12972 | ac_ext=cc | |
12973 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12974 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12975 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12976 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12977 | ||
12978 | ||
12979 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12980 | |
12981 | ||
3006edc0 | 12982 | |
6dcfc289 | 12983 | ac_ext=cc |
a848cd7e SC |
12984 | ac_cpp='$CXXCPP $CPPFLAGS' |
12985 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12986 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12987 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12988 | if test -n "$ac_tool_prefix"; then | |
12989 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12990 | do | |
12991 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12992 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12995 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12997 | else | |
12998 | if test -n "$CXX"; then | |
12999 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13000 | else | |
13001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13002 | for as_dir in $PATH | |
13003 | do | |
13004 | IFS=$as_save_IFS | |
13005 | test -z "$as_dir" && as_dir=. | |
13006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13008 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13010 | break 2 | |
13011 | fi | |
13012 | done | |
13013 | done | |
13014 | ||
13015 | fi | |
13016 | fi | |
13017 | CXX=$ac_cv_prog_CXX | |
13018 | if test -n "$CXX"; then | |
13019 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13020 | echo "${ECHO_T}$CXX" >&6 | |
13021 | else | |
13022 | echo "$as_me:$LINENO: result: no" >&5 | |
13023 | echo "${ECHO_T}no" >&6 | |
13024 | fi | |
13025 | ||
13026 | test -n "$CXX" && break | |
13027 | done | |
13028 | fi | |
13029 | if test -z "$CXX"; then | |
13030 | ac_ct_CXX=$CXX | |
13031 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13032 | do | |
13033 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13034 | set dummy $ac_prog; ac_word=$2 | |
13035 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13037 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13039 | else | |
13040 | if test -n "$ac_ct_CXX"; then | |
13041 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13042 | else | |
13043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13044 | for as_dir in $PATH | |
13045 | do | |
13046 | IFS=$as_save_IFS | |
13047 | test -z "$as_dir" && as_dir=. | |
13048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13049 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13050 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13052 | break 2 | |
13053 | fi | |
13054 | done | |
13055 | done | |
13056 | ||
13057 | fi | |
13058 | fi | |
13059 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13060 | if test -n "$ac_ct_CXX"; then | |
13061 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13062 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13063 | else | |
13064 | echo "$as_me:$LINENO: result: no" >&5 | |
13065 | echo "${ECHO_T}no" >&6 | |
13066 | fi | |
13067 | ||
13068 | test -n "$ac_ct_CXX" && break | |
13069 | done | |
13070 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13071 | ||
13072 | CXX=$ac_ct_CXX | |
13073 | fi | |
13074 | ||
13075 | ||
13076 | # Provide some information about the compiler. | |
13077 | echo "$as_me:$LINENO:" \ | |
13078 | "checking for C++ compiler version" >&5 | |
13079 | ac_compiler=`set X $ac_compile; echo $2` | |
13080 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13081 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13082 | ac_status=$? | |
13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13084 | (exit $ac_status); } | |
13085 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13086 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13087 | ac_status=$? | |
13088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13089 | (exit $ac_status); } | |
13090 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13091 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13092 | ac_status=$? | |
13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13094 | (exit $ac_status); } | |
13095 | ||
13096 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13097 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13098 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13100 | else | |
13101 | cat >conftest.$ac_ext <<_ACEOF | |
13102 | /* confdefs.h. */ | |
13103 | _ACEOF | |
13104 | cat confdefs.h >>conftest.$ac_ext | |
13105 | cat >>conftest.$ac_ext <<_ACEOF | |
13106 | /* end confdefs.h. */ | |
13107 | ||
13108 | int | |
13109 | main () | |
13110 | { | |
13111 | #ifndef __GNUC__ | |
13112 | choke me | |
13113 | #endif | |
13114 | ||
13115 | ; | |
13116 | return 0; | |
13117 | } | |
13118 | _ACEOF | |
13119 | rm -f conftest.$ac_objext | |
13120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13122 | ac_status=$? |
ac1cb8d3 VS |
13123 | grep -v '^ *+' conftest.er1 >conftest.err |
13124 | rm -f conftest.er1 | |
13125 | cat conftest.err >&5 | |
a848cd7e SC |
13126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13127 | (exit $ac_status); } && | |
3565d135 RR |
13128 | { ac_try='test -z "$ac_cxx_werror_flag" |
13129 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13131 | (eval $ac_try) 2>&5 | |
13132 | ac_status=$? | |
13133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13134 | (exit $ac_status); }; } && | |
13135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13137 | (eval $ac_try) 2>&5 | |
13138 | ac_status=$? | |
13139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13140 | (exit $ac_status); }; }; then | |
13141 | ac_compiler_gnu=yes | |
13142 | else | |
13143 | echo "$as_me: failed program was:" >&5 | |
13144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13145 | ||
13146 | ac_compiler_gnu=no | |
13147 | fi | |
ac1cb8d3 | 13148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13149 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13150 | ||
13151 | fi | |
13152 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13153 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13154 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13155 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13156 | ac_save_CXXFLAGS=$CXXFLAGS | |
13157 | CXXFLAGS="-g" | |
13158 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13159 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13160 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13162 | else | |
13163 | cat >conftest.$ac_ext <<_ACEOF | |
13164 | /* confdefs.h. */ | |
13165 | _ACEOF | |
13166 | cat confdefs.h >>conftest.$ac_ext | |
13167 | cat >>conftest.$ac_ext <<_ACEOF | |
13168 | /* end confdefs.h. */ | |
13169 | ||
13170 | int | |
13171 | main () | |
13172 | { | |
13173 | ||
13174 | ; | |
13175 | return 0; | |
13176 | } | |
13177 | _ACEOF | |
13178 | rm -f conftest.$ac_objext | |
13179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13180 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13181 | ac_status=$? |
ac1cb8d3 VS |
13182 | grep -v '^ *+' conftest.er1 >conftest.err |
13183 | rm -f conftest.er1 | |
13184 | cat conftest.err >&5 | |
a848cd7e SC |
13185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13186 | (exit $ac_status); } && | |
3565d135 RR |
13187 | { ac_try='test -z "$ac_cxx_werror_flag" |
13188 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13190 | (eval $ac_try) 2>&5 | |
13191 | ac_status=$? | |
13192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13193 | (exit $ac_status); }; } && | |
13194 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13196 | (eval $ac_try) 2>&5 | |
13197 | ac_status=$? | |
13198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13199 | (exit $ac_status); }; }; then | |
13200 | ac_cv_prog_cxx_g=yes | |
13201 | else | |
13202 | echo "$as_me: failed program was:" >&5 | |
13203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13204 | ||
13205 | ac_cv_prog_cxx_g=no | |
13206 | fi | |
ac1cb8d3 | 13207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13208 | fi |
13209 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13210 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13211 | if test "$ac_test_CXXFLAGS" = set; then | |
13212 | CXXFLAGS=$ac_save_CXXFLAGS | |
13213 | elif test $ac_cv_prog_cxx_g = yes; then | |
13214 | if test "$GXX" = yes; then | |
8aeeb05c | 13215 | CXXFLAGS="-g -O2" |
a848cd7e | 13216 | else |
8aeeb05c | 13217 | CXXFLAGS="-g" |
a848cd7e SC |
13218 | fi |
13219 | else | |
13220 | if test "$GXX" = yes; then | |
13221 | CXXFLAGS="-O2" | |
13222 | else | |
13223 | CXXFLAGS= | |
13224 | fi | |
13225 | fi | |
13226 | for ac_declaration in \ | |
ac1cb8d3 | 13227 | '' \ |
a848cd7e SC |
13228 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13229 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13230 | 'extern "C" void exit (int) throw ();' \ | |
13231 | 'extern "C" void exit (int);' \ | |
13232 | 'void exit (int);' | |
13233 | do | |
13234 | cat >conftest.$ac_ext <<_ACEOF | |
13235 | /* confdefs.h. */ | |
13236 | _ACEOF | |
13237 | cat confdefs.h >>conftest.$ac_ext | |
13238 | cat >>conftest.$ac_ext <<_ACEOF | |
13239 | /* end confdefs.h. */ | |
de59c161 | 13240 | $ac_declaration |
ac1cb8d3 | 13241 | #include <stdlib.h> |
a848cd7e SC |
13242 | int |
13243 | main () | |
13244 | { | |
13245 | exit (42); | |
13246 | ; | |
13247 | return 0; | |
13248 | } | |
13249 | _ACEOF | |
13250 | rm -f conftest.$ac_objext | |
13251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13252 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13253 | ac_status=$? |
ac1cb8d3 VS |
13254 | grep -v '^ *+' conftest.er1 >conftest.err |
13255 | rm -f conftest.er1 | |
13256 | cat conftest.err >&5 | |
a848cd7e SC |
13257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13258 | (exit $ac_status); } && | |
3565d135 RR |
13259 | { ac_try='test -z "$ac_cxx_werror_flag" |
13260 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13262 | (eval $ac_try) 2>&5 | |
13263 | ac_status=$? | |
13264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13265 | (exit $ac_status); }; } && | |
13266 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13268 | (eval $ac_try) 2>&5 | |
13269 | ac_status=$? | |
13270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13271 | (exit $ac_status); }; }; then | |
13272 | : | |
13273 | else | |
13274 | echo "$as_me: failed program was:" >&5 | |
13275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13276 | ||
13277 | continue | |
13278 | fi | |
ac1cb8d3 | 13279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13280 | cat >conftest.$ac_ext <<_ACEOF |
13281 | /* confdefs.h. */ | |
13282 | _ACEOF | |
13283 | cat confdefs.h >>conftest.$ac_ext | |
13284 | cat >>conftest.$ac_ext <<_ACEOF | |
13285 | /* end confdefs.h. */ | |
13286 | $ac_declaration | |
13287 | int | |
13288 | main () | |
13289 | { | |
13290 | exit (42); | |
13291 | ; | |
13292 | return 0; | |
13293 | } | |
13294 | _ACEOF | |
13295 | rm -f conftest.$ac_objext | |
13296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13297 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13298 | ac_status=$? |
ac1cb8d3 VS |
13299 | grep -v '^ *+' conftest.er1 >conftest.err |
13300 | rm -f conftest.er1 | |
13301 | cat conftest.err >&5 | |
a848cd7e SC |
13302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13303 | (exit $ac_status); } && | |
3565d135 RR |
13304 | { ac_try='test -z "$ac_cxx_werror_flag" |
13305 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13307 | (eval $ac_try) 2>&5 | |
13308 | ac_status=$? | |
13309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13310 | (exit $ac_status); }; } && | |
13311 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13313 | (eval $ac_try) 2>&5 | |
13314 | ac_status=$? | |
13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13316 | (exit $ac_status); }; }; then | |
13317 | break | |
13318 | else | |
13319 | echo "$as_me: failed program was:" >&5 | |
13320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13321 | ||
13322 | fi | |
ac1cb8d3 | 13323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13324 | done |
13325 | rm -f conftest* | |
13326 | if test -n "$ac_declaration"; then | |
13327 | echo '#ifdef __cplusplus' >>confdefs.h | |
13328 | echo $ac_declaration >>confdefs.h | |
13329 | echo '#endif' >>confdefs.h | |
13330 | fi | |
13331 | ||
13332 | ac_ext=cc | |
13333 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13334 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13335 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13336 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13337 | ||
ab0ad5f1 VZ |
13338 | |
13339 | ||
13340 | ac_ext=cc | |
13341 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13342 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13343 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13344 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13345 | ||
13346 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13347 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13348 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13350 | else | |
13351 | cat >conftest.$ac_ext <<_ACEOF | |
13352 | /* confdefs.h. */ | |
13353 | _ACEOF | |
13354 | cat confdefs.h >>conftest.$ac_ext | |
13355 | cat >>conftest.$ac_ext <<_ACEOF | |
13356 | /* end confdefs.h. */ | |
13357 | ||
13358 | int | |
13359 | main () | |
13360 | { | |
13361 | ||
13362 | #ifndef __INTEL_COMPILER | |
13363 | choke me | |
13364 | #endif | |
13365 | ||
13366 | ; | |
13367 | return 0; | |
13368 | } | |
13369 | _ACEOF | |
13370 | rm -f conftest.$ac_objext | |
13371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13372 | (eval $ac_compile) 2>conftest.er1 | |
13373 | ac_status=$? | |
13374 | grep -v '^ *+' conftest.er1 >conftest.err | |
13375 | rm -f conftest.er1 | |
13376 | cat conftest.err >&5 | |
13377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13378 | (exit $ac_status); } && | |
3565d135 RR |
13379 | { ac_try='test -z "$ac_cxx_werror_flag" |
13380 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
13381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13382 | (eval $ac_try) 2>&5 | |
13383 | ac_status=$? | |
13384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13385 | (exit $ac_status); }; } && | |
13386 | { ac_try='test -s conftest.$ac_objext' | |
13387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13388 | (eval $ac_try) 2>&5 | |
13389 | ac_status=$? | |
13390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13391 | (exit $ac_status); }; }; then | |
13392 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13393 | else | |
13394 | echo "$as_me: failed program was:" >&5 | |
13395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13396 | ||
13397 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13398 | ||
13399 | fi | |
13400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13401 | ||
13402 | ||
13403 | fi | |
13404 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13405 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13406 | ac_ext=cc | |
13407 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13408 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13409 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13410 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13411 | ||
13412 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13413 | :; INTELCXX=yes | |
13414 | else | |
13415 | :; | |
13416 | fi | |
13417 | ||
13418 | ||
3006edc0 VZ |
13419 | if test "x$GCXX" != "xyes"; then |
13420 | if test "xCXX" = "xC"; then | |
13421 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13422 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13423 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13425 | else | |
13426 | cat >conftest.$ac_ext <<_ACEOF | |
13427 | /* confdefs.h. */ | |
13428 | _ACEOF | |
13429 | cat confdefs.h >>conftest.$ac_ext | |
13430 | cat >>conftest.$ac_ext <<_ACEOF | |
13431 | /* end confdefs.h. */ | |
13432 | ||
13433 | int | |
13434 | main () | |
13435 | { | |
13436 | ||
13437 | ; | |
13438 | return 0; | |
13439 | } | |
13440 | _ACEOF | |
13441 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13443 | (eval $ac_compile) 2>&5 | |
13444 | ac_status=$? | |
13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13446 | (exit $ac_status); }; then | |
13447 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13448 | case $ac_file in | |
13449 | conftest.$ac_ext.o) | |
0093c2fc | 13450 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13451 | ;; |
13452 | *) | |
13453 | ;; | |
13454 | esac | |
13455 | done | |
13456 | else | |
13457 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13458 | See \`config.log' for more details." >&5 | |
13459 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13460 | See \`config.log' for more details." >&2;} | |
13461 | { (exit 1); exit 1; }; } | |
13462 | ||
13463 | fi | |
13464 | ||
13465 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13466 | ||
13467 | fi | |
0093c2fc VZ |
13468 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13469 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13470 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13471 | if test "cxx" = "c"; then |
0093c2fc | 13472 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13473 | fi |
13474 | if test "cxx" = "cxx"; then | |
0093c2fc | 13475 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13476 | fi |
13477 | fi | |
13478 | ||
0093c2fc | 13479 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13480 | unset ac_cv_prog_cc_g |
13481 | ac_test_CFLAGS=${CFLAGS+set} | |
13482 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 13483 | CFLAGS="-g" |
3006edc0 VZ |
13484 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
13485 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13486 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13488 | else | |
13489 | cat >conftest.$ac_ext <<_ACEOF | |
13490 | /* confdefs.h. */ | |
13491 | _ACEOF | |
13492 | cat confdefs.h >>conftest.$ac_ext | |
13493 | cat >>conftest.$ac_ext <<_ACEOF | |
13494 | /* end confdefs.h. */ | |
13495 | ||
13496 | int | |
13497 | main () | |
13498 | { | |
13499 | ||
13500 | ; | |
13501 | return 0; | |
13502 | } | |
13503 | _ACEOF | |
13504 | rm -f conftest.$ac_objext | |
13505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13506 | (eval $ac_compile) 2>conftest.er1 | |
13507 | ac_status=$? | |
13508 | grep -v '^ *+' conftest.er1 >conftest.err | |
13509 | rm -f conftest.er1 | |
13510 | cat conftest.err >&5 | |
13511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13512 | (exit $ac_status); } && | |
3565d135 RR |
13513 | { ac_try='test -z "$ac_cxx_werror_flag" |
13514 | || test ! -s conftest.err' | |
480ccd21 DE |
13515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13516 | (eval $ac_try) 2>&5 | |
13517 | ac_status=$? | |
13518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13519 | (exit $ac_status); }; } && | |
13520 | { ac_try='test -s conftest.$ac_objext' | |
13521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13522 | (eval $ac_try) 2>&5 | |
13523 | ac_status=$? | |
13524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13525 | (exit $ac_status); }; }; then | |
3006edc0 | 13526 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13527 | else |
13528 | echo "$as_me: failed program was:" >&5 | |
13529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13530 | ||
3006edc0 | 13531 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13532 | fi |
13533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13534 | fi | |
3006edc0 VZ |
13535 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13536 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13537 | if test "$ac_test_CFLAGS" = set; then | |
13538 | CFLAGS=$ac_save_CFLAGS | |
13539 | elif test $ac_cv_prog_cc_g = yes; then | |
13540 | if test "$GCC" = yes; then | |
13541 | CFLAGS="-g -O2" | |
480ccd21 | 13542 | else |
3006edc0 | 13543 | CFLAGS="-g" |
480ccd21 DE |
13544 | fi |
13545 | else | |
3006edc0 VZ |
13546 | if test "$GCC" = yes; then |
13547 | CFLAGS="-O2" | |
480ccd21 | 13548 | else |
3006edc0 | 13549 | CFLAGS= |
480ccd21 DE |
13550 | fi |
13551 | fi | |
3006edc0 | 13552 | fi |
ab0ad5f1 | 13553 | fi |
3006edc0 VZ |
13554 | |
13555 | case `uname -s` in | |
13556 | AIX*) | |
13557 | ac_ext=cc | |
13558 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13559 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13560 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13561 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13562 | ||
13563 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13564 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13565 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13567 | else | |
13568 | cat >conftest.$ac_ext <<_ACEOF | |
13569 | /* confdefs.h. */ | |
13570 | _ACEOF | |
13571 | cat confdefs.h >>conftest.$ac_ext | |
13572 | cat >>conftest.$ac_ext <<_ACEOF | |
13573 | /* end confdefs.h. */ | |
13574 | ||
13575 | int | |
13576 | main () | |
13577 | { | |
13578 | #ifndef __xlC__ | |
13579 | choke me | |
13580 | #endif | |
13581 | ||
13582 | ; | |
13583 | return 0; | |
13584 | } | |
13585 | _ACEOF | |
13586 | rm -f conftest.$ac_objext | |
13587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13588 | (eval $ac_compile) 2>conftest.er1 | |
13589 | ac_status=$? | |
13590 | grep -v '^ *+' conftest.er1 >conftest.err | |
13591 | rm -f conftest.er1 | |
13592 | cat conftest.err >&5 | |
13593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13594 | (exit $ac_status); } && | |
3565d135 RR |
13595 | { ac_try='test -z "$ac_cxx_werror_flag" |
13596 | || test ! -s conftest.err' | |
3006edc0 VZ |
13597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13598 | (eval $ac_try) 2>&5 | |
13599 | ac_status=$? | |
13600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13601 | (exit $ac_status); }; } && | |
13602 | { ac_try='test -s conftest.$ac_objext' | |
13603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13604 | (eval $ac_try) 2>&5 | |
13605 | ac_status=$? | |
13606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13607 | (exit $ac_status); }; }; then | |
0093c2fc | 13608 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13609 | else |
13610 | echo "$as_me: failed program was:" >&5 | |
13611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13612 | ||
0093c2fc | 13613 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13614 | fi |
13615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13616 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13617 | |
13618 | fi | |
0093c2fc VZ |
13619 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13620 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13621 | |
0093c2fc | 13622 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13623 | ac_ext=cc |
13624 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13625 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13626 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13627 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13628 | ||
13629 | ||
13630 | ;; | |
13631 | ||
13632 | Darwin) | |
13633 | ac_ext=cc | |
95986553 DE |
13634 | ac_cpp='$CXXCPP $CPPFLAGS' |
13635 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13636 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13637 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13638 | ||
13639 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13640 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13641 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13643 | else | |
13644 | cat >conftest.$ac_ext <<_ACEOF | |
13645 | /* confdefs.h. */ | |
13646 | _ACEOF | |
13647 | cat confdefs.h >>conftest.$ac_ext | |
13648 | cat >>conftest.$ac_ext <<_ACEOF | |
13649 | /* end confdefs.h. */ | |
13650 | ||
13651 | int | |
13652 | main () | |
13653 | { | |
13654 | #ifndef __MWERKS__ | |
13655 | choke me | |
13656 | #endif | |
13657 | ||
13658 | ; | |
13659 | return 0; | |
13660 | } | |
13661 | _ACEOF | |
13662 | rm -f conftest.$ac_objext | |
13663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13664 | (eval $ac_compile) 2>conftest.er1 | |
13665 | ac_status=$? | |
13666 | grep -v '^ *+' conftest.er1 >conftest.err | |
13667 | rm -f conftest.er1 | |
13668 | cat conftest.err >&5 | |
13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13670 | (exit $ac_status); } && | |
3565d135 RR |
13671 | { ac_try='test -z "$ac_cxx_werror_flag" |
13672 | || test ! -s conftest.err' | |
95986553 DE |
13673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13674 | (eval $ac_try) 2>&5 | |
13675 | ac_status=$? | |
13676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13677 | (exit $ac_status); }; } && | |
13678 | { ac_try='test -s conftest.$ac_objext' | |
13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13680 | (eval $ac_try) 2>&5 | |
13681 | ac_status=$? | |
13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13683 | (exit $ac_status); }; }; then | |
13684 | bakefile_compiler_mwerks=yes | |
13685 | else | |
13686 | echo "$as_me: failed program was:" >&5 | |
13687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13688 | ||
13689 | bakefile_compiler_mwerks=no | |
13690 | fi | |
13691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13692 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13693 | ||
13694 | fi | |
13695 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13696 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13697 | ||
0e6fa1d9 | 13698 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13699 | ac_ext=cc |
13700 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13701 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13702 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13703 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13704 | ||
13705 | ||
3006edc0 | 13706 | ac_ext=cc |
9273ffba DE |
13707 | ac_cpp='$CXXCPP $CPPFLAGS' |
13708 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13709 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13710 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13711 | ||
13712 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13713 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13714 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13716 | else | |
13717 | cat >conftest.$ac_ext <<_ACEOF | |
13718 | /* confdefs.h. */ | |
13719 | _ACEOF | |
13720 | cat confdefs.h >>conftest.$ac_ext | |
13721 | cat >>conftest.$ac_ext <<_ACEOF | |
13722 | /* end confdefs.h. */ | |
13723 | ||
13724 | int | |
13725 | main () | |
13726 | { | |
13727 | #ifndef __xlC__ | |
13728 | choke me | |
13729 | #endif | |
13730 | ||
13731 | ; | |
13732 | return 0; | |
13733 | } | |
13734 | _ACEOF | |
13735 | rm -f conftest.$ac_objext | |
13736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13737 | (eval $ac_compile) 2>conftest.er1 | |
13738 | ac_status=$? | |
13739 | grep -v '^ *+' conftest.er1 >conftest.err | |
13740 | rm -f conftest.er1 | |
13741 | cat conftest.err >&5 | |
13742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13743 | (exit $ac_status); } && | |
3565d135 RR |
13744 | { ac_try='test -z "$ac_cxx_werror_flag" |
13745 | || test ! -s conftest.err' | |
9273ffba DE |
13746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13747 | (eval $ac_try) 2>&5 | |
13748 | ac_status=$? | |
13749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13750 | (exit $ac_status); }; } && | |
13751 | { ac_try='test -s conftest.$ac_objext' | |
13752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13753 | (eval $ac_try) 2>&5 | |
13754 | ac_status=$? | |
13755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13756 | (exit $ac_status); }; }; then | |
0093c2fc | 13757 | bakefile_compiler_xlc=yes |
9273ffba DE |
13758 | else |
13759 | echo "$as_me: failed program was:" >&5 | |
13760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13761 | ||
0093c2fc | 13762 | bakefile_compiler_xlc=no |
9273ffba DE |
13763 | fi |
13764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13765 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
13766 | |
13767 | fi | |
0093c2fc VZ |
13768 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13769 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 13770 | |
0093c2fc | 13771 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13772 | ac_ext=cc |
13773 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13774 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13775 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13776 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13777 | ||
13778 | ||
3006edc0 VZ |
13779 | ;; |
13780 | ||
13781 | IRIX*) | |
95986553 | 13782 | |
6dcfc289 | 13783 | |
0ad5d837 VZ |
13784 | ac_ext=cc |
13785 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13786 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13787 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13788 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13789 | ||
13790 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13791 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13792 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13794 | else | |
13795 | cat >conftest.$ac_ext <<_ACEOF | |
13796 | /* confdefs.h. */ | |
13797 | _ACEOF | |
13798 | cat confdefs.h >>conftest.$ac_ext | |
13799 | cat >>conftest.$ac_ext <<_ACEOF | |
13800 | /* end confdefs.h. */ | |
13801 | ||
13802 | int | |
13803 | main () | |
13804 | { | |
13805 | ||
13806 | #ifndef _SGI_COMPILER_VERSION | |
13807 | choke me | |
13808 | #endif | |
13809 | ||
13810 | ; | |
13811 | return 0; | |
13812 | } | |
13813 | _ACEOF | |
13814 | rm -f conftest.$ac_objext | |
13815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13816 | (eval $ac_compile) 2>conftest.er1 | |
13817 | ac_status=$? | |
13818 | grep -v '^ *+' conftest.er1 >conftest.err | |
13819 | rm -f conftest.er1 | |
13820 | cat conftest.err >&5 | |
13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13822 | (exit $ac_status); } && | |
3565d135 RR |
13823 | { ac_try='test -z "$ac_cxx_werror_flag" |
13824 | || test ! -s conftest.err' | |
0ad5d837 VZ |
13825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13826 | (eval $ac_try) 2>&5 | |
13827 | ac_status=$? | |
13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13829 | (exit $ac_status); }; } && | |
13830 | { ac_try='test -s conftest.$ac_objext' | |
13831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13832 | (eval $ac_try) 2>&5 | |
13833 | ac_status=$? | |
13834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13835 | (exit $ac_status); }; }; then | |
13836 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13837 | else | |
13838 | echo "$as_me: failed program was:" >&5 | |
13839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13840 | ||
13841 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13842 | ||
13843 | fi | |
13844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13845 | ||
13846 | ||
13847 | fi | |
13848 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13849 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13850 | ac_ext=cc | |
13851 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13852 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13853 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13854 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13855 | ||
13856 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13857 | :; SGICXX=yes | |
13858 | else | |
13859 | :; | |
13860 | fi | |
13861 | ||
13862 | ||
3006edc0 VZ |
13863 | ;; |
13864 | ||
0093c2fc | 13865 | HP-UX*) |
3006edc0 VZ |
13866 | |
13867 | ||
13868 | ac_ext=cc | |
13869 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13873 | ||
0093c2fc VZ |
13874 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
13875 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
13876 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
13877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13878 | else | |
13879 | cat >conftest.$ac_ext <<_ACEOF | |
13880 | /* confdefs.h. */ | |
13881 | _ACEOF | |
13882 | cat confdefs.h >>conftest.$ac_ext | |
13883 | cat >>conftest.$ac_ext <<_ACEOF | |
13884 | /* end confdefs.h. */ | |
13885 | ||
13886 | int | |
13887 | main () | |
13888 | { | |
13889 | ||
0093c2fc | 13890 | #ifndef __HP_aCC |
3006edc0 VZ |
13891 | choke me |
13892 | #endif | |
13893 | ||
13894 | ; | |
13895 | return 0; | |
13896 | } | |
13897 | _ACEOF | |
13898 | rm -f conftest.$ac_objext | |
13899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13900 | (eval $ac_compile) 2>conftest.er1 | |
13901 | ac_status=$? | |
13902 | grep -v '^ *+' conftest.er1 >conftest.err | |
13903 | rm -f conftest.er1 | |
13904 | cat conftest.err >&5 | |
13905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13906 | (exit $ac_status); } && | |
3565d135 RR |
13907 | { ac_try='test -z "$ac_cxx_werror_flag" |
13908 | || test ! -s conftest.err' | |
3006edc0 VZ |
13909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13910 | (eval $ac_try) 2>&5 | |
13911 | ac_status=$? | |
13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13913 | (exit $ac_status); }; } && | |
13914 | { ac_try='test -s conftest.$ac_objext' | |
13915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13916 | (eval $ac_try) 2>&5 | |
13917 | ac_status=$? | |
13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13919 | (exit $ac_status); }; }; then | |
0093c2fc | 13920 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
13921 | else |
13922 | echo "$as_me: failed program was:" >&5 | |
13923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13924 | ||
0093c2fc | 13925 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
13926 | |
13927 | fi | |
13928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13929 | ||
13930 | ||
13931 | fi | |
0093c2fc VZ |
13932 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
13933 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
13934 | ac_ext=cc |
13935 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13936 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13937 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13938 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13939 | ||
0093c2fc VZ |
13940 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
13941 | :; HPCXX=yes | |
a1aa0349 VZ |
13942 | else |
13943 | :; | |
13944 | fi | |
13945 | ||
13946 | ||
13947 | ;; | |
13948 | ||
0093c2fc | 13949 | OSF1) |
a1aa0349 VZ |
13950 | |
13951 | ||
13952 | ac_ext=cc | |
13953 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13954 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13955 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13956 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13957 | ||
0093c2fc VZ |
13958 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
13959 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
13960 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
13961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13962 | else | |
13963 | cat >conftest.$ac_ext <<_ACEOF | |
13964 | /* confdefs.h. */ | |
13965 | _ACEOF | |
13966 | cat confdefs.h >>conftest.$ac_ext | |
13967 | cat >>conftest.$ac_ext <<_ACEOF | |
13968 | /* end confdefs.h. */ | |
13969 | ||
13970 | int | |
13971 | main () | |
13972 | { | |
13973 | ||
0093c2fc | 13974 | #ifndef __DECCXX |
a1aa0349 VZ |
13975 | choke me |
13976 | #endif | |
13977 | ||
13978 | ; | |
13979 | return 0; | |
13980 | } | |
13981 | _ACEOF | |
13982 | rm -f conftest.$ac_objext | |
13983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13984 | (eval $ac_compile) 2>conftest.er1 | |
13985 | ac_status=$? | |
13986 | grep -v '^ *+' conftest.er1 >conftest.err | |
13987 | rm -f conftest.er1 | |
13988 | cat conftest.err >&5 | |
13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13990 | (exit $ac_status); } && | |
3565d135 RR |
13991 | { ac_try='test -z "$ac_cxx_werror_flag" |
13992 | || test ! -s conftest.err' | |
a1aa0349 VZ |
13993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13994 | (eval $ac_try) 2>&5 | |
13995 | ac_status=$? | |
13996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13997 | (exit $ac_status); }; } && | |
13998 | { ac_try='test -s conftest.$ac_objext' | |
13999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14000 | (eval $ac_try) 2>&5 | |
14001 | ac_status=$? | |
14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14003 | (exit $ac_status); }; }; then | |
0093c2fc | 14004 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14005 | else |
14006 | echo "$as_me: failed program was:" >&5 | |
14007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14008 | ||
0093c2fc | 14009 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14010 | |
14011 | fi | |
14012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14013 | ||
14014 | ||
14015 | fi | |
0093c2fc VZ |
14016 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14017 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14018 | ac_ext=cc |
14019 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14020 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14021 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14022 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14023 | ||
0093c2fc VZ |
14024 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14025 | :; COMPAQCXX=yes | |
14026 | else | |
14027 | :; | |
14028 | fi | |
14029 | ||
14030 | ||
14031 | ;; | |
14032 | ||
14033 | SunOS) | |
14034 | ||
14035 | ||
14036 | ac_ext=cc | |
14037 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14038 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14039 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14040 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14041 | ||
14042 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14043 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14044 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14046 | else | |
14047 | cat >conftest.$ac_ext <<_ACEOF | |
14048 | /* confdefs.h. */ | |
14049 | _ACEOF | |
14050 | cat confdefs.h >>conftest.$ac_ext | |
14051 | cat >>conftest.$ac_ext <<_ACEOF | |
14052 | /* end confdefs.h. */ | |
14053 | ||
14054 | int | |
14055 | main () | |
14056 | { | |
14057 | ||
14058 | #ifndef __SUNPRO_CC | |
14059 | choke me | |
14060 | #endif | |
14061 | ||
14062 | ; | |
14063 | return 0; | |
14064 | } | |
14065 | _ACEOF | |
14066 | rm -f conftest.$ac_objext | |
14067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14068 | (eval $ac_compile) 2>conftest.er1 | |
14069 | ac_status=$? | |
14070 | grep -v '^ *+' conftest.er1 >conftest.err | |
14071 | rm -f conftest.er1 | |
14072 | cat conftest.err >&5 | |
14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14074 | (exit $ac_status); } && | |
3565d135 RR |
14075 | { ac_try='test -z "$ac_cxx_werror_flag" |
14076 | || test ! -s conftest.err' | |
0093c2fc VZ |
14077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14078 | (eval $ac_try) 2>&5 | |
14079 | ac_status=$? | |
14080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14081 | (exit $ac_status); }; } && | |
14082 | { ac_try='test -s conftest.$ac_objext' | |
14083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14084 | (eval $ac_try) 2>&5 | |
14085 | ac_status=$? | |
14086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14087 | (exit $ac_status); }; }; then | |
14088 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14089 | else | |
14090 | echo "$as_me: failed program was:" >&5 | |
14091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14092 | ||
14093 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14094 | ||
14095 | fi | |
14096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14097 | ||
14098 | ||
14099 | fi | |
14100 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14101 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14102 | ac_ext=cc | |
14103 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14104 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14105 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14106 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14107 | ||
14108 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14109 | :; SUNCXX=yes | |
3006edc0 VZ |
14110 | else |
14111 | :; | |
ab0ad5f1 | 14112 | fi |
a9e5b1f0 MW |
14113 | |
14114 | ||
3006edc0 VZ |
14115 | ;; |
14116 | esac | |
14117 | fi | |
14118 | ||
14119 | ||
14120 | ||
a848cd7e SC |
14121 | ac_ext=c |
14122 | ac_cpp='$CPP $CPPFLAGS' | |
14123 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14124 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14125 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14126 | ||
14127 | ||
a848cd7e SC |
14128 | if test -n "$ac_tool_prefix"; then |
14129 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14130 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14131 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14133 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14135 | else | |
14136 | if test -n "$RANLIB"; then | |
14137 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14138 | else | |
14139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14140 | for as_dir in $PATH | |
14141 | do | |
14142 | IFS=$as_save_IFS | |
14143 | test -z "$as_dir" && as_dir=. | |
14144 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14145 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14146 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14147 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14148 | break 2 | |
14149 | fi | |
14150 | done | |
14151 | done | |
14152 | ||
14153 | fi | |
14154 | fi | |
14155 | RANLIB=$ac_cv_prog_RANLIB | |
14156 | if test -n "$RANLIB"; then | |
14157 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14158 | echo "${ECHO_T}$RANLIB" >&6 | |
14159 | else | |
14160 | echo "$as_me:$LINENO: result: no" >&5 | |
14161 | echo "${ECHO_T}no" >&6 | |
14162 | fi | |
14163 | ||
14164 | fi | |
14165 | if test -z "$ac_cv_prog_RANLIB"; then | |
14166 | ac_ct_RANLIB=$RANLIB | |
14167 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14168 | set dummy ranlib; ac_word=$2 | |
14169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14171 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14173 | else | |
14174 | if test -n "$ac_ct_RANLIB"; then | |
14175 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14176 | else | |
14177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14178 | for as_dir in $PATH | |
14179 | do | |
14180 | IFS=$as_save_IFS | |
14181 | test -z "$as_dir" && as_dir=. | |
14182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14184 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14186 | break 2 | |
14187 | fi | |
14188 | done | |
14189 | done | |
14190 | ||
14191 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14192 | fi | |
14193 | fi | |
14194 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14195 | if test -n "$ac_ct_RANLIB"; then | |
14196 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14197 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14198 | else | |
14199 | echo "$as_me:$LINENO: result: no" >&5 | |
14200 | echo "${ECHO_T}no" >&6 | |
14201 | fi | |
14202 | ||
14203 | RANLIB=$ac_ct_RANLIB | |
14204 | else | |
14205 | RANLIB="$ac_cv_prog_RANLIB" | |
14206 | fi | |
14207 | ||
14208 | ||
8c80d384 DE |
14209 | if test -n "$ac_tool_prefix"; then |
14210 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14211 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14212 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14214 | if test "${ac_cv_prog_AR+set}" = set; then | |
14215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14216 | else | |
14217 | if test -n "$AR"; then | |
14218 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14219 | else | |
14220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14221 | for as_dir in $PATH | |
14222 | do | |
14223 | IFS=$as_save_IFS | |
14224 | test -z "$as_dir" && as_dir=. | |
14225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14227 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14229 | break 2 | |
14230 | fi | |
14231 | done | |
14232 | done | |
14233 | ||
14234 | fi | |
14235 | fi | |
14236 | AR=$ac_cv_prog_AR | |
14237 | if test -n "$AR"; then | |
14238 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14239 | echo "${ECHO_T}$AR" >&6 | |
14240 | else | |
14241 | echo "$as_me:$LINENO: result: no" >&5 | |
14242 | echo "${ECHO_T}no" >&6 | |
14243 | fi | |
14244 | ||
8c80d384 DE |
14245 | fi |
14246 | if test -z "$ac_cv_prog_AR"; then | |
14247 | ac_ct_AR=$AR | |
14248 | # Extract the first word of "ar", so it can be a program name with args. | |
14249 | set dummy ar; ac_word=$2 | |
14250 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14252 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14254 | else | |
14255 | if test -n "$ac_ct_AR"; then | |
14256 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14257 | else | |
14258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14259 | for as_dir in $PATH | |
14260 | do | |
14261 | IFS=$as_save_IFS | |
14262 | test -z "$as_dir" && as_dir=. | |
14263 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14264 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14265 | ac_cv_prog_ac_ct_AR="ar" | |
14266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14267 | break 2 | |
14268 | fi | |
14269 | done | |
14270 | done | |
14271 | ||
14272 | fi | |
14273 | fi | |
14274 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14275 | if test -n "$ac_ct_AR"; then | |
14276 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14277 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14278 | else | |
14279 | echo "$as_me:$LINENO: result: no" >&5 | |
14280 | echo "${ECHO_T}no" >&6 | |
14281 | fi | |
14282 | ||
14283 | AR=$ac_ct_AR | |
14284 | else | |
14285 | AR="$ac_cv_prog_AR" | |
14286 | fi | |
14287 | ||
a848cd7e | 14288 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14289 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14290 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14291 | { (exit 1); exit 1; }; } |
14292 | fi | |
14293 | ||
14294 | # Find a good install program. We prefer a C program (faster), | |
14295 | # so one script is as good as another. But avoid the broken or | |
14296 | # incompatible versions: | |
14297 | # SysV /etc/install, /usr/sbin/install | |
14298 | # SunOS /usr/etc/install | |
14299 | # IRIX /sbin/install | |
14300 | # AIX /bin/install | |
14301 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14302 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14303 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14304 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14305 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14306 | # ./install, which can be erroneously created by make from ./install.sh. |
14307 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14308 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14309 | if test -z "$INSTALL"; then | |
14310 | if test "${ac_cv_path_install+set}" = set; then | |
14311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14312 | else | |
14313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14314 | for as_dir in $PATH | |
14315 | do | |
14316 | IFS=$as_save_IFS | |
14317 | test -z "$as_dir" && as_dir=. | |
14318 | # Account for people who put trailing slashes in PATH elements. | |
14319 | case $as_dir/ in | |
14320 | ./ | .// | /cC/* | \ | |
14321 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14322 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14323 | /usr/ucb/* ) ;; |
14324 | *) | |
14325 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14326 | # Don't use installbsd from OSF since it installs stuff as root | |
14327 | # by default. | |
14328 | for ac_prog in ginstall scoinst install; do | |
14329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14330 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14331 | if test $ac_prog = install && | |
14332 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14333 | # AIX install. It has an incompatible calling convention. | |
14334 | : | |
14335 | elif test $ac_prog = install && | |
14336 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14337 | # program-specific install script used by HP pwplus--don't use. | |
14338 | : | |
14339 | else | |
14340 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14341 | break 3 | |
14342 | fi | |
14343 | fi | |
a848cd7e SC |
14344 | done |
14345 | done | |
14346 | ;; | |
14347 | esac | |
14348 | done | |
14349 | ||
14350 | ||
14351 | fi | |
14352 | if test "${ac_cv_path_install+set}" = set; then | |
14353 | INSTALL=$ac_cv_path_install | |
14354 | else | |
14355 | # As a last resort, use the slow shell script. We don't cache a | |
14356 | # path for INSTALL within a source directory, because that will | |
14357 | # break other packages using the cache if that directory is | |
14358 | # removed, or if the path is relative. | |
14359 | INSTALL=$ac_install_sh | |
14360 | fi | |
14361 | fi | |
14362 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14363 | echo "${ECHO_T}$INSTALL" >&6 | |
14364 | ||
14365 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14366 | # It thinks the first close brace ends the variable substitution. | |
14367 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14368 | ||
14369 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14370 | ||
14371 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14372 | ||
14373 | ||
14374 | case ${INSTALL} in | |
14375 | /* ) # Absolute | |
14376 | ;; | |
14377 | ?:* ) # Drive letter, considered as absolute. | |
14378 | ;; | |
14379 | *) | |
14380 | INSTALL=`pwd`/${INSTALL} ;; | |
14381 | esac | |
14382 | ||
a848cd7e SC |
14383 | |
14384 | case "${host}" in | |
14385 | ||
cfda0ea8 | 14386 | *-*-darwin* ) |
a848cd7e SC |
14387 | INSTALL_PROGRAM="cp -fp" |
14388 | INSTALL_DATA="cp -fp" | |
14389 | ;; | |
14390 | *) | |
14391 | ;; | |
14392 | esac | |
14393 | ||
8c80d384 DE |
14394 | if test -n "$ac_tool_prefix"; then |
14395 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14396 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14399 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14401 | else | |
14402 | if test -n "$STRIP"; then | |
14403 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14404 | else | |
14405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14406 | for as_dir in $PATH | |
14407 | do | |
14408 | IFS=$as_save_IFS | |
14409 | test -z "$as_dir" && as_dir=. | |
14410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14412 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14414 | break 2 | |
14415 | fi | |
14416 | done | |
14417 | done | |
14418 | ||
a848cd7e SC |
14419 | fi |
14420 | fi | |
14421 | STRIP=$ac_cv_prog_STRIP | |
14422 | if test -n "$STRIP"; then | |
14423 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14424 | echo "${ECHO_T}$STRIP" >&6 | |
14425 | else | |
14426 | echo "$as_me:$LINENO: result: no" >&5 | |
14427 | echo "${ECHO_T}no" >&6 | |
14428 | fi | |
14429 | ||
8c80d384 DE |
14430 | fi |
14431 | if test -z "$ac_cv_prog_STRIP"; then | |
14432 | ac_ct_STRIP=$STRIP | |
14433 | # Extract the first word of "strip", so it can be a program name with args. | |
14434 | set dummy strip; ac_word=$2 | |
14435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14437 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14439 | else | |
14440 | if test -n "$ac_ct_STRIP"; then | |
14441 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14442 | else | |
14443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14444 | for as_dir in $PATH | |
14445 | do | |
14446 | IFS=$as_save_IFS | |
14447 | test -z "$as_dir" && as_dir=. | |
14448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14449 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14450 | ac_cv_prog_ac_ct_STRIP="strip" | |
14451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14452 | break 2 | |
14453 | fi | |
14454 | done | |
14455 | done | |
14456 | ||
14457 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14458 | fi | |
14459 | fi | |
14460 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14461 | if test -n "$ac_ct_STRIP"; then | |
14462 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14463 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14464 | else | |
14465 | echo "$as_me:$LINENO: result: no" >&5 | |
14466 | echo "${ECHO_T}no" >&6 | |
14467 | fi | |
14468 | ||
14469 | STRIP=$ac_ct_STRIP | |
14470 | else | |
14471 | STRIP="$ac_cv_prog_STRIP" | |
14472 | fi | |
14473 | ||
14474 | ||
14475 | if test "$wxUSE_WINE" = "yes"; then | |
14476 | if test -n "$ac_tool_prefix"; then | |
14477 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14478 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14481 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
14482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14483 | else | |
8ced02f6 DE |
14484 | if test -n "$WINDRES"; then |
14485 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
14486 | else |
14487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14488 | for as_dir in $PATH | |
14489 | do | |
14490 | IFS=$as_save_IFS | |
14491 | test -z "$as_dir" && as_dir=. | |
14492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14494 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
14495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14496 | break 2 | |
14497 | fi | |
14498 | done | |
14499 | done | |
14500 | ||
14501 | fi | |
14502 | fi | |
8ced02f6 DE |
14503 | WINDRES=$ac_cv_prog_WINDRES |
14504 | if test -n "$WINDRES"; then | |
14505 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14506 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
14507 | else |
14508 | echo "$as_me:$LINENO: result: no" >&5 | |
14509 | echo "${ECHO_T}no" >&6 | |
14510 | fi | |
14511 | ||
14512 | fi | |
8ced02f6 DE |
14513 | if test -z "$ac_cv_prog_WINDRES"; then |
14514 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
14515 | # Extract the first word of "wrc", so it can be a program name with args. |
14516 | set dummy wrc; ac_word=$2 | |
14517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14519 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
14520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14521 | else | |
8ced02f6 DE |
14522 | if test -n "$ac_ct_WINDRES"; then |
14523 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
14524 | else |
14525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14526 | for as_dir in $PATH | |
14527 | do | |
14528 | IFS=$as_save_IFS | |
14529 | test -z "$as_dir" && as_dir=. | |
14530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14532 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
14533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14534 | break 2 | |
14535 | fi | |
14536 | done | |
14537 | done | |
14538 | ||
14539 | fi | |
14540 | fi | |
8ced02f6 DE |
14541 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
14542 | if test -n "$ac_ct_WINDRES"; then | |
14543 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14544 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
14545 | else |
14546 | echo "$as_me:$LINENO: result: no" >&5 | |
14547 | echo "${ECHO_T}no" >&6 | |
14548 | fi | |
14549 | ||
8ced02f6 | 14550 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 14551 | else |
8ced02f6 | 14552 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
14553 | fi |
14554 | ||
004ee6da | 14555 | RESCOMP="$WINDRES" |
8c80d384 DE |
14556 | else |
14557 | case "${host}" in | |
14558 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
14559 | if test -n "$ac_tool_prefix"; then |
14560 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14561 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14562 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14564 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
14565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14566 | else | |
14567 | if test -n "$WINDRES"; then | |
14568 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
14569 | else | |
14570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14571 | for as_dir in $PATH | |
14572 | do | |
14573 | IFS=$as_save_IFS | |
14574 | test -z "$as_dir" && as_dir=. | |
14575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14577 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
14578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14579 | break 2 | |
14580 | fi | |
14581 | done | |
14582 | done | |
14583 | ||
14584 | fi | |
14585 | fi | |
14586 | WINDRES=$ac_cv_prog_WINDRES | |
14587 | if test -n "$WINDRES"; then | |
14588 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14589 | echo "${ECHO_T}$WINDRES" >&6 | |
14590 | else | |
14591 | echo "$as_me:$LINENO: result: no" >&5 | |
14592 | echo "${ECHO_T}no" >&6 | |
14593 | fi | |
14594 | ||
14595 | fi | |
14596 | if test -z "$ac_cv_prog_WINDRES"; then | |
14597 | ac_ct_WINDRES=$WINDRES | |
14598 | # Extract the first word of "windres", so it can be a program name with args. | |
14599 | set dummy windres; ac_word=$2 | |
14600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14602 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
14603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14604 | else | |
14605 | if test -n "$ac_ct_WINDRES"; then | |
14606 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
14607 | else | |
14608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14609 | for as_dir in $PATH | |
14610 | do | |
14611 | IFS=$as_save_IFS | |
14612 | test -z "$as_dir" && as_dir=. | |
14613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14615 | ac_cv_prog_ac_ct_WINDRES="windres" | |
14616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14617 | break 2 | |
14618 | fi | |
14619 | done | |
14620 | done | |
14621 | ||
14622 | fi | |
14623 | fi | |
14624 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
14625 | if test -n "$ac_ct_WINDRES"; then | |
14626 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14627 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
14628 | else | |
14629 | echo "$as_me:$LINENO: result: no" >&5 | |
14630 | echo "${ECHO_T}no" >&6 | |
14631 | fi | |
14632 | ||
14633 | WINDRES=$ac_ct_WINDRES | |
14634 | else | |
14635 | WINDRES="$ac_cv_prog_WINDRES" | |
14636 | fi | |
14637 | ||
14638 | RESCOMP="$WINDRES" | |
14639 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
14640 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
14641 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14644 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
14645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14646 | else | |
14647 | if test -n "$DLLTOOL"; then | |
14648 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14649 | else | |
14650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14651 | for as_dir in $PATH | |
14652 | do | |
14653 | IFS=$as_save_IFS | |
14654 | test -z "$as_dir" && as_dir=. | |
14655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14657 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14659 | break 2 | |
14660 | fi | |
14661 | done | |
14662 | done | |
14663 | ||
14664 | fi | |
14665 | fi | |
14666 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14667 | if test -n "$DLLTOOL"; then | |
14668 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14669 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14670 | else | |
14671 | echo "$as_me:$LINENO: result: no" >&5 | |
14672 | echo "${ECHO_T}no" >&6 | |
14673 | fi | |
14674 | ||
14675 | fi | |
14676 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14677 | ac_ct_DLLTOOL=$DLLTOOL | |
14678 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14679 | set dummy dlltool; ac_word=$2 | |
14680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14682 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14684 | else | |
14685 | if test -n "$ac_ct_DLLTOOL"; then | |
14686 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14687 | else | |
14688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14689 | for as_dir in $PATH | |
14690 | do | |
14691 | IFS=$as_save_IFS | |
14692 | test -z "$as_dir" && as_dir=. | |
14693 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14695 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14697 | break 2 | |
14698 | fi | |
14699 | done | |
14700 | done | |
14701 | ||
14702 | fi | |
14703 | fi | |
14704 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14705 | if test -n "$ac_ct_DLLTOOL"; then | |
14706 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14707 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14708 | else | |
14709 | echo "$as_me:$LINENO: result: no" >&5 | |
14710 | echo "${ECHO_T}no" >&6 | |
14711 | fi | |
14712 | ||
14713 | DLLTOOL=$ac_ct_DLLTOOL | |
14714 | else | |
14715 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14716 | fi | |
14717 | ||
14718 | ;; | |
14719 | esac | |
14720 | fi | |
a848cd7e SC |
14721 | |
14722 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14723 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14724 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14726 | else | |
14727 | ||
14728 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14729 | egrep -s GNU > /dev/null); then | |
14730 | wx_cv_prog_makeisgnu="yes" | |
14731 | else | |
14732 | wx_cv_prog_makeisgnu="no" | |
14733 | fi | |
14734 | ||
14735 | fi | |
14736 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14737 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14738 | ||
14739 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14740 | IF_GNU_MAKE="" | |
14741 | else | |
14742 | IF_GNU_MAKE="#" | |
14743 | fi | |
14744 | ||
14745 | ||
14746 | ||
14747 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14748 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14749 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14750 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14752 | else | |
14753 | ||
14754 | cat - << EOF > confMake | |
14755 | check : file | |
14756 | cp \$? \$@ | |
14757 | cp \$? final_file | |
14758 | EOF | |
14759 | ||
14760 | if test ! -d sub ; then | |
14761 | mkdir sub | |
14762 | fi | |
14763 | echo dummy > sub/file | |
14764 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
14765 | RESULT=$? | |
14766 | rm -f sub/file check final_file confMake | |
14767 | rmdir sub | |
14768 | if test "$RESULT" = 0; then | |
14769 | wx_cv_prog_makevpath="yes" | |
14770 | else | |
14771 | wx_cv_prog_makevpath="no" | |
14772 | fi | |
14773 | ||
14774 | fi | |
14775 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14776 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14777 | ||
14778 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14779 | { { echo "$as_me:$LINENO: error: | |
14780 | You need a make-utility that is able to use the variable | |
14781 | VPATH correctly. | |
14782 | If your version of make does not support VPATH correctly, | |
14783 | please install GNU-make (possibly as gmake), and start | |
14784 | configure with the following command: | |
14785 | export MAKE=gmake; ./configure for sh-type shells | |
14786 | setenv MAKE gmake; ./configure for csh-type shells | |
14787 | Also please do remember to use gmake in this case every time | |
14788 | you are trying to compile. | |
14789 | " >&5 | |
14790 | echo "$as_me: error: | |
14791 | You need a make-utility that is able to use the variable | |
14792 | VPATH correctly. | |
14793 | If your version of make does not support VPATH correctly, | |
14794 | please install GNU-make (possibly as gmake), and start | |
14795 | configure with the following command: | |
14796 | export MAKE=gmake; ./configure for sh-type shells | |
14797 | setenv MAKE gmake; ./configure for csh-type shells | |
14798 | Also please do remember to use gmake in this case every time | |
14799 | you are trying to compile. | |
14800 | " >&2;} | |
14801 | { (exit 1); exit 1; }; } | |
14802 | fi fi | |
14803 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14804 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14805 | LN_S=$as_ln_s | |
14806 | if test "$LN_S" = "ln -s"; then | |
14807 | echo "$as_me:$LINENO: result: yes" >&5 | |
14808 | echo "${ECHO_T}yes" >&6 | |
14809 | else | |
14810 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14811 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14812 | fi | |
14813 | ||
14814 | ||
bcaab0f9 MW |
14815 | for ac_prog in lndir |
14816 | do | |
14817 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14818 | set dummy $ac_prog; ac_word=$2 | |
14819 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14821 | if test "${ac_cv_prog_LNDIR+set}" = set; then | |
14822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14823 | else | |
14824 | if test -n "$LNDIR"; then | |
14825 | ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test. | |
14826 | else | |
14827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14828 | for as_dir in $PATH | |
14829 | do | |
14830 | IFS=$as_save_IFS | |
14831 | test -z "$as_dir" && as_dir=. | |
14832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14833 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14834 | ac_cv_prog_LNDIR="$ac_prog" | |
14835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14836 | break 2 | |
14837 | fi | |
14838 | done | |
14839 | done | |
14840 | ||
14841 | fi | |
14842 | fi | |
14843 | LNDIR=$ac_cv_prog_LNDIR | |
14844 | if test -n "$LNDIR"; then | |
14845 | echo "$as_me:$LINENO: result: $LNDIR" >&5 | |
14846 | echo "${ECHO_T}$LNDIR" >&6 | |
14847 | else | |
14848 | echo "$as_me:$LINENO: result: no" >&5 | |
14849 | echo "${ECHO_T}no" >&6 | |
14850 | fi | |
14851 | ||
14852 | test -n "$LNDIR" && break | |
14853 | done | |
91dea314 | 14854 | test -n "$LNDIR" || LNDIR="cp -pR" |
bcaab0f9 MW |
14855 | |
14856 | ||
14857 | ||
a848cd7e | 14858 | |
2113bc77 | 14859 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 14860 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
14861 | fi |
14862 | ||
4d7ec9f1 DE |
14863 | case "${host}" in |
14864 | powerpc-*-darwin* ) | |
14865 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14866 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14867 | cat >conftest.$ac_ext <<_ACEOF | |
14868 | /* confdefs.h. */ | |
14869 | _ACEOF | |
14870 | cat confdefs.h >>conftest.$ac_ext | |
14871 | cat >>conftest.$ac_ext <<_ACEOF | |
14872 | /* end confdefs.h. */ | |
14873 | ||
14874 | int | |
14875 | main () | |
14876 | { | |
14877 | #ifndef __POWERPC__ | |
14878 | choke me for lack of PowerPC | |
14879 | #endif | |
14880 | ||
14881 | ; | |
14882 | return 0; | |
14883 | } | |
14884 | _ACEOF | |
14885 | rm -f conftest.$ac_objext | |
14886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14887 | (eval $ac_compile) 2>conftest.er1 | |
14888 | ac_status=$? | |
14889 | grep -v '^ *+' conftest.er1 >conftest.err | |
14890 | rm -f conftest.er1 | |
14891 | cat conftest.err >&5 | |
14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14893 | (exit $ac_status); } && | |
3565d135 RR |
14894 | { ac_try='test -z "$ac_c_werror_flag" |
14895 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14897 | (eval $ac_try) 2>&5 | |
14898 | ac_status=$? | |
14899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14900 | (exit $ac_status); }; } && | |
14901 | { ac_try='test -s conftest.$ac_objext' | |
14902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14903 | (eval $ac_try) 2>&5 | |
14904 | ac_status=$? | |
14905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14906 | (exit $ac_status); }; }; then | |
14907 | echo "$as_me:$LINENO: result: yes" >&5 | |
14908 | echo "${ECHO_T}yes" >&6 | |
14909 | else | |
14910 | echo "$as_me: failed program was:" >&5 | |
14911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14912 | ||
14913 | echo "$as_me:$LINENO: result: no" >&5 | |
14914 | echo "${ECHO_T}no" >&6 | |
14915 | cat >>confdefs.h <<\_ACEOF | |
14916 | #define __POWERPC__ 1 | |
14917 | _ACEOF | |
14918 | ||
14919 | ||
14920 | fi | |
14921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
14922 | ;; |
14923 | esac | |
14924 | ||
14925 | case "${host}" in | |
14926 | *-*-darwin* ) | |
4d7ec9f1 DE |
14927 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
14928 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
14929 | cat >conftest.$ac_ext <<_ACEOF | |
14930 | /* confdefs.h. */ | |
14931 | _ACEOF | |
14932 | cat confdefs.h >>conftest.$ac_ext | |
14933 | cat >>conftest.$ac_ext <<_ACEOF | |
14934 | /* end confdefs.h. */ | |
14935 | #include <CoreFoundation/CFBase.h> | |
14936 | ||
14937 | int | |
14938 | main () | |
14939 | { | |
14940 | ||
14941 | ; | |
14942 | return 0; | |
14943 | } | |
14944 | _ACEOF | |
14945 | rm -f conftest.$ac_objext | |
14946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14947 | (eval $ac_compile) 2>conftest.er1 | |
14948 | ac_status=$? | |
14949 | grep -v '^ *+' conftest.er1 >conftest.err | |
14950 | rm -f conftest.er1 | |
14951 | cat conftest.err >&5 | |
14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14953 | (exit $ac_status); } && | |
3565d135 RR |
14954 | { ac_try='test -z "$ac_c_werror_flag" |
14955 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14957 | (eval $ac_try) 2>&5 | |
14958 | ac_status=$? | |
14959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14960 | (exit $ac_status); }; } && | |
14961 | { ac_try='test -s conftest.$ac_objext' | |
14962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14963 | (eval $ac_try) 2>&5 | |
14964 | ac_status=$? | |
14965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14966 | (exit $ac_status); }; }; then | |
14967 | echo "$as_me:$LINENO: result: yes" >&5 | |
14968 | echo "${ECHO_T}yes" >&6 | |
14969 | else | |
14970 | echo "$as_me: failed program was:" >&5 | |
14971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14972 | ||
14973 | echo "$as_me:$LINENO: result: no" >&5 | |
14974 | echo "${ECHO_T}no" >&6 | |
14975 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
14976 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
14977 | cat >conftest.$ac_ext <<_ACEOF | |
14978 | /* confdefs.h. */ | |
14979 | _ACEOF | |
14980 | cat confdefs.h >>conftest.$ac_ext | |
14981 | cat >>conftest.$ac_ext <<_ACEOF | |
14982 | /* end confdefs.h. */ | |
14983 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
14984 | #include <CoreFoundation/CFBase.h> | |
14985 | ||
14986 | int | |
14987 | main () | |
14988 | { | |
14989 | ||
14990 | ; | |
14991 | return 0; | |
14992 | } | |
14993 | _ACEOF | |
14994 | rm -f conftest.$ac_objext | |
14995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14996 | (eval $ac_compile) 2>conftest.er1 | |
14997 | ac_status=$? | |
14998 | grep -v '^ *+' conftest.er1 >conftest.err | |
14999 | rm -f conftest.er1 | |
15000 | cat conftest.err >&5 | |
15001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15002 | (exit $ac_status); } && | |
3565d135 RR |
15003 | { ac_try='test -z "$ac_c_werror_flag" |
15004 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15006 | (eval $ac_try) 2>&5 | |
15007 | ac_status=$? | |
15008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15009 | (exit $ac_status); }; } && | |
15010 | { ac_try='test -s conftest.$ac_objext' | |
15011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15012 | (eval $ac_try) 2>&5 | |
15013 | ac_status=$? | |
15014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15015 | (exit $ac_status); }; }; then | |
15016 | echo "$as_me:$LINENO: result: yes" >&5 | |
15017 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15018 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15019 | else |
15020 | echo "$as_me: failed program was:" >&5 | |
15021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15022 | ||
15023 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15024 | See \`config.log' for more details." >&5 | |
15025 | echo "$as_me: error: no. CoreFoundation not available. | |
15026 | See \`config.log' for more details." >&2;} | |
15027 | { (exit 1); exit 1; }; } | |
15028 | ||
15029 | fi | |
15030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15031 | ||
15032 | ||
15033 | fi | |
15034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15035 | ;; | |
15036 | esac | |
15037 | ||
a848cd7e SC |
15038 | case "${host}" in |
15039 | *-pc-os2_emx | *-pc-os2-emx ) | |
15040 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
15041 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
15042 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15043 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15045 | else | |
15046 | ac_check_lib_save_LIBS=$LIBS | |
15047 | LIBS="-lcExt $LIBS" | |
15048 | cat >conftest.$ac_ext <<_ACEOF | |
15049 | /* confdefs.h. */ | |
15050 | _ACEOF | |
15051 | cat confdefs.h >>conftest.$ac_ext | |
15052 | cat >>conftest.$ac_ext <<_ACEOF | |
15053 | /* end confdefs.h. */ | |
15054 | ||
15055 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15056 | #ifdef __cplusplus | |
15057 | extern "C" | |
15058 | #endif | |
15059 | /* We use char because int might match the return type of a gcc2 | |
15060 | builtin and then its argument prototype would still apply. */ | |
15061 | char drand48 (); | |
15062 | int | |
15063 | main () | |
15064 | { | |
15065 | drand48 (); | |
15066 | ; | |
15067 | return 0; | |
15068 | } | |
15069 | _ACEOF | |
15070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15072 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15073 | ac_status=$? |
ac1cb8d3 VS |
15074 | grep -v '^ *+' conftest.er1 >conftest.err |
15075 | rm -f conftest.er1 | |
15076 | cat conftest.err >&5 | |
a848cd7e SC |
15077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15078 | (exit $ac_status); } && | |
3565d135 RR |
15079 | { ac_try='test -z "$ac_c_werror_flag" |
15080 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15082 | (eval $ac_try) 2>&5 | |
15083 | ac_status=$? | |
15084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15085 | (exit $ac_status); }; } && | |
15086 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15088 | (eval $ac_try) 2>&5 | |
15089 | ac_status=$? | |
15090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15091 | (exit $ac_status); }; }; then | |
15092 | ac_cv_lib_cExt_drand48=yes | |
15093 | else | |
15094 | echo "$as_me: failed program was:" >&5 | |
15095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15096 | ||
15097 | ac_cv_lib_cExt_drand48=no | |
15098 | fi | |
ac1cb8d3 VS |
15099 | rm -f conftest.err conftest.$ac_objext \ |
15100 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15101 | LIBS=$ac_check_lib_save_LIBS |
15102 | fi | |
15103 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15104 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15105 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15106 | LIBS="$LIBS -lcExt" | |
15107 | fi | |
15108 | ||
15109 | else | |
15110 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15111 | fi | |
69120ee4 VZ |
15112 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15113 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15114 | if test "${wx_cv_gccversion+set}" = set; then |
15115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15116 | else | |
15117 | ||
391a765e VS |
15118 | if test "$cross_compiling" = yes; then |
15119 | wx_cv_gccversion="EMX2" | |
15120 | ||
15121 | else | |
15122 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15123 | /* confdefs.h. */ |
15124 | _ACEOF | |
15125 | cat confdefs.h >>conftest.$ac_ext | |
15126 | cat >>conftest.$ac_ext <<_ACEOF | |
15127 | /* end confdefs.h. */ | |
15128 | ||
391a765e | 15129 | #include <stdio.h> |
a848cd7e | 15130 | |
391a765e VS |
15131 | int main() |
15132 | { | |
15133 | FILE *f=fopen("conftestval", "w"); | |
15134 | if (!f) exit(1); | |
15135 | fprintf(f, | |
a848cd7e | 15136 | #if (__GNUC__ < 3) |
391a765e VS |
15137 | "EMX2" |
15138 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15139 | "EMX3" | |
15140 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15141 | "Innotek5" | |
15142 | #else | |
15143 | "Innotek6" | |
a848cd7e | 15144 | #endif |
391a765e VS |
15145 | ); |
15146 | exit(0); | |
15147 | } | |
a848cd7e | 15148 | |
a848cd7e | 15149 | _ACEOF |
391a765e VS |
15150 | rm -f conftest$ac_exeext |
15151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15152 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15153 | ac_status=$? |
15154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15157 | (eval $ac_try) 2>&5 | |
15158 | ac_status=$? | |
15159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15160 | (exit $ac_status); }; }; then | |
391a765e | 15161 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15162 | else |
391a765e VS |
15163 | echo "$as_me: program exited with status $ac_status" >&5 |
15164 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15165 | sed 's/^/| /' conftest.$ac_ext >&5 |
15166 | ||
391a765e VS |
15167 | ( exit $ac_status ) |
15168 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15169 | fi |
391a765e | 15170 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15171 | fi |
a848cd7e SC |
15172 | |
15173 | fi | |
15174 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15175 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 15176 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15177 | LIBS="$LIBS -lstdcpp" |
15178 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15179 | else | |
391a765e | 15180 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15181 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15182 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15183 | else | |
15184 | LIBS="$LIBS -lstdc++" | |
15185 | fi | |
15186 | fi | |
94acd38e DE |
15187 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15188 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15189 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15190 | wxUSE_OMF=yes | |
2da0c077 | 15191 | enable_omf=yes |
a848cd7e SC |
15192 | fi |
15193 | ;; | |
15194 | *) | |
15195 | ||
15196 | ||
15197 | ||
15198 | ac_ext=cc | |
15199 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15200 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15201 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15202 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15203 | ||
15204 | ||
95986553 | 15205 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15206 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15207 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15209 | else | |
15210 | ||
15211 | cat >conftest.$ac_ext <<_ACEOF | |
15212 | /* confdefs.h. */ | |
15213 | _ACEOF | |
15214 | cat confdefs.h >>conftest.$ac_ext | |
15215 | cat >>conftest.$ac_ext <<_ACEOF | |
15216 | /* end confdefs.h. */ | |
15217 | ||
15218 | #include <string.h> | |
15219 | ||
15220 | int | |
15221 | main () | |
15222 | { | |
15223 | ||
15224 | strcasecmp("foo", "bar"); | |
15225 | ||
15226 | ; | |
15227 | return 0; | |
15228 | } | |
15229 | _ACEOF | |
15230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15232 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15233 | ac_status=$? |
ac1cb8d3 VS |
15234 | grep -v '^ *+' conftest.er1 >conftest.err |
15235 | rm -f conftest.er1 | |
15236 | cat conftest.err >&5 | |
a848cd7e SC |
15237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15238 | (exit $ac_status); } && | |
3565d135 RR |
15239 | { ac_try='test -z "$ac_cxx_werror_flag" |
15240 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15242 | (eval $ac_try) 2>&5 | |
15243 | ac_status=$? | |
15244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15245 | (exit $ac_status); }; } && | |
15246 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15248 | (eval $ac_try) 2>&5 | |
15249 | ac_status=$? | |
15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15251 | (exit $ac_status); }; }; then | |
15252 | ac_cv_string_strcasecmp=yes | |
15253 | else | |
15254 | echo "$as_me: failed program was:" >&5 | |
15255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15256 | ||
15257 | ac_cv_string_strcasecmp=no | |
15258 | ||
15259 | fi | |
ac1cb8d3 VS |
15260 | rm -f conftest.err conftest.$ac_objext \ |
15261 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15262 | |
15263 | fi | |
15264 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15265 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15266 | ||
15267 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15268 | cat >>confdefs.h <<\_ACEOF | |
15269 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15270 | _ACEOF | |
15271 | ||
15272 | else | |
15273 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15274 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15275 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15277 | else | |
15278 | ||
15279 | cat >conftest.$ac_ext <<_ACEOF | |
15280 | /* confdefs.h. */ | |
15281 | _ACEOF | |
15282 | cat confdefs.h >>conftest.$ac_ext | |
15283 | cat >>conftest.$ac_ext <<_ACEOF | |
15284 | /* end confdefs.h. */ | |
15285 | ||
15286 | #include <strings.h> | |
15287 | ||
15288 | int | |
15289 | main () | |
15290 | { | |
15291 | ||
15292 | strcasecmp("foo", "bar"); | |
15293 | ||
15294 | ; | |
15295 | return 0; | |
15296 | } | |
15297 | _ACEOF | |
15298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15300 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15301 | ac_status=$? |
ac1cb8d3 VS |
15302 | grep -v '^ *+' conftest.er1 >conftest.err |
15303 | rm -f conftest.er1 | |
15304 | cat conftest.err >&5 | |
a848cd7e SC |
15305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15306 | (exit $ac_status); } && | |
3565d135 RR |
15307 | { ac_try='test -z "$ac_cxx_werror_flag" |
15308 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15310 | (eval $ac_try) 2>&5 | |
15311 | ac_status=$? | |
15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15313 | (exit $ac_status); }; } && | |
15314 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15316 | (eval $ac_try) 2>&5 | |
15317 | ac_status=$? | |
15318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15319 | (exit $ac_status); }; }; then | |
15320 | ac_cv_strings_strcasecmp=yes | |
15321 | else | |
15322 | echo "$as_me: failed program was:" >&5 | |
15323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15324 | ||
15325 | ac_cv_strings_strcasecmp=no | |
15326 | ||
15327 | fi | |
ac1cb8d3 VS |
15328 | rm -f conftest.err conftest.$ac_objext \ |
15329 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15330 | |
15331 | fi | |
15332 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15333 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15334 | ||
0c3c69fc | 15335 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15336 | cat >>confdefs.h <<\_ACEOF |
15337 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15338 | _ACEOF | |
15339 | ||
15340 | else | |
15341 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15342 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15343 | { (exit 1); exit 1; }; } | |
15344 | fi | |
15345 | fi | |
15346 | ||
15347 | ac_ext=c | |
15348 | ac_cpp='$CPP $CPPFLAGS' | |
15349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15352 | ||
15353 | ;; | |
15354 | esac | |
15355 | ||
15356 | ||
15357 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
15358 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
15359 | if test "${ac_cv_header_stdc+set}" = set; then | |
15360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15361 | else | |
15362 | cat >conftest.$ac_ext <<_ACEOF | |
15363 | /* confdefs.h. */ | |
15364 | _ACEOF | |
15365 | cat confdefs.h >>conftest.$ac_ext | |
15366 | cat >>conftest.$ac_ext <<_ACEOF | |
15367 | /* end confdefs.h. */ | |
15368 | #include <stdlib.h> | |
15369 | #include <stdarg.h> | |
15370 | #include <string.h> | |
15371 | #include <float.h> | |
15372 | ||
15373 | int | |
15374 | main () | |
15375 | { | |
15376 | ||
15377 | ; | |
15378 | return 0; | |
15379 | } | |
15380 | _ACEOF | |
15381 | rm -f conftest.$ac_objext | |
15382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15383 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15384 | ac_status=$? |
ac1cb8d3 VS |
15385 | grep -v '^ *+' conftest.er1 >conftest.err |
15386 | rm -f conftest.er1 | |
15387 | cat conftest.err >&5 | |
a848cd7e SC |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15389 | (exit $ac_status); } && | |
3565d135 RR |
15390 | { ac_try='test -z "$ac_c_werror_flag" |
15391 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15393 | (eval $ac_try) 2>&5 | |
15394 | ac_status=$? | |
15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15396 | (exit $ac_status); }; } && | |
15397 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15399 | (eval $ac_try) 2>&5 | |
15400 | ac_status=$? | |
15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15402 | (exit $ac_status); }; }; then | |
15403 | ac_cv_header_stdc=yes | |
15404 | else | |
15405 | echo "$as_me: failed program was:" >&5 | |
15406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15407 | ||
15408 | ac_cv_header_stdc=no | |
15409 | fi | |
ac1cb8d3 | 15410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15411 | |
15412 | if test $ac_cv_header_stdc = yes; then | |
15413 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15414 | cat >conftest.$ac_ext <<_ACEOF | |
15415 | /* confdefs.h. */ | |
15416 | _ACEOF | |
15417 | cat confdefs.h >>conftest.$ac_ext | |
15418 | cat >>conftest.$ac_ext <<_ACEOF | |
15419 | /* end confdefs.h. */ | |
15420 | #include <string.h> | |
15421 | ||
15422 | _ACEOF | |
15423 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15424 | $EGREP "memchr" >/dev/null 2>&1; then | |
15425 | : | |
15426 | else | |
15427 | ac_cv_header_stdc=no | |
15428 | fi | |
15429 | rm -f conftest* | |
15430 | ||
15431 | fi | |
15432 | ||
15433 | if test $ac_cv_header_stdc = yes; then | |
15434 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15435 | cat >conftest.$ac_ext <<_ACEOF | |
15436 | /* confdefs.h. */ | |
15437 | _ACEOF | |
15438 | cat confdefs.h >>conftest.$ac_ext | |
15439 | cat >>conftest.$ac_ext <<_ACEOF | |
15440 | /* end confdefs.h. */ | |
15441 | #include <stdlib.h> | |
15442 | ||
15443 | _ACEOF | |
15444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15445 | $EGREP "free" >/dev/null 2>&1; then | |
15446 | : | |
15447 | else | |
15448 | ac_cv_header_stdc=no | |
15449 | fi | |
15450 | rm -f conftest* | |
15451 | ||
15452 | fi | |
15453 | ||
15454 | if test $ac_cv_header_stdc = yes; then | |
15455 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15456 | if test "$cross_compiling" = yes; then | |
15457 | : | |
15458 | else | |
15459 | cat >conftest.$ac_ext <<_ACEOF | |
15460 | /* confdefs.h. */ | |
15461 | _ACEOF | |
15462 | cat confdefs.h >>conftest.$ac_ext | |
15463 | cat >>conftest.$ac_ext <<_ACEOF | |
15464 | /* end confdefs.h. */ | |
15465 | #include <ctype.h> | |
15466 | #if ((' ' & 0x0FF) == 0x020) | |
15467 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15468 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15469 | #else | |
15470 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15471 | (('a' <= (c) && (c) <= 'i') \ |
15472 | || ('j' <= (c) && (c) <= 'r') \ | |
15473 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15474 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15475 | #endif | |
15476 | ||
15477 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15478 | int | |
15479 | main () | |
15480 | { | |
15481 | int i; | |
15482 | for (i = 0; i < 256; i++) | |
15483 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15484 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15485 | exit(2); |
15486 | exit (0); | |
15487 | } | |
15488 | _ACEOF | |
15489 | rm -f conftest$ac_exeext | |
15490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15491 | (eval $ac_link) 2>&5 | |
15492 | ac_status=$? | |
15493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15494 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15496 | (eval $ac_try) 2>&5 | |
15497 | ac_status=$? | |
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15499 | (exit $ac_status); }; }; then | |
15500 | : | |
15501 | else | |
15502 | echo "$as_me: program exited with status $ac_status" >&5 | |
15503 | echo "$as_me: failed program was:" >&5 | |
15504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15505 | ||
15506 | ( exit $ac_status ) | |
15507 | ac_cv_header_stdc=no | |
15508 | fi | |
ac1cb8d3 | 15509 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15510 | fi |
15511 | fi | |
15512 | fi | |
15513 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15514 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15515 | if test $ac_cv_header_stdc = yes; then | |
15516 | ||
15517 | cat >>confdefs.h <<\_ACEOF | |
15518 | #define STDC_HEADERS 1 | |
15519 | _ACEOF | |
15520 | ||
15521 | fi | |
15522 | ||
15523 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15524 | ||
15525 | ||
15526 | ||
15527 | ||
15528 | ||
15529 | ||
15530 | ||
15531 | ||
15532 | ||
15533 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15534 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15535 | do |
15536 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15537 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15541 | else | |
15542 | cat >conftest.$ac_ext <<_ACEOF | |
15543 | /* confdefs.h. */ | |
15544 | _ACEOF | |
15545 | cat confdefs.h >>conftest.$ac_ext | |
15546 | cat >>conftest.$ac_ext <<_ACEOF | |
15547 | /* end confdefs.h. */ | |
15548 | $ac_includes_default | |
15549 | ||
15550 | #include <$ac_header> | |
15551 | _ACEOF | |
15552 | rm -f conftest.$ac_objext | |
15553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15554 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15555 | ac_status=$? |
ac1cb8d3 VS |
15556 | grep -v '^ *+' conftest.er1 >conftest.err |
15557 | rm -f conftest.er1 | |
15558 | cat conftest.err >&5 | |
a848cd7e SC |
15559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15560 | (exit $ac_status); } && | |
3565d135 RR |
15561 | { ac_try='test -z "$ac_c_werror_flag" |
15562 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15564 | (eval $ac_try) 2>&5 | |
15565 | ac_status=$? | |
15566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15567 | (exit $ac_status); }; } && | |
15568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15570 | (eval $ac_try) 2>&5 | |
15571 | ac_status=$? | |
15572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15573 | (exit $ac_status); }; }; then | |
15574 | eval "$as_ac_Header=yes" | |
15575 | else | |
15576 | echo "$as_me: failed program was:" >&5 | |
15577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15578 | ||
15579 | eval "$as_ac_Header=no" | |
15580 | fi | |
ac1cb8d3 | 15581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15582 | fi |
15583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15584 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15585 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15586 | cat >>confdefs.h <<_ACEOF | |
15587 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15588 | _ACEOF | |
15589 | ||
15590 | fi | |
15591 | ||
15592 | done | |
15593 | ||
15594 | ||
15595 | ||
15596 | for ac_header in stdlib.h | |
15597 | do | |
15598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15604 | fi | |
15605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15607 | else | |
15608 | # Is the header compilable? | |
15609 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15610 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15611 | cat >conftest.$ac_ext <<_ACEOF | |
15612 | /* confdefs.h. */ | |
15613 | _ACEOF | |
15614 | cat confdefs.h >>conftest.$ac_ext | |
15615 | cat >>conftest.$ac_ext <<_ACEOF | |
15616 | /* end confdefs.h. */ | |
15617 | $ac_includes_default | |
15618 | #include <$ac_header> | |
15619 | _ACEOF | |
15620 | rm -f conftest.$ac_objext | |
15621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15623 | ac_status=$? |
ac1cb8d3 VS |
15624 | grep -v '^ *+' conftest.er1 >conftest.err |
15625 | rm -f conftest.er1 | |
15626 | cat conftest.err >&5 | |
a848cd7e SC |
15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15628 | (exit $ac_status); } && | |
3565d135 RR |
15629 | { ac_try='test -z "$ac_c_werror_flag" |
15630 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15632 | (eval $ac_try) 2>&5 | |
15633 | ac_status=$? | |
15634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15635 | (exit $ac_status); }; } && | |
15636 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15638 | (eval $ac_try) 2>&5 | |
15639 | ac_status=$? | |
15640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15641 | (exit $ac_status); }; }; then | |
15642 | ac_header_compiler=yes | |
15643 | else | |
15644 | echo "$as_me: failed program was:" >&5 | |
15645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15646 | ||
15647 | ac_header_compiler=no | |
15648 | fi | |
ac1cb8d3 | 15649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15650 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15651 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15652 | ||
15653 | # Is the header present? | |
15654 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15655 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15656 | cat >conftest.$ac_ext <<_ACEOF | |
15657 | /* confdefs.h. */ | |
15658 | _ACEOF | |
15659 | cat confdefs.h >>conftest.$ac_ext | |
15660 | cat >>conftest.$ac_ext <<_ACEOF | |
15661 | /* end confdefs.h. */ | |
15662 | #include <$ac_header> | |
15663 | _ACEOF | |
15664 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15665 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15666 | ac_status=$? | |
15667 | grep -v '^ *+' conftest.er1 >conftest.err | |
15668 | rm -f conftest.er1 | |
15669 | cat conftest.err >&5 | |
15670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15671 | (exit $ac_status); } >/dev/null; then | |
15672 | if test -s conftest.err; then | |
15673 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15674 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15675 | else |
15676 | ac_cpp_err= | |
15677 | fi | |
15678 | else | |
15679 | ac_cpp_err=yes | |
15680 | fi | |
15681 | if test -z "$ac_cpp_err"; then | |
15682 | ac_header_preproc=yes | |
15683 | else | |
15684 | echo "$as_me: failed program was:" >&5 | |
15685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15686 | ||
15687 | ac_header_preproc=no | |
15688 | fi | |
15689 | rm -f conftest.err conftest.$ac_ext | |
15690 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15691 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15692 | ||
15693 | # So? What about this header? | |
ac1cb8d3 VS |
15694 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15695 | yes:no: ) | |
a848cd7e SC |
15696 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15697 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15699 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15700 | ac_header_preproc=yes | |
a848cd7e | 15701 | ;; |
ac1cb8d3 | 15702 | no:yes:* ) |
a848cd7e SC |
15703 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15704 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15705 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15706 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15707 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15708 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15709 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15710 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15712 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15713 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15714 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15715 | ( |
15716 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15717 | ## ----------------------------------------- ## |
15718 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15719 | ## ----------------------------------------- ## | |
a848cd7e SC |
15720 | _ASBOX |
15721 | ) | | |
15722 | sed "s/^/$as_me: WARNING: /" >&2 | |
15723 | ;; | |
15724 | esac | |
15725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15729 | else | |
ac1cb8d3 | 15730 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15731 | fi |
15732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15734 | ||
15735 | fi | |
15736 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15737 | cat >>confdefs.h <<_ACEOF | |
15738 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15739 | _ACEOF | |
15740 | ||
15741 | fi | |
15742 | ||
15743 | done | |
15744 | ||
15745 | ||
15746 | for ac_header in malloc.h | |
15747 | do | |
15748 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15750 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15751 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15752 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15754 | fi | |
15755 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15756 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15757 | else | |
15758 | # Is the header compilable? | |
15759 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15760 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15761 | cat >conftest.$ac_ext <<_ACEOF | |
15762 | /* confdefs.h. */ | |
15763 | _ACEOF | |
15764 | cat confdefs.h >>conftest.$ac_ext | |
15765 | cat >>conftest.$ac_ext <<_ACEOF | |
15766 | /* end confdefs.h. */ | |
15767 | $ac_includes_default | |
15768 | #include <$ac_header> | |
15769 | _ACEOF | |
15770 | rm -f conftest.$ac_objext | |
15771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15772 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15773 | ac_status=$? |
ac1cb8d3 VS |
15774 | grep -v '^ *+' conftest.er1 >conftest.err |
15775 | rm -f conftest.er1 | |
15776 | cat conftest.err >&5 | |
a848cd7e SC |
15777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15778 | (exit $ac_status); } && | |
3565d135 RR |
15779 | { ac_try='test -z "$ac_c_werror_flag" |
15780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15782 | (eval $ac_try) 2>&5 | |
15783 | ac_status=$? | |
15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15785 | (exit $ac_status); }; } && | |
15786 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15788 | (eval $ac_try) 2>&5 | |
15789 | ac_status=$? | |
15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15791 | (exit $ac_status); }; }; then | |
15792 | ac_header_compiler=yes | |
15793 | else | |
15794 | echo "$as_me: failed program was:" >&5 | |
15795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15796 | ||
15797 | ac_header_compiler=no | |
15798 | fi | |
ac1cb8d3 | 15799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15800 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15801 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15802 | ||
15803 | # Is the header present? | |
15804 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15805 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15806 | cat >conftest.$ac_ext <<_ACEOF | |
15807 | /* confdefs.h. */ | |
15808 | _ACEOF | |
15809 | cat confdefs.h >>conftest.$ac_ext | |
15810 | cat >>conftest.$ac_ext <<_ACEOF | |
15811 | /* end confdefs.h. */ | |
15812 | #include <$ac_header> | |
15813 | _ACEOF | |
15814 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15815 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15816 | ac_status=$? | |
15817 | grep -v '^ *+' conftest.er1 >conftest.err | |
15818 | rm -f conftest.er1 | |
15819 | cat conftest.err >&5 | |
15820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15821 | (exit $ac_status); } >/dev/null; then | |
15822 | if test -s conftest.err; then | |
15823 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15824 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15825 | else |
15826 | ac_cpp_err= | |
15827 | fi | |
15828 | else | |
15829 | ac_cpp_err=yes | |
15830 | fi | |
15831 | if test -z "$ac_cpp_err"; then | |
15832 | ac_header_preproc=yes | |
15833 | else | |
15834 | echo "$as_me: failed program was:" >&5 | |
15835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15836 | ||
15837 | ac_header_preproc=no | |
15838 | fi | |
15839 | rm -f conftest.err conftest.$ac_ext | |
15840 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15841 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15842 | ||
15843 | # So? What about this header? | |
ac1cb8d3 VS |
15844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15845 | yes:no: ) | |
a848cd7e SC |
15846 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15847 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15848 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15849 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15850 | ac_header_preproc=yes | |
a848cd7e | 15851 | ;; |
ac1cb8d3 | 15852 | no:yes:* ) |
a848cd7e SC |
15853 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15854 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15855 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15856 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15857 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15858 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15859 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15860 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15862 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15863 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15864 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15865 | ( |
15866 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15867 | ## ----------------------------------------- ## |
15868 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15869 | ## ----------------------------------------- ## | |
a848cd7e SC |
15870 | _ASBOX |
15871 | ) | | |
15872 | sed "s/^/$as_me: WARNING: /" >&2 | |
15873 | ;; | |
15874 | esac | |
15875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15879 | else | |
ac1cb8d3 | 15880 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15881 | fi |
15882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15884 | ||
15885 | fi | |
15886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15887 | cat >>confdefs.h <<_ACEOF | |
15888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15889 | _ACEOF | |
15890 | ||
15891 | fi | |
15892 | ||
15893 | done | |
15894 | ||
15895 | ||
15896 | for ac_header in unistd.h | |
15897 | do | |
15898 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15899 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15904 | fi | |
15905 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15906 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15907 | else | |
15908 | # Is the header compilable? | |
15909 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15910 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15911 | cat >conftest.$ac_ext <<_ACEOF | |
15912 | /* confdefs.h. */ | |
15913 | _ACEOF | |
15914 | cat confdefs.h >>conftest.$ac_ext | |
15915 | cat >>conftest.$ac_ext <<_ACEOF | |
15916 | /* end confdefs.h. */ | |
15917 | $ac_includes_default | |
15918 | #include <$ac_header> | |
15919 | _ACEOF | |
15920 | rm -f conftest.$ac_objext | |
15921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15922 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15923 | ac_status=$? |
ac1cb8d3 VS |
15924 | grep -v '^ *+' conftest.er1 >conftest.err |
15925 | rm -f conftest.er1 | |
15926 | cat conftest.err >&5 | |
a848cd7e SC |
15927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15928 | (exit $ac_status); } && | |
3565d135 RR |
15929 | { ac_try='test -z "$ac_c_werror_flag" |
15930 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15932 | (eval $ac_try) 2>&5 | |
15933 | ac_status=$? | |
15934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15935 | (exit $ac_status); }; } && | |
15936 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15938 | (eval $ac_try) 2>&5 | |
15939 | ac_status=$? | |
15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15941 | (exit $ac_status); }; }; then | |
15942 | ac_header_compiler=yes | |
15943 | else | |
15944 | echo "$as_me: failed program was:" >&5 | |
15945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15946 | ||
15947 | ac_header_compiler=no | |
15948 | fi | |
ac1cb8d3 | 15949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15950 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15951 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15952 | ||
15953 | # Is the header present? | |
15954 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15955 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15956 | cat >conftest.$ac_ext <<_ACEOF | |
15957 | /* confdefs.h. */ | |
15958 | _ACEOF | |
15959 | cat confdefs.h >>conftest.$ac_ext | |
15960 | cat >>conftest.$ac_ext <<_ACEOF | |
15961 | /* end confdefs.h. */ | |
15962 | #include <$ac_header> | |
15963 | _ACEOF | |
15964 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15965 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15966 | ac_status=$? | |
15967 | grep -v '^ *+' conftest.er1 >conftest.err | |
15968 | rm -f conftest.er1 | |
15969 | cat conftest.err >&5 | |
15970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15971 | (exit $ac_status); } >/dev/null; then | |
15972 | if test -s conftest.err; then | |
15973 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15974 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15975 | else |
15976 | ac_cpp_err= | |
15977 | fi | |
15978 | else | |
15979 | ac_cpp_err=yes | |
15980 | fi | |
15981 | if test -z "$ac_cpp_err"; then | |
15982 | ac_header_preproc=yes | |
15983 | else | |
15984 | echo "$as_me: failed program was:" >&5 | |
15985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15986 | ||
15987 | ac_header_preproc=no | |
15988 | fi | |
15989 | rm -f conftest.err conftest.$ac_ext | |
15990 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15991 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15992 | ||
15993 | # So? What about this header? | |
ac1cb8d3 VS |
15994 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15995 | yes:no: ) | |
a848cd7e SC |
15996 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15997 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15999 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16000 | ac_header_preproc=yes | |
a848cd7e | 16001 | ;; |
ac1cb8d3 | 16002 | no:yes:* ) |
a848cd7e SC |
16003 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16004 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16005 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16006 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16007 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16008 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16009 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16010 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16013 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16014 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16015 | ( |
16016 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16017 | ## ----------------------------------------- ## |
16018 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16019 | ## ----------------------------------------- ## | |
a848cd7e SC |
16020 | _ASBOX |
16021 | ) | | |
16022 | sed "s/^/$as_me: WARNING: /" >&2 | |
16023 | ;; | |
16024 | esac | |
16025 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16029 | else | |
ac1cb8d3 | 16030 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16031 | fi |
16032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16033 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16034 | ||
16035 | fi | |
16036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16037 | cat >>confdefs.h <<_ACEOF | |
16038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16039 | _ACEOF | |
16040 | ||
16041 | fi | |
16042 | ||
16043 | done | |
16044 | ||
16045 | ||
16046 | for ac_header in wchar.h | |
16047 | do | |
16048 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16050 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16054 | fi | |
16055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16056 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16057 | else | |
16058 | # Is the header compilable? | |
16059 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16060 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16061 | cat >conftest.$ac_ext <<_ACEOF | |
16062 | /* confdefs.h. */ | |
16063 | _ACEOF | |
16064 | cat confdefs.h >>conftest.$ac_ext | |
16065 | cat >>conftest.$ac_ext <<_ACEOF | |
16066 | /* end confdefs.h. */ | |
16067 | $ac_includes_default | |
16068 | #include <$ac_header> | |
16069 | _ACEOF | |
16070 | rm -f conftest.$ac_objext | |
16071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16072 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16073 | ac_status=$? |
ac1cb8d3 VS |
16074 | grep -v '^ *+' conftest.er1 >conftest.err |
16075 | rm -f conftest.er1 | |
16076 | cat conftest.err >&5 | |
a848cd7e SC |
16077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16078 | (exit $ac_status); } && | |
3565d135 RR |
16079 | { ac_try='test -z "$ac_c_werror_flag" |
16080 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16082 | (eval $ac_try) 2>&5 | |
16083 | ac_status=$? | |
16084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16085 | (exit $ac_status); }; } && | |
16086 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16088 | (eval $ac_try) 2>&5 | |
16089 | ac_status=$? | |
16090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16091 | (exit $ac_status); }; }; then | |
16092 | ac_header_compiler=yes | |
16093 | else | |
16094 | echo "$as_me: failed program was:" >&5 | |
16095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16096 | ||
16097 | ac_header_compiler=no | |
16098 | fi | |
ac1cb8d3 | 16099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16100 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16101 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16102 | ||
16103 | # Is the header present? | |
16104 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16105 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16106 | cat >conftest.$ac_ext <<_ACEOF | |
16107 | /* confdefs.h. */ | |
16108 | _ACEOF | |
16109 | cat confdefs.h >>conftest.$ac_ext | |
16110 | cat >>conftest.$ac_ext <<_ACEOF | |
16111 | /* end confdefs.h. */ | |
16112 | #include <$ac_header> | |
16113 | _ACEOF | |
16114 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16116 | ac_status=$? | |
16117 | grep -v '^ *+' conftest.er1 >conftest.err | |
16118 | rm -f conftest.er1 | |
16119 | cat conftest.err >&5 | |
16120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16121 | (exit $ac_status); } >/dev/null; then | |
16122 | if test -s conftest.err; then | |
16123 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16124 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16125 | else |
16126 | ac_cpp_err= | |
16127 | fi | |
16128 | else | |
16129 | ac_cpp_err=yes | |
16130 | fi | |
16131 | if test -z "$ac_cpp_err"; then | |
16132 | ac_header_preproc=yes | |
16133 | else | |
16134 | echo "$as_me: failed program was:" >&5 | |
16135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16136 | ||
16137 | ac_header_preproc=no | |
16138 | fi | |
16139 | rm -f conftest.err conftest.$ac_ext | |
16140 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16141 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16142 | ||
16143 | # So? What about this header? | |
ac1cb8d3 VS |
16144 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16145 | yes:no: ) | |
a848cd7e SC |
16146 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16147 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16148 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16149 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16150 | ac_header_preproc=yes | |
a848cd7e | 16151 | ;; |
ac1cb8d3 | 16152 | no:yes:* ) |
a848cd7e SC |
16153 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16154 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16155 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16156 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16157 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16158 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16159 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16160 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16162 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16163 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16164 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16165 | ( |
16166 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16167 | ## ----------------------------------------- ## |
16168 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16169 | ## ----------------------------------------- ## | |
a848cd7e SC |
16170 | _ASBOX |
16171 | ) | | |
16172 | sed "s/^/$as_me: WARNING: /" >&2 | |
16173 | ;; | |
16174 | esac | |
16175 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16176 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16179 | else | |
ac1cb8d3 | 16180 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16181 | fi |
16182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16184 | ||
16185 | fi | |
16186 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16187 | cat >>confdefs.h <<_ACEOF | |
16188 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16189 | _ACEOF | |
16190 | ||
16191 | fi | |
16192 | ||
16193 | done | |
16194 | ||
16195 | ||
16196 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16197 | ||
16198 | for ac_header in wcstr.h | |
16199 | do | |
16200 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16201 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16206 | fi | |
16207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16209 | else | |
16210 | # Is the header compilable? | |
16211 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16212 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16213 | cat >conftest.$ac_ext <<_ACEOF | |
16214 | /* confdefs.h. */ | |
16215 | _ACEOF | |
16216 | cat confdefs.h >>conftest.$ac_ext | |
16217 | cat >>conftest.$ac_ext <<_ACEOF | |
16218 | /* end confdefs.h. */ | |
16219 | $ac_includes_default | |
16220 | #include <$ac_header> | |
16221 | _ACEOF | |
16222 | rm -f conftest.$ac_objext | |
16223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16224 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16225 | ac_status=$? |
ac1cb8d3 VS |
16226 | grep -v '^ *+' conftest.er1 >conftest.err |
16227 | rm -f conftest.er1 | |
16228 | cat conftest.err >&5 | |
a848cd7e SC |
16229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16230 | (exit $ac_status); } && | |
3565d135 RR |
16231 | { ac_try='test -z "$ac_c_werror_flag" |
16232 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16234 | (eval $ac_try) 2>&5 | |
16235 | ac_status=$? | |
16236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16237 | (exit $ac_status); }; } && | |
16238 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16240 | (eval $ac_try) 2>&5 | |
16241 | ac_status=$? | |
16242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16243 | (exit $ac_status); }; }; then | |
16244 | ac_header_compiler=yes | |
16245 | else | |
16246 | echo "$as_me: failed program was:" >&5 | |
16247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16248 | ||
16249 | ac_header_compiler=no | |
16250 | fi | |
ac1cb8d3 | 16251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16252 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16253 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16254 | ||
16255 | # Is the header present? | |
16256 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16257 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16258 | cat >conftest.$ac_ext <<_ACEOF | |
16259 | /* confdefs.h. */ | |
16260 | _ACEOF | |
16261 | cat confdefs.h >>conftest.$ac_ext | |
16262 | cat >>conftest.$ac_ext <<_ACEOF | |
16263 | /* end confdefs.h. */ | |
16264 | #include <$ac_header> | |
16265 | _ACEOF | |
16266 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16267 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16268 | ac_status=$? | |
16269 | grep -v '^ *+' conftest.er1 >conftest.err | |
16270 | rm -f conftest.er1 | |
16271 | cat conftest.err >&5 | |
16272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16273 | (exit $ac_status); } >/dev/null; then | |
16274 | if test -s conftest.err; then | |
16275 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16276 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16277 | else |
16278 | ac_cpp_err= | |
16279 | fi | |
16280 | else | |
16281 | ac_cpp_err=yes | |
16282 | fi | |
16283 | if test -z "$ac_cpp_err"; then | |
16284 | ac_header_preproc=yes | |
16285 | else | |
16286 | echo "$as_me: failed program was:" >&5 | |
16287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16288 | ||
16289 | ac_header_preproc=no | |
16290 | fi | |
16291 | rm -f conftest.err conftest.$ac_ext | |
16292 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16293 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16294 | ||
16295 | # So? What about this header? | |
ac1cb8d3 VS |
16296 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16297 | yes:no: ) | |
a848cd7e SC |
16298 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16299 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16300 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16301 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16302 | ac_header_preproc=yes | |
a848cd7e | 16303 | ;; |
ac1cb8d3 | 16304 | no:yes:* ) |
a848cd7e SC |
16305 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16306 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16307 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16308 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16309 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16310 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16311 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16312 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16313 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16314 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16315 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16316 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16317 | ( |
16318 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16319 | ## ----------------------------------------- ## |
16320 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16321 | ## ----------------------------------------- ## | |
a848cd7e SC |
16322 | _ASBOX |
16323 | ) | | |
16324 | sed "s/^/$as_me: WARNING: /" >&2 | |
16325 | ;; | |
16326 | esac | |
16327 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16331 | else | |
ac1cb8d3 | 16332 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16333 | fi |
16334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16335 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16336 | ||
16337 | fi | |
16338 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16339 | cat >>confdefs.h <<_ACEOF | |
16340 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16341 | _ACEOF | |
16342 | ||
16343 | fi | |
16344 | ||
16345 | done | |
16346 | ||
16347 | fi | |
16348 | ||
16349 | ||
16350 | for ac_header in fnmatch.h | |
16351 | do | |
16352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16358 | fi | |
16359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16361 | else | |
16362 | # Is the header compilable? | |
16363 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16364 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16365 | cat >conftest.$ac_ext <<_ACEOF | |
16366 | /* confdefs.h. */ | |
16367 | _ACEOF | |
16368 | cat confdefs.h >>conftest.$ac_ext | |
16369 | cat >>conftest.$ac_ext <<_ACEOF | |
16370 | /* end confdefs.h. */ | |
16371 | $ac_includes_default | |
16372 | #include <$ac_header> | |
16373 | _ACEOF | |
16374 | rm -f conftest.$ac_objext | |
16375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16376 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16377 | ac_status=$? |
ac1cb8d3 VS |
16378 | grep -v '^ *+' conftest.er1 >conftest.err |
16379 | rm -f conftest.er1 | |
16380 | cat conftest.err >&5 | |
a848cd7e SC |
16381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16382 | (exit $ac_status); } && | |
3565d135 RR |
16383 | { ac_try='test -z "$ac_c_werror_flag" |
16384 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16386 | (eval $ac_try) 2>&5 | |
16387 | ac_status=$? | |
16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16389 | (exit $ac_status); }; } && | |
16390 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16392 | (eval $ac_try) 2>&5 | |
16393 | ac_status=$? | |
16394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16395 | (exit $ac_status); }; }; then | |
16396 | ac_header_compiler=yes | |
16397 | else | |
16398 | echo "$as_me: failed program was:" >&5 | |
16399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16400 | ||
16401 | ac_header_compiler=no | |
16402 | fi | |
ac1cb8d3 | 16403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16404 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16405 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16406 | ||
16407 | # Is the header present? | |
16408 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16409 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16410 | cat >conftest.$ac_ext <<_ACEOF | |
16411 | /* confdefs.h. */ | |
16412 | _ACEOF | |
16413 | cat confdefs.h >>conftest.$ac_ext | |
16414 | cat >>conftest.$ac_ext <<_ACEOF | |
16415 | /* end confdefs.h. */ | |
16416 | #include <$ac_header> | |
16417 | _ACEOF | |
16418 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16419 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16420 | ac_status=$? | |
16421 | grep -v '^ *+' conftest.er1 >conftest.err | |
16422 | rm -f conftest.er1 | |
16423 | cat conftest.err >&5 | |
16424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16425 | (exit $ac_status); } >/dev/null; then | |
16426 | if test -s conftest.err; then | |
16427 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16429 | else |
16430 | ac_cpp_err= | |
16431 | fi | |
16432 | else | |
16433 | ac_cpp_err=yes | |
16434 | fi | |
16435 | if test -z "$ac_cpp_err"; then | |
16436 | ac_header_preproc=yes | |
16437 | else | |
16438 | echo "$as_me: failed program was:" >&5 | |
16439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16440 | ||
16441 | ac_header_preproc=no | |
16442 | fi | |
16443 | rm -f conftest.err conftest.$ac_ext | |
16444 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16445 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16446 | ||
16447 | # So? What about this header? | |
ac1cb8d3 VS |
16448 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16449 | yes:no: ) | |
a848cd7e SC |
16450 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16451 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16452 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16453 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16454 | ac_header_preproc=yes | |
a848cd7e | 16455 | ;; |
ac1cb8d3 | 16456 | no:yes:* ) |
a848cd7e SC |
16457 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16458 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16459 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16460 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16461 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16462 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16463 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16464 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16465 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16466 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16467 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16468 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16469 | ( |
16470 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16471 | ## ----------------------------------------- ## |
16472 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16473 | ## ----------------------------------------- ## | |
a848cd7e SC |
16474 | _ASBOX |
16475 | ) | | |
16476 | sed "s/^/$as_me: WARNING: /" >&2 | |
16477 | ;; | |
16478 | esac | |
16479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16483 | else | |
ac1cb8d3 | 16484 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16485 | fi |
16486 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16487 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16488 | ||
16489 | fi | |
16490 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16491 | cat >>confdefs.h <<_ACEOF | |
16492 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16493 | _ACEOF | |
16494 | ||
16495 | fi | |
16496 | ||
16497 | done | |
16498 | ||
16499 | ||
a848cd7e SC |
16500 | |
16501 | for ac_header in langinfo.h | |
16502 | do | |
16503 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16509 | fi | |
16510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16512 | else | |
16513 | # Is the header compilable? | |
16514 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16515 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16516 | cat >conftest.$ac_ext <<_ACEOF | |
16517 | /* confdefs.h. */ | |
16518 | _ACEOF | |
16519 | cat confdefs.h >>conftest.$ac_ext | |
16520 | cat >>conftest.$ac_ext <<_ACEOF | |
16521 | /* end confdefs.h. */ | |
16522 | $ac_includes_default | |
16523 | #include <$ac_header> | |
16524 | _ACEOF | |
16525 | rm -f conftest.$ac_objext | |
16526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16528 | ac_status=$? |
ac1cb8d3 VS |
16529 | grep -v '^ *+' conftest.er1 >conftest.err |
16530 | rm -f conftest.er1 | |
16531 | cat conftest.err >&5 | |
a848cd7e SC |
16532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16533 | (exit $ac_status); } && | |
3565d135 RR |
16534 | { ac_try='test -z "$ac_c_werror_flag" |
16535 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16537 | (eval $ac_try) 2>&5 | |
16538 | ac_status=$? | |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16540 | (exit $ac_status); }; } && | |
16541 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16543 | (eval $ac_try) 2>&5 | |
16544 | ac_status=$? | |
16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16546 | (exit $ac_status); }; }; then | |
16547 | ac_header_compiler=yes | |
16548 | else | |
16549 | echo "$as_me: failed program was:" >&5 | |
16550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16551 | ||
16552 | ac_header_compiler=no | |
16553 | fi | |
ac1cb8d3 | 16554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16555 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16556 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16557 | ||
16558 | # Is the header present? | |
16559 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16560 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16561 | cat >conftest.$ac_ext <<_ACEOF | |
16562 | /* confdefs.h. */ | |
16563 | _ACEOF | |
16564 | cat confdefs.h >>conftest.$ac_ext | |
16565 | cat >>conftest.$ac_ext <<_ACEOF | |
16566 | /* end confdefs.h. */ | |
16567 | #include <$ac_header> | |
16568 | _ACEOF | |
16569 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16570 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16571 | ac_status=$? | |
16572 | grep -v '^ *+' conftest.er1 >conftest.err | |
16573 | rm -f conftest.er1 | |
16574 | cat conftest.err >&5 | |
16575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16576 | (exit $ac_status); } >/dev/null; then | |
16577 | if test -s conftest.err; then | |
16578 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16579 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16580 | else |
16581 | ac_cpp_err= | |
16582 | fi | |
16583 | else | |
16584 | ac_cpp_err=yes | |
16585 | fi | |
16586 | if test -z "$ac_cpp_err"; then | |
16587 | ac_header_preproc=yes | |
16588 | else | |
16589 | echo "$as_me: failed program was:" >&5 | |
16590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16591 | ||
16592 | ac_header_preproc=no | |
16593 | fi | |
16594 | rm -f conftest.err conftest.$ac_ext | |
16595 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16596 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16597 | ||
16598 | # So? What about this header? | |
ac1cb8d3 VS |
16599 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16600 | yes:no: ) | |
a848cd7e SC |
16601 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16602 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16603 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16604 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16605 | ac_header_preproc=yes | |
a848cd7e | 16606 | ;; |
ac1cb8d3 | 16607 | no:yes:* ) |
a848cd7e SC |
16608 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16609 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16610 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16611 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16612 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16613 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16614 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16615 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16617 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16618 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16619 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16620 | ( |
16621 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16622 | ## ----------------------------------------- ## |
16623 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16624 | ## ----------------------------------------- ## | |
a848cd7e SC |
16625 | _ASBOX |
16626 | ) | | |
16627 | sed "s/^/$as_me: WARNING: /" >&2 | |
16628 | ;; | |
16629 | esac | |
16630 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16634 | else | |
ac1cb8d3 | 16635 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16636 | fi |
16637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16638 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16639 | ||
16640 | fi | |
16641 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16642 | cat >>confdefs.h <<_ACEOF | |
16643 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16644 | _ACEOF | |
16645 | ||
16646 | fi | |
16647 | ||
16648 | done | |
16649 | ||
16650 | ||
16651 | case "${host}" in | |
16652 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
16653 | if test $ac_cv_header_langinfo_h = "yes" \ |
16654 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
16655 | -o "$wx_cv_gccversion" = "EMX3" \ | |
16656 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
16657 | LIBS="$LIBS -lintl" |
16658 | fi | |
16659 | ;; | |
16660 | esac | |
16661 | ||
a848cd7e SC |
16662 | |
16663 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
16664 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
16665 | if test "${ac_cv_c_const+set}" = set; then | |
16666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16667 | else | |
16668 | cat >conftest.$ac_ext <<_ACEOF | |
16669 | /* confdefs.h. */ | |
16670 | _ACEOF | |
16671 | cat confdefs.h >>conftest.$ac_ext | |
16672 | cat >>conftest.$ac_ext <<_ACEOF | |
16673 | /* end confdefs.h. */ | |
16674 | ||
16675 | int | |
16676 | main () | |
16677 | { | |
16678 | /* FIXME: Include the comments suggested by Paul. */ | |
16679 | #ifndef __cplusplus | |
16680 | /* Ultrix mips cc rejects this. */ | |
16681 | typedef int charset[2]; | |
16682 | const charset x; | |
16683 | /* SunOS 4.1.1 cc rejects this. */ | |
16684 | char const *const *ccp; | |
16685 | char **p; | |
16686 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
16687 | struct point {int x, y;}; | |
16688 | static struct point const zero = {0,0}; | |
16689 | /* AIX XL C 1.02.0.0 rejects this. | |
16690 | It does not let you subtract one const X* pointer from another in | |
16691 | an arm of an if-expression whose if-part is not a constant | |
16692 | expression */ | |
16693 | const char *g = "string"; | |
16694 | ccp = &g + (g ? g-g : 0); | |
16695 | /* HPUX 7.0 cc rejects these. */ | |
16696 | ++ccp; | |
16697 | p = (char**) ccp; | |
16698 | ccp = (char const *const *) p; | |
16699 | { /* SCO 3.2v4 cc rejects this. */ | |
16700 | char *t; | |
16701 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
16702 | ||
16703 | *t++ = 0; | |
16704 | } | |
16705 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
16706 | int x[] = {25, 17}; | |
16707 | const int *foo = &x[0]; | |
16708 | ++foo; | |
16709 | } | |
16710 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
16711 | typedef const int *iptr; | |
16712 | iptr p = 0; | |
16713 | ++p; | |
16714 | } | |
16715 | { /* AIX XL C 1.02.0.0 rejects this saying | |
16716 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
16717 | struct s { int j; const int *ap[3]; }; | |
16718 | struct s *b; b->j = 5; | |
16719 | } | |
16720 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
16721 | const int foo = 10; | |
16722 | } | |
16723 | #endif | |
16724 | ||
16725 | ; | |
16726 | return 0; | |
16727 | } | |
16728 | _ACEOF | |
16729 | rm -f conftest.$ac_objext | |
16730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16732 | ac_status=$? |
ac1cb8d3 VS |
16733 | grep -v '^ *+' conftest.er1 >conftest.err |
16734 | rm -f conftest.er1 | |
16735 | cat conftest.err >&5 | |
a848cd7e SC |
16736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16737 | (exit $ac_status); } && | |
3565d135 RR |
16738 | { ac_try='test -z "$ac_c_werror_flag" |
16739 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16741 | (eval $ac_try) 2>&5 | |
16742 | ac_status=$? | |
16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16744 | (exit $ac_status); }; } && | |
16745 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16747 | (eval $ac_try) 2>&5 | |
16748 | ac_status=$? | |
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16750 | (exit $ac_status); }; }; then | |
16751 | ac_cv_c_const=yes | |
16752 | else | |
16753 | echo "$as_me: failed program was:" >&5 | |
16754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16755 | ||
16756 | ac_cv_c_const=no | |
16757 | fi | |
ac1cb8d3 | 16758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16759 | fi |
16760 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
16761 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
16762 | if test $ac_cv_c_const = no; then | |
16763 | ||
16764 | cat >>confdefs.h <<\_ACEOF | |
16765 | #define const | |
16766 | _ACEOF | |
16767 | ||
16768 | fi | |
16769 | ||
16770 | echo "$as_me:$LINENO: checking for inline" >&5 | |
16771 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
16772 | if test "${ac_cv_c_inline+set}" = set; then | |
16773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16774 | else | |
16775 | ac_cv_c_inline=no | |
16776 | for ac_kw in inline __inline__ __inline; do | |
16777 | cat >conftest.$ac_ext <<_ACEOF | |
16778 | /* confdefs.h. */ | |
16779 | _ACEOF | |
16780 | cat confdefs.h >>conftest.$ac_ext | |
16781 | cat >>conftest.$ac_ext <<_ACEOF | |
16782 | /* end confdefs.h. */ | |
16783 | #ifndef __cplusplus | |
16784 | typedef int foo_t; | |
16785 | static $ac_kw foo_t static_foo () {return 0; } | |
16786 | $ac_kw foo_t foo () {return 0; } | |
16787 | #endif | |
16788 | ||
16789 | _ACEOF | |
16790 | rm -f conftest.$ac_objext | |
16791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16792 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16793 | ac_status=$? |
ac1cb8d3 VS |
16794 | grep -v '^ *+' conftest.er1 >conftest.err |
16795 | rm -f conftest.er1 | |
16796 | cat conftest.err >&5 | |
a848cd7e SC |
16797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16798 | (exit $ac_status); } && | |
3565d135 RR |
16799 | { ac_try='test -z "$ac_c_werror_flag" |
16800 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16802 | (eval $ac_try) 2>&5 | |
16803 | ac_status=$? | |
16804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16805 | (exit $ac_status); }; } && | |
16806 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16808 | (eval $ac_try) 2>&5 | |
16809 | ac_status=$? | |
16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16811 | (exit $ac_status); }; }; then | |
16812 | ac_cv_c_inline=$ac_kw; break | |
16813 | else | |
16814 | echo "$as_me: failed program was:" >&5 | |
16815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16816 | ||
16817 | fi | |
ac1cb8d3 | 16818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16819 | done |
16820 | ||
16821 | fi | |
16822 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
16823 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
16824 | |
16825 | ||
a848cd7e SC |
16826 | case $ac_cv_c_inline in |
16827 | inline | yes) ;; | |
ac1cb8d3 VS |
16828 | *) |
16829 | case $ac_cv_c_inline in | |
16830 | no) ac_val=;; | |
16831 | *) ac_val=$ac_cv_c_inline;; | |
16832 | esac | |
16833 | cat >>confdefs.h <<_ACEOF | |
16834 | #ifndef __cplusplus | |
16835 | #define inline $ac_val | |
16836 | #endif | |
de59c161 | 16837 | _ACEOF |
ac1cb8d3 | 16838 | ;; |
a848cd7e SC |
16839 | esac |
16840 | ||
16841 | ||
16842 | echo "$as_me:$LINENO: checking for char" >&5 | |
16843 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16844 | if test "${ac_cv_type_char+set}" = set; then | |
16845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16846 | else | |
16847 | cat >conftest.$ac_ext <<_ACEOF | |
16848 | /* confdefs.h. */ | |
16849 | _ACEOF | |
16850 | cat confdefs.h >>conftest.$ac_ext | |
16851 | cat >>conftest.$ac_ext <<_ACEOF | |
16852 | /* end confdefs.h. */ | |
16853 | $ac_includes_default | |
16854 | int | |
16855 | main () | |
16856 | { | |
16857 | if ((char *) 0) | |
16858 | return 0; | |
16859 | if (sizeof (char)) | |
16860 | return 0; | |
16861 | ; | |
16862 | return 0; | |
16863 | } | |
16864 | _ACEOF | |
16865 | rm -f conftest.$ac_objext | |
16866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16867 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16868 | ac_status=$? |
ac1cb8d3 VS |
16869 | grep -v '^ *+' conftest.er1 >conftest.err |
16870 | rm -f conftest.er1 | |
16871 | cat conftest.err >&5 | |
a848cd7e SC |
16872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16873 | (exit $ac_status); } && | |
3565d135 RR |
16874 | { ac_try='test -z "$ac_c_werror_flag" |
16875 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16877 | (eval $ac_try) 2>&5 | |
16878 | ac_status=$? | |
16879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16880 | (exit $ac_status); }; } && | |
16881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16883 | (eval $ac_try) 2>&5 | |
16884 | ac_status=$? | |
16885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16886 | (exit $ac_status); }; }; then | |
16887 | ac_cv_type_char=yes | |
16888 | else | |
16889 | echo "$as_me: failed program was:" >&5 | |
16890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16891 | ||
16892 | ac_cv_type_char=no | |
16893 | fi | |
ac1cb8d3 | 16894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16895 | fi |
16896 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16897 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16898 | ||
16899 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16900 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16901 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16903 | else | |
16904 | if test "$ac_cv_type_char" = yes; then | |
16905 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16906 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16907 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16908 | # This bug is HP SR number 8606223364. | |
16909 | if test "$cross_compiling" = yes; then | |
16910 | # Depending upon the size, compute the lo and hi bounds. | |
16911 | cat >conftest.$ac_ext <<_ACEOF | |
16912 | /* confdefs.h. */ | |
16913 | _ACEOF | |
16914 | cat confdefs.h >>conftest.$ac_ext | |
16915 | cat >>conftest.$ac_ext <<_ACEOF | |
16916 | /* end confdefs.h. */ | |
16917 | $ac_includes_default | |
16918 | int | |
16919 | main () | |
16920 | { | |
16921 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16922 | test_array [0] = 0 | |
16923 | ||
16924 | ; | |
16925 | return 0; | |
16926 | } | |
16927 | _ACEOF | |
16928 | rm -f conftest.$ac_objext | |
16929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16930 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16931 | ac_status=$? |
ac1cb8d3 VS |
16932 | grep -v '^ *+' conftest.er1 >conftest.err |
16933 | rm -f conftest.er1 | |
16934 | cat conftest.err >&5 | |
a848cd7e SC |
16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16936 | (exit $ac_status); } && | |
3565d135 RR |
16937 | { ac_try='test -z "$ac_c_werror_flag" |
16938 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16940 | (eval $ac_try) 2>&5 | |
16941 | ac_status=$? | |
16942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16943 | (exit $ac_status); }; } && | |
16944 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16946 | (eval $ac_try) 2>&5 | |
16947 | ac_status=$? | |
16948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16949 | (exit $ac_status); }; }; then | |
16950 | ac_lo=0 ac_mid=0 | |
16951 | while :; do | |
16952 | cat >conftest.$ac_ext <<_ACEOF | |
16953 | /* confdefs.h. */ | |
16954 | _ACEOF | |
16955 | cat confdefs.h >>conftest.$ac_ext | |
16956 | cat >>conftest.$ac_ext <<_ACEOF | |
16957 | /* end confdefs.h. */ | |
16958 | $ac_includes_default | |
16959 | int | |
16960 | main () | |
16961 | { | |
16962 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16963 | test_array [0] = 0 | |
16964 | ||
16965 | ; | |
16966 | return 0; | |
16967 | } | |
16968 | _ACEOF | |
16969 | rm -f conftest.$ac_objext | |
16970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16971 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16972 | ac_status=$? |
ac1cb8d3 VS |
16973 | grep -v '^ *+' conftest.er1 >conftest.err |
16974 | rm -f conftest.er1 | |
16975 | cat conftest.err >&5 | |
a848cd7e SC |
16976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16977 | (exit $ac_status); } && | |
3565d135 RR |
16978 | { ac_try='test -z "$ac_c_werror_flag" |
16979 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16981 | (eval $ac_try) 2>&5 | |
16982 | ac_status=$? | |
16983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16984 | (exit $ac_status); }; } && | |
16985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16987 | (eval $ac_try) 2>&5 | |
16988 | ac_status=$? | |
16989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16990 | (exit $ac_status); }; }; then | |
16991 | ac_hi=$ac_mid; break | |
16992 | else | |
16993 | echo "$as_me: failed program was:" >&5 | |
16994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16995 | ||
16996 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16997 | if test $ac_lo -le $ac_mid; then |
16998 | ac_lo= ac_hi= | |
16999 | break | |
17000 | fi | |
17001 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17002 | fi |
ac1cb8d3 | 17003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17004 | done |
17005 | else | |
17006 | echo "$as_me: failed program was:" >&5 | |
17007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17008 | ||
17009 | cat >conftest.$ac_ext <<_ACEOF | |
17010 | /* confdefs.h. */ | |
17011 | _ACEOF | |
17012 | cat confdefs.h >>conftest.$ac_ext | |
17013 | cat >>conftest.$ac_ext <<_ACEOF | |
17014 | /* end confdefs.h. */ | |
17015 | $ac_includes_default | |
17016 | int | |
17017 | main () | |
17018 | { | |
17019 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17020 | test_array [0] = 0 | |
17021 | ||
17022 | ; | |
17023 | return 0; | |
17024 | } | |
17025 | _ACEOF | |
17026 | rm -f conftest.$ac_objext | |
17027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17028 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17029 | ac_status=$? |
ac1cb8d3 VS |
17030 | grep -v '^ *+' conftest.er1 >conftest.err |
17031 | rm -f conftest.er1 | |
17032 | cat conftest.err >&5 | |
a848cd7e SC |
17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17034 | (exit $ac_status); } && | |
3565d135 RR |
17035 | { ac_try='test -z "$ac_c_werror_flag" |
17036 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17038 | (eval $ac_try) 2>&5 | |
17039 | ac_status=$? | |
17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17041 | (exit $ac_status); }; } && | |
17042 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17044 | (eval $ac_try) 2>&5 | |
17045 | ac_status=$? | |
17046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17047 | (exit $ac_status); }; }; then | |
17048 | ac_hi=-1 ac_mid=-1 | |
17049 | while :; do | |
17050 | cat >conftest.$ac_ext <<_ACEOF | |
17051 | /* confdefs.h. */ | |
17052 | _ACEOF | |
17053 | cat confdefs.h >>conftest.$ac_ext | |
17054 | cat >>conftest.$ac_ext <<_ACEOF | |
17055 | /* end confdefs.h. */ | |
17056 | $ac_includes_default | |
17057 | int | |
17058 | main () | |
17059 | { | |
17060 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17061 | test_array [0] = 0 | |
17062 | ||
17063 | ; | |
17064 | return 0; | |
17065 | } | |
17066 | _ACEOF | |
17067 | rm -f conftest.$ac_objext | |
17068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17069 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17070 | ac_status=$? |
ac1cb8d3 VS |
17071 | grep -v '^ *+' conftest.er1 >conftest.err |
17072 | rm -f conftest.er1 | |
17073 | cat conftest.err >&5 | |
a848cd7e SC |
17074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17075 | (exit $ac_status); } && | |
3565d135 RR |
17076 | { ac_try='test -z "$ac_c_werror_flag" |
17077 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17079 | (eval $ac_try) 2>&5 | |
17080 | ac_status=$? | |
17081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17082 | (exit $ac_status); }; } && | |
17083 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17085 | (eval $ac_try) 2>&5 | |
17086 | ac_status=$? | |
17087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17088 | (exit $ac_status); }; }; then | |
17089 | ac_lo=$ac_mid; break | |
17090 | else | |
17091 | echo "$as_me: failed program was:" >&5 | |
17092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17093 | ||
17094 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17095 | if test $ac_mid -le $ac_hi; then |
17096 | ac_lo= ac_hi= | |
17097 | break | |
17098 | fi | |
17099 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17100 | fi |
ac1cb8d3 | 17101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17102 | done |
17103 | else | |
17104 | echo "$as_me: failed program was:" >&5 | |
17105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17106 | ||
17107 | ac_lo= ac_hi= | |
17108 | fi | |
ac1cb8d3 | 17109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17110 | fi |
ac1cb8d3 | 17111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17112 | # Binary search between lo and hi bounds. |
17113 | while test "x$ac_lo" != "x$ac_hi"; do | |
17114 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17115 | cat >conftest.$ac_ext <<_ACEOF | |
17116 | /* confdefs.h. */ | |
17117 | _ACEOF | |
17118 | cat confdefs.h >>conftest.$ac_ext | |
17119 | cat >>conftest.$ac_ext <<_ACEOF | |
17120 | /* end confdefs.h. */ | |
17121 | $ac_includes_default | |
17122 | int | |
17123 | main () | |
17124 | { | |
17125 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17126 | test_array [0] = 0 | |
17127 | ||
17128 | ; | |
17129 | return 0; | |
17130 | } | |
17131 | _ACEOF | |
17132 | rm -f conftest.$ac_objext | |
17133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17134 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17135 | ac_status=$? |
ac1cb8d3 VS |
17136 | grep -v '^ *+' conftest.er1 >conftest.err |
17137 | rm -f conftest.er1 | |
17138 | cat conftest.err >&5 | |
a848cd7e SC |
17139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17140 | (exit $ac_status); } && | |
3565d135 RR |
17141 | { ac_try='test -z "$ac_c_werror_flag" |
17142 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17144 | (eval $ac_try) 2>&5 | |
17145 | ac_status=$? | |
17146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17147 | (exit $ac_status); }; } && | |
17148 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17150 | (eval $ac_try) 2>&5 | |
17151 | ac_status=$? | |
17152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17153 | (exit $ac_status); }; }; then | |
17154 | ac_hi=$ac_mid | |
17155 | else | |
17156 | echo "$as_me: failed program was:" >&5 | |
17157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17158 | ||
17159 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17160 | fi | |
ac1cb8d3 | 17161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17162 | done |
17163 | case $ac_lo in | |
17164 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17165 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17166 | See \`config.log' for more details." >&5 | |
17167 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17168 | See \`config.log' for more details." >&2;} | |
17169 | { (exit 1); exit 1; }; } ;; | |
17170 | esac | |
17171 | else | |
17172 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
17173 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17174 | See \`config.log' for more details." >&5 | |
17175 | echo "$as_me: error: cannot run test program while cross compiling | |
17176 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17177 | { (exit 1); exit 1; }; } |
17178 | else | |
17179 | cat >conftest.$ac_ext <<_ACEOF | |
17180 | /* confdefs.h. */ | |
17181 | _ACEOF | |
17182 | cat confdefs.h >>conftest.$ac_ext | |
17183 | cat >>conftest.$ac_ext <<_ACEOF | |
17184 | /* end confdefs.h. */ | |
17185 | $ac_includes_default | |
17186 | long longval () { return (long) (sizeof (char)); } | |
17187 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17188 | #include <stdio.h> | |
17189 | #include <stdlib.h> | |
17190 | int | |
17191 | main () | |
17192 | { | |
17193 | ||
17194 | FILE *f = fopen ("conftest.val", "w"); | |
17195 | if (! f) | |
17196 | exit (1); | |
17197 | if (((long) (sizeof (char))) < 0) | |
17198 | { | |
17199 | long i = longval (); | |
17200 | if (i != ((long) (sizeof (char)))) | |
17201 | exit (1); | |
17202 | fprintf (f, "%ld\n", i); | |
17203 | } | |
17204 | else | |
17205 | { | |
17206 | unsigned long i = ulongval (); | |
17207 | if (i != ((long) (sizeof (char)))) | |
17208 | exit (1); | |
17209 | fprintf (f, "%lu\n", i); | |
17210 | } | |
17211 | exit (ferror (f) || fclose (f) != 0); | |
17212 | ||
17213 | ; | |
17214 | return 0; | |
17215 | } | |
17216 | _ACEOF | |
17217 | rm -f conftest$ac_exeext | |
17218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17219 | (eval $ac_link) 2>&5 | |
17220 | ac_status=$? | |
17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17224 | (eval $ac_try) 2>&5 | |
17225 | ac_status=$? | |
17226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17227 | (exit $ac_status); }; }; then | |
17228 | ac_cv_sizeof_char=`cat conftest.val` | |
17229 | else | |
17230 | echo "$as_me: program exited with status $ac_status" >&5 | |
17231 | echo "$as_me: failed program was:" >&5 | |
17232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17233 | ||
17234 | ( exit $ac_status ) | |
17235 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17236 | See \`config.log' for more details." >&5 | |
17237 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17238 | See \`config.log' for more details." >&2;} | |
17239 | { (exit 1); exit 1; }; } | |
17240 | fi | |
ac1cb8d3 | 17241 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17242 | fi |
17243 | fi | |
17244 | rm -f conftest.val | |
17245 | else | |
17246 | ac_cv_sizeof_char=0 | |
17247 | fi | |
17248 | fi | |
17249 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17250 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17251 | cat >>confdefs.h <<_ACEOF | |
17252 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17253 | _ACEOF | |
17254 | ||
17255 | ||
17256 | echo "$as_me:$LINENO: checking for short" >&5 | |
17257 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17258 | if test "${ac_cv_type_short+set}" = set; then | |
17259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17260 | else | |
17261 | cat >conftest.$ac_ext <<_ACEOF | |
17262 | /* confdefs.h. */ | |
17263 | _ACEOF | |
17264 | cat confdefs.h >>conftest.$ac_ext | |
17265 | cat >>conftest.$ac_ext <<_ACEOF | |
17266 | /* end confdefs.h. */ | |
17267 | $ac_includes_default | |
17268 | int | |
17269 | main () | |
17270 | { | |
17271 | if ((short *) 0) | |
17272 | return 0; | |
17273 | if (sizeof (short)) | |
17274 | return 0; | |
17275 | ; | |
17276 | return 0; | |
17277 | } | |
17278 | _ACEOF | |
17279 | rm -f conftest.$ac_objext | |
17280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17281 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17282 | ac_status=$? |
ac1cb8d3 VS |
17283 | grep -v '^ *+' conftest.er1 >conftest.err |
17284 | rm -f conftest.er1 | |
17285 | cat conftest.err >&5 | |
a848cd7e SC |
17286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17287 | (exit $ac_status); } && | |
3565d135 RR |
17288 | { ac_try='test -z "$ac_c_werror_flag" |
17289 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17291 | (eval $ac_try) 2>&5 | |
17292 | ac_status=$? | |
17293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17294 | (exit $ac_status); }; } && | |
17295 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17297 | (eval $ac_try) 2>&5 | |
17298 | ac_status=$? | |
17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17300 | (exit $ac_status); }; }; then | |
17301 | ac_cv_type_short=yes | |
17302 | else | |
17303 | echo "$as_me: failed program was:" >&5 | |
17304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17305 | ||
17306 | ac_cv_type_short=no | |
17307 | fi | |
ac1cb8d3 | 17308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17309 | fi |
17310 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
17311 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
17312 | ||
17313 | echo "$as_me:$LINENO: checking size of short" >&5 | |
17314 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
17315 | if test "${ac_cv_sizeof_short+set}" = set; then | |
17316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17317 | else | |
17318 | if test "$ac_cv_type_short" = yes; then | |
17319 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17320 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17321 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17322 | # This bug is HP SR number 8606223364. | |
17323 | if test "$cross_compiling" = yes; then | |
17324 | # Depending upon the size, compute the lo and hi bounds. | |
17325 | cat >conftest.$ac_ext <<_ACEOF | |
17326 | /* confdefs.h. */ | |
17327 | _ACEOF | |
17328 | cat confdefs.h >>conftest.$ac_ext | |
17329 | cat >>conftest.$ac_ext <<_ACEOF | |
17330 | /* end confdefs.h. */ | |
17331 | $ac_includes_default | |
17332 | int | |
17333 | main () | |
17334 | { | |
17335 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
17336 | test_array [0] = 0 | |
17337 | ||
17338 | ; | |
17339 | return 0; | |
17340 | } | |
17341 | _ACEOF | |
17342 | rm -f conftest.$ac_objext | |
17343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17344 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17345 | ac_status=$? |
ac1cb8d3 VS |
17346 | grep -v '^ *+' conftest.er1 >conftest.err |
17347 | rm -f conftest.er1 | |
17348 | cat conftest.err >&5 | |
a848cd7e SC |
17349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17350 | (exit $ac_status); } && | |
3565d135 RR |
17351 | { ac_try='test -z "$ac_c_werror_flag" |
17352 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17354 | (eval $ac_try) 2>&5 | |
17355 | ac_status=$? | |
17356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17357 | (exit $ac_status); }; } && | |
17358 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17360 | (eval $ac_try) 2>&5 | |
17361 | ac_status=$? | |
17362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17363 | (exit $ac_status); }; }; then | |
17364 | ac_lo=0 ac_mid=0 | |
17365 | while :; do | |
17366 | cat >conftest.$ac_ext <<_ACEOF | |
17367 | /* confdefs.h. */ | |
17368 | _ACEOF | |
17369 | cat confdefs.h >>conftest.$ac_ext | |
17370 | cat >>conftest.$ac_ext <<_ACEOF | |
17371 | /* end confdefs.h. */ | |
17372 | $ac_includes_default | |
17373 | int | |
17374 | main () | |
17375 | { | |
17376 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17377 | test_array [0] = 0 | |
17378 | ||
17379 | ; | |
17380 | return 0; | |
17381 | } | |
17382 | _ACEOF | |
17383 | rm -f conftest.$ac_objext | |
17384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17385 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17386 | ac_status=$? |
ac1cb8d3 VS |
17387 | grep -v '^ *+' conftest.er1 >conftest.err |
17388 | rm -f conftest.er1 | |
17389 | cat conftest.err >&5 | |
a848cd7e SC |
17390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17391 | (exit $ac_status); } && | |
3565d135 RR |
17392 | { ac_try='test -z "$ac_c_werror_flag" |
17393 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17395 | (eval $ac_try) 2>&5 | |
17396 | ac_status=$? | |
17397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17398 | (exit $ac_status); }; } && | |
17399 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17401 | (eval $ac_try) 2>&5 | |
17402 | ac_status=$? | |
17403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17404 | (exit $ac_status); }; }; then | |
17405 | ac_hi=$ac_mid; break | |
17406 | else | |
17407 | echo "$as_me: failed program was:" >&5 | |
17408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17409 | ||
17410 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17411 | if test $ac_lo -le $ac_mid; then |
17412 | ac_lo= ac_hi= | |
17413 | break | |
17414 | fi | |
17415 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17416 | fi |
ac1cb8d3 | 17417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17418 | done |
17419 | else | |
17420 | echo "$as_me: failed program was:" >&5 | |
17421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17422 | ||
17423 | cat >conftest.$ac_ext <<_ACEOF | |
17424 | /* confdefs.h. */ | |
17425 | _ACEOF | |
17426 | cat confdefs.h >>conftest.$ac_ext | |
17427 | cat >>conftest.$ac_ext <<_ACEOF | |
17428 | /* end confdefs.h. */ | |
17429 | $ac_includes_default | |
17430 | int | |
17431 | main () | |
17432 | { | |
17433 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17434 | test_array [0] = 0 | |
17435 | ||
17436 | ; | |
17437 | return 0; | |
17438 | } | |
17439 | _ACEOF | |
17440 | rm -f conftest.$ac_objext | |
17441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17442 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17443 | ac_status=$? |
ac1cb8d3 VS |
17444 | grep -v '^ *+' conftest.er1 >conftest.err |
17445 | rm -f conftest.er1 | |
17446 | cat conftest.err >&5 | |
a848cd7e SC |
17447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17448 | (exit $ac_status); } && | |
3565d135 RR |
17449 | { ac_try='test -z "$ac_c_werror_flag" |
17450 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17452 | (eval $ac_try) 2>&5 | |
17453 | ac_status=$? | |
17454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17455 | (exit $ac_status); }; } && | |
17456 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17458 | (eval $ac_try) 2>&5 | |
17459 | ac_status=$? | |
17460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17461 | (exit $ac_status); }; }; then | |
17462 | ac_hi=-1 ac_mid=-1 | |
17463 | while :; do | |
17464 | cat >conftest.$ac_ext <<_ACEOF | |
17465 | /* confdefs.h. */ | |
17466 | _ACEOF | |
17467 | cat confdefs.h >>conftest.$ac_ext | |
17468 | cat >>conftest.$ac_ext <<_ACEOF | |
17469 | /* end confdefs.h. */ | |
17470 | $ac_includes_default | |
17471 | int | |
17472 | main () | |
17473 | { | |
17474 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17475 | test_array [0] = 0 | |
17476 | ||
17477 | ; | |
17478 | return 0; | |
17479 | } | |
17480 | _ACEOF | |
17481 | rm -f conftest.$ac_objext | |
17482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17483 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17484 | ac_status=$? |
ac1cb8d3 VS |
17485 | grep -v '^ *+' conftest.er1 >conftest.err |
17486 | rm -f conftest.er1 | |
17487 | cat conftest.err >&5 | |
a848cd7e SC |
17488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17489 | (exit $ac_status); } && | |
3565d135 RR |
17490 | { ac_try='test -z "$ac_c_werror_flag" |
17491 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17493 | (eval $ac_try) 2>&5 | |
17494 | ac_status=$? | |
17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17496 | (exit $ac_status); }; } && | |
17497 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17499 | (eval $ac_try) 2>&5 | |
17500 | ac_status=$? | |
17501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17502 | (exit $ac_status); }; }; then | |
17503 | ac_lo=$ac_mid; break | |
17504 | else | |
17505 | echo "$as_me: failed program was:" >&5 | |
17506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17507 | ||
17508 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17509 | if test $ac_mid -le $ac_hi; then |
17510 | ac_lo= ac_hi= | |
17511 | break | |
17512 | fi | |
17513 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17514 | fi |
ac1cb8d3 | 17515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17516 | done |
17517 | else | |
17518 | echo "$as_me: failed program was:" >&5 | |
17519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17520 | ||
17521 | ac_lo= ac_hi= | |
17522 | fi | |
ac1cb8d3 | 17523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17524 | fi |
ac1cb8d3 | 17525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17526 | # Binary search between lo and hi bounds. |
17527 | while test "x$ac_lo" != "x$ac_hi"; do | |
17528 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17529 | cat >conftest.$ac_ext <<_ACEOF | |
17530 | /* confdefs.h. */ | |
17531 | _ACEOF | |
17532 | cat confdefs.h >>conftest.$ac_ext | |
17533 | cat >>conftest.$ac_ext <<_ACEOF | |
17534 | /* end confdefs.h. */ | |
17535 | $ac_includes_default | |
17536 | int | |
17537 | main () | |
17538 | { | |
17539 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17540 | test_array [0] = 0 | |
17541 | ||
17542 | ; | |
17543 | return 0; | |
17544 | } | |
17545 | _ACEOF | |
17546 | rm -f conftest.$ac_objext | |
17547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17549 | ac_status=$? |
ac1cb8d3 VS |
17550 | grep -v '^ *+' conftest.er1 >conftest.err |
17551 | rm -f conftest.er1 | |
17552 | cat conftest.err >&5 | |
a848cd7e SC |
17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17554 | (exit $ac_status); } && | |
3565d135 RR |
17555 | { ac_try='test -z "$ac_c_werror_flag" |
17556 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17558 | (eval $ac_try) 2>&5 | |
17559 | ac_status=$? | |
17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17561 | (exit $ac_status); }; } && | |
17562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17564 | (eval $ac_try) 2>&5 | |
17565 | ac_status=$? | |
17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17567 | (exit $ac_status); }; }; then | |
17568 | ac_hi=$ac_mid | |
17569 | else | |
17570 | echo "$as_me: failed program was:" >&5 | |
17571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17572 | ||
17573 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17574 | fi | |
ac1cb8d3 | 17575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17576 | done |
17577 | case $ac_lo in | |
17578 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
17579 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17580 | See \`config.log' for more details." >&5 | |
17581 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17582 | See \`config.log' for more details." >&2;} | |
17583 | { (exit 1); exit 1; }; } ;; | |
17584 | esac | |
17585 | else | |
17586 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
17587 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17588 | See \`config.log' for more details." >&5 | |
17589 | echo "$as_me: error: cannot run test program while cross compiling | |
17590 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17591 | { (exit 1); exit 1; }; } |
17592 | else | |
17593 | cat >conftest.$ac_ext <<_ACEOF | |
17594 | /* confdefs.h. */ | |
17595 | _ACEOF | |
17596 | cat confdefs.h >>conftest.$ac_ext | |
17597 | cat >>conftest.$ac_ext <<_ACEOF | |
17598 | /* end confdefs.h. */ | |
17599 | $ac_includes_default | |
17600 | long longval () { return (long) (sizeof (short)); } | |
17601 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
17602 | #include <stdio.h> | |
17603 | #include <stdlib.h> | |
17604 | int | |
17605 | main () | |
17606 | { | |
17607 | ||
17608 | FILE *f = fopen ("conftest.val", "w"); | |
17609 | if (! f) | |
17610 | exit (1); | |
17611 | if (((long) (sizeof (short))) < 0) | |
17612 | { | |
17613 | long i = longval (); | |
17614 | if (i != ((long) (sizeof (short)))) | |
17615 | exit (1); | |
17616 | fprintf (f, "%ld\n", i); | |
17617 | } | |
17618 | else | |
17619 | { | |
17620 | unsigned long i = ulongval (); | |
17621 | if (i != ((long) (sizeof (short)))) | |
17622 | exit (1); | |
17623 | fprintf (f, "%lu\n", i); | |
17624 | } | |
17625 | exit (ferror (f) || fclose (f) != 0); | |
17626 | ||
17627 | ; | |
17628 | return 0; | |
17629 | } | |
17630 | _ACEOF | |
17631 | rm -f conftest$ac_exeext | |
17632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17633 | (eval $ac_link) 2>&5 | |
17634 | ac_status=$? | |
17635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17638 | (eval $ac_try) 2>&5 | |
17639 | ac_status=$? | |
17640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17641 | (exit $ac_status); }; }; then | |
17642 | ac_cv_sizeof_short=`cat conftest.val` | |
17643 | else | |
17644 | echo "$as_me: program exited with status $ac_status" >&5 | |
17645 | echo "$as_me: failed program was:" >&5 | |
17646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17647 | ||
17648 | ( exit $ac_status ) | |
17649 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17650 | See \`config.log' for more details." >&5 | |
17651 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17652 | See \`config.log' for more details." >&2;} | |
17653 | { (exit 1); exit 1; }; } | |
17654 | fi | |
ac1cb8d3 | 17655 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17656 | fi |
17657 | fi | |
17658 | rm -f conftest.val | |
17659 | else | |
17660 | ac_cv_sizeof_short=0 | |
17661 | fi | |
17662 | fi | |
17663 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
17664 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
17665 | cat >>confdefs.h <<_ACEOF | |
17666 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
17667 | _ACEOF | |
17668 | ||
17669 | ||
17670 | echo "$as_me:$LINENO: checking for void *" >&5 | |
17671 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
17672 | if test "${ac_cv_type_void_p+set}" = set; then | |
17673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17674 | else | |
17675 | cat >conftest.$ac_ext <<_ACEOF | |
17676 | /* confdefs.h. */ | |
17677 | _ACEOF | |
17678 | cat confdefs.h >>conftest.$ac_ext | |
17679 | cat >>conftest.$ac_ext <<_ACEOF | |
17680 | /* end confdefs.h. */ | |
17681 | $ac_includes_default | |
17682 | int | |
17683 | main () | |
17684 | { | |
17685 | if ((void * *) 0) | |
17686 | return 0; | |
17687 | if (sizeof (void *)) | |
17688 | return 0; | |
17689 | ; | |
17690 | return 0; | |
17691 | } | |
17692 | _ACEOF | |
17693 | rm -f conftest.$ac_objext | |
17694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17695 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17696 | ac_status=$? |
ac1cb8d3 VS |
17697 | grep -v '^ *+' conftest.er1 >conftest.err |
17698 | rm -f conftest.er1 | |
17699 | cat conftest.err >&5 | |
a848cd7e SC |
17700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17701 | (exit $ac_status); } && | |
3565d135 RR |
17702 | { ac_try='test -z "$ac_c_werror_flag" |
17703 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17705 | (eval $ac_try) 2>&5 | |
17706 | ac_status=$? | |
17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17708 | (exit $ac_status); }; } && | |
17709 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17711 | (eval $ac_try) 2>&5 | |
17712 | ac_status=$? | |
17713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17714 | (exit $ac_status); }; }; then | |
17715 | ac_cv_type_void_p=yes | |
17716 | else | |
17717 | echo "$as_me: failed program was:" >&5 | |
17718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17719 | ||
17720 | ac_cv_type_void_p=no | |
17721 | fi | |
ac1cb8d3 | 17722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17723 | fi |
17724 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
17725 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
17726 | ||
17727 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
17728 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
17729 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
17730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17731 | else | |
17732 | if test "$ac_cv_type_void_p" = yes; then | |
17733 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17734 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17735 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17736 | # This bug is HP SR number 8606223364. | |
17737 | if test "$cross_compiling" = yes; then | |
17738 | # Depending upon the size, compute the lo and hi bounds. | |
17739 | cat >conftest.$ac_ext <<_ACEOF | |
17740 | /* confdefs.h. */ | |
17741 | _ACEOF | |
17742 | cat confdefs.h >>conftest.$ac_ext | |
17743 | cat >>conftest.$ac_ext <<_ACEOF | |
17744 | /* end confdefs.h. */ | |
17745 | $ac_includes_default | |
17746 | int | |
17747 | main () | |
17748 | { | |
17749 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
17750 | test_array [0] = 0 | |
17751 | ||
17752 | ; | |
17753 | return 0; | |
17754 | } | |
17755 | _ACEOF | |
17756 | rm -f conftest.$ac_objext | |
17757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17758 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17759 | ac_status=$? |
ac1cb8d3 VS |
17760 | grep -v '^ *+' conftest.er1 >conftest.err |
17761 | rm -f conftest.er1 | |
17762 | cat conftest.err >&5 | |
a848cd7e SC |
17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17764 | (exit $ac_status); } && | |
3565d135 RR |
17765 | { ac_try='test -z "$ac_c_werror_flag" |
17766 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17768 | (eval $ac_try) 2>&5 | |
17769 | ac_status=$? | |
17770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17771 | (exit $ac_status); }; } && | |
17772 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17774 | (eval $ac_try) 2>&5 | |
17775 | ac_status=$? | |
17776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17777 | (exit $ac_status); }; }; then | |
17778 | ac_lo=0 ac_mid=0 | |
17779 | while :; do | |
17780 | cat >conftest.$ac_ext <<_ACEOF | |
17781 | /* confdefs.h. */ | |
17782 | _ACEOF | |
17783 | cat confdefs.h >>conftest.$ac_ext | |
17784 | cat >>conftest.$ac_ext <<_ACEOF | |
17785 | /* end confdefs.h. */ | |
17786 | $ac_includes_default | |
17787 | int | |
17788 | main () | |
17789 | { | |
17790 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17791 | test_array [0] = 0 | |
17792 | ||
17793 | ; | |
17794 | return 0; | |
17795 | } | |
17796 | _ACEOF | |
17797 | rm -f conftest.$ac_objext | |
17798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17799 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17800 | ac_status=$? |
ac1cb8d3 VS |
17801 | grep -v '^ *+' conftest.er1 >conftest.err |
17802 | rm -f conftest.er1 | |
17803 | cat conftest.err >&5 | |
a848cd7e SC |
17804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17805 | (exit $ac_status); } && | |
3565d135 RR |
17806 | { ac_try='test -z "$ac_c_werror_flag" |
17807 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17809 | (eval $ac_try) 2>&5 | |
17810 | ac_status=$? | |
17811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17812 | (exit $ac_status); }; } && | |
17813 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17815 | (eval $ac_try) 2>&5 | |
17816 | ac_status=$? | |
17817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17818 | (exit $ac_status); }; }; then | |
17819 | ac_hi=$ac_mid; break | |
17820 | else | |
17821 | echo "$as_me: failed program was:" >&5 | |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17823 | ||
17824 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17825 | if test $ac_lo -le $ac_mid; then |
17826 | ac_lo= ac_hi= | |
17827 | break | |
17828 | fi | |
17829 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17830 | fi |
ac1cb8d3 | 17831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17832 | done |
17833 | else | |
17834 | echo "$as_me: failed program was:" >&5 | |
17835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17836 | ||
17837 | cat >conftest.$ac_ext <<_ACEOF | |
17838 | /* confdefs.h. */ | |
17839 | _ACEOF | |
17840 | cat confdefs.h >>conftest.$ac_ext | |
17841 | cat >>conftest.$ac_ext <<_ACEOF | |
17842 | /* end confdefs.h. */ | |
17843 | $ac_includes_default | |
17844 | int | |
17845 | main () | |
17846 | { | |
17847 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
17848 | test_array [0] = 0 | |
17849 | ||
17850 | ; | |
17851 | return 0; | |
17852 | } | |
17853 | _ACEOF | |
17854 | rm -f conftest.$ac_objext | |
17855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17856 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17857 | ac_status=$? |
ac1cb8d3 VS |
17858 | grep -v '^ *+' conftest.er1 >conftest.err |
17859 | rm -f conftest.er1 | |
17860 | cat conftest.err >&5 | |
a848cd7e SC |
17861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17862 | (exit $ac_status); } && | |
3565d135 RR |
17863 | { ac_try='test -z "$ac_c_werror_flag" |
17864 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17866 | (eval $ac_try) 2>&5 | |
17867 | ac_status=$? | |
17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17869 | (exit $ac_status); }; } && | |
17870 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17872 | (eval $ac_try) 2>&5 | |
17873 | ac_status=$? | |
17874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17875 | (exit $ac_status); }; }; then | |
17876 | ac_hi=-1 ac_mid=-1 | |
17877 | while :; do | |
17878 | cat >conftest.$ac_ext <<_ACEOF | |
17879 | /* confdefs.h. */ | |
17880 | _ACEOF | |
17881 | cat confdefs.h >>conftest.$ac_ext | |
17882 | cat >>conftest.$ac_ext <<_ACEOF | |
17883 | /* end confdefs.h. */ | |
17884 | $ac_includes_default | |
17885 | int | |
17886 | main () | |
17887 | { | |
17888 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
17889 | test_array [0] = 0 | |
17890 | ||
17891 | ; | |
17892 | return 0; | |
17893 | } | |
17894 | _ACEOF | |
17895 | rm -f conftest.$ac_objext | |
17896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17898 | ac_status=$? |
ac1cb8d3 VS |
17899 | grep -v '^ *+' conftest.er1 >conftest.err |
17900 | rm -f conftest.er1 | |
17901 | cat conftest.err >&5 | |
a848cd7e SC |
17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17903 | (exit $ac_status); } && | |
3565d135 RR |
17904 | { ac_try='test -z "$ac_c_werror_flag" |
17905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17907 | (eval $ac_try) 2>&5 | |
17908 | ac_status=$? | |
17909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17910 | (exit $ac_status); }; } && | |
17911 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17913 | (eval $ac_try) 2>&5 | |
17914 | ac_status=$? | |
17915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17916 | (exit $ac_status); }; }; then | |
17917 | ac_lo=$ac_mid; break | |
17918 | else | |
17919 | echo "$as_me: failed program was:" >&5 | |
17920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17921 | ||
17922 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17923 | if test $ac_mid -le $ac_hi; then |
17924 | ac_lo= ac_hi= | |
17925 | break | |
17926 | fi | |
17927 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17928 | fi |
ac1cb8d3 | 17929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17930 | done |
17931 | else | |
17932 | echo "$as_me: failed program was:" >&5 | |
17933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17934 | ||
17935 | ac_lo= ac_hi= | |
17936 | fi | |
ac1cb8d3 | 17937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17938 | fi |
ac1cb8d3 | 17939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17940 | # Binary search between lo and hi bounds. |
17941 | while test "x$ac_lo" != "x$ac_hi"; do | |
17942 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17943 | cat >conftest.$ac_ext <<_ACEOF | |
17944 | /* confdefs.h. */ | |
17945 | _ACEOF | |
17946 | cat confdefs.h >>conftest.$ac_ext | |
17947 | cat >>conftest.$ac_ext <<_ACEOF | |
17948 | /* end confdefs.h. */ | |
17949 | $ac_includes_default | |
17950 | int | |
17951 | main () | |
17952 | { | |
17953 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17954 | test_array [0] = 0 | |
17955 | ||
17956 | ; | |
17957 | return 0; | |
17958 | } | |
17959 | _ACEOF | |
17960 | rm -f conftest.$ac_objext | |
17961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17963 | ac_status=$? |
ac1cb8d3 VS |
17964 | grep -v '^ *+' conftest.er1 >conftest.err |
17965 | rm -f conftest.er1 | |
17966 | cat conftest.err >&5 | |
a848cd7e SC |
17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17968 | (exit $ac_status); } && | |
3565d135 RR |
17969 | { ac_try='test -z "$ac_c_werror_flag" |
17970 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17972 | (eval $ac_try) 2>&5 | |
17973 | ac_status=$? | |
17974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17975 | (exit $ac_status); }; } && | |
17976 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17978 | (eval $ac_try) 2>&5 | |
17979 | ac_status=$? | |
17980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17981 | (exit $ac_status); }; }; then | |
17982 | ac_hi=$ac_mid | |
17983 | else | |
17984 | echo "$as_me: failed program was:" >&5 | |
17985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17986 | ||
17987 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17988 | fi | |
ac1cb8d3 | 17989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17990 | done |
17991 | case $ac_lo in | |
17992 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
17993 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17994 | See \`config.log' for more details." >&5 | |
17995 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17996 | See \`config.log' for more details." >&2;} | |
17997 | { (exit 1); exit 1; }; } ;; | |
17998 | esac | |
17999 | else | |
18000 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18001 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18002 | See \`config.log' for more details." >&5 | |
18003 | echo "$as_me: error: cannot run test program while cross compiling | |
18004 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18005 | { (exit 1); exit 1; }; } |
18006 | else | |
18007 | cat >conftest.$ac_ext <<_ACEOF | |
18008 | /* confdefs.h. */ | |
18009 | _ACEOF | |
18010 | cat confdefs.h >>conftest.$ac_ext | |
18011 | cat >>conftest.$ac_ext <<_ACEOF | |
18012 | /* end confdefs.h. */ | |
18013 | $ac_includes_default | |
18014 | long longval () { return (long) (sizeof (void *)); } | |
18015 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18016 | #include <stdio.h> | |
18017 | #include <stdlib.h> | |
18018 | int | |
18019 | main () | |
18020 | { | |
18021 | ||
18022 | FILE *f = fopen ("conftest.val", "w"); | |
18023 | if (! f) | |
18024 | exit (1); | |
18025 | if (((long) (sizeof (void *))) < 0) | |
18026 | { | |
18027 | long i = longval (); | |
18028 | if (i != ((long) (sizeof (void *)))) | |
18029 | exit (1); | |
18030 | fprintf (f, "%ld\n", i); | |
18031 | } | |
18032 | else | |
18033 | { | |
18034 | unsigned long i = ulongval (); | |
18035 | if (i != ((long) (sizeof (void *)))) | |
18036 | exit (1); | |
18037 | fprintf (f, "%lu\n", i); | |
18038 | } | |
18039 | exit (ferror (f) || fclose (f) != 0); | |
18040 | ||
18041 | ; | |
18042 | return 0; | |
18043 | } | |
18044 | _ACEOF | |
18045 | rm -f conftest$ac_exeext | |
18046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18047 | (eval $ac_link) 2>&5 | |
18048 | ac_status=$? | |
18049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18050 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18052 | (eval $ac_try) 2>&5 | |
18053 | ac_status=$? | |
18054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18055 | (exit $ac_status); }; }; then | |
18056 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18057 | else | |
18058 | echo "$as_me: program exited with status $ac_status" >&5 | |
18059 | echo "$as_me: failed program was:" >&5 | |
18060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18061 | ||
18062 | ( exit $ac_status ) | |
18063 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18064 | See \`config.log' for more details." >&5 | |
18065 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18066 | See \`config.log' for more details." >&2;} | |
18067 | { (exit 1); exit 1; }; } | |
18068 | fi | |
ac1cb8d3 | 18069 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18070 | fi |
18071 | fi | |
18072 | rm -f conftest.val | |
18073 | else | |
18074 | ac_cv_sizeof_void_p=0 | |
18075 | fi | |
18076 | fi | |
18077 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18078 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18079 | cat >>confdefs.h <<_ACEOF | |
18080 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18081 | _ACEOF | |
18082 | ||
18083 | ||
18084 | echo "$as_me:$LINENO: checking for int" >&5 | |
18085 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18086 | if test "${ac_cv_type_int+set}" = set; then | |
18087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18088 | else | |
18089 | cat >conftest.$ac_ext <<_ACEOF | |
18090 | /* confdefs.h. */ | |
18091 | _ACEOF | |
18092 | cat confdefs.h >>conftest.$ac_ext | |
18093 | cat >>conftest.$ac_ext <<_ACEOF | |
18094 | /* end confdefs.h. */ | |
18095 | $ac_includes_default | |
18096 | int | |
18097 | main () | |
18098 | { | |
18099 | if ((int *) 0) | |
18100 | return 0; | |
18101 | if (sizeof (int)) | |
18102 | return 0; | |
18103 | ; | |
18104 | return 0; | |
18105 | } | |
18106 | _ACEOF | |
18107 | rm -f conftest.$ac_objext | |
18108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18109 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18110 | ac_status=$? |
ac1cb8d3 VS |
18111 | grep -v '^ *+' conftest.er1 >conftest.err |
18112 | rm -f conftest.er1 | |
18113 | cat conftest.err >&5 | |
a848cd7e SC |
18114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18115 | (exit $ac_status); } && | |
3565d135 RR |
18116 | { ac_try='test -z "$ac_c_werror_flag" |
18117 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18119 | (eval $ac_try) 2>&5 | |
18120 | ac_status=$? | |
18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18122 | (exit $ac_status); }; } && | |
18123 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18125 | (eval $ac_try) 2>&5 | |
18126 | ac_status=$? | |
18127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18128 | (exit $ac_status); }; }; then | |
18129 | ac_cv_type_int=yes | |
18130 | else | |
18131 | echo "$as_me: failed program was:" >&5 | |
18132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18133 | ||
18134 | ac_cv_type_int=no | |
18135 | fi | |
ac1cb8d3 | 18136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18137 | fi |
18138 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18139 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18140 | ||
18141 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18142 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18143 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18145 | else | |
18146 | if test "$ac_cv_type_int" = yes; then | |
18147 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18148 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18149 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18150 | # This bug is HP SR number 8606223364. | |
18151 | if test "$cross_compiling" = yes; then | |
18152 | # Depending upon the size, compute the lo and hi bounds. | |
18153 | cat >conftest.$ac_ext <<_ACEOF | |
18154 | /* confdefs.h. */ | |
18155 | _ACEOF | |
18156 | cat confdefs.h >>conftest.$ac_ext | |
18157 | cat >>conftest.$ac_ext <<_ACEOF | |
18158 | /* end confdefs.h. */ | |
18159 | $ac_includes_default | |
18160 | int | |
18161 | main () | |
18162 | { | |
18163 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18164 | test_array [0] = 0 | |
18165 | ||
18166 | ; | |
18167 | return 0; | |
18168 | } | |
18169 | _ACEOF | |
18170 | rm -f conftest.$ac_objext | |
18171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18172 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18173 | ac_status=$? |
ac1cb8d3 VS |
18174 | grep -v '^ *+' conftest.er1 >conftest.err |
18175 | rm -f conftest.er1 | |
18176 | cat conftest.err >&5 | |
a848cd7e SC |
18177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18178 | (exit $ac_status); } && | |
3565d135 RR |
18179 | { ac_try='test -z "$ac_c_werror_flag" |
18180 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18182 | (eval $ac_try) 2>&5 | |
18183 | ac_status=$? | |
18184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18185 | (exit $ac_status); }; } && | |
18186 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18188 | (eval $ac_try) 2>&5 | |
18189 | ac_status=$? | |
18190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18191 | (exit $ac_status); }; }; then | |
18192 | ac_lo=0 ac_mid=0 | |
18193 | while :; do | |
18194 | cat >conftest.$ac_ext <<_ACEOF | |
18195 | /* confdefs.h. */ | |
18196 | _ACEOF | |
18197 | cat confdefs.h >>conftest.$ac_ext | |
18198 | cat >>conftest.$ac_ext <<_ACEOF | |
18199 | /* end confdefs.h. */ | |
18200 | $ac_includes_default | |
18201 | int | |
18202 | main () | |
18203 | { | |
18204 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18205 | test_array [0] = 0 | |
18206 | ||
18207 | ; | |
18208 | return 0; | |
18209 | } | |
18210 | _ACEOF | |
18211 | rm -f conftest.$ac_objext | |
18212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18213 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18214 | ac_status=$? |
ac1cb8d3 VS |
18215 | grep -v '^ *+' conftest.er1 >conftest.err |
18216 | rm -f conftest.er1 | |
18217 | cat conftest.err >&5 | |
a848cd7e SC |
18218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18219 | (exit $ac_status); } && | |
3565d135 RR |
18220 | { ac_try='test -z "$ac_c_werror_flag" |
18221 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18223 | (eval $ac_try) 2>&5 | |
18224 | ac_status=$? | |
18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18226 | (exit $ac_status); }; } && | |
18227 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18229 | (eval $ac_try) 2>&5 | |
18230 | ac_status=$? | |
18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18232 | (exit $ac_status); }; }; then | |
18233 | ac_hi=$ac_mid; break | |
18234 | else | |
18235 | echo "$as_me: failed program was:" >&5 | |
18236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18237 | ||
18238 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18239 | if test $ac_lo -le $ac_mid; then |
18240 | ac_lo= ac_hi= | |
18241 | break | |
18242 | fi | |
18243 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18244 | fi |
ac1cb8d3 | 18245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18246 | done |
18247 | else | |
18248 | echo "$as_me: failed program was:" >&5 | |
18249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18250 | ||
18251 | cat >conftest.$ac_ext <<_ACEOF | |
18252 | /* confdefs.h. */ | |
18253 | _ACEOF | |
18254 | cat confdefs.h >>conftest.$ac_ext | |
18255 | cat >>conftest.$ac_ext <<_ACEOF | |
18256 | /* end confdefs.h. */ | |
18257 | $ac_includes_default | |
18258 | int | |
18259 | main () | |
18260 | { | |
18261 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18262 | test_array [0] = 0 | |
18263 | ||
18264 | ; | |
18265 | return 0; | |
18266 | } | |
18267 | _ACEOF | |
18268 | rm -f conftest.$ac_objext | |
18269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18271 | ac_status=$? |
ac1cb8d3 VS |
18272 | grep -v '^ *+' conftest.er1 >conftest.err |
18273 | rm -f conftest.er1 | |
18274 | cat conftest.err >&5 | |
a848cd7e SC |
18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18276 | (exit $ac_status); } && | |
3565d135 RR |
18277 | { ac_try='test -z "$ac_c_werror_flag" |
18278 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18280 | (eval $ac_try) 2>&5 | |
18281 | ac_status=$? | |
18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18283 | (exit $ac_status); }; } && | |
18284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18286 | (eval $ac_try) 2>&5 | |
18287 | ac_status=$? | |
18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18289 | (exit $ac_status); }; }; then | |
18290 | ac_hi=-1 ac_mid=-1 | |
18291 | while :; do | |
18292 | cat >conftest.$ac_ext <<_ACEOF | |
18293 | /* confdefs.h. */ | |
18294 | _ACEOF | |
18295 | cat confdefs.h >>conftest.$ac_ext | |
18296 | cat >>conftest.$ac_ext <<_ACEOF | |
18297 | /* end confdefs.h. */ | |
18298 | $ac_includes_default | |
18299 | int | |
18300 | main () | |
18301 | { | |
18302 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
18303 | test_array [0] = 0 | |
18304 | ||
18305 | ; | |
18306 | return 0; | |
18307 | } | |
18308 | _ACEOF | |
18309 | rm -f conftest.$ac_objext | |
18310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18311 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18312 | ac_status=$? |
ac1cb8d3 VS |
18313 | grep -v '^ *+' conftest.er1 >conftest.err |
18314 | rm -f conftest.er1 | |
18315 | cat conftest.err >&5 | |
a848cd7e SC |
18316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18317 | (exit $ac_status); } && | |
3565d135 RR |
18318 | { ac_try='test -z "$ac_c_werror_flag" |
18319 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18321 | (eval $ac_try) 2>&5 | |
18322 | ac_status=$? | |
18323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18324 | (exit $ac_status); }; } && | |
18325 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18327 | (eval $ac_try) 2>&5 | |
18328 | ac_status=$? | |
18329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18330 | (exit $ac_status); }; }; then | |
18331 | ac_lo=$ac_mid; break | |
18332 | else | |
18333 | echo "$as_me: failed program was:" >&5 | |
18334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18335 | ||
18336 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18337 | if test $ac_mid -le $ac_hi; then |
18338 | ac_lo= ac_hi= | |
18339 | break | |
18340 | fi | |
18341 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18342 | fi |
ac1cb8d3 | 18343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18344 | done |
18345 | else | |
18346 | echo "$as_me: failed program was:" >&5 | |
18347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18348 | ||
18349 | ac_lo= ac_hi= | |
18350 | fi | |
ac1cb8d3 | 18351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18352 | fi |
ac1cb8d3 | 18353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18354 | # Binary search between lo and hi bounds. |
18355 | while test "x$ac_lo" != "x$ac_hi"; do | |
18356 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18357 | cat >conftest.$ac_ext <<_ACEOF | |
18358 | /* confdefs.h. */ | |
18359 | _ACEOF | |
18360 | cat confdefs.h >>conftest.$ac_ext | |
18361 | cat >>conftest.$ac_ext <<_ACEOF | |
18362 | /* end confdefs.h. */ | |
18363 | $ac_includes_default | |
18364 | int | |
18365 | main () | |
18366 | { | |
18367 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18368 | test_array [0] = 0 | |
18369 | ||
18370 | ; | |
18371 | return 0; | |
18372 | } | |
18373 | _ACEOF | |
18374 | rm -f conftest.$ac_objext | |
18375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18376 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18377 | ac_status=$? |
ac1cb8d3 VS |
18378 | grep -v '^ *+' conftest.er1 >conftest.err |
18379 | rm -f conftest.er1 | |
18380 | cat conftest.err >&5 | |
a848cd7e SC |
18381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18382 | (exit $ac_status); } && | |
3565d135 RR |
18383 | { ac_try='test -z "$ac_c_werror_flag" |
18384 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18386 | (eval $ac_try) 2>&5 | |
18387 | ac_status=$? | |
18388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18389 | (exit $ac_status); }; } && | |
18390 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18392 | (eval $ac_try) 2>&5 | |
18393 | ac_status=$? | |
18394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18395 | (exit $ac_status); }; }; then | |
18396 | ac_hi=$ac_mid | |
18397 | else | |
18398 | echo "$as_me: failed program was:" >&5 | |
18399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18400 | ||
18401 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18402 | fi | |
ac1cb8d3 | 18403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18404 | done |
18405 | case $ac_lo in | |
18406 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18407 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18408 | See \`config.log' for more details." >&5 | |
18409 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18410 | See \`config.log' for more details." >&2;} | |
18411 | { (exit 1); exit 1; }; } ;; | |
18412 | esac | |
18413 | else | |
18414 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18415 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18416 | See \`config.log' for more details." >&5 | |
18417 | echo "$as_me: error: cannot run test program while cross compiling | |
18418 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18419 | { (exit 1); exit 1; }; } |
18420 | else | |
18421 | cat >conftest.$ac_ext <<_ACEOF | |
18422 | /* confdefs.h. */ | |
18423 | _ACEOF | |
18424 | cat confdefs.h >>conftest.$ac_ext | |
18425 | cat >>conftest.$ac_ext <<_ACEOF | |
18426 | /* end confdefs.h. */ | |
18427 | $ac_includes_default | |
18428 | long longval () { return (long) (sizeof (int)); } | |
18429 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18430 | #include <stdio.h> | |
18431 | #include <stdlib.h> | |
18432 | int | |
18433 | main () | |
18434 | { | |
18435 | ||
18436 | FILE *f = fopen ("conftest.val", "w"); | |
18437 | if (! f) | |
18438 | exit (1); | |
18439 | if (((long) (sizeof (int))) < 0) | |
18440 | { | |
18441 | long i = longval (); | |
18442 | if (i != ((long) (sizeof (int)))) | |
18443 | exit (1); | |
18444 | fprintf (f, "%ld\n", i); | |
18445 | } | |
18446 | else | |
18447 | { | |
18448 | unsigned long i = ulongval (); | |
18449 | if (i != ((long) (sizeof (int)))) | |
18450 | exit (1); | |
18451 | fprintf (f, "%lu\n", i); | |
18452 | } | |
18453 | exit (ferror (f) || fclose (f) != 0); | |
18454 | ||
18455 | ; | |
18456 | return 0; | |
18457 | } | |
18458 | _ACEOF | |
18459 | rm -f conftest$ac_exeext | |
18460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18461 | (eval $ac_link) 2>&5 | |
18462 | ac_status=$? | |
18463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18464 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18466 | (eval $ac_try) 2>&5 | |
18467 | ac_status=$? | |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18469 | (exit $ac_status); }; }; then | |
18470 | ac_cv_sizeof_int=`cat conftest.val` | |
18471 | else | |
18472 | echo "$as_me: program exited with status $ac_status" >&5 | |
18473 | echo "$as_me: failed program was:" >&5 | |
18474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18475 | ||
18476 | ( exit $ac_status ) | |
18477 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18478 | See \`config.log' for more details." >&5 | |
18479 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18480 | See \`config.log' for more details." >&2;} | |
18481 | { (exit 1); exit 1; }; } | |
18482 | fi | |
ac1cb8d3 | 18483 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18484 | fi |
18485 | fi | |
18486 | rm -f conftest.val | |
18487 | else | |
18488 | ac_cv_sizeof_int=0 | |
18489 | fi | |
18490 | fi | |
18491 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18492 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18493 | cat >>confdefs.h <<_ACEOF | |
18494 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18495 | _ACEOF | |
18496 | ||
18497 | ||
18498 | echo "$as_me:$LINENO: checking for long" >&5 | |
18499 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18500 | if test "${ac_cv_type_long+set}" = set; then | |
18501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18502 | else | |
18503 | cat >conftest.$ac_ext <<_ACEOF | |
18504 | /* confdefs.h. */ | |
18505 | _ACEOF | |
18506 | cat confdefs.h >>conftest.$ac_ext | |
18507 | cat >>conftest.$ac_ext <<_ACEOF | |
18508 | /* end confdefs.h. */ | |
18509 | $ac_includes_default | |
18510 | int | |
18511 | main () | |
18512 | { | |
18513 | if ((long *) 0) | |
18514 | return 0; | |
18515 | if (sizeof (long)) | |
18516 | return 0; | |
18517 | ; | |
18518 | return 0; | |
18519 | } | |
18520 | _ACEOF | |
18521 | rm -f conftest.$ac_objext | |
18522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18523 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18524 | ac_status=$? |
ac1cb8d3 VS |
18525 | grep -v '^ *+' conftest.er1 >conftest.err |
18526 | rm -f conftest.er1 | |
18527 | cat conftest.err >&5 | |
a848cd7e SC |
18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18529 | (exit $ac_status); } && | |
3565d135 RR |
18530 | { ac_try='test -z "$ac_c_werror_flag" |
18531 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18533 | (eval $ac_try) 2>&5 | |
18534 | ac_status=$? | |
18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18536 | (exit $ac_status); }; } && | |
18537 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18539 | (eval $ac_try) 2>&5 | |
18540 | ac_status=$? | |
18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18542 | (exit $ac_status); }; }; then | |
18543 | ac_cv_type_long=yes | |
18544 | else | |
18545 | echo "$as_me: failed program was:" >&5 | |
18546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18547 | ||
18548 | ac_cv_type_long=no | |
18549 | fi | |
ac1cb8d3 | 18550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18551 | fi |
18552 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
18553 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
18554 | ||
18555 | echo "$as_me:$LINENO: checking size of long" >&5 | |
18556 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
18557 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18559 | else | |
18560 | if test "$ac_cv_type_long" = yes; then | |
18561 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18562 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18563 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18564 | # This bug is HP SR number 8606223364. | |
18565 | if test "$cross_compiling" = yes; then | |
18566 | # Depending upon the size, compute the lo and hi bounds. | |
18567 | cat >conftest.$ac_ext <<_ACEOF | |
18568 | /* confdefs.h. */ | |
18569 | _ACEOF | |
18570 | cat confdefs.h >>conftest.$ac_ext | |
18571 | cat >>conftest.$ac_ext <<_ACEOF | |
18572 | /* end confdefs.h. */ | |
18573 | $ac_includes_default | |
18574 | int | |
18575 | main () | |
18576 | { | |
18577 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
18578 | test_array [0] = 0 | |
18579 | ||
18580 | ; | |
18581 | return 0; | |
18582 | } | |
18583 | _ACEOF | |
18584 | rm -f conftest.$ac_objext | |
18585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18586 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18587 | ac_status=$? |
ac1cb8d3 VS |
18588 | grep -v '^ *+' conftest.er1 >conftest.err |
18589 | rm -f conftest.er1 | |
18590 | cat conftest.err >&5 | |
a848cd7e SC |
18591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18592 | (exit $ac_status); } && | |
3565d135 RR |
18593 | { ac_try='test -z "$ac_c_werror_flag" |
18594 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18596 | (eval $ac_try) 2>&5 | |
18597 | ac_status=$? | |
18598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18599 | (exit $ac_status); }; } && | |
18600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18602 | (eval $ac_try) 2>&5 | |
18603 | ac_status=$? | |
18604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18605 | (exit $ac_status); }; }; then | |
18606 | ac_lo=0 ac_mid=0 | |
18607 | while :; do | |
18608 | cat >conftest.$ac_ext <<_ACEOF | |
18609 | /* confdefs.h. */ | |
18610 | _ACEOF | |
18611 | cat confdefs.h >>conftest.$ac_ext | |
18612 | cat >>conftest.$ac_ext <<_ACEOF | |
18613 | /* end confdefs.h. */ | |
18614 | $ac_includes_default | |
18615 | int | |
18616 | main () | |
18617 | { | |
18618 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18619 | test_array [0] = 0 | |
18620 | ||
18621 | ; | |
18622 | return 0; | |
18623 | } | |
18624 | _ACEOF | |
18625 | rm -f conftest.$ac_objext | |
18626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18627 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18628 | ac_status=$? |
ac1cb8d3 VS |
18629 | grep -v '^ *+' conftest.er1 >conftest.err |
18630 | rm -f conftest.er1 | |
18631 | cat conftest.err >&5 | |
a848cd7e SC |
18632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18633 | (exit $ac_status); } && | |
3565d135 RR |
18634 | { ac_try='test -z "$ac_c_werror_flag" |
18635 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18637 | (eval $ac_try) 2>&5 | |
18638 | ac_status=$? | |
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); }; } && | |
18641 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18643 | (eval $ac_try) 2>&5 | |
18644 | ac_status=$? | |
18645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18646 | (exit $ac_status); }; }; then | |
18647 | ac_hi=$ac_mid; break | |
18648 | else | |
18649 | echo "$as_me: failed program was:" >&5 | |
18650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18651 | ||
18652 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18653 | if test $ac_lo -le $ac_mid; then |
18654 | ac_lo= ac_hi= | |
18655 | break | |
18656 | fi | |
18657 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18658 | fi |
ac1cb8d3 | 18659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18660 | done |
18661 | else | |
18662 | echo "$as_me: failed program was:" >&5 | |
18663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18664 | ||
18665 | cat >conftest.$ac_ext <<_ACEOF | |
18666 | /* confdefs.h. */ | |
18667 | _ACEOF | |
18668 | cat confdefs.h >>conftest.$ac_ext | |
18669 | cat >>conftest.$ac_ext <<_ACEOF | |
18670 | /* end confdefs.h. */ | |
18671 | $ac_includes_default | |
18672 | int | |
18673 | main () | |
18674 | { | |
18675 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
18676 | test_array [0] = 0 | |
18677 | ||
18678 | ; | |
18679 | return 0; | |
18680 | } | |
18681 | _ACEOF | |
18682 | rm -f conftest.$ac_objext | |
18683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18684 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18685 | ac_status=$? |
ac1cb8d3 VS |
18686 | grep -v '^ *+' conftest.er1 >conftest.err |
18687 | rm -f conftest.er1 | |
18688 | cat conftest.err >&5 | |
a848cd7e SC |
18689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18690 | (exit $ac_status); } && | |
3565d135 RR |
18691 | { ac_try='test -z "$ac_c_werror_flag" |
18692 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18694 | (eval $ac_try) 2>&5 | |
18695 | ac_status=$? | |
18696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18697 | (exit $ac_status); }; } && | |
18698 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18700 | (eval $ac_try) 2>&5 | |
18701 | ac_status=$? | |
18702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18703 | (exit $ac_status); }; }; then | |
18704 | ac_hi=-1 ac_mid=-1 | |
18705 | while :; do | |
18706 | cat >conftest.$ac_ext <<_ACEOF | |
18707 | /* confdefs.h. */ | |
18708 | _ACEOF | |
18709 | cat confdefs.h >>conftest.$ac_ext | |
18710 | cat >>conftest.$ac_ext <<_ACEOF | |
18711 | /* end confdefs.h. */ | |
18712 | $ac_includes_default | |
18713 | int | |
18714 | main () | |
18715 | { | |
18716 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
18717 | test_array [0] = 0 | |
18718 | ||
18719 | ; | |
18720 | return 0; | |
18721 | } | |
18722 | _ACEOF | |
18723 | rm -f conftest.$ac_objext | |
18724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18725 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18726 | ac_status=$? |
ac1cb8d3 VS |
18727 | grep -v '^ *+' conftest.er1 >conftest.err |
18728 | rm -f conftest.er1 | |
18729 | cat conftest.err >&5 | |
a848cd7e SC |
18730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18731 | (exit $ac_status); } && | |
3565d135 RR |
18732 | { ac_try='test -z "$ac_c_werror_flag" |
18733 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18735 | (eval $ac_try) 2>&5 | |
18736 | ac_status=$? | |
18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18738 | (exit $ac_status); }; } && | |
18739 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18741 | (eval $ac_try) 2>&5 | |
18742 | ac_status=$? | |
18743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18744 | (exit $ac_status); }; }; then | |
18745 | ac_lo=$ac_mid; break | |
18746 | else | |
18747 | echo "$as_me: failed program was:" >&5 | |
18748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18749 | ||
18750 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18751 | if test $ac_mid -le $ac_hi; then |
18752 | ac_lo= ac_hi= | |
18753 | break | |
18754 | fi | |
18755 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18756 | fi |
ac1cb8d3 | 18757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18758 | done |
18759 | else | |
18760 | echo "$as_me: failed program was:" >&5 | |
18761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18762 | ||
18763 | ac_lo= ac_hi= | |
18764 | fi | |
ac1cb8d3 | 18765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18766 | fi |
ac1cb8d3 | 18767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18768 | # Binary search between lo and hi bounds. |
18769 | while test "x$ac_lo" != "x$ac_hi"; do | |
18770 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18771 | cat >conftest.$ac_ext <<_ACEOF | |
18772 | /* confdefs.h. */ | |
18773 | _ACEOF | |
18774 | cat confdefs.h >>conftest.$ac_ext | |
18775 | cat >>conftest.$ac_ext <<_ACEOF | |
18776 | /* end confdefs.h. */ | |
18777 | $ac_includes_default | |
18778 | int | |
18779 | main () | |
18780 | { | |
18781 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18782 | test_array [0] = 0 | |
18783 | ||
18784 | ; | |
18785 | return 0; | |
18786 | } | |
18787 | _ACEOF | |
18788 | rm -f conftest.$ac_objext | |
18789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18790 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18791 | ac_status=$? |
ac1cb8d3 VS |
18792 | grep -v '^ *+' conftest.er1 >conftest.err |
18793 | rm -f conftest.er1 | |
18794 | cat conftest.err >&5 | |
a848cd7e SC |
18795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18796 | (exit $ac_status); } && | |
3565d135 RR |
18797 | { ac_try='test -z "$ac_c_werror_flag" |
18798 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18800 | (eval $ac_try) 2>&5 | |
18801 | ac_status=$? | |
18802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18803 | (exit $ac_status); }; } && | |
18804 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18806 | (eval $ac_try) 2>&5 | |
18807 | ac_status=$? | |
18808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18809 | (exit $ac_status); }; }; then | |
18810 | ac_hi=$ac_mid | |
18811 | else | |
18812 | echo "$as_me: failed program was:" >&5 | |
18813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18814 | ||
18815 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18816 | fi | |
ac1cb8d3 | 18817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18818 | done |
18819 | case $ac_lo in | |
18820 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
18821 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18822 | See \`config.log' for more details." >&5 | |
18823 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18824 | See \`config.log' for more details." >&2;} | |
18825 | { (exit 1); exit 1; }; } ;; | |
18826 | esac | |
18827 | else | |
18828 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18829 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18830 | See \`config.log' for more details." >&5 | |
18831 | echo "$as_me: error: cannot run test program while cross compiling | |
18832 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18833 | { (exit 1); exit 1; }; } |
18834 | else | |
18835 | cat >conftest.$ac_ext <<_ACEOF | |
18836 | /* confdefs.h. */ | |
18837 | _ACEOF | |
18838 | cat confdefs.h >>conftest.$ac_ext | |
18839 | cat >>conftest.$ac_ext <<_ACEOF | |
18840 | /* end confdefs.h. */ | |
18841 | $ac_includes_default | |
18842 | long longval () { return (long) (sizeof (long)); } | |
18843 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
18844 | #include <stdio.h> | |
18845 | #include <stdlib.h> | |
18846 | int | |
18847 | main () | |
18848 | { | |
18849 | ||
18850 | FILE *f = fopen ("conftest.val", "w"); | |
18851 | if (! f) | |
18852 | exit (1); | |
18853 | if (((long) (sizeof (long))) < 0) | |
18854 | { | |
18855 | long i = longval (); | |
18856 | if (i != ((long) (sizeof (long)))) | |
18857 | exit (1); | |
18858 | fprintf (f, "%ld\n", i); | |
18859 | } | |
18860 | else | |
18861 | { | |
18862 | unsigned long i = ulongval (); | |
18863 | if (i != ((long) (sizeof (long)))) | |
18864 | exit (1); | |
18865 | fprintf (f, "%lu\n", i); | |
18866 | } | |
18867 | exit (ferror (f) || fclose (f) != 0); | |
18868 | ||
18869 | ; | |
18870 | return 0; | |
18871 | } | |
18872 | _ACEOF | |
18873 | rm -f conftest$ac_exeext | |
18874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18875 | (eval $ac_link) 2>&5 | |
18876 | ac_status=$? | |
18877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18878 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18880 | (eval $ac_try) 2>&5 | |
18881 | ac_status=$? | |
18882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18883 | (exit $ac_status); }; }; then | |
18884 | ac_cv_sizeof_long=`cat conftest.val` | |
18885 | else | |
18886 | echo "$as_me: program exited with status $ac_status" >&5 | |
18887 | echo "$as_me: failed program was:" >&5 | |
18888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18889 | ||
18890 | ( exit $ac_status ) | |
18891 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18892 | See \`config.log' for more details." >&5 | |
18893 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18894 | See \`config.log' for more details." >&2;} | |
18895 | { (exit 1); exit 1; }; } | |
18896 | fi | |
ac1cb8d3 | 18897 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18898 | fi |
18899 | fi | |
18900 | rm -f conftest.val | |
18901 | else | |
18902 | ac_cv_sizeof_long=0 | |
18903 | fi | |
18904 | fi | |
18905 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
18906 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
18907 | cat >>confdefs.h <<_ACEOF | |
18908 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
18909 | _ACEOF | |
18910 | ||
18911 | ||
18912 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
18913 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
18914 | if test "${ac_cv_type_size_t+set}" = set; then | |
18915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18916 | else | |
18917 | cat >conftest.$ac_ext <<_ACEOF | |
18918 | /* confdefs.h. */ | |
18919 | _ACEOF | |
18920 | cat confdefs.h >>conftest.$ac_ext | |
18921 | cat >>conftest.$ac_ext <<_ACEOF | |
18922 | /* end confdefs.h. */ | |
18923 | $ac_includes_default | |
18924 | int | |
18925 | main () | |
18926 | { | |
18927 | if ((size_t *) 0) | |
18928 | return 0; | |
18929 | if (sizeof (size_t)) | |
18930 | return 0; | |
18931 | ; | |
18932 | return 0; | |
18933 | } | |
18934 | _ACEOF | |
18935 | rm -f conftest.$ac_objext | |
18936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18937 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18938 | ac_status=$? |
ac1cb8d3 VS |
18939 | grep -v '^ *+' conftest.er1 >conftest.err |
18940 | rm -f conftest.er1 | |
18941 | cat conftest.err >&5 | |
a848cd7e SC |
18942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18943 | (exit $ac_status); } && | |
3565d135 RR |
18944 | { ac_try='test -z "$ac_c_werror_flag" |
18945 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18947 | (eval $ac_try) 2>&5 | |
18948 | ac_status=$? | |
18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18950 | (exit $ac_status); }; } && | |
18951 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18953 | (eval $ac_try) 2>&5 | |
18954 | ac_status=$? | |
18955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18956 | (exit $ac_status); }; }; then | |
18957 | ac_cv_type_size_t=yes | |
18958 | else | |
18959 | echo "$as_me: failed program was:" >&5 | |
18960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18961 | ||
18962 | ac_cv_type_size_t=no | |
18963 | fi | |
ac1cb8d3 | 18964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18965 | fi |
18966 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
18967 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
18968 | ||
18969 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
18970 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
18971 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
18972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18973 | else | |
18974 | if test "$ac_cv_type_size_t" = yes; then | |
18975 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18976 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18977 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18978 | # This bug is HP SR number 8606223364. | |
18979 | if test "$cross_compiling" = yes; then | |
18980 | # Depending upon the size, compute the lo and hi bounds. | |
18981 | cat >conftest.$ac_ext <<_ACEOF | |
18982 | /* confdefs.h. */ | |
18983 | _ACEOF | |
18984 | cat confdefs.h >>conftest.$ac_ext | |
18985 | cat >>conftest.$ac_ext <<_ACEOF | |
18986 | /* end confdefs.h. */ | |
18987 | $ac_includes_default | |
18988 | int | |
18989 | main () | |
18990 | { | |
18991 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
18992 | test_array [0] = 0 | |
18993 | ||
18994 | ; | |
18995 | return 0; | |
18996 | } | |
18997 | _ACEOF | |
18998 | rm -f conftest.$ac_objext | |
18999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19000 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19001 | ac_status=$? |
ac1cb8d3 VS |
19002 | grep -v '^ *+' conftest.er1 >conftest.err |
19003 | rm -f conftest.er1 | |
19004 | cat conftest.err >&5 | |
a848cd7e SC |
19005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19006 | (exit $ac_status); } && | |
3565d135 RR |
19007 | { ac_try='test -z "$ac_c_werror_flag" |
19008 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19010 | (eval $ac_try) 2>&5 | |
19011 | ac_status=$? | |
19012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19013 | (exit $ac_status); }; } && | |
19014 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19016 | (eval $ac_try) 2>&5 | |
19017 | ac_status=$? | |
19018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19019 | (exit $ac_status); }; }; then | |
19020 | ac_lo=0 ac_mid=0 | |
19021 | while :; do | |
19022 | cat >conftest.$ac_ext <<_ACEOF | |
19023 | /* confdefs.h. */ | |
19024 | _ACEOF | |
19025 | cat confdefs.h >>conftest.$ac_ext | |
19026 | cat >>conftest.$ac_ext <<_ACEOF | |
19027 | /* end confdefs.h. */ | |
19028 | $ac_includes_default | |
19029 | int | |
19030 | main () | |
19031 | { | |
19032 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19033 | test_array [0] = 0 | |
19034 | ||
19035 | ; | |
19036 | return 0; | |
19037 | } | |
19038 | _ACEOF | |
19039 | rm -f conftest.$ac_objext | |
19040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19041 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19042 | ac_status=$? |
ac1cb8d3 VS |
19043 | grep -v '^ *+' conftest.er1 >conftest.err |
19044 | rm -f conftest.er1 | |
19045 | cat conftest.err >&5 | |
a848cd7e SC |
19046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19047 | (exit $ac_status); } && | |
3565d135 RR |
19048 | { ac_try='test -z "$ac_c_werror_flag" |
19049 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19051 | (eval $ac_try) 2>&5 | |
19052 | ac_status=$? | |
19053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19054 | (exit $ac_status); }; } && | |
19055 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19057 | (eval $ac_try) 2>&5 | |
19058 | ac_status=$? | |
19059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19060 | (exit $ac_status); }; }; then | |
19061 | ac_hi=$ac_mid; break | |
19062 | else | |
19063 | echo "$as_me: failed program was:" >&5 | |
19064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19065 | ||
19066 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19067 | if test $ac_lo -le $ac_mid; then |
19068 | ac_lo= ac_hi= | |
19069 | break | |
19070 | fi | |
19071 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19072 | fi |
ac1cb8d3 | 19073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19074 | done |
19075 | else | |
19076 | echo "$as_me: failed program was:" >&5 | |
19077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19078 | ||
19079 | cat >conftest.$ac_ext <<_ACEOF | |
19080 | /* confdefs.h. */ | |
19081 | _ACEOF | |
19082 | cat confdefs.h >>conftest.$ac_ext | |
19083 | cat >>conftest.$ac_ext <<_ACEOF | |
19084 | /* end confdefs.h. */ | |
19085 | $ac_includes_default | |
19086 | int | |
19087 | main () | |
19088 | { | |
19089 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19090 | test_array [0] = 0 | |
19091 | ||
19092 | ; | |
19093 | return 0; | |
19094 | } | |
19095 | _ACEOF | |
19096 | rm -f conftest.$ac_objext | |
19097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19098 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19099 | ac_status=$? |
ac1cb8d3 VS |
19100 | grep -v '^ *+' conftest.er1 >conftest.err |
19101 | rm -f conftest.er1 | |
19102 | cat conftest.err >&5 | |
a848cd7e SC |
19103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19104 | (exit $ac_status); } && | |
3565d135 RR |
19105 | { ac_try='test -z "$ac_c_werror_flag" |
19106 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19108 | (eval $ac_try) 2>&5 | |
19109 | ac_status=$? | |
19110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19111 | (exit $ac_status); }; } && | |
19112 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19114 | (eval $ac_try) 2>&5 | |
19115 | ac_status=$? | |
19116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19117 | (exit $ac_status); }; }; then | |
19118 | ac_hi=-1 ac_mid=-1 | |
19119 | while :; do | |
19120 | cat >conftest.$ac_ext <<_ACEOF | |
19121 | /* confdefs.h. */ | |
19122 | _ACEOF | |
19123 | cat confdefs.h >>conftest.$ac_ext | |
19124 | cat >>conftest.$ac_ext <<_ACEOF | |
19125 | /* end confdefs.h. */ | |
19126 | $ac_includes_default | |
19127 | int | |
19128 | main () | |
19129 | { | |
19130 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19131 | test_array [0] = 0 | |
19132 | ||
19133 | ; | |
19134 | return 0; | |
19135 | } | |
19136 | _ACEOF | |
19137 | rm -f conftest.$ac_objext | |
19138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19139 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19140 | ac_status=$? |
ac1cb8d3 VS |
19141 | grep -v '^ *+' conftest.er1 >conftest.err |
19142 | rm -f conftest.er1 | |
19143 | cat conftest.err >&5 | |
a848cd7e SC |
19144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19145 | (exit $ac_status); } && | |
3565d135 RR |
19146 | { ac_try='test -z "$ac_c_werror_flag" |
19147 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19149 | (eval $ac_try) 2>&5 | |
19150 | ac_status=$? | |
19151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19152 | (exit $ac_status); }; } && | |
19153 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19155 | (eval $ac_try) 2>&5 | |
19156 | ac_status=$? | |
19157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19158 | (exit $ac_status); }; }; then | |
19159 | ac_lo=$ac_mid; break | |
19160 | else | |
19161 | echo "$as_me: failed program was:" >&5 | |
19162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19163 | ||
19164 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19165 | if test $ac_mid -le $ac_hi; then |
19166 | ac_lo= ac_hi= | |
19167 | break | |
19168 | fi | |
19169 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19170 | fi |
ac1cb8d3 | 19171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19172 | done |
19173 | else | |
19174 | echo "$as_me: failed program was:" >&5 | |
19175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19176 | ||
19177 | ac_lo= ac_hi= | |
19178 | fi | |
ac1cb8d3 | 19179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19180 | fi |
ac1cb8d3 | 19181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19182 | # Binary search between lo and hi bounds. |
19183 | while test "x$ac_lo" != "x$ac_hi"; do | |
19184 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19185 | cat >conftest.$ac_ext <<_ACEOF | |
19186 | /* confdefs.h. */ | |
19187 | _ACEOF | |
19188 | cat confdefs.h >>conftest.$ac_ext | |
19189 | cat >>conftest.$ac_ext <<_ACEOF | |
19190 | /* end confdefs.h. */ | |
19191 | $ac_includes_default | |
19192 | int | |
19193 | main () | |
19194 | { | |
19195 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19196 | test_array [0] = 0 | |
19197 | ||
19198 | ; | |
19199 | return 0; | |
19200 | } | |
19201 | _ACEOF | |
19202 | rm -f conftest.$ac_objext | |
19203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19204 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19205 | ac_status=$? |
ac1cb8d3 VS |
19206 | grep -v '^ *+' conftest.er1 >conftest.err |
19207 | rm -f conftest.er1 | |
19208 | cat conftest.err >&5 | |
a848cd7e SC |
19209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19210 | (exit $ac_status); } && | |
3565d135 RR |
19211 | { ac_try='test -z "$ac_c_werror_flag" |
19212 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19214 | (eval $ac_try) 2>&5 | |
19215 | ac_status=$? | |
19216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19217 | (exit $ac_status); }; } && | |
19218 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19220 | (eval $ac_try) 2>&5 | |
19221 | ac_status=$? | |
19222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19223 | (exit $ac_status); }; }; then | |
19224 | ac_hi=$ac_mid | |
19225 | else | |
19226 | echo "$as_me: failed program was:" >&5 | |
19227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19228 | ||
19229 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19230 | fi | |
ac1cb8d3 | 19231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19232 | done |
19233 | case $ac_lo in | |
19234 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19235 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19236 | See \`config.log' for more details." >&5 | |
19237 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19238 | See \`config.log' for more details." >&2;} | |
19239 | { (exit 1); exit 1; }; } ;; | |
19240 | esac | |
19241 | else | |
19242 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
19243 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19244 | See \`config.log' for more details." >&5 | |
19245 | echo "$as_me: error: cannot run test program while cross compiling | |
19246 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19247 | { (exit 1); exit 1; }; } |
19248 | else | |
19249 | cat >conftest.$ac_ext <<_ACEOF | |
19250 | /* confdefs.h. */ | |
19251 | _ACEOF | |
19252 | cat confdefs.h >>conftest.$ac_ext | |
19253 | cat >>conftest.$ac_ext <<_ACEOF | |
19254 | /* end confdefs.h. */ | |
19255 | $ac_includes_default | |
19256 | long longval () { return (long) (sizeof (size_t)); } | |
19257 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19258 | #include <stdio.h> | |
19259 | #include <stdlib.h> | |
19260 | int | |
19261 | main () | |
19262 | { | |
19263 | ||
19264 | FILE *f = fopen ("conftest.val", "w"); | |
19265 | if (! f) | |
19266 | exit (1); | |
19267 | if (((long) (sizeof (size_t))) < 0) | |
19268 | { | |
19269 | long i = longval (); | |
19270 | if (i != ((long) (sizeof (size_t)))) | |
19271 | exit (1); | |
19272 | fprintf (f, "%ld\n", i); | |
19273 | } | |
19274 | else | |
19275 | { | |
19276 | unsigned long i = ulongval (); | |
19277 | if (i != ((long) (sizeof (size_t)))) | |
19278 | exit (1); | |
19279 | fprintf (f, "%lu\n", i); | |
19280 | } | |
19281 | exit (ferror (f) || fclose (f) != 0); | |
19282 | ||
19283 | ; | |
19284 | return 0; | |
19285 | } | |
19286 | _ACEOF | |
19287 | rm -f conftest$ac_exeext | |
19288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19289 | (eval $ac_link) 2>&5 | |
19290 | ac_status=$? | |
19291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19292 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19294 | (eval $ac_try) 2>&5 | |
19295 | ac_status=$? | |
19296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19297 | (exit $ac_status); }; }; then | |
19298 | ac_cv_sizeof_size_t=`cat conftest.val` | |
19299 | else | |
19300 | echo "$as_me: program exited with status $ac_status" >&5 | |
19301 | echo "$as_me: failed program was:" >&5 | |
19302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19303 | ||
19304 | ( exit $ac_status ) | |
19305 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19306 | See \`config.log' for more details." >&5 | |
19307 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19308 | See \`config.log' for more details." >&2;} | |
19309 | { (exit 1); exit 1; }; } | |
19310 | fi | |
ac1cb8d3 | 19311 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19312 | fi |
19313 | fi | |
19314 | rm -f conftest.val | |
19315 | else | |
19316 | ac_cv_sizeof_size_t=0 | |
19317 | fi | |
19318 | fi | |
19319 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
19320 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
19321 | cat >>confdefs.h <<_ACEOF | |
19322 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
19323 | _ACEOF | |
19324 | ||
19325 | ||
19326 | ||
19327 | case "${host}" in | |
19328 | arm-*-linux* ) | |
19329 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19330 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19331 | if test "${ac_cv_type_long_long+set}" = set; then | |
19332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19333 | else | |
19334 | cat >conftest.$ac_ext <<_ACEOF | |
19335 | /* confdefs.h. */ | |
19336 | _ACEOF | |
19337 | cat confdefs.h >>conftest.$ac_ext | |
19338 | cat >>conftest.$ac_ext <<_ACEOF | |
19339 | /* end confdefs.h. */ | |
19340 | $ac_includes_default | |
19341 | int | |
19342 | main () | |
19343 | { | |
19344 | if ((long long *) 0) | |
19345 | return 0; | |
19346 | if (sizeof (long long)) | |
19347 | return 0; | |
19348 | ; | |
19349 | return 0; | |
19350 | } | |
19351 | _ACEOF | |
19352 | rm -f conftest.$ac_objext | |
19353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19355 | ac_status=$? |
ac1cb8d3 VS |
19356 | grep -v '^ *+' conftest.er1 >conftest.err |
19357 | rm -f conftest.er1 | |
19358 | cat conftest.err >&5 | |
a848cd7e SC |
19359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19360 | (exit $ac_status); } && | |
3565d135 RR |
19361 | { ac_try='test -z "$ac_c_werror_flag" |
19362 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19364 | (eval $ac_try) 2>&5 | |
19365 | ac_status=$? | |
19366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19367 | (exit $ac_status); }; } && | |
19368 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19370 | (eval $ac_try) 2>&5 | |
19371 | ac_status=$? | |
19372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19373 | (exit $ac_status); }; }; then | |
19374 | ac_cv_type_long_long=yes | |
19375 | else | |
19376 | echo "$as_me: failed program was:" >&5 | |
19377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19378 | ||
19379 | ac_cv_type_long_long=no | |
19380 | fi | |
ac1cb8d3 | 19381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19382 | fi |
19383 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19384 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19385 | ||
19386 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19387 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19388 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19390 | else | |
19391 | if test "$ac_cv_type_long_long" = yes; then | |
19392 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19393 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19394 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19395 | # This bug is HP SR number 8606223364. | |
19396 | if test "$cross_compiling" = yes; then | |
19397 | # Depending upon the size, compute the lo and hi bounds. | |
19398 | cat >conftest.$ac_ext <<_ACEOF | |
19399 | /* confdefs.h. */ | |
19400 | _ACEOF | |
19401 | cat confdefs.h >>conftest.$ac_ext | |
19402 | cat >>conftest.$ac_ext <<_ACEOF | |
19403 | /* end confdefs.h. */ | |
19404 | $ac_includes_default | |
19405 | int | |
19406 | main () | |
19407 | { | |
19408 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19409 | test_array [0] = 0 | |
19410 | ||
19411 | ; | |
19412 | return 0; | |
19413 | } | |
19414 | _ACEOF | |
19415 | rm -f conftest.$ac_objext | |
19416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19417 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19418 | ac_status=$? |
ac1cb8d3 VS |
19419 | grep -v '^ *+' conftest.er1 >conftest.err |
19420 | rm -f conftest.er1 | |
19421 | cat conftest.err >&5 | |
a848cd7e SC |
19422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19423 | (exit $ac_status); } && | |
3565d135 RR |
19424 | { ac_try='test -z "$ac_c_werror_flag" |
19425 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19427 | (eval $ac_try) 2>&5 | |
19428 | ac_status=$? | |
19429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19430 | (exit $ac_status); }; } && | |
19431 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19433 | (eval $ac_try) 2>&5 | |
19434 | ac_status=$? | |
19435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19436 | (exit $ac_status); }; }; then | |
19437 | ac_lo=0 ac_mid=0 | |
19438 | while :; do | |
19439 | cat >conftest.$ac_ext <<_ACEOF | |
19440 | /* confdefs.h. */ | |
19441 | _ACEOF | |
19442 | cat confdefs.h >>conftest.$ac_ext | |
19443 | cat >>conftest.$ac_ext <<_ACEOF | |
19444 | /* end confdefs.h. */ | |
19445 | $ac_includes_default | |
19446 | int | |
19447 | main () | |
19448 | { | |
19449 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19450 | test_array [0] = 0 | |
19451 | ||
19452 | ; | |
19453 | return 0; | |
19454 | } | |
19455 | _ACEOF | |
19456 | rm -f conftest.$ac_objext | |
19457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19458 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19459 | ac_status=$? |
ac1cb8d3 VS |
19460 | grep -v '^ *+' conftest.er1 >conftest.err |
19461 | rm -f conftest.er1 | |
19462 | cat conftest.err >&5 | |
a848cd7e SC |
19463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19464 | (exit $ac_status); } && | |
3565d135 RR |
19465 | { ac_try='test -z "$ac_c_werror_flag" |
19466 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19468 | (eval $ac_try) 2>&5 | |
19469 | ac_status=$? | |
19470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19471 | (exit $ac_status); }; } && | |
19472 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19474 | (eval $ac_try) 2>&5 | |
19475 | ac_status=$? | |
19476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19477 | (exit $ac_status); }; }; then | |
19478 | ac_hi=$ac_mid; break | |
19479 | else | |
19480 | echo "$as_me: failed program was:" >&5 | |
19481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19482 | ||
19483 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19484 | if test $ac_lo -le $ac_mid; then |
19485 | ac_lo= ac_hi= | |
19486 | break | |
19487 | fi | |
19488 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19489 | fi |
ac1cb8d3 | 19490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19491 | done |
19492 | else | |
19493 | echo "$as_me: failed program was:" >&5 | |
19494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19495 | ||
19496 | cat >conftest.$ac_ext <<_ACEOF | |
19497 | /* confdefs.h. */ | |
19498 | _ACEOF | |
19499 | cat confdefs.h >>conftest.$ac_ext | |
19500 | cat >>conftest.$ac_ext <<_ACEOF | |
19501 | /* end confdefs.h. */ | |
19502 | $ac_includes_default | |
19503 | int | |
19504 | main () | |
19505 | { | |
19506 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19507 | test_array [0] = 0 | |
19508 | ||
19509 | ; | |
19510 | return 0; | |
19511 | } | |
19512 | _ACEOF | |
19513 | rm -f conftest.$ac_objext | |
19514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19515 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19516 | ac_status=$? |
ac1cb8d3 VS |
19517 | grep -v '^ *+' conftest.er1 >conftest.err |
19518 | rm -f conftest.er1 | |
19519 | cat conftest.err >&5 | |
a848cd7e SC |
19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19521 | (exit $ac_status); } && | |
3565d135 RR |
19522 | { ac_try='test -z "$ac_c_werror_flag" |
19523 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19525 | (eval $ac_try) 2>&5 | |
19526 | ac_status=$? | |
19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19528 | (exit $ac_status); }; } && | |
19529 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19531 | (eval $ac_try) 2>&5 | |
19532 | ac_status=$? | |
19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19534 | (exit $ac_status); }; }; then | |
19535 | ac_hi=-1 ac_mid=-1 | |
19536 | while :; do | |
19537 | cat >conftest.$ac_ext <<_ACEOF | |
19538 | /* confdefs.h. */ | |
19539 | _ACEOF | |
19540 | cat confdefs.h >>conftest.$ac_ext | |
19541 | cat >>conftest.$ac_ext <<_ACEOF | |
19542 | /* end confdefs.h. */ | |
19543 | $ac_includes_default | |
19544 | int | |
19545 | main () | |
19546 | { | |
19547 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19548 | test_array [0] = 0 | |
19549 | ||
19550 | ; | |
19551 | return 0; | |
19552 | } | |
19553 | _ACEOF | |
19554 | rm -f conftest.$ac_objext | |
19555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19556 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19557 | ac_status=$? |
ac1cb8d3 VS |
19558 | grep -v '^ *+' conftest.er1 >conftest.err |
19559 | rm -f conftest.er1 | |
19560 | cat conftest.err >&5 | |
a848cd7e SC |
19561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19562 | (exit $ac_status); } && | |
3565d135 RR |
19563 | { ac_try='test -z "$ac_c_werror_flag" |
19564 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19566 | (eval $ac_try) 2>&5 | |
19567 | ac_status=$? | |
19568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19569 | (exit $ac_status); }; } && | |
19570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19572 | (eval $ac_try) 2>&5 | |
19573 | ac_status=$? | |
19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19575 | (exit $ac_status); }; }; then | |
19576 | ac_lo=$ac_mid; break | |
19577 | else | |
19578 | echo "$as_me: failed program was:" >&5 | |
19579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19580 | ||
19581 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19582 | if test $ac_mid -le $ac_hi; then |
19583 | ac_lo= ac_hi= | |
19584 | break | |
19585 | fi | |
19586 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19587 | fi |
ac1cb8d3 | 19588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19589 | done |
19590 | else | |
19591 | echo "$as_me: failed program was:" >&5 | |
19592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19593 | ||
19594 | ac_lo= ac_hi= | |
19595 | fi | |
ac1cb8d3 | 19596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19597 | fi |
ac1cb8d3 | 19598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19599 | # Binary search between lo and hi bounds. |
19600 | while test "x$ac_lo" != "x$ac_hi"; do | |
19601 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19602 | cat >conftest.$ac_ext <<_ACEOF | |
19603 | /* confdefs.h. */ | |
19604 | _ACEOF | |
19605 | cat confdefs.h >>conftest.$ac_ext | |
19606 | cat >>conftest.$ac_ext <<_ACEOF | |
19607 | /* end confdefs.h. */ | |
19608 | $ac_includes_default | |
19609 | int | |
19610 | main () | |
19611 | { | |
19612 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19613 | test_array [0] = 0 | |
19614 | ||
19615 | ; | |
19616 | return 0; | |
19617 | } | |
19618 | _ACEOF | |
19619 | rm -f conftest.$ac_objext | |
19620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19621 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19622 | ac_status=$? |
ac1cb8d3 VS |
19623 | grep -v '^ *+' conftest.er1 >conftest.err |
19624 | rm -f conftest.er1 | |
19625 | cat conftest.err >&5 | |
a848cd7e SC |
19626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19627 | (exit $ac_status); } && | |
3565d135 RR |
19628 | { ac_try='test -z "$ac_c_werror_flag" |
19629 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19631 | (eval $ac_try) 2>&5 | |
19632 | ac_status=$? | |
19633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19634 | (exit $ac_status); }; } && | |
19635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19637 | (eval $ac_try) 2>&5 | |
19638 | ac_status=$? | |
19639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19640 | (exit $ac_status); }; }; then | |
19641 | ac_hi=$ac_mid | |
19642 | else | |
19643 | echo "$as_me: failed program was:" >&5 | |
19644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19645 | ||
19646 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19647 | fi | |
ac1cb8d3 | 19648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19649 | done |
19650 | case $ac_lo in | |
19651 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19652 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19653 | See \`config.log' for more details." >&5 | |
19654 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19655 | See \`config.log' for more details." >&2;} | |
19656 | { (exit 1); exit 1; }; } ;; | |
19657 | esac | |
19658 | else | |
19659 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
19660 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19661 | See \`config.log' for more details." >&5 | |
19662 | echo "$as_me: error: cannot run test program while cross compiling | |
19663 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19664 | { (exit 1); exit 1; }; } |
19665 | else | |
19666 | cat >conftest.$ac_ext <<_ACEOF | |
19667 | /* confdefs.h. */ | |
19668 | _ACEOF | |
19669 | cat confdefs.h >>conftest.$ac_ext | |
19670 | cat >>conftest.$ac_ext <<_ACEOF | |
19671 | /* end confdefs.h. */ | |
19672 | $ac_includes_default | |
19673 | long longval () { return (long) (sizeof (long long)); } | |
19674 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19675 | #include <stdio.h> | |
19676 | #include <stdlib.h> | |
19677 | int | |
19678 | main () | |
19679 | { | |
19680 | ||
19681 | FILE *f = fopen ("conftest.val", "w"); | |
19682 | if (! f) | |
19683 | exit (1); | |
19684 | if (((long) (sizeof (long long))) < 0) | |
19685 | { | |
19686 | long i = longval (); | |
19687 | if (i != ((long) (sizeof (long long)))) | |
19688 | exit (1); | |
19689 | fprintf (f, "%ld\n", i); | |
19690 | } | |
19691 | else | |
19692 | { | |
19693 | unsigned long i = ulongval (); | |
19694 | if (i != ((long) (sizeof (long long)))) | |
19695 | exit (1); | |
19696 | fprintf (f, "%lu\n", i); | |
19697 | } | |
19698 | exit (ferror (f) || fclose (f) != 0); | |
19699 | ||
19700 | ; | |
19701 | return 0; | |
19702 | } | |
19703 | _ACEOF | |
19704 | rm -f conftest$ac_exeext | |
19705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19706 | (eval $ac_link) 2>&5 | |
19707 | ac_status=$? | |
19708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19709 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19711 | (eval $ac_try) 2>&5 | |
19712 | ac_status=$? | |
19713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19714 | (exit $ac_status); }; }; then | |
19715 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19716 | else | |
19717 | echo "$as_me: program exited with status $ac_status" >&5 | |
19718 | echo "$as_me: failed program was:" >&5 | |
19719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19720 | ||
19721 | ( exit $ac_status ) | |
19722 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19723 | See \`config.log' for more details." >&5 | |
19724 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19725 | See \`config.log' for more details." >&2;} | |
19726 | { (exit 1); exit 1; }; } | |
19727 | fi | |
ac1cb8d3 | 19728 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19729 | fi |
19730 | fi | |
19731 | rm -f conftest.val | |
19732 | else | |
19733 | ac_cv_sizeof_long_long=0 | |
19734 | fi | |
19735 | fi | |
19736 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19737 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19738 | cat >>confdefs.h <<_ACEOF | |
19739 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19740 | _ACEOF | |
19741 | ||
19742 | ||
19743 | ;; | |
19744 | *-hp-hpux* ) | |
19745 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19746 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19747 | if test "${ac_cv_type_long_long+set}" = set; then | |
19748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19749 | else | |
19750 | cat >conftest.$ac_ext <<_ACEOF | |
19751 | /* confdefs.h. */ | |
19752 | _ACEOF | |
19753 | cat confdefs.h >>conftest.$ac_ext | |
19754 | cat >>conftest.$ac_ext <<_ACEOF | |
19755 | /* end confdefs.h. */ | |
19756 | $ac_includes_default | |
19757 | int | |
19758 | main () | |
19759 | { | |
19760 | if ((long long *) 0) | |
19761 | return 0; | |
19762 | if (sizeof (long long)) | |
19763 | return 0; | |
19764 | ; | |
19765 | return 0; | |
19766 | } | |
19767 | _ACEOF | |
19768 | rm -f conftest.$ac_objext | |
19769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19771 | ac_status=$? |
ac1cb8d3 VS |
19772 | grep -v '^ *+' conftest.er1 >conftest.err |
19773 | rm -f conftest.er1 | |
19774 | cat conftest.err >&5 | |
a848cd7e SC |
19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19776 | (exit $ac_status); } && | |
3565d135 RR |
19777 | { ac_try='test -z "$ac_c_werror_flag" |
19778 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19780 | (eval $ac_try) 2>&5 | |
19781 | ac_status=$? | |
19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19783 | (exit $ac_status); }; } && | |
19784 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19786 | (eval $ac_try) 2>&5 | |
19787 | ac_status=$? | |
19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19789 | (exit $ac_status); }; }; then | |
19790 | ac_cv_type_long_long=yes | |
19791 | else | |
19792 | echo "$as_me: failed program was:" >&5 | |
19793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19794 | ||
19795 | ac_cv_type_long_long=no | |
19796 | fi | |
ac1cb8d3 | 19797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19798 | fi |
19799 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19800 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19801 | ||
19802 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19803 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19804 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19806 | else | |
19807 | if test "$ac_cv_type_long_long" = yes; then | |
19808 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19809 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19810 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19811 | # This bug is HP SR number 8606223364. | |
19812 | if test "$cross_compiling" = yes; then | |
19813 | # Depending upon the size, compute the lo and hi bounds. | |
19814 | cat >conftest.$ac_ext <<_ACEOF | |
19815 | /* confdefs.h. */ | |
19816 | _ACEOF | |
19817 | cat confdefs.h >>conftest.$ac_ext | |
19818 | cat >>conftest.$ac_ext <<_ACEOF | |
19819 | /* end confdefs.h. */ | |
19820 | $ac_includes_default | |
19821 | int | |
19822 | main () | |
19823 | { | |
19824 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19825 | test_array [0] = 0 | |
19826 | ||
19827 | ; | |
19828 | return 0; | |
19829 | } | |
19830 | _ACEOF | |
19831 | rm -f conftest.$ac_objext | |
19832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19833 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19834 | ac_status=$? |
ac1cb8d3 VS |
19835 | grep -v '^ *+' conftest.er1 >conftest.err |
19836 | rm -f conftest.er1 | |
19837 | cat conftest.err >&5 | |
a848cd7e SC |
19838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19839 | (exit $ac_status); } && | |
3565d135 RR |
19840 | { ac_try='test -z "$ac_c_werror_flag" |
19841 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19843 | (eval $ac_try) 2>&5 | |
19844 | ac_status=$? | |
19845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19846 | (exit $ac_status); }; } && | |
19847 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19849 | (eval $ac_try) 2>&5 | |
19850 | ac_status=$? | |
19851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19852 | (exit $ac_status); }; }; then | |
19853 | ac_lo=0 ac_mid=0 | |
19854 | while :; do | |
19855 | cat >conftest.$ac_ext <<_ACEOF | |
19856 | /* confdefs.h. */ | |
19857 | _ACEOF | |
19858 | cat confdefs.h >>conftest.$ac_ext | |
19859 | cat >>conftest.$ac_ext <<_ACEOF | |
19860 | /* end confdefs.h. */ | |
19861 | $ac_includes_default | |
19862 | int | |
19863 | main () | |
19864 | { | |
19865 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19866 | test_array [0] = 0 | |
19867 | ||
19868 | ; | |
19869 | return 0; | |
19870 | } | |
19871 | _ACEOF | |
19872 | rm -f conftest.$ac_objext | |
19873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19874 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19875 | ac_status=$? |
ac1cb8d3 VS |
19876 | grep -v '^ *+' conftest.er1 >conftest.err |
19877 | rm -f conftest.er1 | |
19878 | cat conftest.err >&5 | |
a848cd7e SC |
19879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19880 | (exit $ac_status); } && | |
3565d135 RR |
19881 | { ac_try='test -z "$ac_c_werror_flag" |
19882 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19884 | (eval $ac_try) 2>&5 | |
19885 | ac_status=$? | |
19886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19887 | (exit $ac_status); }; } && | |
19888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19890 | (eval $ac_try) 2>&5 | |
19891 | ac_status=$? | |
19892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19893 | (exit $ac_status); }; }; then | |
19894 | ac_hi=$ac_mid; break | |
19895 | else | |
19896 | echo "$as_me: failed program was:" >&5 | |
19897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19898 | ||
19899 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19900 | if test $ac_lo -le $ac_mid; then |
19901 | ac_lo= ac_hi= | |
19902 | break | |
19903 | fi | |
19904 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19905 | fi |
ac1cb8d3 | 19906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19907 | done |
19908 | else | |
19909 | echo "$as_me: failed program was:" >&5 | |
19910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19911 | ||
19912 | cat >conftest.$ac_ext <<_ACEOF | |
19913 | /* confdefs.h. */ | |
19914 | _ACEOF | |
19915 | cat confdefs.h >>conftest.$ac_ext | |
19916 | cat >>conftest.$ac_ext <<_ACEOF | |
19917 | /* end confdefs.h. */ | |
19918 | $ac_includes_default | |
19919 | int | |
19920 | main () | |
19921 | { | |
19922 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19923 | test_array [0] = 0 | |
19924 | ||
19925 | ; | |
19926 | return 0; | |
19927 | } | |
19928 | _ACEOF | |
19929 | rm -f conftest.$ac_objext | |
19930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19932 | ac_status=$? |
ac1cb8d3 VS |
19933 | grep -v '^ *+' conftest.er1 >conftest.err |
19934 | rm -f conftest.er1 | |
19935 | cat conftest.err >&5 | |
a848cd7e SC |
19936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19937 | (exit $ac_status); } && | |
3565d135 RR |
19938 | { ac_try='test -z "$ac_c_werror_flag" |
19939 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19941 | (eval $ac_try) 2>&5 | |
19942 | ac_status=$? | |
19943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19944 | (exit $ac_status); }; } && | |
19945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19947 | (eval $ac_try) 2>&5 | |
19948 | ac_status=$? | |
19949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19950 | (exit $ac_status); }; }; then | |
19951 | ac_hi=-1 ac_mid=-1 | |
19952 | while :; do | |
19953 | cat >conftest.$ac_ext <<_ACEOF | |
19954 | /* confdefs.h. */ | |
19955 | _ACEOF | |
19956 | cat confdefs.h >>conftest.$ac_ext | |
19957 | cat >>conftest.$ac_ext <<_ACEOF | |
19958 | /* end confdefs.h. */ | |
19959 | $ac_includes_default | |
19960 | int | |
19961 | main () | |
19962 | { | |
19963 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19964 | test_array [0] = 0 | |
19965 | ||
19966 | ; | |
19967 | return 0; | |
19968 | } | |
19969 | _ACEOF | |
19970 | rm -f conftest.$ac_objext | |
19971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19973 | ac_status=$? |
ac1cb8d3 VS |
19974 | grep -v '^ *+' conftest.er1 >conftest.err |
19975 | rm -f conftest.er1 | |
19976 | cat conftest.err >&5 | |
a848cd7e SC |
19977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19978 | (exit $ac_status); } && | |
3565d135 RR |
19979 | { ac_try='test -z "$ac_c_werror_flag" |
19980 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19982 | (eval $ac_try) 2>&5 | |
19983 | ac_status=$? | |
19984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19985 | (exit $ac_status); }; } && | |
19986 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19988 | (eval $ac_try) 2>&5 | |
19989 | ac_status=$? | |
19990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19991 | (exit $ac_status); }; }; then | |
19992 | ac_lo=$ac_mid; break | |
19993 | else | |
19994 | echo "$as_me: failed program was:" >&5 | |
19995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19996 | ||
19997 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19998 | if test $ac_mid -le $ac_hi; then |
19999 | ac_lo= ac_hi= | |
20000 | break | |
20001 | fi | |
20002 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20003 | fi |
ac1cb8d3 | 20004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20005 | done |
20006 | else | |
20007 | echo "$as_me: failed program was:" >&5 | |
20008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20009 | ||
20010 | ac_lo= ac_hi= | |
20011 | fi | |
ac1cb8d3 | 20012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20013 | fi |
ac1cb8d3 | 20014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20015 | # Binary search between lo and hi bounds. |
20016 | while test "x$ac_lo" != "x$ac_hi"; do | |
20017 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20018 | cat >conftest.$ac_ext <<_ACEOF | |
20019 | /* confdefs.h. */ | |
20020 | _ACEOF | |
20021 | cat confdefs.h >>conftest.$ac_ext | |
20022 | cat >>conftest.$ac_ext <<_ACEOF | |
20023 | /* end confdefs.h. */ | |
20024 | $ac_includes_default | |
20025 | int | |
20026 | main () | |
20027 | { | |
20028 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20029 | test_array [0] = 0 | |
20030 | ||
20031 | ; | |
20032 | return 0; | |
20033 | } | |
20034 | _ACEOF | |
20035 | rm -f conftest.$ac_objext | |
20036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20038 | ac_status=$? |
ac1cb8d3 VS |
20039 | grep -v '^ *+' conftest.er1 >conftest.err |
20040 | rm -f conftest.er1 | |
20041 | cat conftest.err >&5 | |
a848cd7e SC |
20042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20043 | (exit $ac_status); } && | |
3565d135 RR |
20044 | { ac_try='test -z "$ac_c_werror_flag" |
20045 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20047 | (eval $ac_try) 2>&5 | |
20048 | ac_status=$? | |
20049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20050 | (exit $ac_status); }; } && | |
20051 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20053 | (eval $ac_try) 2>&5 | |
20054 | ac_status=$? | |
20055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20056 | (exit $ac_status); }; }; then | |
20057 | ac_hi=$ac_mid | |
20058 | else | |
20059 | echo "$as_me: failed program was:" >&5 | |
20060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20061 | ||
20062 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20063 | fi | |
ac1cb8d3 | 20064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20065 | done |
20066 | case $ac_lo in | |
20067 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20068 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20069 | See \`config.log' for more details." >&5 | |
20070 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20071 | See \`config.log' for more details." >&2;} | |
20072 | { (exit 1); exit 1; }; } ;; | |
20073 | esac | |
20074 | else | |
20075 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
20076 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20077 | See \`config.log' for more details." >&5 | |
20078 | echo "$as_me: error: cannot run test program while cross compiling | |
20079 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20080 | { (exit 1); exit 1; }; } |
20081 | else | |
20082 | cat >conftest.$ac_ext <<_ACEOF | |
20083 | /* confdefs.h. */ | |
20084 | _ACEOF | |
20085 | cat confdefs.h >>conftest.$ac_ext | |
20086 | cat >>conftest.$ac_ext <<_ACEOF | |
20087 | /* end confdefs.h. */ | |
20088 | $ac_includes_default | |
20089 | long longval () { return (long) (sizeof (long long)); } | |
20090 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20091 | #include <stdio.h> | |
20092 | #include <stdlib.h> | |
20093 | int | |
20094 | main () | |
20095 | { | |
20096 | ||
20097 | FILE *f = fopen ("conftest.val", "w"); | |
20098 | if (! f) | |
20099 | exit (1); | |
20100 | if (((long) (sizeof (long long))) < 0) | |
20101 | { | |
20102 | long i = longval (); | |
20103 | if (i != ((long) (sizeof (long long)))) | |
20104 | exit (1); | |
20105 | fprintf (f, "%ld\n", i); | |
20106 | } | |
20107 | else | |
20108 | { | |
20109 | unsigned long i = ulongval (); | |
20110 | if (i != ((long) (sizeof (long long)))) | |
20111 | exit (1); | |
20112 | fprintf (f, "%lu\n", i); | |
20113 | } | |
20114 | exit (ferror (f) || fclose (f) != 0); | |
20115 | ||
20116 | ; | |
20117 | return 0; | |
20118 | } | |
20119 | _ACEOF | |
20120 | rm -f conftest$ac_exeext | |
20121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20122 | (eval $ac_link) 2>&5 | |
20123 | ac_status=$? | |
20124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20125 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20127 | (eval $ac_try) 2>&5 | |
20128 | ac_status=$? | |
20129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20130 | (exit $ac_status); }; }; then | |
20131 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20132 | else | |
20133 | echo "$as_me: program exited with status $ac_status" >&5 | |
20134 | echo "$as_me: failed program was:" >&5 | |
20135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20136 | ||
20137 | ( exit $ac_status ) | |
20138 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20139 | See \`config.log' for more details." >&5 | |
20140 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20141 | See \`config.log' for more details." >&2;} | |
20142 | { (exit 1); exit 1; }; } | |
20143 | fi | |
ac1cb8d3 | 20144 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20145 | fi |
20146 | fi | |
20147 | rm -f conftest.val | |
20148 | else | |
20149 | ac_cv_sizeof_long_long=0 | |
20150 | fi | |
20151 | fi | |
20152 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20153 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20154 | cat >>confdefs.h <<_ACEOF | |
20155 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20156 | _ACEOF | |
20157 | ||
20158 | ||
20159 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20160 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20161 | fi |
20162 | ;; | |
20163 | * ) | |
20164 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20165 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20166 | if test "${ac_cv_type_long_long+set}" = set; then | |
20167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20168 | else | |
20169 | cat >conftest.$ac_ext <<_ACEOF | |
20170 | /* confdefs.h. */ | |
20171 | _ACEOF | |
20172 | cat confdefs.h >>conftest.$ac_ext | |
20173 | cat >>conftest.$ac_ext <<_ACEOF | |
20174 | /* end confdefs.h. */ | |
20175 | $ac_includes_default | |
20176 | int | |
20177 | main () | |
20178 | { | |
20179 | if ((long long *) 0) | |
20180 | return 0; | |
20181 | if (sizeof (long long)) | |
20182 | return 0; | |
20183 | ; | |
20184 | return 0; | |
20185 | } | |
20186 | _ACEOF | |
20187 | rm -f conftest.$ac_objext | |
20188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20190 | ac_status=$? |
ac1cb8d3 VS |
20191 | grep -v '^ *+' conftest.er1 >conftest.err |
20192 | rm -f conftest.er1 | |
20193 | cat conftest.err >&5 | |
a848cd7e SC |
20194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20195 | (exit $ac_status); } && | |
3565d135 RR |
20196 | { ac_try='test -z "$ac_c_werror_flag" |
20197 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20199 | (eval $ac_try) 2>&5 | |
20200 | ac_status=$? | |
20201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20202 | (exit $ac_status); }; } && | |
20203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20205 | (eval $ac_try) 2>&5 | |
20206 | ac_status=$? | |
20207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20208 | (exit $ac_status); }; }; then | |
20209 | ac_cv_type_long_long=yes | |
20210 | else | |
20211 | echo "$as_me: failed program was:" >&5 | |
20212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20213 | ||
20214 | ac_cv_type_long_long=no | |
20215 | fi | |
ac1cb8d3 | 20216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20217 | fi |
20218 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20219 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20220 | ||
20221 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20222 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20223 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20225 | else | |
20226 | if test "$ac_cv_type_long_long" = yes; then | |
20227 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20228 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20229 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20230 | # This bug is HP SR number 8606223364. | |
20231 | if test "$cross_compiling" = yes; then | |
20232 | # Depending upon the size, compute the lo and hi bounds. | |
20233 | cat >conftest.$ac_ext <<_ACEOF | |
20234 | /* confdefs.h. */ | |
20235 | _ACEOF | |
20236 | cat confdefs.h >>conftest.$ac_ext | |
20237 | cat >>conftest.$ac_ext <<_ACEOF | |
20238 | /* end confdefs.h. */ | |
20239 | $ac_includes_default | |
20240 | int | |
20241 | main () | |
20242 | { | |
20243 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20244 | test_array [0] = 0 | |
20245 | ||
20246 | ; | |
20247 | return 0; | |
20248 | } | |
20249 | _ACEOF | |
20250 | rm -f conftest.$ac_objext | |
20251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20252 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20253 | ac_status=$? |
ac1cb8d3 VS |
20254 | grep -v '^ *+' conftest.er1 >conftest.err |
20255 | rm -f conftest.er1 | |
20256 | cat conftest.err >&5 | |
a848cd7e SC |
20257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20258 | (exit $ac_status); } && | |
3565d135 RR |
20259 | { ac_try='test -z "$ac_c_werror_flag" |
20260 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20262 | (eval $ac_try) 2>&5 | |
20263 | ac_status=$? | |
20264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20265 | (exit $ac_status); }; } && | |
20266 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20268 | (eval $ac_try) 2>&5 | |
20269 | ac_status=$? | |
20270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20271 | (exit $ac_status); }; }; then | |
20272 | ac_lo=0 ac_mid=0 | |
20273 | while :; do | |
20274 | cat >conftest.$ac_ext <<_ACEOF | |
20275 | /* confdefs.h. */ | |
20276 | _ACEOF | |
20277 | cat confdefs.h >>conftest.$ac_ext | |
20278 | cat >>conftest.$ac_ext <<_ACEOF | |
20279 | /* end confdefs.h. */ | |
20280 | $ac_includes_default | |
20281 | int | |
20282 | main () | |
20283 | { | |
20284 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20285 | test_array [0] = 0 | |
20286 | ||
20287 | ; | |
20288 | return 0; | |
20289 | } | |
20290 | _ACEOF | |
20291 | rm -f conftest.$ac_objext | |
20292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20293 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20294 | ac_status=$? |
ac1cb8d3 VS |
20295 | grep -v '^ *+' conftest.er1 >conftest.err |
20296 | rm -f conftest.er1 | |
20297 | cat conftest.err >&5 | |
a848cd7e SC |
20298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20299 | (exit $ac_status); } && | |
3565d135 RR |
20300 | { ac_try='test -z "$ac_c_werror_flag" |
20301 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20303 | (eval $ac_try) 2>&5 | |
20304 | ac_status=$? | |
20305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20306 | (exit $ac_status); }; } && | |
20307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20309 | (eval $ac_try) 2>&5 | |
20310 | ac_status=$? | |
20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20312 | (exit $ac_status); }; }; then | |
20313 | ac_hi=$ac_mid; break | |
20314 | else | |
20315 | echo "$as_me: failed program was:" >&5 | |
20316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20317 | ||
20318 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20319 | if test $ac_lo -le $ac_mid; then |
20320 | ac_lo= ac_hi= | |
20321 | break | |
20322 | fi | |
20323 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20324 | fi |
ac1cb8d3 | 20325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20326 | done |
20327 | else | |
20328 | echo "$as_me: failed program was:" >&5 | |
20329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20330 | ||
20331 | cat >conftest.$ac_ext <<_ACEOF | |
20332 | /* confdefs.h. */ | |
20333 | _ACEOF | |
20334 | cat confdefs.h >>conftest.$ac_ext | |
20335 | cat >>conftest.$ac_ext <<_ACEOF | |
20336 | /* end confdefs.h. */ | |
20337 | $ac_includes_default | |
20338 | int | |
20339 | main () | |
20340 | { | |
20341 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20342 | test_array [0] = 0 | |
20343 | ||
20344 | ; | |
20345 | return 0; | |
20346 | } | |
20347 | _ACEOF | |
20348 | rm -f conftest.$ac_objext | |
20349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20350 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20351 | ac_status=$? |
ac1cb8d3 VS |
20352 | grep -v '^ *+' conftest.er1 >conftest.err |
20353 | rm -f conftest.er1 | |
20354 | cat conftest.err >&5 | |
a848cd7e SC |
20355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20356 | (exit $ac_status); } && | |
3565d135 RR |
20357 | { ac_try='test -z "$ac_c_werror_flag" |
20358 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20360 | (eval $ac_try) 2>&5 | |
20361 | ac_status=$? | |
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20363 | (exit $ac_status); }; } && | |
20364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20366 | (eval $ac_try) 2>&5 | |
20367 | ac_status=$? | |
20368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20369 | (exit $ac_status); }; }; then | |
20370 | ac_hi=-1 ac_mid=-1 | |
20371 | while :; do | |
20372 | cat >conftest.$ac_ext <<_ACEOF | |
20373 | /* confdefs.h. */ | |
20374 | _ACEOF | |
20375 | cat confdefs.h >>conftest.$ac_ext | |
20376 | cat >>conftest.$ac_ext <<_ACEOF | |
20377 | /* end confdefs.h. */ | |
20378 | $ac_includes_default | |
20379 | int | |
20380 | main () | |
20381 | { | |
20382 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20383 | test_array [0] = 0 | |
20384 | ||
20385 | ; | |
20386 | return 0; | |
20387 | } | |
20388 | _ACEOF | |
20389 | rm -f conftest.$ac_objext | |
20390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20391 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20392 | ac_status=$? |
ac1cb8d3 VS |
20393 | grep -v '^ *+' conftest.er1 >conftest.err |
20394 | rm -f conftest.er1 | |
20395 | cat conftest.err >&5 | |
a848cd7e SC |
20396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20397 | (exit $ac_status); } && | |
3565d135 RR |
20398 | { ac_try='test -z "$ac_c_werror_flag" |
20399 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20401 | (eval $ac_try) 2>&5 | |
20402 | ac_status=$? | |
20403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20404 | (exit $ac_status); }; } && | |
20405 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20407 | (eval $ac_try) 2>&5 | |
20408 | ac_status=$? | |
20409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20410 | (exit $ac_status); }; }; then | |
20411 | ac_lo=$ac_mid; break | |
20412 | else | |
20413 | echo "$as_me: failed program was:" >&5 | |
20414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20415 | ||
20416 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20417 | if test $ac_mid -le $ac_hi; then |
20418 | ac_lo= ac_hi= | |
20419 | break | |
20420 | fi | |
20421 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20422 | fi |
ac1cb8d3 | 20423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20424 | done |
20425 | else | |
20426 | echo "$as_me: failed program was:" >&5 | |
20427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20428 | ||
20429 | ac_lo= ac_hi= | |
20430 | fi | |
ac1cb8d3 | 20431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20432 | fi |
ac1cb8d3 | 20433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20434 | # Binary search between lo and hi bounds. |
20435 | while test "x$ac_lo" != "x$ac_hi"; do | |
20436 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20437 | cat >conftest.$ac_ext <<_ACEOF | |
20438 | /* confdefs.h. */ | |
20439 | _ACEOF | |
20440 | cat confdefs.h >>conftest.$ac_ext | |
20441 | cat >>conftest.$ac_ext <<_ACEOF | |
20442 | /* end confdefs.h. */ | |
20443 | $ac_includes_default | |
20444 | int | |
20445 | main () | |
20446 | { | |
20447 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20448 | test_array [0] = 0 | |
20449 | ||
20450 | ; | |
20451 | return 0; | |
20452 | } | |
20453 | _ACEOF | |
20454 | rm -f conftest.$ac_objext | |
20455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20456 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20457 | ac_status=$? |
ac1cb8d3 VS |
20458 | grep -v '^ *+' conftest.er1 >conftest.err |
20459 | rm -f conftest.er1 | |
20460 | cat conftest.err >&5 | |
a848cd7e SC |
20461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20462 | (exit $ac_status); } && | |
3565d135 RR |
20463 | { ac_try='test -z "$ac_c_werror_flag" |
20464 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20466 | (eval $ac_try) 2>&5 | |
20467 | ac_status=$? | |
20468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20469 | (exit $ac_status); }; } && | |
20470 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20472 | (eval $ac_try) 2>&5 | |
20473 | ac_status=$? | |
20474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20475 | (exit $ac_status); }; }; then | |
20476 | ac_hi=$ac_mid | |
20477 | else | |
20478 | echo "$as_me: failed program was:" >&5 | |
20479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20480 | ||
20481 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20482 | fi | |
ac1cb8d3 | 20483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20484 | done |
20485 | case $ac_lo in | |
20486 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20487 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20488 | See \`config.log' for more details." >&5 | |
20489 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20490 | See \`config.log' for more details." >&2;} | |
20491 | { (exit 1); exit 1; }; } ;; | |
20492 | esac | |
20493 | else | |
20494 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
20495 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20496 | See \`config.log' for more details." >&5 | |
20497 | echo "$as_me: error: cannot run test program while cross compiling | |
20498 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20499 | { (exit 1); exit 1; }; } |
20500 | else | |
20501 | cat >conftest.$ac_ext <<_ACEOF | |
20502 | /* confdefs.h. */ | |
20503 | _ACEOF | |
20504 | cat confdefs.h >>conftest.$ac_ext | |
20505 | cat >>conftest.$ac_ext <<_ACEOF | |
20506 | /* end confdefs.h. */ | |
20507 | $ac_includes_default | |
20508 | long longval () { return (long) (sizeof (long long)); } | |
20509 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20510 | #include <stdio.h> | |
20511 | #include <stdlib.h> | |
20512 | int | |
20513 | main () | |
20514 | { | |
20515 | ||
20516 | FILE *f = fopen ("conftest.val", "w"); | |
20517 | if (! f) | |
20518 | exit (1); | |
20519 | if (((long) (sizeof (long long))) < 0) | |
20520 | { | |
20521 | long i = longval (); | |
20522 | if (i != ((long) (sizeof (long long)))) | |
20523 | exit (1); | |
20524 | fprintf (f, "%ld\n", i); | |
20525 | } | |
20526 | else | |
20527 | { | |
20528 | unsigned long i = ulongval (); | |
20529 | if (i != ((long) (sizeof (long long)))) | |
20530 | exit (1); | |
20531 | fprintf (f, "%lu\n", i); | |
20532 | } | |
20533 | exit (ferror (f) || fclose (f) != 0); | |
20534 | ||
20535 | ; | |
20536 | return 0; | |
20537 | } | |
20538 | _ACEOF | |
20539 | rm -f conftest$ac_exeext | |
20540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20541 | (eval $ac_link) 2>&5 | |
20542 | ac_status=$? | |
20543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20544 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20546 | (eval $ac_try) 2>&5 | |
20547 | ac_status=$? | |
20548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20549 | (exit $ac_status); }; }; then | |
20550 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20551 | else | |
20552 | echo "$as_me: program exited with status $ac_status" >&5 | |
20553 | echo "$as_me: failed program was:" >&5 | |
20554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20555 | ||
20556 | ( exit $ac_status ) | |
20557 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20558 | See \`config.log' for more details." >&5 | |
20559 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20560 | See \`config.log' for more details." >&2;} | |
20561 | { (exit 1); exit 1; }; } | |
20562 | fi | |
ac1cb8d3 | 20563 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20564 | fi |
20565 | fi | |
20566 | rm -f conftest.val | |
20567 | else | |
20568 | ac_cv_sizeof_long_long=0 | |
20569 | fi | |
20570 | fi | |
20571 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20572 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20573 | cat >>confdefs.h <<_ACEOF | |
20574 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20575 | _ACEOF | |
20576 | ||
20577 | ||
20578 | esac | |
20579 | ||
238ecede MW |
20580 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
20581 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
20582 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
20583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20584 | else | |
20585 | cat >conftest.$ac_ext <<_ACEOF | |
20586 | /* confdefs.h. */ | |
20587 | _ACEOF | |
20588 | cat confdefs.h >>conftest.$ac_ext | |
20589 | cat >>conftest.$ac_ext <<_ACEOF | |
20590 | /* end confdefs.h. */ | |
20591 | ||
83d8eb47 MW |
20592 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20593 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20594 | # error "fake wchar_t" |
20595 | #endif | |
20596 | #ifdef HAVE_WCHAR_H | |
20597 | # ifdef __CYGWIN__ | |
20598 | # include <stddef.h> | |
20599 | # endif | |
20600 | # include <wchar.h> | |
20601 | #endif | |
20602 | #ifdef HAVE_STDLIB_H | |
20603 | # include <stdlib.h> | |
20604 | #endif | |
20605 | #include <stdio.h> | |
20606 | ||
20607 | ||
20608 | ||
20609 | int | |
20610 | main () | |
20611 | { | |
20612 | if ((wchar_t *) 0) | |
20613 | return 0; | |
20614 | if (sizeof (wchar_t)) | |
20615 | return 0; | |
20616 | ; | |
20617 | return 0; | |
20618 | } | |
20619 | _ACEOF | |
20620 | rm -f conftest.$ac_objext | |
20621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20622 | (eval $ac_compile) 2>conftest.er1 | |
20623 | ac_status=$? | |
20624 | grep -v '^ *+' conftest.er1 >conftest.err | |
20625 | rm -f conftest.er1 | |
20626 | cat conftest.err >&5 | |
20627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20628 | (exit $ac_status); } && | |
3565d135 RR |
20629 | { ac_try='test -z "$ac_c_werror_flag" |
20630 | || test ! -s conftest.err' | |
238ecede MW |
20631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20632 | (eval $ac_try) 2>&5 | |
20633 | ac_status=$? | |
20634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20635 | (exit $ac_status); }; } && | |
20636 | { ac_try='test -s conftest.$ac_objext' | |
20637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20638 | (eval $ac_try) 2>&5 | |
20639 | ac_status=$? | |
20640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20641 | (exit $ac_status); }; }; then | |
20642 | ac_cv_type_wchar_t=yes | |
20643 | else | |
20644 | echo "$as_me: failed program was:" >&5 | |
20645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20646 | ||
20647 | ac_cv_type_wchar_t=no | |
20648 | fi | |
20649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20650 | fi | |
20651 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
20652 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
20653 | ||
a848cd7e SC |
20654 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
20655 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 20656 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
20657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20658 | else | |
238ecede MW |
20659 | if test "$ac_cv_type_wchar_t" = yes; then |
20660 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20661 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20662 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20663 | # This bug is HP SR number 8606223364. | |
20664 | if test "$cross_compiling" = yes; then | |
20665 | # Depending upon the size, compute the lo and hi bounds. | |
20666 | cat >conftest.$ac_ext <<_ACEOF | |
20667 | /* confdefs.h. */ | |
20668 | _ACEOF | |
20669 | cat confdefs.h >>conftest.$ac_ext | |
20670 | cat >>conftest.$ac_ext <<_ACEOF | |
20671 | /* end confdefs.h. */ | |
20672 | ||
83d8eb47 MW |
20673 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20674 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20675 | # error "fake wchar_t" |
20676 | #endif | |
20677 | #ifdef HAVE_WCHAR_H | |
20678 | # ifdef __CYGWIN__ | |
20679 | # include <stddef.h> | |
20680 | # endif | |
20681 | # include <wchar.h> | |
20682 | #endif | |
20683 | #ifdef HAVE_STDLIB_H | |
20684 | # include <stdlib.h> | |
20685 | #endif | |
20686 | #include <stdio.h> | |
20687 | ||
20688 | ||
20689 | ||
20690 | int | |
20691 | main () | |
20692 | { | |
20693 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
20694 | test_array [0] = 0 | |
20695 | ||
20696 | ; | |
20697 | return 0; | |
20698 | } | |
20699 | _ACEOF | |
20700 | rm -f conftest.$ac_objext | |
20701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20702 | (eval $ac_compile) 2>conftest.er1 | |
20703 | ac_status=$? | |
20704 | grep -v '^ *+' conftest.er1 >conftest.err | |
20705 | rm -f conftest.er1 | |
20706 | cat conftest.err >&5 | |
20707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20708 | (exit $ac_status); } && | |
3565d135 RR |
20709 | { ac_try='test -z "$ac_c_werror_flag" |
20710 | || test ! -s conftest.err' | |
238ecede MW |
20711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20712 | (eval $ac_try) 2>&5 | |
20713 | ac_status=$? | |
20714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20715 | (exit $ac_status); }; } && | |
20716 | { ac_try='test -s conftest.$ac_objext' | |
20717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20718 | (eval $ac_try) 2>&5 | |
20719 | ac_status=$? | |
20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20721 | (exit $ac_status); }; }; then | |
20722 | ac_lo=0 ac_mid=0 | |
20723 | while :; do | |
20724 | cat >conftest.$ac_ext <<_ACEOF | |
20725 | /* confdefs.h. */ | |
20726 | _ACEOF | |
20727 | cat confdefs.h >>conftest.$ac_ext | |
20728 | cat >>conftest.$ac_ext <<_ACEOF | |
20729 | /* end confdefs.h. */ | |
20730 | ||
83d8eb47 MW |
20731 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20732 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20733 | # error "fake wchar_t" |
20734 | #endif | |
20735 | #ifdef HAVE_WCHAR_H | |
20736 | # ifdef __CYGWIN__ | |
20737 | # include <stddef.h> | |
20738 | # endif | |
20739 | # include <wchar.h> | |
20740 | #endif | |
20741 | #ifdef HAVE_STDLIB_H | |
20742 | # include <stdlib.h> | |
20743 | #endif | |
20744 | #include <stdio.h> | |
20745 | ||
20746 | ||
20747 | ||
20748 | int | |
20749 | main () | |
20750 | { | |
20751 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20752 | test_array [0] = 0 | |
20753 | ||
20754 | ; | |
20755 | return 0; | |
20756 | } | |
20757 | _ACEOF | |
20758 | rm -f conftest.$ac_objext | |
20759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20760 | (eval $ac_compile) 2>conftest.er1 | |
20761 | ac_status=$? | |
20762 | grep -v '^ *+' conftest.er1 >conftest.err | |
20763 | rm -f conftest.er1 | |
20764 | cat conftest.err >&5 | |
20765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20766 | (exit $ac_status); } && | |
3565d135 RR |
20767 | { ac_try='test -z "$ac_c_werror_flag" |
20768 | || test ! -s conftest.err' | |
238ecede MW |
20769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20770 | (eval $ac_try) 2>&5 | |
20771 | ac_status=$? | |
20772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20773 | (exit $ac_status); }; } && | |
20774 | { ac_try='test -s conftest.$ac_objext' | |
20775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20776 | (eval $ac_try) 2>&5 | |
20777 | ac_status=$? | |
20778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20779 | (exit $ac_status); }; }; then | |
20780 | ac_hi=$ac_mid; break | |
20781 | else | |
20782 | echo "$as_me: failed program was:" >&5 | |
20783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20784 | ||
20785 | ac_lo=`expr $ac_mid + 1` | |
20786 | if test $ac_lo -le $ac_mid; then | |
20787 | ac_lo= ac_hi= | |
20788 | break | |
20789 | fi | |
20790 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
20791 | fi | |
20792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20793 | done | |
20794 | else | |
20795 | echo "$as_me: failed program was:" >&5 | |
20796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20797 | ||
20798 | cat >conftest.$ac_ext <<_ACEOF | |
20799 | /* confdefs.h. */ | |
20800 | _ACEOF | |
20801 | cat confdefs.h >>conftest.$ac_ext | |
20802 | cat >>conftest.$ac_ext <<_ACEOF | |
20803 | /* end confdefs.h. */ | |
20804 | ||
83d8eb47 MW |
20805 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20806 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20807 | # error "fake wchar_t" |
20808 | #endif | |
20809 | #ifdef HAVE_WCHAR_H | |
20810 | # ifdef __CYGWIN__ | |
20811 | # include <stddef.h> | |
20812 | # endif | |
20813 | # include <wchar.h> | |
20814 | #endif | |
20815 | #ifdef HAVE_STDLIB_H | |
20816 | # include <stdlib.h> | |
20817 | #endif | |
20818 | #include <stdio.h> | |
20819 | ||
20820 | ||
20821 | ||
20822 | int | |
20823 | main () | |
20824 | { | |
20825 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
20826 | test_array [0] = 0 | |
20827 | ||
20828 | ; | |
20829 | return 0; | |
20830 | } | |
20831 | _ACEOF | |
20832 | rm -f conftest.$ac_objext | |
20833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20834 | (eval $ac_compile) 2>conftest.er1 | |
20835 | ac_status=$? | |
20836 | grep -v '^ *+' conftest.er1 >conftest.err | |
20837 | rm -f conftest.er1 | |
20838 | cat conftest.err >&5 | |
20839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20840 | (exit $ac_status); } && | |
3565d135 RR |
20841 | { ac_try='test -z "$ac_c_werror_flag" |
20842 | || test ! -s conftest.err' | |
238ecede MW |
20843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20844 | (eval $ac_try) 2>&5 | |
20845 | ac_status=$? | |
20846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20847 | (exit $ac_status); }; } && | |
20848 | { ac_try='test -s conftest.$ac_objext' | |
20849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20850 | (eval $ac_try) 2>&5 | |
20851 | ac_status=$? | |
20852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20853 | (exit $ac_status); }; }; then | |
20854 | ac_hi=-1 ac_mid=-1 | |
20855 | while :; do | |
20856 | cat >conftest.$ac_ext <<_ACEOF | |
20857 | /* confdefs.h. */ | |
20858 | _ACEOF | |
20859 | cat confdefs.h >>conftest.$ac_ext | |
20860 | cat >>conftest.$ac_ext <<_ACEOF | |
20861 | /* end confdefs.h. */ | |
20862 | ||
83d8eb47 MW |
20863 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20864 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20865 | # error "fake wchar_t" |
20866 | #endif | |
20867 | #ifdef HAVE_WCHAR_H | |
20868 | # ifdef __CYGWIN__ | |
20869 | # include <stddef.h> | |
20870 | # endif | |
20871 | # include <wchar.h> | |
20872 | #endif | |
20873 | #ifdef HAVE_STDLIB_H | |
20874 | # include <stdlib.h> | |
20875 | #endif | |
20876 | #include <stdio.h> | |
20877 | ||
20878 | ||
20879 | ||
20880 | int | |
20881 | main () | |
20882 | { | |
20883 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
20884 | test_array [0] = 0 | |
20885 | ||
20886 | ; | |
20887 | return 0; | |
20888 | } | |
20889 | _ACEOF | |
20890 | rm -f conftest.$ac_objext | |
20891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20892 | (eval $ac_compile) 2>conftest.er1 | |
20893 | ac_status=$? | |
20894 | grep -v '^ *+' conftest.er1 >conftest.err | |
20895 | rm -f conftest.er1 | |
20896 | cat conftest.err >&5 | |
20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20898 | (exit $ac_status); } && | |
3565d135 RR |
20899 | { ac_try='test -z "$ac_c_werror_flag" |
20900 | || test ! -s conftest.err' | |
238ecede MW |
20901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20902 | (eval $ac_try) 2>&5 | |
20903 | ac_status=$? | |
20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20905 | (exit $ac_status); }; } && | |
20906 | { ac_try='test -s conftest.$ac_objext' | |
20907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20908 | (eval $ac_try) 2>&5 | |
20909 | ac_status=$? | |
20910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20911 | (exit $ac_status); }; }; then | |
20912 | ac_lo=$ac_mid; break | |
20913 | else | |
20914 | echo "$as_me: failed program was:" >&5 | |
20915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20916 | ||
20917 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20918 | if test $ac_mid -le $ac_hi; then | |
20919 | ac_lo= ac_hi= | |
20920 | break | |
20921 | fi | |
20922 | ac_mid=`expr 2 '*' $ac_mid` | |
20923 | fi | |
20924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20925 | done | |
20926 | else | |
20927 | echo "$as_me: failed program was:" >&5 | |
20928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20929 | ||
20930 | ac_lo= ac_hi= | |
20931 | fi | |
20932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20933 | fi | |
20934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20935 | # Binary search between lo and hi bounds. | |
20936 | while test "x$ac_lo" != "x$ac_hi"; do | |
20937 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20938 | cat >conftest.$ac_ext <<_ACEOF | |
20939 | /* confdefs.h. */ | |
20940 | _ACEOF | |
20941 | cat confdefs.h >>conftest.$ac_ext | |
20942 | cat >>conftest.$ac_ext <<_ACEOF | |
20943 | /* end confdefs.h. */ | |
20944 | ||
83d8eb47 MW |
20945 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20946 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20947 | # error "fake wchar_t" |
20948 | #endif | |
20949 | #ifdef HAVE_WCHAR_H | |
20950 | # ifdef __CYGWIN__ | |
20951 | # include <stddef.h> | |
20952 | # endif | |
20953 | # include <wchar.h> | |
20954 | #endif | |
20955 | #ifdef HAVE_STDLIB_H | |
20956 | # include <stdlib.h> | |
20957 | #endif | |
20958 | #include <stdio.h> | |
a848cd7e | 20959 | |
a848cd7e | 20960 | |
a848cd7e | 20961 | |
238ecede MW |
20962 | int |
20963 | main () | |
20964 | { | |
20965 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20966 | test_array [0] = 0 | |
a848cd7e | 20967 | |
238ecede MW |
20968 | ; |
20969 | return 0; | |
20970 | } | |
20971 | _ACEOF | |
20972 | rm -f conftest.$ac_objext | |
20973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20974 | (eval $ac_compile) 2>conftest.er1 | |
20975 | ac_status=$? | |
20976 | grep -v '^ *+' conftest.er1 >conftest.err | |
20977 | rm -f conftest.er1 | |
20978 | cat conftest.err >&5 | |
20979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20980 | (exit $ac_status); } && | |
3565d135 RR |
20981 | { ac_try='test -z "$ac_c_werror_flag" |
20982 | || test ! -s conftest.err' | |
238ecede MW |
20983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20984 | (eval $ac_try) 2>&5 | |
20985 | ac_status=$? | |
20986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20987 | (exit $ac_status); }; } && | |
20988 | { ac_try='test -s conftest.$ac_objext' | |
20989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20990 | (eval $ac_try) 2>&5 | |
20991 | ac_status=$? | |
20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20993 | (exit $ac_status); }; }; then | |
20994 | ac_hi=$ac_mid | |
20995 | else | |
20996 | echo "$as_me: failed program was:" >&5 | |
20997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20998 | ||
20999 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21000 | fi | |
21001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21002 | done | |
21003 | case $ac_lo in | |
21004 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21005 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21006 | See \`config.log' for more details." >&5 | |
21007 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21008 | See \`config.log' for more details." >&2;} | |
21009 | { (exit 1); exit 1; }; } ;; | |
21010 | esac | |
21011 | else | |
21012 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
21013 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
21014 | See \`config.log' for more details." >&5 | |
21015 | echo "$as_me: error: cannot run test program while cross compiling | |
21016 | See \`config.log' for more details." >&2;} | |
238ecede | 21017 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21018 | else |
21019 | cat >conftest.$ac_ext <<_ACEOF | |
21020 | /* confdefs.h. */ | |
21021 | _ACEOF | |
21022 | cat confdefs.h >>conftest.$ac_ext | |
21023 | cat >>conftest.$ac_ext <<_ACEOF | |
21024 | /* end confdefs.h. */ | |
21025 | ||
83d8eb47 MW |
21026 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21027 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21028 | # error "fake wchar_t" |
21029 | #endif | |
21030 | #ifdef HAVE_WCHAR_H | |
21031 | # ifdef __CYGWIN__ | |
21032 | # include <stddef.h> | |
21033 | # endif | |
21034 | # include <wchar.h> | |
21035 | #endif | |
21036 | #ifdef HAVE_STDLIB_H | |
21037 | # include <stdlib.h> | |
21038 | #endif | |
21039 | #include <stdio.h> | |
21040 | ||
21041 | ||
21042 | ||
21043 | long longval () { return (long) (sizeof (wchar_t)); } | |
21044 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21045 | #include <stdio.h> | |
21046 | #include <stdlib.h> | |
21047 | int | |
21048 | main () | |
21049 | { | |
a848cd7e | 21050 | |
238ecede MW |
21051 | FILE *f = fopen ("conftest.val", "w"); |
21052 | if (! f) | |
21053 | exit (1); | |
21054 | if (((long) (sizeof (wchar_t))) < 0) | |
21055 | { | |
21056 | long i = longval (); | |
21057 | if (i != ((long) (sizeof (wchar_t)))) | |
21058 | exit (1); | |
21059 | fprintf (f, "%ld\n", i); | |
21060 | } | |
21061 | else | |
21062 | { | |
21063 | unsigned long i = ulongval (); | |
21064 | if (i != ((long) (sizeof (wchar_t)))) | |
21065 | exit (1); | |
21066 | fprintf (f, "%lu\n", i); | |
21067 | } | |
21068 | exit (ferror (f) || fclose (f) != 0); | |
21069 | ||
21070 | ; | |
21071 | return 0; | |
21072 | } | |
a848cd7e SC |
21073 | _ACEOF |
21074 | rm -f conftest$ac_exeext | |
21075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21076 | (eval $ac_link) 2>&5 | |
21077 | ac_status=$? | |
21078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21081 | (eval $ac_try) 2>&5 | |
21082 | ac_status=$? | |
21083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21084 | (exit $ac_status); }; }; then | |
238ecede | 21085 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21086 | else |
21087 | echo "$as_me: program exited with status $ac_status" >&5 | |
21088 | echo "$as_me: failed program was:" >&5 | |
21089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21090 | ||
21091 | ( exit $ac_status ) | |
238ecede MW |
21092 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21093 | See \`config.log' for more details." >&5 | |
21094 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21095 | See \`config.log' for more details." >&2;} | |
21096 | { (exit 1); exit 1; }; } | |
a848cd7e | 21097 | fi |
ac1cb8d3 | 21098 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21099 | fi |
a848cd7e | 21100 | fi |
238ecede MW |
21101 | rm -f conftest.val |
21102 | else | |
21103 | ac_cv_sizeof_wchar_t=0 | |
21104 | fi | |
21105 | fi | |
21106 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21107 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21108 | cat >>confdefs.h <<_ACEOF |
238ecede | 21109 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21110 | _ACEOF |
21111 | ||
21112 | ||
47a7e797 MW |
21113 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21114 | wxUSE_WCHAR_T=yes | |
21115 | else | |
21116 | wxUSE_WCHAR_T=no | |
21117 | fi | |
238ecede | 21118 | |
ba3d13e1 VZ |
21119 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21120 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21121 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21123 | else | |
21124 | ||
21125 | cat >conftest.$ac_ext <<_ACEOF | |
21126 | ||
21127 | #include <stdarg.h> | |
21128 | void foo(char *f, ...) | |
21129 | { | |
21130 | va_list ap1, ap2; | |
21131 | va_start(ap1, f); | |
21132 | va_copy(ap2, ap1); | |
21133 | va_end(ap2); | |
21134 | va_end(ap1); | |
21135 | } | |
5886b072 VZ |
21136 | int main() |
21137 | { | |
b902e639 VZ |
21138 | foo("hi", 17); |
21139 | return 0; | |
5886b072 | 21140 | } |
ba3d13e1 VZ |
21141 | _ACEOF |
21142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21144 | (eval $ac_link) 2>conftest.er1 | |
21145 | ac_status=$? | |
21146 | grep -v '^ *+' conftest.er1 >conftest.err | |
21147 | rm -f conftest.er1 | |
21148 | cat conftest.err >&5 | |
21149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21150 | (exit $ac_status); } && | |
3565d135 RR |
21151 | { ac_try='test -z "$ac_c_werror_flag" |
21152 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
21153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21154 | (eval $ac_try) 2>&5 | |
21155 | ac_status=$? | |
21156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21157 | (exit $ac_status); }; } && | |
21158 | { ac_try='test -s conftest$ac_exeext' | |
21159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21160 | (eval $ac_try) 2>&5 | |
21161 | ac_status=$? | |
21162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21163 | (exit $ac_status); }; }; then | |
21164 | wx_cv_func_va_copy=yes | |
21165 | else | |
21166 | echo "$as_me: failed program was:" >&5 | |
21167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21168 | ||
21169 | wx_cv_func_va_copy=no | |
21170 | ||
21171 | fi | |
21172 | rm -f conftest.err conftest.$ac_objext \ | |
21173 | conftest$ac_exeext conftest.$ac_ext | |
21174 | ||
21175 | ||
21176 | fi | |
21177 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21178 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21179 | ||
21180 | if test $wx_cv_func_va_copy = "yes"; then | |
21181 | cat >>confdefs.h <<\_ACEOF | |
21182 | #define HAVE_VA_COPY 1 | |
21183 | _ACEOF | |
21184 | ||
21185 | else | |
21186 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21187 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21188 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21190 | else | |
21191 | ||
21192 | if test "$cross_compiling" = yes; then | |
21193 | wx_cv_type_va_list_lvalue=yes | |
21194 | ||
21195 | else | |
21196 | cat >conftest.$ac_ext <<_ACEOF | |
21197 | ||
21198 | #include <stdarg.h> | |
21199 | int foo(char *f, ...) | |
21200 | { | |
21201 | va_list ap1, ap2; | |
21202 | va_start(ap1, f); | |
21203 | ap2 = ap1; | |
21204 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21205 | return 1; | |
21206 | va_end(ap2); | |
21207 | va_end(ap1); | |
21208 | return 0; | |
21209 | } | |
21210 | int main() | |
21211 | { | |
21212 | return foo("hi", 17); | |
21213 | } | |
21214 | _ACEOF | |
21215 | rm -f conftest$ac_exeext | |
21216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21217 | (eval $ac_link) 2>&5 | |
21218 | ac_status=$? | |
21219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21222 | (eval $ac_try) 2>&5 | |
21223 | ac_status=$? | |
21224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21225 | (exit $ac_status); }; }; then | |
21226 | wx_cv_type_va_list_lvalue=yes | |
21227 | else | |
21228 | echo "$as_me: program exited with status $ac_status" >&5 | |
21229 | echo "$as_me: failed program was:" >&5 | |
21230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21231 | ||
21232 | ( exit $ac_status ) | |
21233 | wx_cv_type_va_list_lvalue=no | |
21234 | fi | |
21235 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21236 | fi | |
21237 | ||
21238 | ||
21239 | fi | |
21240 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21241 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21242 | ||
21243 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21244 | cat >>confdefs.h <<\_ACEOF | |
21245 | #define VA_LIST_IS_ARRAY 1 | |
21246 | _ACEOF | |
21247 | ||
21248 | fi | |
21249 | fi | |
21250 | ||
a848cd7e SC |
21251 | # Check whether --enable-largefile or --disable-largefile was given. |
21252 | if test "${enable_largefile+set}" = set; then | |
21253 | enableval="$enable_largefile" | |
21254 | ||
21255 | fi; | |
21256 | if test "$enable_largefile" != no; then | |
21257 | wx_largefile=no | |
21258 | ||
21259 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
21260 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
21261 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21263 | else | |
21264 | ||
21265 | cat >conftest.$ac_ext <<_ACEOF | |
21266 | /* confdefs.h. */ | |
21267 | _ACEOF | |
21268 | cat confdefs.h >>conftest.$ac_ext | |
21269 | cat >>conftest.$ac_ext <<_ACEOF | |
21270 | /* end confdefs.h. */ | |
21271 | #define _FILE_OFFSET_BITS 64 | |
21272 | #include <sys/types.h> | |
21273 | int | |
21274 | main () | |
21275 | { | |
21276 | typedef struct { | |
21277 | unsigned int field: sizeof(off_t) == 8; | |
21278 | } wxlf; | |
21279 | ||
21280 | ; | |
21281 | return 0; | |
21282 | } | |
21283 | _ACEOF | |
21284 | rm -f conftest.$ac_objext | |
21285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21286 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21287 | ac_status=$? |
ac1cb8d3 VS |
21288 | grep -v '^ *+' conftest.er1 >conftest.err |
21289 | rm -f conftest.er1 | |
21290 | cat conftest.err >&5 | |
a848cd7e SC |
21291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21292 | (exit $ac_status); } && | |
3565d135 RR |
21293 | { ac_try='test -z "$ac_c_werror_flag" |
21294 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21296 | (eval $ac_try) 2>&5 | |
21297 | ac_status=$? | |
21298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21299 | (exit $ac_status); }; } && | |
21300 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21302 | (eval $ac_try) 2>&5 | |
21303 | ac_status=$? | |
21304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21305 | (exit $ac_status); }; }; then | |
21306 | ac_cv_sys_file_offset_bits=64 | |
21307 | else | |
21308 | echo "$as_me: failed program was:" >&5 | |
21309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21310 | ||
21311 | ac_cv_sys_file_offset_bits=no | |
21312 | fi | |
ac1cb8d3 | 21313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21314 | |
21315 | ||
21316 | fi | |
21317 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
21318 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21319 | ||
21320 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
21321 | wx_largefile=yes | |
21322 | cat >>confdefs.h <<_ACEOF | |
21323 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
21324 | _ACEOF | |
21325 | ||
21326 | fi | |
21327 | ||
21328 | if test "x$wx_largefile" != "xyes"; then | |
21329 | ||
21330 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
21331 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
21332 | if test "${ac_cv_sys_large_files+set}" = set; then | |
21333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21334 | else | |
21335 | ||
21336 | cat >conftest.$ac_ext <<_ACEOF | |
21337 | /* confdefs.h. */ | |
21338 | _ACEOF | |
21339 | cat confdefs.h >>conftest.$ac_ext | |
21340 | cat >>conftest.$ac_ext <<_ACEOF | |
21341 | /* end confdefs.h. */ | |
21342 | #define _LARGE_FILES 1 | |
21343 | #include <sys/types.h> | |
21344 | int | |
21345 | main () | |
21346 | { | |
21347 | typedef struct { | |
21348 | unsigned int field: sizeof(off_t) == 8; | |
21349 | } wxlf; | |
21350 | ||
21351 | ; | |
21352 | return 0; | |
21353 | } | |
21354 | _ACEOF | |
21355 | rm -f conftest.$ac_objext | |
21356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21357 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21358 | ac_status=$? |
ac1cb8d3 VS |
21359 | grep -v '^ *+' conftest.er1 >conftest.err |
21360 | rm -f conftest.er1 | |
21361 | cat conftest.err >&5 | |
a848cd7e SC |
21362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21363 | (exit $ac_status); } && | |
3565d135 RR |
21364 | { ac_try='test -z "$ac_c_werror_flag" |
21365 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21367 | (eval $ac_try) 2>&5 | |
21368 | ac_status=$? | |
21369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21370 | (exit $ac_status); }; } && | |
21371 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21373 | (eval $ac_try) 2>&5 | |
21374 | ac_status=$? | |
21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21376 | (exit $ac_status); }; }; then | |
21377 | ac_cv_sys_large_files=1 | |
21378 | else | |
21379 | echo "$as_me: failed program was:" >&5 | |
21380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21381 | ||
21382 | ac_cv_sys_large_files=no | |
21383 | fi | |
ac1cb8d3 | 21384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21385 | |
21386 | ||
21387 | fi | |
21388 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
21389 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
21390 | ||
21391 | if test "$ac_cv_sys_large_files" != no; then | |
21392 | wx_largefile=yes | |
21393 | cat >>confdefs.h <<_ACEOF | |
21394 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21395 | _ACEOF | |
21396 | ||
21397 | fi | |
21398 | ||
21399 | fi | |
21400 | ||
21401 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21402 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21403 | if test "x$wx_largefile" = "xyes"; then | |
21404 | cat >>confdefs.h <<\_ACEOF | |
21405 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21406 | _ACEOF | |
21407 | ||
21408 | fi | |
21409 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21410 | echo "${ECHO_T}$wx_largefile" >&6 | |
21411 | fi | |
21412 | ||
5b674b9d DE |
21413 | |
21414 | if test "x$wx_largefile" = "xyes"; then | |
21415 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 21416 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
21417 | |
21418 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21419 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21420 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21421 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21423 | else | |
21424 | ||
21425 | ||
21426 | ||
21427 | ac_ext=cc | |
21428 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21429 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21430 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21431 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21432 | ||
21433 | cat >conftest.$ac_ext <<_ACEOF | |
21434 | /* confdefs.h. */ | |
21435 | _ACEOF | |
21436 | cat confdefs.h >>conftest.$ac_ext | |
21437 | cat >>conftest.$ac_ext <<_ACEOF | |
21438 | /* end confdefs.h. */ | |
21439 | ||
21440 | int | |
21441 | main () | |
21442 | { | |
21443 | ||
21444 | #ifndef __STDC_EXT__ | |
21445 | choke me | |
21446 | #endif | |
21447 | ||
21448 | ; | |
21449 | return 0; | |
21450 | } | |
21451 | _ACEOF | |
21452 | rm -f conftest.$ac_objext | |
21453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21454 | (eval $ac_compile) 2>conftest.er1 | |
21455 | ac_status=$? | |
21456 | grep -v '^ *+' conftest.er1 >conftest.err | |
21457 | rm -f conftest.er1 | |
21458 | cat conftest.err >&5 | |
21459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21460 | (exit $ac_status); } && | |
3565d135 RR |
21461 | { ac_try='test -z "$ac_cxx_werror_flag" |
21462 | || test ! -s conftest.err' | |
00421666 MW |
21463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21464 | (eval $ac_try) 2>&5 | |
21465 | ac_status=$? | |
21466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21467 | (exit $ac_status); }; } && | |
21468 | { ac_try='test -s conftest.$ac_objext' | |
21469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21470 | (eval $ac_try) 2>&5 | |
21471 | ac_status=$? | |
21472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21473 | (exit $ac_status); }; }; then | |
21474 | wx_cv_STDC_EXT_required=no | |
21475 | else | |
21476 | echo "$as_me: failed program was:" >&5 | |
21477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21478 | ||
21479 | wx_cv_STDC_EXT_required=yes | |
21480 | ||
21481 | fi | |
21482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21483 | ac_ext=c | |
21484 | ac_cpp='$CPP $CPPFLAGS' | |
21485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21488 | ||
21489 | ||
21490 | ||
21491 | fi | |
21492 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21493 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21494 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 21495 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
21496 | fi |
21497 | fi | |
5b674b9d | 21498 | else |
5ff751d6 | 21499 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
21500 | fi |
21501 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21502 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21503 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21505 | else | |
21506 | while :; do | |
21507 | ac_cv_sys_largefile_source=no | |
21508 | cat >conftest.$ac_ext <<_ACEOF | |
21509 | /* confdefs.h. */ | |
21510 | _ACEOF | |
21511 | cat confdefs.h >>conftest.$ac_ext | |
21512 | cat >>conftest.$ac_ext <<_ACEOF | |
21513 | /* end confdefs.h. */ | |
21514 | #include <stdio.h> | |
21515 | int | |
21516 | main () | |
21517 | { | |
21518 | return !fseeko; | |
21519 | ; | |
21520 | return 0; | |
21521 | } | |
21522 | _ACEOF | |
21523 | rm -f conftest.$ac_objext | |
21524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21525 | (eval $ac_compile) 2>conftest.er1 | |
21526 | ac_status=$? | |
21527 | grep -v '^ *+' conftest.er1 >conftest.err | |
21528 | rm -f conftest.er1 | |
21529 | cat conftest.err >&5 | |
21530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21531 | (exit $ac_status); } && | |
3565d135 RR |
21532 | { ac_try='test -z "$ac_c_werror_flag" |
21533 | || test ! -s conftest.err' | |
5294a27e VZ |
21534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21535 | (eval $ac_try) 2>&5 | |
21536 | ac_status=$? | |
21537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21538 | (exit $ac_status); }; } && | |
21539 | { ac_try='test -s conftest.$ac_objext' | |
21540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21541 | (eval $ac_try) 2>&5 | |
21542 | ac_status=$? | |
21543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21544 | (exit $ac_status); }; }; then | |
21545 | break | |
21546 | else | |
21547 | echo "$as_me: failed program was:" >&5 | |
21548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21549 | ||
21550 | fi | |
21551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21552 | cat >conftest.$ac_ext <<_ACEOF | |
21553 | /* confdefs.h. */ | |
21554 | _ACEOF | |
21555 | cat confdefs.h >>conftest.$ac_ext | |
21556 | cat >>conftest.$ac_ext <<_ACEOF | |
21557 | /* end confdefs.h. */ | |
21558 | #define _LARGEFILE_SOURCE 1 | |
21559 | #include <stdio.h> | |
21560 | int | |
21561 | main () | |
21562 | { | |
21563 | return !fseeko; | |
21564 | ; | |
21565 | return 0; | |
21566 | } | |
21567 | _ACEOF | |
21568 | rm -f conftest.$ac_objext | |
21569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21570 | (eval $ac_compile) 2>conftest.er1 | |
21571 | ac_status=$? | |
21572 | grep -v '^ *+' conftest.er1 >conftest.err | |
21573 | rm -f conftest.er1 | |
21574 | cat conftest.err >&5 | |
21575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21576 | (exit $ac_status); } && | |
3565d135 RR |
21577 | { ac_try='test -z "$ac_c_werror_flag" |
21578 | || test ! -s conftest.err' | |
5294a27e VZ |
21579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21580 | (eval $ac_try) 2>&5 | |
21581 | ac_status=$? | |
21582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21583 | (exit $ac_status); }; } && | |
21584 | { ac_try='test -s conftest.$ac_objext' | |
21585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21586 | (eval $ac_try) 2>&5 | |
21587 | ac_status=$? | |
21588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21589 | (exit $ac_status); }; }; then | |
21590 | ac_cv_sys_largefile_source=1; break | |
21591 | else | |
21592 | echo "$as_me: failed program was:" >&5 | |
21593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21594 | ||
21595 | fi | |
21596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21597 | break | |
21598 | done | |
21599 | fi | |
21600 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
21601 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
21602 | if test "$ac_cv_sys_largefile_source" != no; then | |
21603 | ||
21604 | cat >>confdefs.h <<_ACEOF | |
21605 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
21606 | _ACEOF | |
21607 | ||
21608 | fi | |
21609 | rm -f conftest* | |
21610 | ||
21611 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
21612 | # in glibc 2.1.3, but that breaks too many other things. | |
21613 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
21614 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
21615 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
21616 | if test "${ac_cv_func_fseeko+set}" = set; then | |
21617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21618 | else | |
21619 | cat >conftest.$ac_ext <<_ACEOF | |
21620 | /* confdefs.h. */ | |
21621 | _ACEOF | |
21622 | cat confdefs.h >>conftest.$ac_ext | |
21623 | cat >>conftest.$ac_ext <<_ACEOF | |
21624 | /* end confdefs.h. */ | |
21625 | #include <stdio.h> | |
21626 | int | |
21627 | main () | |
21628 | { | |
21629 | return fseeko && fseeko (stdin, 0, 0); | |
21630 | ; | |
21631 | return 0; | |
21632 | } | |
21633 | _ACEOF | |
21634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21636 | (eval $ac_link) 2>conftest.er1 | |
21637 | ac_status=$? | |
21638 | grep -v '^ *+' conftest.er1 >conftest.err | |
21639 | rm -f conftest.er1 | |
21640 | cat conftest.err >&5 | |
21641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21642 | (exit $ac_status); } && | |
3565d135 RR |
21643 | { ac_try='test -z "$ac_c_werror_flag" |
21644 | || test ! -s conftest.err' | |
5294a27e VZ |
21645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21646 | (eval $ac_try) 2>&5 | |
21647 | ac_status=$? | |
21648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21649 | (exit $ac_status); }; } && | |
21650 | { ac_try='test -s conftest$ac_exeext' | |
21651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21652 | (eval $ac_try) 2>&5 | |
21653 | ac_status=$? | |
21654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21655 | (exit $ac_status); }; }; then | |
21656 | ac_cv_func_fseeko=yes | |
21657 | else | |
21658 | echo "$as_me: failed program was:" >&5 | |
21659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21660 | ||
21661 | ac_cv_func_fseeko=no | |
21662 | fi | |
21663 | rm -f conftest.err conftest.$ac_objext \ | |
21664 | conftest$ac_exeext conftest.$ac_ext | |
21665 | fi | |
21666 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
21667 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
21668 | if test $ac_cv_func_fseeko = yes; then | |
21669 | ||
21670 | cat >>confdefs.h <<\_ACEOF | |
21671 | #define HAVE_FSEEKO 1 | |
21672 | _ACEOF | |
21673 | ||
21674 | fi | |
21675 | ||
5b674b9d | 21676 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 21677 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 21678 | fi |
a848cd7e SC |
21679 | fi |
21680 | ||
21681 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21682 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21683 | if test "${ac_cv_c_bigendian+set}" = set; then | |
21684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21685 | else | |
21686 | ac_cv_c_bigendian=unknown | |
21687 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21688 | cat >conftest.$ac_ext <<_ACEOF | |
21689 | /* confdefs.h. */ | |
21690 | _ACEOF | |
21691 | cat confdefs.h >>conftest.$ac_ext | |
21692 | cat >>conftest.$ac_ext <<_ACEOF | |
21693 | /* end confdefs.h. */ | |
21694 | #include <sys/types.h> | |
21695 | #include <sys/param.h> | |
21696 | int | |
21697 | main () | |
21698 | { | |
21699 | ||
21700 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21701 | bogus endian macros | |
21702 | #endif | |
21703 | ; | |
21704 | return 0; | |
21705 | } | |
21706 | _ACEOF | |
21707 | rm -f conftest.$ac_objext | |
21708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21709 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21710 | ac_status=$? |
ac1cb8d3 VS |
21711 | grep -v '^ *+' conftest.er1 >conftest.err |
21712 | rm -f conftest.er1 | |
21713 | cat conftest.err >&5 | |
a848cd7e SC |
21714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21715 | (exit $ac_status); } && | |
3565d135 RR |
21716 | { ac_try='test -z "$ac_c_werror_flag" |
21717 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21719 | (eval $ac_try) 2>&5 | |
21720 | ac_status=$? | |
21721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21722 | (exit $ac_status); }; } && | |
21723 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21725 | (eval $ac_try) 2>&5 | |
21726 | ac_status=$? | |
21727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21728 | (exit $ac_status); }; }; then | |
21729 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21730 | cat >conftest.$ac_ext <<_ACEOF | |
21731 | /* confdefs.h. */ | |
21732 | _ACEOF | |
21733 | cat confdefs.h >>conftest.$ac_ext | |
21734 | cat >>conftest.$ac_ext <<_ACEOF | |
21735 | /* end confdefs.h. */ | |
21736 | #include <sys/types.h> | |
21737 | #include <sys/param.h> | |
21738 | int | |
21739 | main () | |
21740 | { | |
21741 | ||
21742 | #if BYTE_ORDER != BIG_ENDIAN | |
21743 | not big endian | |
21744 | #endif | |
21745 | ; | |
21746 | return 0; | |
21747 | } | |
21748 | _ACEOF | |
21749 | rm -f conftest.$ac_objext | |
21750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21751 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21752 | ac_status=$? |
ac1cb8d3 VS |
21753 | grep -v '^ *+' conftest.er1 >conftest.err |
21754 | rm -f conftest.er1 | |
21755 | cat conftest.err >&5 | |
a848cd7e SC |
21756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21757 | (exit $ac_status); } && | |
3565d135 RR |
21758 | { ac_try='test -z "$ac_c_werror_flag" |
21759 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21761 | (eval $ac_try) 2>&5 | |
21762 | ac_status=$? | |
21763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21764 | (exit $ac_status); }; } && | |
21765 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21767 | (eval $ac_try) 2>&5 | |
21768 | ac_status=$? | |
21769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21770 | (exit $ac_status); }; }; then | |
21771 | ac_cv_c_bigendian=yes | |
21772 | else | |
21773 | echo "$as_me: failed program was:" >&5 | |
21774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21775 | ||
21776 | ac_cv_c_bigendian=no | |
21777 | fi | |
ac1cb8d3 | 21778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21779 | else |
21780 | echo "$as_me: failed program was:" >&5 | |
21781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21782 | ||
21783 | fi | |
ac1cb8d3 | 21784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21785 | if test $ac_cv_c_bigendian = unknown; then |
21786 | if test "$cross_compiling" = yes; then | |
21787 | ac_cv_c_bigendian=unknown | |
21788 | else | |
21789 | cat >conftest.$ac_ext <<_ACEOF | |
21790 | /* confdefs.h. */ | |
21791 | _ACEOF | |
21792 | cat confdefs.h >>conftest.$ac_ext | |
21793 | cat >>conftest.$ac_ext <<_ACEOF | |
21794 | /* end confdefs.h. */ | |
21795 | main () { | |
21796 | /* Are we little or big endian? From Harbison&Steele. */ | |
21797 | union | |
21798 | { | |
21799 | long l; | |
21800 | char c[sizeof (long)]; | |
21801 | } u; | |
21802 | u.l = 1; | |
21803 | exit (u.c[sizeof (long) - 1] == 1); | |
21804 | } | |
21805 | _ACEOF | |
21806 | rm -f conftest$ac_exeext | |
21807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21808 | (eval $ac_link) 2>&5 | |
21809 | ac_status=$? | |
21810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21813 | (eval $ac_try) 2>&5 | |
21814 | ac_status=$? | |
21815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21816 | (exit $ac_status); }; }; then | |
21817 | ac_cv_c_bigendian=no | |
21818 | else | |
21819 | echo "$as_me: program exited with status $ac_status" >&5 | |
21820 | echo "$as_me: failed program was:" >&5 | |
21821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21822 | ||
21823 | ( exit $ac_status ) | |
21824 | ac_cv_c_bigendian=yes | |
21825 | fi | |
ac1cb8d3 | 21826 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21827 | fi |
21828 | fi | |
21829 | fi | |
21830 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
21831 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
21832 | if test $ac_cv_c_bigendian = unknown; then | |
21833 | { 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 | |
21834 | 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;} | |
21835 | fi | |
21836 | if test $ac_cv_c_bigendian = yes; then | |
21837 | cat >>confdefs.h <<\_ACEOF | |
21838 | #define WORDS_BIGENDIAN 1 | |
21839 | _ACEOF | |
21840 | ||
21841 | fi | |
21842 | ||
21843 | ||
21844 | ac_ext=cc | |
21845 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21846 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21847 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21848 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21849 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
21850 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
21851 | if test -z "$CXXCPP"; then | |
21852 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
21853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21854 | else | |
21855 | # Double quotes because CXXCPP needs to be expanded | |
21856 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
21857 | do | |
21858 | ac_preproc_ok=false | |
21859 | for ac_cxx_preproc_warn_flag in '' yes | |
21860 | do | |
21861 | # Use a header file that comes with gcc, so configuring glibc | |
21862 | # with a fresh cross-compiler works. | |
21863 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21864 | # <limits.h> exists even on freestanding compilers. | |
21865 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21866 | # not just through cpp. "Syntax error" is here to catch this case. | |
21867 | cat >conftest.$ac_ext <<_ACEOF | |
21868 | /* confdefs.h. */ | |
21869 | _ACEOF | |
21870 | cat confdefs.h >>conftest.$ac_ext | |
21871 | cat >>conftest.$ac_ext <<_ACEOF | |
21872 | /* end confdefs.h. */ | |
21873 | #ifdef __STDC__ | |
21874 | # include <limits.h> | |
21875 | #else | |
21876 | # include <assert.h> | |
21877 | #endif | |
ac1cb8d3 | 21878 | Syntax error |
a848cd7e SC |
21879 | _ACEOF |
21880 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21881 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21882 | ac_status=$? | |
21883 | grep -v '^ *+' conftest.er1 >conftest.err | |
21884 | rm -f conftest.er1 | |
21885 | cat conftest.err >&5 | |
21886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21887 | (exit $ac_status); } >/dev/null; then | |
21888 | if test -s conftest.err; then | |
21889 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21890 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21891 | else |
21892 | ac_cpp_err= | |
21893 | fi | |
21894 | else | |
21895 | ac_cpp_err=yes | |
21896 | fi | |
21897 | if test -z "$ac_cpp_err"; then | |
21898 | : | |
21899 | else | |
21900 | echo "$as_me: failed program was:" >&5 | |
21901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21902 | ||
21903 | # Broken: fails on valid input. | |
21904 | continue | |
21905 | fi | |
21906 | rm -f conftest.err conftest.$ac_ext | |
21907 | ||
21908 | # OK, works on sane cases. Now check whether non-existent headers | |
21909 | # can be detected and how. | |
21910 | cat >conftest.$ac_ext <<_ACEOF | |
21911 | /* confdefs.h. */ | |
21912 | _ACEOF | |
21913 | cat confdefs.h >>conftest.$ac_ext | |
21914 | cat >>conftest.$ac_ext <<_ACEOF | |
21915 | /* end confdefs.h. */ | |
21916 | #include <ac_nonexistent.h> | |
21917 | _ACEOF | |
21918 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21919 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21920 | ac_status=$? | |
21921 | grep -v '^ *+' conftest.er1 >conftest.err | |
21922 | rm -f conftest.er1 | |
21923 | cat conftest.err >&5 | |
21924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21925 | (exit $ac_status); } >/dev/null; then | |
21926 | if test -s conftest.err; then | |
21927 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21928 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21929 | else |
21930 | ac_cpp_err= | |
21931 | fi | |
21932 | else | |
21933 | ac_cpp_err=yes | |
21934 | fi | |
21935 | if test -z "$ac_cpp_err"; then | |
21936 | # Broken: success on invalid input. | |
21937 | continue | |
21938 | else | |
21939 | echo "$as_me: failed program was:" >&5 | |
21940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21941 | ||
21942 | # Passes both tests. | |
21943 | ac_preproc_ok=: | |
21944 | break | |
21945 | fi | |
21946 | rm -f conftest.err conftest.$ac_ext | |
21947 | ||
21948 | done | |
21949 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21950 | rm -f conftest.err conftest.$ac_ext | |
21951 | if $ac_preproc_ok; then | |
21952 | break | |
21953 | fi | |
21954 | ||
21955 | done | |
21956 | ac_cv_prog_CXXCPP=$CXXCPP | |
21957 | ||
21958 | fi | |
21959 | CXXCPP=$ac_cv_prog_CXXCPP | |
21960 | else | |
21961 | ac_cv_prog_CXXCPP=$CXXCPP | |
21962 | fi | |
21963 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
21964 | echo "${ECHO_T}$CXXCPP" >&6 | |
21965 | ac_preproc_ok=false | |
21966 | for ac_cxx_preproc_warn_flag in '' yes | |
21967 | do | |
21968 | # Use a header file that comes with gcc, so configuring glibc | |
21969 | # with a fresh cross-compiler works. | |
21970 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21971 | # <limits.h> exists even on freestanding compilers. | |
21972 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21973 | # not just through cpp. "Syntax error" is here to catch this case. | |
21974 | cat >conftest.$ac_ext <<_ACEOF | |
21975 | /* confdefs.h. */ | |
21976 | _ACEOF | |
21977 | cat confdefs.h >>conftest.$ac_ext | |
21978 | cat >>conftest.$ac_ext <<_ACEOF | |
21979 | /* end confdefs.h. */ | |
21980 | #ifdef __STDC__ | |
21981 | # include <limits.h> | |
21982 | #else | |
21983 | # include <assert.h> | |
21984 | #endif | |
ac1cb8d3 | 21985 | Syntax error |
a848cd7e SC |
21986 | _ACEOF |
21987 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21988 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21989 | ac_status=$? | |
21990 | grep -v '^ *+' conftest.er1 >conftest.err | |
21991 | rm -f conftest.er1 | |
21992 | cat conftest.err >&5 | |
21993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21994 | (exit $ac_status); } >/dev/null; then | |
21995 | if test -s conftest.err; then | |
21996 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21997 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21998 | else |
21999 | ac_cpp_err= | |
22000 | fi | |
22001 | else | |
22002 | ac_cpp_err=yes | |
22003 | fi | |
22004 | if test -z "$ac_cpp_err"; then | |
22005 | : | |
22006 | else | |
22007 | echo "$as_me: failed program was:" >&5 | |
22008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22009 | ||
22010 | # Broken: fails on valid input. | |
22011 | continue | |
22012 | fi | |
22013 | rm -f conftest.err conftest.$ac_ext | |
22014 | ||
22015 | # OK, works on sane cases. Now check whether non-existent headers | |
22016 | # can be detected and how. | |
22017 | cat >conftest.$ac_ext <<_ACEOF | |
22018 | /* confdefs.h. */ | |
22019 | _ACEOF | |
22020 | cat confdefs.h >>conftest.$ac_ext | |
22021 | cat >>conftest.$ac_ext <<_ACEOF | |
22022 | /* end confdefs.h. */ | |
22023 | #include <ac_nonexistent.h> | |
22024 | _ACEOF | |
22025 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22026 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22027 | ac_status=$? | |
22028 | grep -v '^ *+' conftest.er1 >conftest.err | |
22029 | rm -f conftest.er1 | |
22030 | cat conftest.err >&5 | |
22031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22032 | (exit $ac_status); } >/dev/null; then | |
22033 | if test -s conftest.err; then | |
22034 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22035 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22036 | else |
22037 | ac_cpp_err= | |
22038 | fi | |
22039 | else | |
22040 | ac_cpp_err=yes | |
22041 | fi | |
22042 | if test -z "$ac_cpp_err"; then | |
22043 | # Broken: success on invalid input. | |
22044 | continue | |
22045 | else | |
22046 | echo "$as_me: failed program was:" >&5 | |
22047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22048 | ||
22049 | # Passes both tests. | |
22050 | ac_preproc_ok=: | |
22051 | break | |
22052 | fi | |
22053 | rm -f conftest.err conftest.$ac_ext | |
22054 | ||
22055 | done | |
22056 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22057 | rm -f conftest.err conftest.$ac_ext | |
22058 | if $ac_preproc_ok; then | |
22059 | : | |
22060 | else | |
22061 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
22062 | See \`config.log' for more details." >&5 | |
22063 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
22064 | See \`config.log' for more details." >&2;} | |
22065 | { (exit 1); exit 1; }; } | |
22066 | fi | |
22067 | ||
22068 | ac_ext=cc | |
22069 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22073 | ||
22074 | ||
22075 | ||
22076 | ||
22077 | ||
22078 | ac_ext=cc | |
22079 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22080 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22081 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22082 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22083 | ||
22084 | ||
22085 | ||
22086 | for ac_header in iostream | |
22087 | do | |
22088 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22089 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22090 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22091 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22094 | fi | |
22095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22096 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22097 | else | |
22098 | # Is the header compilable? | |
22099 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22100 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22101 | cat >conftest.$ac_ext <<_ACEOF | |
22102 | /* confdefs.h. */ | |
22103 | _ACEOF | |
22104 | cat confdefs.h >>conftest.$ac_ext | |
22105 | cat >>conftest.$ac_ext <<_ACEOF | |
22106 | /* end confdefs.h. */ | |
22107 | $ac_includes_default | |
22108 | #include <$ac_header> | |
22109 | _ACEOF | |
22110 | rm -f conftest.$ac_objext | |
22111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22113 | ac_status=$? |
ac1cb8d3 VS |
22114 | grep -v '^ *+' conftest.er1 >conftest.err |
22115 | rm -f conftest.er1 | |
22116 | cat conftest.err >&5 | |
a848cd7e SC |
22117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22118 | (exit $ac_status); } && | |
3565d135 RR |
22119 | { ac_try='test -z "$ac_cxx_werror_flag" |
22120 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22122 | (eval $ac_try) 2>&5 | |
22123 | ac_status=$? | |
22124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22125 | (exit $ac_status); }; } && | |
22126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22128 | (eval $ac_try) 2>&5 | |
22129 | ac_status=$? | |
22130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22131 | (exit $ac_status); }; }; then | |
22132 | ac_header_compiler=yes | |
22133 | else | |
22134 | echo "$as_me: failed program was:" >&5 | |
22135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22136 | ||
22137 | ac_header_compiler=no | |
22138 | fi | |
ac1cb8d3 | 22139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22140 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22141 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22142 | ||
22143 | # Is the header present? | |
22144 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22145 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22146 | cat >conftest.$ac_ext <<_ACEOF | |
22147 | /* confdefs.h. */ | |
22148 | _ACEOF | |
22149 | cat confdefs.h >>conftest.$ac_ext | |
22150 | cat >>conftest.$ac_ext <<_ACEOF | |
22151 | /* end confdefs.h. */ | |
22152 | #include <$ac_header> | |
22153 | _ACEOF | |
22154 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22155 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22156 | ac_status=$? | |
22157 | grep -v '^ *+' conftest.er1 >conftest.err | |
22158 | rm -f conftest.er1 | |
22159 | cat conftest.err >&5 | |
22160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22161 | (exit $ac_status); } >/dev/null; then | |
22162 | if test -s conftest.err; then | |
22163 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22164 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22165 | else |
22166 | ac_cpp_err= | |
22167 | fi | |
22168 | else | |
22169 | ac_cpp_err=yes | |
22170 | fi | |
22171 | if test -z "$ac_cpp_err"; then | |
22172 | ac_header_preproc=yes | |
22173 | else | |
22174 | echo "$as_me: failed program was:" >&5 | |
22175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22176 | ||
22177 | ac_header_preproc=no | |
22178 | fi | |
22179 | rm -f conftest.err conftest.$ac_ext | |
22180 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22181 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22182 | ||
22183 | # So? What about this header? | |
ac1cb8d3 VS |
22184 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22185 | yes:no: ) | |
a848cd7e SC |
22186 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22187 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22189 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22190 | ac_header_preproc=yes | |
a848cd7e | 22191 | ;; |
ac1cb8d3 | 22192 | no:yes:* ) |
a848cd7e SC |
22193 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22194 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22195 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22196 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22197 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22198 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22199 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22200 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22201 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22202 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22203 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22204 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22205 | ( |
22206 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22207 | ## ----------------------------------------- ## |
22208 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22209 | ## ----------------------------------------- ## | |
a848cd7e SC |
22210 | _ASBOX |
22211 | ) | | |
22212 | sed "s/^/$as_me: WARNING: /" >&2 | |
22213 | ;; | |
22214 | esac | |
22215 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22216 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22217 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22219 | else | |
ac1cb8d3 | 22220 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22221 | fi |
22222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22223 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22224 | ||
22225 | fi | |
22226 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22227 | cat >>confdefs.h <<_ACEOF | |
22228 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22229 | _ACEOF | |
22230 | ||
22231 | fi | |
22232 | ||
22233 | done | |
22234 | ||
22235 | ||
22236 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22237 | : | |
22238 | else | |
22239 | cat >>confdefs.h <<\_ACEOF | |
22240 | #define wxUSE_IOSTREAMH 1 | |
22241 | _ACEOF | |
22242 | ||
22243 | fi | |
22244 | ||
22245 | ac_ext=c | |
22246 | ac_cpp='$CPP $CPPFLAGS' | |
22247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22250 | ||
22251 | ||
22252 | ||
22253 | ||
22254 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22255 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22256 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22258 | else | |
22259 | ||
22260 | ||
22261 | ||
22262 | ac_ext=cc | |
22263 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22264 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22265 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22266 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22267 | ||
22268 | ||
22269 | cat >conftest.$ac_ext <<_ACEOF | |
22270 | /* confdefs.h. */ | |
22271 | _ACEOF | |
22272 | cat confdefs.h >>conftest.$ac_ext | |
22273 | cat >>conftest.$ac_ext <<_ACEOF | |
22274 | /* end confdefs.h. */ | |
22275 | ||
22276 | ||
22277 | int | |
22278 | main () | |
22279 | { | |
22280 | ||
22281 | bool b = true; | |
22282 | ||
22283 | return 0; | |
22284 | ||
22285 | ; | |
22286 | return 0; | |
22287 | } | |
22288 | _ACEOF | |
22289 | rm -f conftest.$ac_objext | |
22290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22291 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22292 | ac_status=$? |
ac1cb8d3 VS |
22293 | grep -v '^ *+' conftest.er1 >conftest.err |
22294 | rm -f conftest.er1 | |
22295 | cat conftest.err >&5 | |
a848cd7e SC |
22296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22297 | (exit $ac_status); } && | |
3565d135 RR |
22298 | { ac_try='test -z "$ac_cxx_werror_flag" |
22299 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22301 | (eval $ac_try) 2>&5 | |
22302 | ac_status=$? | |
22303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22304 | (exit $ac_status); }; } && | |
22305 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22307 | (eval $ac_try) 2>&5 | |
22308 | ac_status=$? | |
22309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22310 | (exit $ac_status); }; }; then | |
22311 | ||
22312 | wx_cv_cpp_bool=yes | |
22313 | ||
22314 | else | |
22315 | echo "$as_me: failed program was:" >&5 | |
22316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22317 | ||
22318 | ||
22319 | wx_cv_cpp_bool=no | |
22320 | ||
22321 | ||
22322 | fi | |
ac1cb8d3 | 22323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22324 | |
22325 | ac_ext=c | |
22326 | ac_cpp='$CPP $CPPFLAGS' | |
22327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22330 | ||
22331 | ||
22332 | fi | |
22333 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22334 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22335 | ||
22336 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22337 | cat >>confdefs.h <<\_ACEOF | |
22338 | #define HAVE_BOOL 1 | |
22339 | _ACEOF | |
22340 | ||
22341 | fi | |
22342 | ||
22343 | ||
22344 | ||
22345 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22346 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22347 | if test "${wx_cv_explicit+set}" = set; then | |
22348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22349 | else | |
22350 | ||
22351 | ||
22352 | ||
22353 | ac_ext=cc | |
22354 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22355 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22356 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22357 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22358 | ||
22359 | ||
22360 | cat >conftest.$ac_ext <<_ACEOF | |
22361 | /* confdefs.h. */ | |
22362 | _ACEOF | |
22363 | cat confdefs.h >>conftest.$ac_ext | |
22364 | cat >>conftest.$ac_ext <<_ACEOF | |
22365 | /* end confdefs.h. */ | |
22366 | ||
22367 | class Foo { public: explicit Foo(int) {} }; | |
22368 | ||
22369 | int | |
22370 | main () | |
22371 | { | |
22372 | ||
22373 | return 0; | |
22374 | ||
22375 | ; | |
22376 | return 0; | |
22377 | } | |
22378 | _ACEOF | |
22379 | rm -f conftest.$ac_objext | |
22380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22381 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22382 | ac_status=$? |
ac1cb8d3 VS |
22383 | grep -v '^ *+' conftest.er1 >conftest.err |
22384 | rm -f conftest.er1 | |
22385 | cat conftest.err >&5 | |
a848cd7e SC |
22386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22387 | (exit $ac_status); } && | |
3565d135 RR |
22388 | { ac_try='test -z "$ac_cxx_werror_flag" |
22389 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22391 | (eval $ac_try) 2>&5 | |
22392 | ac_status=$? | |
22393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22394 | (exit $ac_status); }; } && | |
22395 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22397 | (eval $ac_try) 2>&5 | |
22398 | ac_status=$? | |
22399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22400 | (exit $ac_status); }; }; then | |
22401 | ||
22402 | cat >conftest.$ac_ext <<_ACEOF | |
22403 | /* confdefs.h. */ | |
22404 | _ACEOF | |
22405 | cat confdefs.h >>conftest.$ac_ext | |
22406 | cat >>conftest.$ac_ext <<_ACEOF | |
22407 | /* end confdefs.h. */ | |
22408 | ||
22409 | class Foo { public: explicit Foo(int) {} }; | |
22410 | static void TakeFoo(const Foo& foo) { } | |
22411 | ||
22412 | int | |
22413 | main () | |
22414 | { | |
22415 | ||
22416 | TakeFoo(17); | |
22417 | return 0; | |
22418 | ||
22419 | ; | |
22420 | return 0; | |
22421 | } | |
22422 | _ACEOF | |
22423 | rm -f conftest.$ac_objext | |
22424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22425 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22426 | ac_status=$? |
ac1cb8d3 VS |
22427 | grep -v '^ *+' conftest.er1 >conftest.err |
22428 | rm -f conftest.er1 | |
22429 | cat conftest.err >&5 | |
a848cd7e SC |
22430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22431 | (exit $ac_status); } && | |
3565d135 RR |
22432 | { ac_try='test -z "$ac_cxx_werror_flag" |
22433 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22435 | (eval $ac_try) 2>&5 | |
22436 | ac_status=$? | |
22437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22438 | (exit $ac_status); }; } && | |
22439 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22441 | (eval $ac_try) 2>&5 | |
22442 | ac_status=$? | |
22443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22444 | (exit $ac_status); }; }; then | |
22445 | wx_cv_explicit=no | |
22446 | else | |
22447 | echo "$as_me: failed program was:" >&5 | |
22448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22449 | ||
22450 | wx_cv_explicit=yes | |
22451 | ||
22452 | fi | |
ac1cb8d3 | 22453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22454 | |
22455 | else | |
22456 | echo "$as_me: failed program was:" >&5 | |
22457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22458 | ||
22459 | wx_cv_explicit=no | |
22460 | ||
22461 | fi | |
ac1cb8d3 | 22462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22463 | |
22464 | ac_ext=c | |
22465 | ac_cpp='$CPP $CPPFLAGS' | |
22466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22469 | ||
22470 | ||
22471 | fi | |
22472 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22473 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22474 | ||
22475 | if test "$wx_cv_explicit" = "yes"; then | |
22476 | cat >>confdefs.h <<\_ACEOF | |
22477 | #define HAVE_EXPLICIT 1 | |
22478 | _ACEOF | |
22479 | ||
22480 | fi | |
22481 | ||
22482 | ||
22483 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22484 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22485 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22487 | else | |
22488 | ||
22489 | ||
22490 | ac_ext=cc | |
22491 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22492 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22493 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22494 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22495 | ||
22496 | cat >conftest.$ac_ext <<_ACEOF | |
22497 | /* confdefs.h. */ | |
22498 | _ACEOF | |
22499 | cat confdefs.h >>conftest.$ac_ext | |
22500 | cat >>conftest.$ac_ext <<_ACEOF | |
22501 | /* end confdefs.h. */ | |
22502 | ||
22503 | int | |
22504 | main () | |
22505 | { | |
22506 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22507 | ; | |
22508 | return 0; | |
22509 | } | |
22510 | _ACEOF | |
22511 | rm -f conftest.$ac_objext | |
22512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22513 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22514 | ac_status=$? |
ac1cb8d3 VS |
22515 | grep -v '^ *+' conftest.er1 >conftest.err |
22516 | rm -f conftest.er1 | |
22517 | cat conftest.err >&5 | |
a848cd7e SC |
22518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22519 | (exit $ac_status); } && | |
3565d135 RR |
22520 | { ac_try='test -z "$ac_cxx_werror_flag" |
22521 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22523 | (eval $ac_try) 2>&5 | |
22524 | ac_status=$? | |
22525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22526 | (exit $ac_status); }; } && | |
22527 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22529 | (eval $ac_try) 2>&5 | |
22530 | ac_status=$? | |
22531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22532 | (exit $ac_status); }; }; then | |
22533 | ac_cv_cxx_const_cast=yes | |
22534 | else | |
22535 | echo "$as_me: failed program was:" >&5 | |
22536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22537 | ||
22538 | ac_cv_cxx_const_cast=no | |
22539 | fi | |
ac1cb8d3 | 22540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22541 | ac_ext=c |
22542 | ac_cpp='$CPP $CPPFLAGS' | |
22543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22546 | ||
22547 | ||
22548 | fi | |
22549 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22550 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22551 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22552 | ||
22553 | cat >>confdefs.h <<\_ACEOF | |
22554 | #define HAVE_CONST_CAST | |
22555 | _ACEOF | |
22556 | ||
22557 | fi | |
22558 | ||
7714864e RL |
22559 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22560 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22561 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22563 | else | |
22564 | ||
22565 | ||
22566 | ac_ext=cc | |
22567 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22568 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22569 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22570 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22571 | ||
22572 | cat >conftest.$ac_ext <<_ACEOF | |
22573 | /* confdefs.h. */ | |
22574 | _ACEOF | |
22575 | cat confdefs.h >>conftest.$ac_ext | |
22576 | cat >>conftest.$ac_ext <<_ACEOF | |
22577 | /* end confdefs.h. */ | |
22578 | #include <typeinfo> | |
22579 | class Base { public : Base () {} virtual void f () = 0;}; | |
22580 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22581 | class Unrelated { public : Unrelated () {} }; | |
22582 | int g (Unrelated&) { return 0; } | |
22583 | int | |
22584 | main () | |
22585 | { | |
22586 | ||
22587 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
22588 | ; | |
22589 | return 0; | |
22590 | } | |
22591 | _ACEOF | |
22592 | rm -f conftest.$ac_objext | |
22593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22594 | (eval $ac_compile) 2>conftest.er1 | |
22595 | ac_status=$? | |
22596 | grep -v '^ *+' conftest.er1 >conftest.err | |
22597 | rm -f conftest.er1 | |
22598 | cat conftest.err >&5 | |
22599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22600 | (exit $ac_status); } && | |
3565d135 RR |
22601 | { ac_try='test -z "$ac_cxx_werror_flag" |
22602 | || test ! -s conftest.err' | |
7714864e RL |
22603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22604 | (eval $ac_try) 2>&5 | |
22605 | ac_status=$? | |
22606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22607 | (exit $ac_status); }; } && | |
22608 | { ac_try='test -s conftest.$ac_objext' | |
22609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22610 | (eval $ac_try) 2>&5 | |
22611 | ac_status=$? | |
22612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22613 | (exit $ac_status); }; }; then | |
22614 | ac_cv_cxx_reinterpret_cast=yes | |
22615 | else | |
22616 | echo "$as_me: failed program was:" >&5 | |
22617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22618 | ||
22619 | ac_cv_cxx_reinterpret_cast=no | |
22620 | fi | |
22621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22622 | ac_ext=c | |
22623 | ac_cpp='$CPP $CPPFLAGS' | |
22624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22627 | ||
22628 | ||
22629 | fi | |
22630 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22631 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22632 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22633 | ||
22634 | cat >>confdefs.h <<\_ACEOF | |
22635 | #define HAVE_REINTERPRET_CAST | |
22636 | _ACEOF | |
22637 | ||
22638 | fi | |
22639 | ||
a848cd7e SC |
22640 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22641 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22642 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22644 | else | |
22645 | ||
22646 | ||
22647 | ac_ext=cc | |
22648 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22649 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22650 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22651 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22652 | ||
22653 | cat >conftest.$ac_ext <<_ACEOF | |
22654 | /* confdefs.h. */ | |
22655 | _ACEOF | |
22656 | cat confdefs.h >>conftest.$ac_ext | |
22657 | cat >>conftest.$ac_ext <<_ACEOF | |
22658 | /* end confdefs.h. */ | |
22659 | #include <typeinfo> | |
22660 | class Base { public : Base () {} virtual void f () = 0; }; | |
22661 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22662 | int g (Derived&) { return 0; } | |
22663 | int | |
22664 | main () | |
22665 | { | |
22666 | ||
22667 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22668 | ; | |
22669 | return 0; | |
22670 | } | |
22671 | _ACEOF | |
22672 | rm -f conftest.$ac_objext | |
22673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22674 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22675 | ac_status=$? |
ac1cb8d3 VS |
22676 | grep -v '^ *+' conftest.er1 >conftest.err |
22677 | rm -f conftest.er1 | |
22678 | cat conftest.err >&5 | |
a848cd7e SC |
22679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22680 | (exit $ac_status); } && | |
3565d135 RR |
22681 | { ac_try='test -z "$ac_cxx_werror_flag" |
22682 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22684 | (eval $ac_try) 2>&5 | |
22685 | ac_status=$? | |
22686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22687 | (exit $ac_status); }; } && | |
22688 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22690 | (eval $ac_try) 2>&5 | |
22691 | ac_status=$? | |
22692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22693 | (exit $ac_status); }; }; then | |
22694 | ac_cv_cxx_static_cast=yes | |
22695 | else | |
22696 | echo "$as_me: failed program was:" >&5 | |
22697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22698 | ||
22699 | ac_cv_cxx_static_cast=no | |
22700 | fi | |
ac1cb8d3 | 22701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22702 | ac_ext=c |
22703 | ac_cpp='$CPP $CPPFLAGS' | |
22704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22707 | ||
22708 | ||
22709 | fi | |
22710 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22711 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22712 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22713 | ||
22714 | cat >>confdefs.h <<\_ACEOF | |
22715 | #define HAVE_STATIC_CAST | |
22716 | _ACEOF | |
22717 | ||
22718 | fi | |
22719 | ||
22720 | ||
3c28b7cb | 22721 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 22722 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
22723 | fi |
22724 | ||
9122d155 | 22725 | if test "x$SUNCC" = xyes; then |
c92ad099 | 22726 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
22727 | fi |
22728 | ||
0ad5d837 | 22729 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 22730 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
22731 | fi |
22732 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 22733 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
22734 | fi |
22735 | ||
2eef8513 | 22736 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 22737 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
22738 | fi |
22739 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 22740 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
22741 | fi |
22742 | ||
22743 | if test "x$COMPAQCXX" = "xyes"; then | |
22744 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22745 | fi | |
22746 | ||
f56c22b4 | 22747 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
22748 | ac_ext=cc |
22749 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22750 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22751 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22752 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22753 | ||
22754 | ||
f56c22b4 MW |
22755 | if test "$wxUSE_UNICODE" = "yes"; then |
22756 | std_string="std::wstring" | |
22757 | char_type="wchar_t" | |
22758 | else | |
22759 | std_string="std::string" | |
22760 | char_type="char" | |
22761 | fi | |
22762 | ||
22763 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22764 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22765 | cat >conftest.$ac_ext <<_ACEOF |
22766 | /* confdefs.h. */ | |
22767 | _ACEOF | |
22768 | cat confdefs.h >>conftest.$ac_ext | |
22769 | cat >>conftest.$ac_ext <<_ACEOF | |
22770 | /* end confdefs.h. */ | |
22771 | #include <string> | |
a848cd7e SC |
22772 | int |
22773 | main () | |
22774 | { | |
f56c22b4 | 22775 | $std_string foo; |
a848cd7e SC |
22776 | ; |
22777 | return 0; | |
22778 | } | |
22779 | _ACEOF | |
22780 | rm -f conftest.$ac_objext | |
22781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22782 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22783 | ac_status=$? |
ac1cb8d3 VS |
22784 | grep -v '^ *+' conftest.er1 >conftest.err |
22785 | rm -f conftest.er1 | |
22786 | cat conftest.err >&5 | |
a848cd7e SC |
22787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22788 | (exit $ac_status); } && | |
3565d135 RR |
22789 | { ac_try='test -z "$ac_cxx_werror_flag" |
22790 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22792 | (eval $ac_try) 2>&5 | |
22793 | ac_status=$? | |
22794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22795 | (exit $ac_status); }; } && | |
22796 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22798 | (eval $ac_try) 2>&5 | |
22799 | ac_status=$? | |
22800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22801 | (exit $ac_status); }; }; then | |
22802 | echo "$as_me:$LINENO: result: yes" >&5 | |
22803 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
22804 | cat >>confdefs.h <<\_ACEOF |
22805 | #define HAVE_STD_WSTRING 1 | |
22806 | _ACEOF | |
22807 | ||
a848cd7e SC |
22808 | else |
22809 | echo "$as_me: failed program was:" >&5 | |
22810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22811 | ||
22812 | echo "$as_me:$LINENO: result: no" >&5 | |
22813 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
22814 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
22815 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
22816 | cat >conftest.$ac_ext <<_ACEOF |
22817 | /* confdefs.h. */ | |
22818 | _ACEOF | |
22819 | cat confdefs.h >>conftest.$ac_ext | |
22820 | cat >>conftest.$ac_ext <<_ACEOF | |
22821 | /* end confdefs.h. */ | |
22822 | ||
22823 | #ifdef HAVE_WCHAR_H | |
22824 | # ifdef __CYGWIN__ | |
22825 | # include <stddef.h> | |
22826 | # endif | |
22827 | # include <wchar.h> | |
22828 | #endif | |
22829 | #ifdef HAVE_STDLIB_H | |
22830 | # include <stdlib.h> | |
22831 | #endif | |
22832 | #include <stdio.h> | |
22833 | #include <string> | |
22834 | ||
22835 | int | |
22836 | main () | |
22837 | { | |
f56c22b4 MW |
22838 | std::basic_string<$char_type> foo; |
22839 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
22840 | ; |
22841 | return 0; | |
22842 | } | |
22843 | _ACEOF | |
22844 | rm -f conftest.$ac_objext | |
22845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22846 | (eval $ac_compile) 2>conftest.er1 | |
22847 | ac_status=$? | |
22848 | grep -v '^ *+' conftest.er1 >conftest.err | |
22849 | rm -f conftest.er1 | |
22850 | cat conftest.err >&5 | |
22851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22852 | (exit $ac_status); } && | |
3565d135 RR |
22853 | { ac_try='test -z "$ac_cxx_werror_flag" |
22854 | || test ! -s conftest.err' | |
0a08f02a MB |
22855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22856 | (eval $ac_try) 2>&5 | |
22857 | ac_status=$? | |
22858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22859 | (exit $ac_status); }; } && | |
22860 | { ac_try='test -s conftest.$ac_objext' | |
22861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22862 | (eval $ac_try) 2>&5 | |
22863 | ac_status=$? | |
22864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22865 | (exit $ac_status); }; }; then | |
22866 | echo "$as_me:$LINENO: result: yes" >&5 | |
22867 | echo "${ECHO_T}yes" >&6 | |
22868 | else | |
22869 | echo "$as_me: failed program was:" >&5 | |
22870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22871 | ||
22872 | echo "$as_me:$LINENO: result: no" >&5 | |
22873 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 22874 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
22875 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
22876 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
22877 | { (exit 1); exit 1; }; } | |
22878 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
22879 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
22880 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 22881 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
22882 | else |
22883 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
22884 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
22885 | wxUSE_STD_STRING=no | |
22886 | fi | |
22887 | ||
0a08f02a | 22888 | |
a848cd7e | 22889 | fi |
ac1cb8d3 | 22890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22891 | |
0a08f02a MB |
22892 | fi |
22893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22894 | ||
22895 | ac_ext=c | |
22896 | ac_cpp='$CPP $CPPFLAGS' | |
22897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
22899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22900 | ||
22901 | fi | |
22902 | ||
22903 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
22904 | ac_ext=cc | |
22905 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22906 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22907 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22908 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22909 | ||
22910 | ||
22911 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
22912 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22913 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22915 | else | |
22916 | cat >conftest.$ac_ext <<_ACEOF | |
22917 | /* confdefs.h. */ | |
22918 | _ACEOF | |
22919 | cat confdefs.h >>conftest.$ac_ext | |
22920 | cat >>conftest.$ac_ext <<_ACEOF | |
22921 | /* end confdefs.h. */ | |
22922 | #include <iostream> | |
22923 | ||
22924 | int | |
22925 | main () | |
22926 | { | |
22927 | if ((std::istream *) 0) | |
22928 | return 0; | |
22929 | if (sizeof (std::istream)) | |
22930 | return 0; | |
22931 | ; | |
22932 | return 0; | |
22933 | } | |
22934 | _ACEOF | |
22935 | rm -f conftest.$ac_objext | |
22936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22937 | (eval $ac_compile) 2>conftest.er1 | |
22938 | ac_status=$? | |
22939 | grep -v '^ *+' conftest.er1 >conftest.err | |
22940 | rm -f conftest.er1 | |
22941 | cat conftest.err >&5 | |
22942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22943 | (exit $ac_status); } && | |
3565d135 RR |
22944 | { ac_try='test -z "$ac_cxx_werror_flag" |
22945 | || test ! -s conftest.err' | |
f56c22b4 MW |
22946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22947 | (eval $ac_try) 2>&5 | |
22948 | ac_status=$? | |
22949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22950 | (exit $ac_status); }; } && | |
22951 | { ac_try='test -s conftest.$ac_objext' | |
22952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22953 | (eval $ac_try) 2>&5 | |
22954 | ac_status=$? | |
22955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22956 | (exit $ac_status); }; }; then | |
22957 | ac_cv_type_std__istream=yes | |
22958 | else | |
22959 | echo "$as_me: failed program was:" >&5 | |
22960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22961 | ||
22962 | ac_cv_type_std__istream=no | |
22963 | fi | |
22964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22965 | fi | |
22966 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22967 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22968 | if test $ac_cv_type_std__istream = yes; then | |
22969 | ||
22970 | cat >>confdefs.h <<_ACEOF | |
22971 | #define HAVE_STD__ISTREAM 1 | |
22972 | _ACEOF | |
22973 | ||
22974 | ||
22975 | else | |
22976 | wxUSE_STD_IOSTREAM=no | |
22977 | fi | |
22978 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22979 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22980 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22982 | else | |
22983 | cat >conftest.$ac_ext <<_ACEOF | |
22984 | /* confdefs.h. */ | |
22985 | _ACEOF | |
22986 | cat confdefs.h >>conftest.$ac_ext | |
22987 | cat >>conftest.$ac_ext <<_ACEOF | |
22988 | /* end confdefs.h. */ | |
22989 | #include <iostream> | |
22990 | ||
22991 | int | |
22992 | main () | |
22993 | { | |
22994 | if ((std::ostream *) 0) | |
22995 | return 0; | |
22996 | if (sizeof (std::ostream)) | |
22997 | return 0; | |
22998 | ; | |
22999 | return 0; | |
23000 | } | |
23001 | _ACEOF | |
23002 | rm -f conftest.$ac_objext | |
23003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23004 | (eval $ac_compile) 2>conftest.er1 | |
23005 | ac_status=$? | |
23006 | grep -v '^ *+' conftest.er1 >conftest.err | |
23007 | rm -f conftest.er1 | |
23008 | cat conftest.err >&5 | |
23009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23010 | (exit $ac_status); } && | |
3565d135 RR |
23011 | { ac_try='test -z "$ac_cxx_werror_flag" |
23012 | || test ! -s conftest.err' | |
f56c22b4 MW |
23013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23014 | (eval $ac_try) 2>&5 | |
23015 | ac_status=$? | |
23016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23017 | (exit $ac_status); }; } && | |
23018 | { ac_try='test -s conftest.$ac_objext' | |
23019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23020 | (eval $ac_try) 2>&5 | |
23021 | ac_status=$? | |
23022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23023 | (exit $ac_status); }; }; then | |
23024 | ac_cv_type_std__ostream=yes | |
23025 | else | |
23026 | echo "$as_me: failed program was:" >&5 | |
23027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23028 | ||
23029 | ac_cv_type_std__ostream=no | |
23030 | fi | |
23031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23032 | fi | |
23033 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23034 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23035 | if test $ac_cv_type_std__ostream = yes; then | |
23036 | ||
23037 | cat >>confdefs.h <<_ACEOF | |
23038 | #define HAVE_STD__OSTREAM 1 | |
23039 | _ACEOF | |
23040 | ||
23041 | ||
23042 | else | |
23043 | wxUSE_STD_IOSTREAM=no | |
23044 | fi | |
23045 | ||
23046 | ||
23047 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23048 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23049 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23050 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23051 | { (exit 1); exit 1; }; } | |
23052 | else | |
23053 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23054 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23055 | fi |
f56c22b4 MW |
23056 | fi |
23057 | ||
23058 | ac_ext=c | |
23059 | ac_cpp='$CPP $CPPFLAGS' | |
23060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
23062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
23063 | ||
23064 | fi | |
23065 | ||
23066 | if test "$wxUSE_STL" = "yes"; then | |
23067 | ac_ext=cc | |
23068 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23069 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23070 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23071 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23072 | ||
23073 | ||
23074 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
23075 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23076 | cat >conftest.$ac_ext <<_ACEOF |
23077 | /* confdefs.h. */ | |
23078 | _ACEOF | |
23079 | cat confdefs.h >>conftest.$ac_ext | |
23080 | cat >>conftest.$ac_ext <<_ACEOF | |
23081 | /* end confdefs.h. */ | |
23082 | #include <string> | |
0a08f02a MB |
23083 | #include <functional> |
23084 | #include <algorithm> | |
23085 | #include <vector> | |
23086 | #include <list> | |
a848cd7e SC |
23087 | int |
23088 | main () | |
23089 | { | |
0a08f02a MB |
23090 | std::vector<int> moo; |
23091 | std::list<int> foo; | |
23092 | std::vector<int>::iterator it = | |
23093 | std::find_if(moo.begin(), moo.end(), | |
23094 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23095 | ; |
23096 | return 0; | |
23097 | } | |
23098 | _ACEOF | |
23099 | rm -f conftest.$ac_objext | |
23100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23101 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23102 | ac_status=$? |
ac1cb8d3 VS |
23103 | grep -v '^ *+' conftest.er1 >conftest.err |
23104 | rm -f conftest.er1 | |
23105 | cat conftest.err >&5 | |
a848cd7e SC |
23106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23107 | (exit $ac_status); } && | |
3565d135 RR |
23108 | { ac_try='test -z "$ac_cxx_werror_flag" |
23109 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23111 | (eval $ac_try) 2>&5 | |
23112 | ac_status=$? | |
23113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23114 | (exit $ac_status); }; } && | |
23115 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23117 | (eval $ac_try) 2>&5 | |
23118 | ac_status=$? | |
23119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23120 | (exit $ac_status); }; }; then | |
23121 | echo "$as_me:$LINENO: result: yes" >&5 | |
23122 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23123 | else |
23124 | echo "$as_me: failed program was:" >&5 | |
23125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23126 | ||
23127 | echo "$as_me:$LINENO: result: no" >&5 | |
23128 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23129 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23130 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23131 | { (exit 1); exit 1; }; } | |
a848cd7e | 23132 | fi |
ac1cb8d3 | 23133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23134 | |
23135 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23136 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23137 | cat >conftest.$ac_ext <<_ACEOF | |
23138 | /* confdefs.h. */ | |
23139 | _ACEOF | |
23140 | cat confdefs.h >>conftest.$ac_ext | |
23141 | cat >>conftest.$ac_ext <<_ACEOF | |
23142 | /* end confdefs.h. */ | |
23143 | #include <string> | |
23144 | int | |
23145 | main () | |
23146 | { | |
23147 | std::string foo, bar; | |
23148 | foo.compare(bar); | |
23149 | foo.compare(1, 1, bar); | |
23150 | foo.compare(1, 1, bar, 1, 1); | |
23151 | foo.compare(""); | |
23152 | foo.compare(1, 1, ""); | |
23153 | foo.compare(1, 1, "", 2); | |
23154 | ; | |
23155 | return 0; | |
23156 | } | |
23157 | _ACEOF | |
23158 | rm -f conftest.$ac_objext | |
23159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23160 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23161 | ac_status=$? |
ac1cb8d3 VS |
23162 | grep -v '^ *+' conftest.er1 >conftest.err |
23163 | rm -f conftest.er1 | |
23164 | cat conftest.err >&5 | |
a848cd7e SC |
23165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23166 | (exit $ac_status); } && | |
3565d135 RR |
23167 | { ac_try='test -z "$ac_cxx_werror_flag" |
23168 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23170 | (eval $ac_try) 2>&5 | |
23171 | ac_status=$? | |
23172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23173 | (exit $ac_status); }; } && | |
23174 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23176 | (eval $ac_try) 2>&5 | |
23177 | ac_status=$? | |
23178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23179 | (exit $ac_status); }; }; then | |
23180 | echo "$as_me:$LINENO: result: yes" >&5 | |
23181 | echo "${ECHO_T}yes" >&6 | |
23182 | cat >>confdefs.h <<\_ACEOF | |
23183 | #define HAVE_STD_STRING_COMPARE 1 | |
23184 | _ACEOF | |
23185 | ||
23186 | else | |
23187 | echo "$as_me: failed program was:" >&5 | |
23188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23189 | ||
23190 | echo "$as_me:$LINENO: result: no" >&5 | |
23191 | echo "${ECHO_T}no" >&6 | |
23192 | fi | |
ac1cb8d3 | 23193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23194 | |
23195 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23196 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23197 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23198 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23200 | fi | |
23201 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23202 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23203 | else | |
23204 | # Is the header compilable? | |
23205 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23206 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23207 | cat >conftest.$ac_ext <<_ACEOF | |
23208 | /* confdefs.h. */ | |
23209 | _ACEOF | |
23210 | cat confdefs.h >>conftest.$ac_ext | |
23211 | cat >>conftest.$ac_ext <<_ACEOF | |
23212 | /* end confdefs.h. */ | |
23213 | $ac_includes_default | |
23214 | #include <hash_map> | |
23215 | _ACEOF | |
23216 | rm -f conftest.$ac_objext | |
23217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23218 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23219 | ac_status=$? |
ac1cb8d3 VS |
23220 | grep -v '^ *+' conftest.er1 >conftest.err |
23221 | rm -f conftest.er1 | |
23222 | cat conftest.err >&5 | |
bdcade0a MB |
23223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23224 | (exit $ac_status); } && | |
3565d135 RR |
23225 | { ac_try='test -z "$ac_cxx_werror_flag" |
23226 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23228 | (eval $ac_try) 2>&5 | |
23229 | ac_status=$? | |
23230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23231 | (exit $ac_status); }; } && | |
23232 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23234 | (eval $ac_try) 2>&5 | |
23235 | ac_status=$? | |
23236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23237 | (exit $ac_status); }; }; then | |
23238 | ac_header_compiler=yes | |
23239 | else | |
23240 | echo "$as_me: failed program was:" >&5 | |
23241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23242 | ||
23243 | ac_header_compiler=no | |
23244 | fi | |
ac1cb8d3 | 23245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23246 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23247 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23248 | ||
23249 | # Is the header present? | |
23250 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23251 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23252 | cat >conftest.$ac_ext <<_ACEOF | |
23253 | /* confdefs.h. */ | |
23254 | _ACEOF | |
23255 | cat confdefs.h >>conftest.$ac_ext | |
23256 | cat >>conftest.$ac_ext <<_ACEOF | |
23257 | /* end confdefs.h. */ | |
23258 | #include <hash_map> | |
23259 | _ACEOF | |
23260 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23261 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23262 | ac_status=$? | |
23263 | grep -v '^ *+' conftest.er1 >conftest.err | |
23264 | rm -f conftest.er1 | |
23265 | cat conftest.err >&5 | |
23266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23267 | (exit $ac_status); } >/dev/null; then | |
23268 | if test -s conftest.err; then | |
23269 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23270 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23271 | else |
23272 | ac_cpp_err= | |
23273 | fi | |
23274 | else | |
23275 | ac_cpp_err=yes | |
23276 | fi | |
23277 | if test -z "$ac_cpp_err"; then | |
23278 | ac_header_preproc=yes | |
23279 | else | |
23280 | echo "$as_me: failed program was:" >&5 | |
23281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23282 | ||
23283 | ac_header_preproc=no | |
23284 | fi | |
23285 | rm -f conftest.err conftest.$ac_ext | |
23286 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23287 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23288 | ||
23289 | # So? What about this header? | |
ac1cb8d3 VS |
23290 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23291 | yes:no: ) | |
bdcade0a MB |
23292 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23293 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23294 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23295 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23296 | ac_header_preproc=yes | |
bdcade0a | 23297 | ;; |
ac1cb8d3 | 23298 | no:yes:* ) |
bdcade0a MB |
23299 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23300 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23301 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23302 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23303 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23304 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23305 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23306 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23307 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23308 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23309 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23310 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23311 | ( |
23312 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23313 | ## ----------------------------------------- ## |
23314 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23315 | ## ----------------------------------------- ## | |
bdcade0a MB |
23316 | _ASBOX |
23317 | ) | | |
23318 | sed "s/^/$as_me: WARNING: /" >&2 | |
23319 | ;; | |
23320 | esac | |
23321 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23322 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23323 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23325 | else | |
23326 | ac_cv_header_hash_map=$ac_header_preproc | |
23327 | fi | |
23328 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23329 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23330 | ||
23331 | fi | |
23332 | if test $ac_cv_header_hash_map = yes; then | |
23333 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23334 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23335 | cat >conftest.$ac_ext <<_ACEOF | |
23336 | /* confdefs.h. */ | |
23337 | _ACEOF | |
23338 | cat confdefs.h >>conftest.$ac_ext | |
23339 | cat >>conftest.$ac_ext <<_ACEOF | |
23340 | /* end confdefs.h. */ | |
23341 | #include <hash_map> | |
23342 | #include <hash_set> | |
23343 | int | |
23344 | main () | |
23345 | { | |
23346 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23347 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23348 | ; | |
23349 | return 0; | |
23350 | } | |
23351 | _ACEOF | |
23352 | rm -f conftest.$ac_objext | |
23353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23354 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23355 | ac_status=$? |
ac1cb8d3 VS |
23356 | grep -v '^ *+' conftest.er1 >conftest.err |
23357 | rm -f conftest.er1 | |
23358 | cat conftest.err >&5 | |
bdcade0a MB |
23359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23360 | (exit $ac_status); } && | |
3565d135 RR |
23361 | { ac_try='test -z "$ac_cxx_werror_flag" |
23362 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23364 | (eval $ac_try) 2>&5 | |
23365 | ac_status=$? | |
23366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23367 | (exit $ac_status); }; } && | |
23368 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23370 | (eval $ac_try) 2>&5 | |
23371 | ac_status=$? | |
23372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23373 | (exit $ac_status); }; }; then | |
23374 | echo "$as_me:$LINENO: result: yes" >&5 | |
23375 | echo "${ECHO_T}yes" >&6 | |
23376 | cat >>confdefs.h <<\_ACEOF | |
23377 | #define HAVE_HASH_MAP 1 | |
23378 | _ACEOF | |
23379 | ||
23380 | cat >>confdefs.h <<\_ACEOF | |
23381 | #define HAVE_STD_HASH_MAP 1 | |
23382 | _ACEOF | |
23383 | ||
23384 | else | |
23385 | echo "$as_me: failed program was:" >&5 | |
23386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23387 | ||
23388 | echo "$as_me:$LINENO: result: no" >&5 | |
23389 | echo "${ECHO_T}no" >&6 | |
23390 | fi | |
ac1cb8d3 | 23391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23392 | |
23393 | fi | |
23394 | ||
23395 | ||
23396 | ||
23397 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23398 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23399 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23400 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23402 | fi | |
23403 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23404 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23405 | else | |
23406 | # Is the header compilable? | |
23407 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23408 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23409 | cat >conftest.$ac_ext <<_ACEOF | |
23410 | /* confdefs.h. */ | |
23411 | _ACEOF | |
23412 | cat confdefs.h >>conftest.$ac_ext | |
23413 | cat >>conftest.$ac_ext <<_ACEOF | |
23414 | /* end confdefs.h. */ | |
23415 | $ac_includes_default | |
23416 | #include <ext/hash_map> | |
23417 | _ACEOF | |
23418 | rm -f conftest.$ac_objext | |
23419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23420 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23421 | ac_status=$? |
ac1cb8d3 VS |
23422 | grep -v '^ *+' conftest.er1 >conftest.err |
23423 | rm -f conftest.er1 | |
23424 | cat conftest.err >&5 | |
bdcade0a MB |
23425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23426 | (exit $ac_status); } && | |
3565d135 RR |
23427 | { ac_try='test -z "$ac_cxx_werror_flag" |
23428 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23430 | (eval $ac_try) 2>&5 | |
23431 | ac_status=$? | |
23432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23433 | (exit $ac_status); }; } && | |
23434 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23436 | (eval $ac_try) 2>&5 | |
23437 | ac_status=$? | |
23438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23439 | (exit $ac_status); }; }; then | |
23440 | ac_header_compiler=yes | |
23441 | else | |
23442 | echo "$as_me: failed program was:" >&5 | |
23443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23444 | ||
23445 | ac_header_compiler=no | |
23446 | fi | |
ac1cb8d3 | 23447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23448 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23449 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23450 | ||
23451 | # Is the header present? | |
23452 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23453 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23454 | cat >conftest.$ac_ext <<_ACEOF | |
23455 | /* confdefs.h. */ | |
23456 | _ACEOF | |
23457 | cat confdefs.h >>conftest.$ac_ext | |
23458 | cat >>conftest.$ac_ext <<_ACEOF | |
23459 | /* end confdefs.h. */ | |
23460 | #include <ext/hash_map> | |
23461 | _ACEOF | |
23462 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23463 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23464 | ac_status=$? | |
23465 | grep -v '^ *+' conftest.er1 >conftest.err | |
23466 | rm -f conftest.er1 | |
23467 | cat conftest.err >&5 | |
23468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23469 | (exit $ac_status); } >/dev/null; then | |
23470 | if test -s conftest.err; then | |
23471 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23472 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23473 | else |
23474 | ac_cpp_err= | |
23475 | fi | |
23476 | else | |
23477 | ac_cpp_err=yes | |
23478 | fi | |
23479 | if test -z "$ac_cpp_err"; then | |
23480 | ac_header_preproc=yes | |
23481 | else | |
23482 | echo "$as_me: failed program was:" >&5 | |
23483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23484 | ||
23485 | ac_header_preproc=no | |
23486 | fi | |
23487 | rm -f conftest.err conftest.$ac_ext | |
23488 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23489 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23490 | ||
23491 | # So? What about this header? | |
ac1cb8d3 VS |
23492 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23493 | yes:no: ) | |
bdcade0a MB |
23494 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23495 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23496 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23497 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23498 | ac_header_preproc=yes | |
bdcade0a | 23499 | ;; |
ac1cb8d3 | 23500 | no:yes:* ) |
bdcade0a MB |
23501 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23502 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23503 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23504 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23505 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23506 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23507 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23508 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23509 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23510 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23511 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23512 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23513 | ( |
23514 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23515 | ## ----------------------------------------- ## |
23516 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23517 | ## ----------------------------------------- ## | |
bdcade0a MB |
23518 | _ASBOX |
23519 | ) | | |
23520 | sed "s/^/$as_me: WARNING: /" >&2 | |
23521 | ;; | |
23522 | esac | |
23523 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23524 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23525 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23527 | else | |
23528 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23529 | fi | |
23530 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23531 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23532 | ||
23533 | fi | |
23534 | if test $ac_cv_header_ext_hash_map = yes; then | |
23535 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23536 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23537 | cat >conftest.$ac_ext <<_ACEOF | |
23538 | /* confdefs.h. */ | |
23539 | _ACEOF | |
23540 | cat confdefs.h >>conftest.$ac_ext | |
23541 | cat >>conftest.$ac_ext <<_ACEOF | |
23542 | /* end confdefs.h. */ | |
23543 | #include <ext/hash_map> | |
23544 | #include <ext/hash_set> | |
23545 | int | |
23546 | main () | |
23547 | { | |
23548 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23549 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23550 | ; | |
23551 | return 0; | |
23552 | } | |
23553 | _ACEOF | |
23554 | rm -f conftest.$ac_objext | |
23555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23556 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23557 | ac_status=$? |
ac1cb8d3 VS |
23558 | grep -v '^ *+' conftest.er1 >conftest.err |
23559 | rm -f conftest.er1 | |
23560 | cat conftest.err >&5 | |
bdcade0a MB |
23561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23562 | (exit $ac_status); } && | |
3565d135 RR |
23563 | { ac_try='test -z "$ac_cxx_werror_flag" |
23564 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23566 | (eval $ac_try) 2>&5 | |
23567 | ac_status=$? | |
23568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23569 | (exit $ac_status); }; } && | |
23570 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23572 | (eval $ac_try) 2>&5 | |
23573 | ac_status=$? | |
23574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23575 | (exit $ac_status); }; }; then | |
23576 | echo "$as_me:$LINENO: result: yes" >&5 | |
23577 | echo "${ECHO_T}yes" >&6 | |
23578 | cat >>confdefs.h <<\_ACEOF | |
23579 | #define HAVE_EXT_HASH_MAP 1 | |
23580 | _ACEOF | |
23581 | ||
23582 | cat >>confdefs.h <<\_ACEOF | |
23583 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23584 | _ACEOF | |
23585 | ||
23586 | else | |
23587 | echo "$as_me: failed program was:" >&5 | |
23588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23589 | ||
23590 | echo "$as_me:$LINENO: result: no" >&5 | |
23591 | echo "${ECHO_T}no" >&6 | |
23592 | fi | |
ac1cb8d3 | 23593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23594 | |
23595 | fi | |
23596 | ||
23597 | ||
a848cd7e SC |
23598 | |
23599 | ac_ext=c | |
23600 | ac_cpp='$CPP $CPPFLAGS' | |
23601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23604 | ||
23605 | fi | |
23606 | ||
23607 | ||
23608 | SEARCH_INCLUDE="\ | |
23609 | /usr/local/include \ | |
23610 | \ | |
23611 | /usr/Motif-2.1/include \ | |
23612 | /usr/Motif-1.2/include \ | |
23613 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23614 | \ |
23615 | /usr/dt/include \ | |
23616 | /usr/openwin/include \ | |
23617 | \ | |
23618 | /usr/include/Xm \ | |
23619 | \ | |
23620 | /usr/X11R6/include \ | |
23621 | /usr/X11R6.4/include \ | |
23622 | /usr/X11R5/include \ | |
23623 | /usr/X11R4/include \ | |
23624 | \ | |
23625 | /usr/include/X11R6 \ | |
23626 | /usr/include/X11R5 \ | |
23627 | /usr/include/X11R4 \ | |
23628 | \ | |
23629 | /usr/local/X11R6/include \ | |
23630 | /usr/local/X11R5/include \ | |
23631 | /usr/local/X11R4/include \ | |
23632 | \ | |
23633 | /usr/local/include/X11R6 \ | |
23634 | /usr/local/include/X11R5 \ | |
23635 | /usr/local/include/X11R4 \ | |
23636 | \ | |
23637 | /usr/X11/include \ | |
23638 | /usr/include/X11 \ | |
23639 | /usr/local/X11/include \ | |
23640 | /usr/local/include/X11 \ | |
23641 | \ | |
a848cd7e | 23642 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23643 | /usr/pkg/include \ |
23644 | \ | |
a848cd7e SC |
23645 | /usr/openwin/share/include" |
23646 | ||
6f9cf1e6 | 23647 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23648 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23649 | |
23650 | case "${host}" in | |
23651 | *-*-irix6* ) | |
23652 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23654 | else | |
23655 | ||
c687b303 VZ |
23656 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23657 | for e in a so sl dylib dll.a; do | |
23658 | libc="$d/libc.$e" | |
23659 | if test -f $libc; then | |
23660 | save_LIBS="$LIBS" | |
23661 | LIBS="$libc" | |
23662 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23663 | int main() { return 0; } |
23664 | _ACEOF | |
23665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23667 | (eval $ac_link) 2>conftest.er1 | |
23668 | ac_status=$? | |
23669 | grep -v '^ *+' conftest.er1 >conftest.err | |
23670 | rm -f conftest.er1 | |
23671 | cat conftest.err >&5 | |
23672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23673 | (exit $ac_status); } && | |
3565d135 RR |
23674 | { ac_try='test -z "$ac_c_werror_flag" |
23675 | || test ! -s conftest.err' | |
0ad5d837 VZ |
23676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23677 | (eval $ac_try) 2>&5 | |
23678 | ac_status=$? | |
23679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23680 | (exit $ac_status); }; } && | |
23681 | { ac_try='test -s conftest$ac_exeext' | |
23682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23683 | (eval $ac_try) 2>&5 | |
23684 | ac_status=$? | |
23685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23686 | (exit $ac_status); }; }; then | |
23687 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23688 | else | |
23689 | echo "$as_me: failed program was:" >&5 | |
23690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23691 | ||
23692 | fi | |
23693 | rm -f conftest.err conftest.$ac_objext \ | |
23694 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23695 | LIBS="$save_LIBS" |
23696 | if test "x$wx_cv_std_libpath" != "x"; then | |
23697 | break 2 | |
23698 | fi | |
23699 | fi | |
23700 | done | |
23701 | done | |
23702 | if test "x$wx_cv_std_libpath" = "x"; then | |
23703 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23704 | fi |
0ad5d837 VZ |
23705 | |
23706 | ||
23707 | fi | |
6f9cf1e6 MW |
23708 | |
23709 | ;; | |
23710 | ||
23711 | *-*-solaris2* ) | |
23712 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23713 | wx_cv_std_libpath="lib/64" | |
23714 | else | |
23715 | wx_cv_std_libpath="lib" | |
23716 | fi | |
23717 | ;; | |
23718 | ||
23719 | *-*-linux* ) | |
23720 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23721 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23722 | wx_cv_std_libpath="lib64" | |
23723 | else | |
23724 | wx_cv_std_libpath="lib" | |
23725 | fi | |
c687b303 VZ |
23726 | ;; |
23727 | ||
23728 | *) | |
23729 | wx_cv_std_libpath="lib"; | |
23730 | ;; | |
23731 | esac | |
0ad5d837 | 23732 | |
6f9cf1e6 MW |
23733 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23734 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23735 | ||
23736 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23737 | |
3eca31dc MW |
23738 | if test "$build" != "$host" -a "$GCC" = yes; then |
23739 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23740 | cross_root=`dirname $cross_root` | |
23741 | cross_root=`dirname $cross_root` | |
23742 | ||
23743 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23744 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 23745 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
23746 | |
23747 | if test -z "$PKG_CONFIG_PATH"; then | |
23748 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23749 | export PKG_CONFIG_PATH | |
23750 | fi | |
23751 | ||
23752 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23753 | ||
23754 | ac_find_includes= | |
23755 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23756 | do | |
23757 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23758 | ac_find_includes=$ac_dir | |
23759 | break | |
23760 | fi | |
23761 | done | |
23762 | ||
23763 | x_includes=$ac_find_includes | |
23764 | fi | |
23765 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23766 | ||
0ad5d837 VZ |
23767 | ac_find_libraries= |
23768 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23769 | do |
23770 | for ac_extension in a so sl dylib dll.a; do | |
23771 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23772 | ac_find_libraries=$ac_dir | |
23773 | break 2 | |
23774 | fi | |
23775 | done | |
23776 | done | |
23777 | ||
23778 | x_libraries=$ac_find_libraries | |
23779 | fi | |
23780 | fi | |
23781 | fi | |
23782 | ||
a848cd7e SC |
23783 | |
23784 | cat >confcache <<\_ACEOF | |
23785 | # This file is a shell script that caches the results of configure | |
23786 | # tests run on this system so they can be shared between configure | |
23787 | # scripts and configure runs, see configure's option --config-cache. | |
23788 | # It is not useful on other systems. If it contains results you don't | |
23789 | # want to keep, you may remove or edit it. | |
23790 | # | |
23791 | # config.status only pays attention to the cache file if you give it | |
23792 | # the --recheck option to rerun configure. | |
23793 | # | |
23794 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23795 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23796 | # following values. | |
23797 | ||
23798 | _ACEOF | |
23799 | ||
23800 | # The following way of writing the cache mishandles newlines in values, | |
23801 | # but we know of no workaround that is simple, portable, and efficient. | |
23802 | # So, don't put newlines in cache variables' values. | |
23803 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23804 | # and sets the high bit in the cache file unless we assign to the vars. | |
23805 | { | |
23806 | (set) 2>&1 | | |
23807 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23808 | *ac_space=\ *) | |
23809 | # `set' does not quote correctly, so add quotes (double-quote | |
23810 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23811 | sed -n \ | |
ac1cb8d3 VS |
23812 | "s/'/'\\\\''/g; |
23813 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23814 | ;; |
23815 | *) | |
23816 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23817 | sed -n \ | |
ac1cb8d3 | 23818 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23819 | ;; |
23820 | esac; | |
23821 | } | | |
23822 | sed ' | |
23823 | t clear | |
23824 | : clear | |
23825 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23826 | t end | |
23827 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23828 | : end' >>confcache | |
23829 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23830 | if test -w $cache_file; then | |
23831 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23832 | cat confcache >$cache_file | |
23833 | else | |
23834 | echo "not updating unwritable cache $cache_file" | |
23835 | fi | |
23836 | fi | |
23837 | rm -f confcache | |
23838 | ||
23839 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
23840 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
23841 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
23842 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
23843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23844 | else | |
23845 | ||
23846 | cat >conftest.$ac_ext <<_ACEOF | |
23847 | /* confdefs.h. */ | |
23848 | _ACEOF | |
23849 | cat confdefs.h >>conftest.$ac_ext | |
23850 | cat >>conftest.$ac_ext <<_ACEOF | |
23851 | /* end confdefs.h. */ | |
23852 | #include <features.h> | |
23853 | int | |
23854 | main () | |
23855 | { | |
23856 | ||
23857 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 23858 | not glibc 2.1 |
a848cd7e SC |
23859 | #endif |
23860 | ||
23861 | ; | |
23862 | return 0; | |
23863 | } | |
23864 | _ACEOF | |
23865 | rm -f conftest.$ac_objext | |
23866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23867 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23868 | ac_status=$? |
ac1cb8d3 VS |
23869 | grep -v '^ *+' conftest.er1 >conftest.err |
23870 | rm -f conftest.er1 | |
23871 | cat conftest.err >&5 | |
a848cd7e SC |
23872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23873 | (exit $ac_status); } && | |
3565d135 RR |
23874 | { ac_try='test -z "$ac_c_werror_flag" |
23875 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23877 | (eval $ac_try) 2>&5 | |
23878 | ac_status=$? | |
23879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23880 | (exit $ac_status); }; } && | |
23881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23883 | (eval $ac_try) 2>&5 | |
23884 | ac_status=$? | |
23885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23886 | (exit $ac_status); }; }; then | |
23887 | ||
23888 | wx_cv_lib_glibc21=yes | |
23889 | ||
23890 | else | |
23891 | echo "$as_me: failed program was:" >&5 | |
23892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23893 | ||
23894 | ||
23895 | wx_cv_lib_glibc21=no | |
23896 | ||
23897 | ||
23898 | fi | |
ac1cb8d3 | 23899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23900 | |
23901 | fi | |
23902 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
23903 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
23904 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23905 | cat >>confdefs.h <<\_ACEOF | |
23906 | #define wxHAVE_GLIBC2 1 | |
23907 | _ACEOF | |
23908 | ||
23909 | fi | |
23910 | fi | |
23911 | ||
23912 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23913 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23914 | cat >>confdefs.h <<\_ACEOF | |
23915 | #define _GNU_SOURCE 1 | |
23916 | _ACEOF | |
23917 | ||
23918 | fi | |
23919 | fi | |
23920 | ||
23921 | ||
23922 | ||
23923 | if test "$wxUSE_REGEX" != "no"; then | |
23924 | cat >>confdefs.h <<\_ACEOF | |
23925 | #define wxUSE_REGEX 1 | |
23926 | _ACEOF | |
23927 | ||
23928 | ||
23929 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
23930 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
23931 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
23932 | wxUSE_REGEX=builtin | |
23933 | fi | |
23934 | ||
23935 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
23936 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23937 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23938 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23939 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23941 | fi | |
23942 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23943 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23944 | else | |
23945 | # Is the header compilable? | |
23946 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
23947 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
23948 | cat >conftest.$ac_ext <<_ACEOF | |
23949 | /* confdefs.h. */ | |
23950 | _ACEOF | |
23951 | cat confdefs.h >>conftest.$ac_ext | |
23952 | cat >>conftest.$ac_ext <<_ACEOF | |
23953 | /* end confdefs.h. */ | |
23954 | $ac_includes_default | |
23955 | #include <regex.h> | |
23956 | _ACEOF | |
23957 | rm -f conftest.$ac_objext | |
23958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23960 | ac_status=$? |
ac1cb8d3 VS |
23961 | grep -v '^ *+' conftest.er1 >conftest.err |
23962 | rm -f conftest.er1 | |
23963 | cat conftest.err >&5 | |
a848cd7e SC |
23964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23965 | (exit $ac_status); } && | |
3565d135 RR |
23966 | { ac_try='test -z "$ac_c_werror_flag" |
23967 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23969 | (eval $ac_try) 2>&5 | |
23970 | ac_status=$? | |
23971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23972 | (exit $ac_status); }; } && | |
23973 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23975 | (eval $ac_try) 2>&5 | |
23976 | ac_status=$? | |
23977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23978 | (exit $ac_status); }; }; then | |
23979 | ac_header_compiler=yes | |
23980 | else | |
23981 | echo "$as_me: failed program was:" >&5 | |
23982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23983 | ||
23984 | ac_header_compiler=no | |
23985 | fi | |
ac1cb8d3 | 23986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23987 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23988 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23989 | ||
23990 | # Is the header present? | |
23991 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
23992 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
23993 | cat >conftest.$ac_ext <<_ACEOF | |
23994 | /* confdefs.h. */ | |
23995 | _ACEOF | |
23996 | cat confdefs.h >>conftest.$ac_ext | |
23997 | cat >>conftest.$ac_ext <<_ACEOF | |
23998 | /* end confdefs.h. */ | |
23999 | #include <regex.h> | |
24000 | _ACEOF | |
24001 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24002 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24003 | ac_status=$? | |
24004 | grep -v '^ *+' conftest.er1 >conftest.err | |
24005 | rm -f conftest.er1 | |
24006 | cat conftest.err >&5 | |
24007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24008 | (exit $ac_status); } >/dev/null; then | |
24009 | if test -s conftest.err; then | |
24010 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24011 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24012 | else |
24013 | ac_cpp_err= | |
24014 | fi | |
24015 | else | |
24016 | ac_cpp_err=yes | |
24017 | fi | |
24018 | if test -z "$ac_cpp_err"; then | |
24019 | ac_header_preproc=yes | |
24020 | else | |
24021 | echo "$as_me: failed program was:" >&5 | |
24022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24023 | ||
24024 | ac_header_preproc=no | |
24025 | fi | |
24026 | rm -f conftest.err conftest.$ac_ext | |
24027 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24028 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24029 | ||
24030 | # So? What about this header? | |
ac1cb8d3 VS |
24031 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24032 | yes:no: ) | |
a848cd7e SC |
24033 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24034 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24035 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
24036 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24037 | ac_header_preproc=yes | |
a848cd7e | 24038 | ;; |
ac1cb8d3 | 24039 | no:yes:* ) |
a848cd7e SC |
24040 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
24041 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24042 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
24043 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24044 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24045 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24046 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24047 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24048 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
24049 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24050 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
24051 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24052 | ( |
24053 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24054 | ## ----------------------------------------- ## |
24055 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24056 | ## ----------------------------------------- ## | |
a848cd7e SC |
24057 | _ASBOX |
24058 | ) | | |
24059 | sed "s/^/$as_me: WARNING: /" >&2 | |
24060 | ;; | |
24061 | esac | |
24062 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24063 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24064 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24066 | else | |
24067 | ac_cv_header_regex_h=$ac_header_preproc | |
24068 | fi | |
24069 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24070 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24071 | ||
24072 | fi | |
24073 | if test $ac_cv_header_regex_h = yes; then | |
24074 | ||
ab0f0edd MW |
24075 | |
24076 | for ac_func in regcomp re_search | |
a848cd7e SC |
24077 | do |
24078 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24079 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24080 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24081 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24083 | else | |
24084 | cat >conftest.$ac_ext <<_ACEOF | |
24085 | /* confdefs.h. */ | |
24086 | _ACEOF | |
24087 | cat confdefs.h >>conftest.$ac_ext | |
24088 | cat >>conftest.$ac_ext <<_ACEOF | |
24089 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24090 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24091 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24092 | #define $ac_func innocuous_$ac_func | |
24093 | ||
a848cd7e SC |
24094 | /* System header to define __stub macros and hopefully few prototypes, |
24095 | which can conflict with char $ac_func (); below. | |
24096 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24097 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24098 | |
a848cd7e SC |
24099 | #ifdef __STDC__ |
24100 | # include <limits.h> | |
24101 | #else | |
24102 | # include <assert.h> | |
24103 | #endif | |
ac1cb8d3 VS |
24104 | |
24105 | #undef $ac_func | |
24106 | ||
a848cd7e SC |
24107 | /* Override any gcc2 internal prototype to avoid an error. */ |
24108 | #ifdef __cplusplus | |
24109 | extern "C" | |
24110 | { | |
24111 | #endif | |
24112 | /* We use char because int might match the return type of a gcc2 | |
24113 | builtin and then its argument prototype would still apply. */ | |
24114 | char $ac_func (); | |
24115 | /* The GNU C library defines this for functions which it implements | |
24116 | to always fail with ENOSYS. Some functions are actually named | |
24117 | something starting with __ and the normal name is an alias. */ | |
24118 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24119 | choke me | |
24120 | #else | |
24121 | char (*f) () = $ac_func; | |
24122 | #endif | |
24123 | #ifdef __cplusplus | |
24124 | } | |
24125 | #endif | |
24126 | ||
24127 | int | |
24128 | main () | |
24129 | { | |
24130 | return f != $ac_func; | |
24131 | ; | |
24132 | return 0; | |
24133 | } | |
24134 | _ACEOF | |
24135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24137 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24138 | ac_status=$? |
ac1cb8d3 VS |
24139 | grep -v '^ *+' conftest.er1 >conftest.err |
24140 | rm -f conftest.er1 | |
24141 | cat conftest.err >&5 | |
a848cd7e SC |
24142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24143 | (exit $ac_status); } && | |
3565d135 RR |
24144 | { ac_try='test -z "$ac_c_werror_flag" |
24145 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24147 | (eval $ac_try) 2>&5 | |
24148 | ac_status=$? | |
24149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24150 | (exit $ac_status); }; } && | |
24151 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24153 | (eval $ac_try) 2>&5 | |
24154 | ac_status=$? | |
24155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24156 | (exit $ac_status); }; }; then | |
24157 | eval "$as_ac_var=yes" | |
24158 | else | |
24159 | echo "$as_me: failed program was:" >&5 | |
24160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24161 | ||
24162 | eval "$as_ac_var=no" | |
24163 | fi | |
ac1cb8d3 VS |
24164 | rm -f conftest.err conftest.$ac_objext \ |
24165 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24166 | fi |
24167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24168 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24169 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24170 | cat >>confdefs.h <<_ACEOF | |
24171 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24172 | _ACEOF | |
24173 | ||
24174 | fi | |
24175 | done | |
24176 | ||
24177 | fi | |
24178 | ||
24179 | ||
24180 | ||
24181 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
24182 | if test "$wxUSE_REGEX" = "sys" ; then | |
24183 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
24184 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
24185 | { (exit 1); exit 1; }; } | |
24186 | else | |
24187 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
24188 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
24189 | wxUSE_REGEX=builtin | |
24190 | fi | |
24191 | else | |
24192 | wxUSE_REGEX=sys | |
24193 | cat >>confdefs.h <<\_ACEOF | |
24194 | #define WX_NO_REGEX_ADVANCED 1 | |
24195 | _ACEOF | |
24196 | ||
24197 | fi | |
24198 | fi | |
24199 | fi | |
24200 | ||
24201 | ||
24202 | ZLIB_LINK= | |
24203 | if test "$wxUSE_ZLIB" != "no" ; then | |
24204 | cat >>confdefs.h <<\_ACEOF | |
24205 | #define wxUSE_ZLIB 1 | |
24206 | _ACEOF | |
24207 | ||
24208 | ||
24209 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
24210 | if test "$USE_DARWIN" = 1; then | |
24211 | system_zlib_h_ok="yes" | |
24212 | else | |
24213 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
24214 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
24215 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24217 | else | |
24218 | if test "$cross_compiling" = yes; then | |
24219 | unset ac_cv_header_zlib_h | |
24220 | ||
24221 | else | |
24222 | cat >conftest.$ac_ext <<_ACEOF | |
24223 | /* confdefs.h. */ | |
24224 | _ACEOF | |
24225 | cat confdefs.h >>conftest.$ac_ext | |
24226 | cat >>conftest.$ac_ext <<_ACEOF | |
24227 | /* end confdefs.h. */ | |
24228 | ||
24229 | #include <zlib.h> | |
24230 | #include <stdio.h> | |
24231 | ||
24232 | int main() | |
24233 | { | |
24234 | FILE *f=fopen("conftestval", "w"); | |
24235 | if (!f) exit(1); | |
24236 | fprintf(f, "%s", | |
24237 | ZLIB_VERSION[0] == '1' && | |
24238 | (ZLIB_VERSION[2] > '1' || | |
24239 | (ZLIB_VERSION[2] == '1' && | |
24240 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
24241 | exit(0); | |
24242 | } | |
24243 | ||
24244 | _ACEOF | |
24245 | rm -f conftest$ac_exeext | |
24246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24247 | (eval $ac_link) 2>&5 | |
24248 | ac_status=$? | |
24249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24250 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24252 | (eval $ac_try) 2>&5 | |
24253 | ac_status=$? | |
24254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24255 | (exit $ac_status); }; }; then | |
24256 | ac_cv_header_zlib_h=`cat conftestval` | |
24257 | else | |
24258 | echo "$as_me: program exited with status $ac_status" >&5 | |
24259 | echo "$as_me: failed program was:" >&5 | |
24260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24261 | ||
24262 | ( exit $ac_status ) | |
24263 | ac_cv_header_zlib_h=no | |
24264 | fi | |
ac1cb8d3 | 24265 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24266 | fi |
24267 | ||
24268 | fi | |
24269 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24270 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24271 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24272 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24273 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24274 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24276 | fi | |
24277 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24278 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24279 | else | |
24280 | # Is the header compilable? | |
24281 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
24282 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
24283 | cat >conftest.$ac_ext <<_ACEOF | |
24284 | /* confdefs.h. */ | |
24285 | _ACEOF | |
24286 | cat confdefs.h >>conftest.$ac_ext | |
24287 | cat >>conftest.$ac_ext <<_ACEOF | |
24288 | /* end confdefs.h. */ | |
24289 | $ac_includes_default | |
24290 | #include <zlib.h> | |
24291 | _ACEOF | |
24292 | rm -f conftest.$ac_objext | |
24293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24294 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24295 | ac_status=$? |
ac1cb8d3 VS |
24296 | grep -v '^ *+' conftest.er1 >conftest.err |
24297 | rm -f conftest.er1 | |
24298 | cat conftest.err >&5 | |
a848cd7e SC |
24299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24300 | (exit $ac_status); } && | |
3565d135 RR |
24301 | { ac_try='test -z "$ac_c_werror_flag" |
24302 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24304 | (eval $ac_try) 2>&5 | |
24305 | ac_status=$? | |
24306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24307 | (exit $ac_status); }; } && | |
24308 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24310 | (eval $ac_try) 2>&5 | |
24311 | ac_status=$? | |
24312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24313 | (exit $ac_status); }; }; then | |
24314 | ac_header_compiler=yes | |
24315 | else | |
24316 | echo "$as_me: failed program was:" >&5 | |
24317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24318 | ||
24319 | ac_header_compiler=no | |
24320 | fi | |
ac1cb8d3 | 24321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24322 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24323 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24324 | ||
24325 | # Is the header present? | |
24326 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
24327 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
24328 | cat >conftest.$ac_ext <<_ACEOF | |
24329 | /* confdefs.h. */ | |
24330 | _ACEOF | |
24331 | cat confdefs.h >>conftest.$ac_ext | |
24332 | cat >>conftest.$ac_ext <<_ACEOF | |
24333 | /* end confdefs.h. */ | |
24334 | #include <zlib.h> | |
24335 | _ACEOF | |
24336 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24337 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24338 | ac_status=$? | |
24339 | grep -v '^ *+' conftest.er1 >conftest.err | |
24340 | rm -f conftest.er1 | |
24341 | cat conftest.err >&5 | |
24342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24343 | (exit $ac_status); } >/dev/null; then | |
24344 | if test -s conftest.err; then | |
24345 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24346 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24347 | else |
24348 | ac_cpp_err= | |
24349 | fi | |
24350 | else | |
24351 | ac_cpp_err=yes | |
24352 | fi | |
24353 | if test -z "$ac_cpp_err"; then | |
24354 | ac_header_preproc=yes | |
24355 | else | |
24356 | echo "$as_me: failed program was:" >&5 | |
24357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24358 | ||
24359 | ac_header_preproc=no | |
24360 | fi | |
24361 | rm -f conftest.err conftest.$ac_ext | |
24362 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24363 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24364 | ||
24365 | # So? What about this header? | |
ac1cb8d3 VS |
24366 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24367 | yes:no: ) | |
a848cd7e SC |
24368 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24369 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24370 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
24371 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
24372 | ac_header_preproc=yes | |
a848cd7e | 24373 | ;; |
ac1cb8d3 | 24374 | no:yes:* ) |
a848cd7e SC |
24375 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
24376 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24377 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
24378 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
24379 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
24380 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
24381 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24382 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24383 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
24384 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24385 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
24386 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24387 | ( |
24388 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24389 | ## ----------------------------------------- ## |
24390 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24391 | ## ----------------------------------------- ## | |
a848cd7e SC |
24392 | _ASBOX |
24393 | ) | | |
24394 | sed "s/^/$as_me: WARNING: /" >&2 | |
24395 | ;; | |
24396 | esac | |
24397 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24398 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24399 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24401 | else | |
24402 | ac_cv_header_zlib_h=$ac_header_preproc | |
24403 | fi | |
24404 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24405 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24406 | ||
24407 | fi | |
24408 | ||
24409 | ||
24410 | ||
24411 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
24412 | fi | |
24413 | ||
24414 | if test "$system_zlib_h_ok" = "yes"; then | |
24415 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
24416 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
24417 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
24418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24419 | else | |
24420 | ac_check_lib_save_LIBS=$LIBS | |
24421 | LIBS="-lz $LIBS" | |
24422 | cat >conftest.$ac_ext <<_ACEOF | |
24423 | /* confdefs.h. */ | |
24424 | _ACEOF | |
24425 | cat confdefs.h >>conftest.$ac_ext | |
24426 | cat >>conftest.$ac_ext <<_ACEOF | |
24427 | /* end confdefs.h. */ | |
24428 | ||
24429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24430 | #ifdef __cplusplus | |
24431 | extern "C" | |
24432 | #endif | |
24433 | /* We use char because int might match the return type of a gcc2 | |
24434 | builtin and then its argument prototype would still apply. */ | |
24435 | char deflate (); | |
24436 | int | |
24437 | main () | |
24438 | { | |
24439 | deflate (); | |
24440 | ; | |
24441 | return 0; | |
24442 | } | |
24443 | _ACEOF | |
24444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24446 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24447 | ac_status=$? |
ac1cb8d3 VS |
24448 | grep -v '^ *+' conftest.er1 >conftest.err |
24449 | rm -f conftest.er1 | |
24450 | cat conftest.err >&5 | |
a848cd7e SC |
24451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24452 | (exit $ac_status); } && | |
3565d135 RR |
24453 | { ac_try='test -z "$ac_c_werror_flag" |
24454 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24456 | (eval $ac_try) 2>&5 | |
24457 | ac_status=$? | |
24458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24459 | (exit $ac_status); }; } && | |
24460 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24462 | (eval $ac_try) 2>&5 | |
24463 | ac_status=$? | |
24464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24465 | (exit $ac_status); }; }; then | |
24466 | ac_cv_lib_z_deflate=yes | |
24467 | else | |
24468 | echo "$as_me: failed program was:" >&5 | |
24469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24470 | ||
24471 | ac_cv_lib_z_deflate=no | |
24472 | fi | |
ac1cb8d3 VS |
24473 | rm -f conftest.err conftest.$ac_objext \ |
24474 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24475 | LIBS=$ac_check_lib_save_LIBS |
24476 | fi | |
24477 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
24478 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
24479 | if test $ac_cv_lib_z_deflate = yes; then | |
24480 | ZLIB_LINK=" -lz" | |
24481 | fi | |
24482 | ||
24483 | fi | |
24484 | ||
24485 | if test "x$ZLIB_LINK" = "x" ; then | |
24486 | if test "$wxUSE_ZLIB" = "sys" ; then | |
24487 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
24488 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
24489 | { (exit 1); exit 1; }; } | |
24490 | else | |
24491 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
24492 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
24493 | wxUSE_ZLIB=builtin | |
24494 | fi | |
24495 | else | |
24496 | wxUSE_ZLIB=sys | |
24497 | fi | |
24498 | fi | |
24499 | fi | |
24500 | ||
24501 | ||
24502 | PNG_LINK= | |
24503 | if test "$wxUSE_LIBPNG" != "no" ; then | |
24504 | cat >>confdefs.h <<\_ACEOF | |
24505 | #define wxUSE_LIBPNG 1 | |
24506 | _ACEOF | |
24507 | ||
24508 | ||
24509 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
24510 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
24511 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
24512 | wxUSE_LIBPNG=sys | |
24513 | fi | |
24514 | ||
24515 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
24516 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
24517 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
24518 | wxUSE_LIBPNG=builtin | |
24519 | fi | |
24520 | ||
24521 | if test "$wxUSE_MGL" != 1 ; then | |
24522 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
24523 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
24524 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
24525 | if test "${ac_cv_header_png_h+set}" = set; then | |
24526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24527 | else | |
24528 | if test "$cross_compiling" = yes; then | |
24529 | unset ac_cv_header_png_h | |
24530 | ||
24531 | else | |
24532 | cat >conftest.$ac_ext <<_ACEOF | |
24533 | /* confdefs.h. */ | |
24534 | _ACEOF | |
24535 | cat confdefs.h >>conftest.$ac_ext | |
24536 | cat >>conftest.$ac_ext <<_ACEOF | |
24537 | /* end confdefs.h. */ | |
24538 | ||
24539 | #include <png.h> | |
24540 | #include <stdio.h> | |
24541 | ||
24542 | int main() | |
24543 | { | |
24544 | FILE *f=fopen("conftestval", "w"); | |
24545 | if (!f) exit(1); | |
24546 | fprintf(f, "%s", | |
24547 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
24548 | exit(0); | |
24549 | } | |
24550 | ||
24551 | _ACEOF | |
24552 | rm -f conftest$ac_exeext | |
24553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24554 | (eval $ac_link) 2>&5 | |
24555 | ac_status=$? | |
24556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24557 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24559 | (eval $ac_try) 2>&5 | |
24560 | ac_status=$? | |
24561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24562 | (exit $ac_status); }; }; then | |
24563 | ac_cv_header_png_h=`cat conftestval` | |
24564 | else | |
24565 | echo "$as_me: program exited with status $ac_status" >&5 | |
24566 | echo "$as_me: failed program was:" >&5 | |
24567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24568 | ||
24569 | ( exit $ac_status ) | |
24570 | ac_cv_header_png_h=no | |
24571 | fi | |
ac1cb8d3 | 24572 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24573 | fi |
24574 | ||
24575 | fi | |
24576 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24577 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24578 | if test "${ac_cv_header_png_h+set}" = set; then | |
24579 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24580 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24581 | if test "${ac_cv_header_png_h+set}" = set; then | |
24582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24583 | fi | |
24584 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24585 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24586 | else | |
24587 | # Is the header compilable? | |
24588 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
24589 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
24590 | cat >conftest.$ac_ext <<_ACEOF | |
24591 | /* confdefs.h. */ | |
24592 | _ACEOF | |
24593 | cat confdefs.h >>conftest.$ac_ext | |
24594 | cat >>conftest.$ac_ext <<_ACEOF | |
24595 | /* end confdefs.h. */ | |
24596 | $ac_includes_default | |
24597 | #include <png.h> | |
24598 | _ACEOF | |
24599 | rm -f conftest.$ac_objext | |
24600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24602 | ac_status=$? |
ac1cb8d3 VS |
24603 | grep -v '^ *+' conftest.er1 >conftest.err |
24604 | rm -f conftest.er1 | |
24605 | cat conftest.err >&5 | |
a848cd7e SC |
24606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24607 | (exit $ac_status); } && | |
3565d135 RR |
24608 | { ac_try='test -z "$ac_c_werror_flag" |
24609 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24611 | (eval $ac_try) 2>&5 | |
24612 | ac_status=$? | |
24613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24614 | (exit $ac_status); }; } && | |
24615 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24617 | (eval $ac_try) 2>&5 | |
24618 | ac_status=$? | |
24619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24620 | (exit $ac_status); }; }; then | |
24621 | ac_header_compiler=yes | |
24622 | else | |
24623 | echo "$as_me: failed program was:" >&5 | |
24624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24625 | ||
24626 | ac_header_compiler=no | |
24627 | fi | |
ac1cb8d3 | 24628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24629 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24630 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24631 | ||
24632 | # Is the header present? | |
24633 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
24634 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
24635 | cat >conftest.$ac_ext <<_ACEOF | |
24636 | /* confdefs.h. */ | |
24637 | _ACEOF | |
24638 | cat confdefs.h >>conftest.$ac_ext | |
24639 | cat >>conftest.$ac_ext <<_ACEOF | |
24640 | /* end confdefs.h. */ | |
24641 | #include <png.h> | |
24642 | _ACEOF | |
24643 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24644 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24645 | ac_status=$? | |
24646 | grep -v '^ *+' conftest.er1 >conftest.err | |
24647 | rm -f conftest.er1 | |
24648 | cat conftest.err >&5 | |
24649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24650 | (exit $ac_status); } >/dev/null; then | |
24651 | if test -s conftest.err; then | |
24652 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24653 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24654 | else |
24655 | ac_cpp_err= | |
24656 | fi | |
24657 | else | |
24658 | ac_cpp_err=yes | |
24659 | fi | |
24660 | if test -z "$ac_cpp_err"; then | |
24661 | ac_header_preproc=yes | |
24662 | else | |
24663 | echo "$as_me: failed program was:" >&5 | |
24664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24665 | ||
24666 | ac_header_preproc=no | |
24667 | fi | |
24668 | rm -f conftest.err conftest.$ac_ext | |
24669 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24670 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24671 | ||
24672 | # So? What about this header? | |
ac1cb8d3 VS |
24673 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24674 | yes:no: ) | |
a848cd7e SC |
24675 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24676 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24677 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
24678 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
24679 | ac_header_preproc=yes | |
a848cd7e | 24680 | ;; |
ac1cb8d3 | 24681 | no:yes:* ) |
a848cd7e SC |
24682 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
24683 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24684 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
24685 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
24686 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
24687 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
24688 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24689 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24690 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
24691 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24692 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
24693 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24694 | ( |
24695 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24696 | ## ----------------------------------------- ## |
24697 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24698 | ## ----------------------------------------- ## | |
a848cd7e SC |
24699 | _ASBOX |
24700 | ) | | |
24701 | sed "s/^/$as_me: WARNING: /" >&2 | |
24702 | ;; | |
24703 | esac | |
24704 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24705 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24706 | if test "${ac_cv_header_png_h+set}" = set; then | |
24707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24708 | else | |
24709 | ac_cv_header_png_h=$ac_header_preproc | |
24710 | fi | |
24711 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24712 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24713 | ||
24714 | fi | |
24715 | ||
24716 | ||
24717 | ||
24718 | if test "$ac_cv_header_png_h" = "yes"; then | |
24719 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
24720 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
24721 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
24722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24723 | else | |
24724 | ac_check_lib_save_LIBS=$LIBS | |
24725 | LIBS="-lpng -lz -lm $LIBS" | |
24726 | cat >conftest.$ac_ext <<_ACEOF | |
24727 | /* confdefs.h. */ | |
24728 | _ACEOF | |
24729 | cat confdefs.h >>conftest.$ac_ext | |
24730 | cat >>conftest.$ac_ext <<_ACEOF | |
24731 | /* end confdefs.h. */ | |
24732 | ||
24733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24734 | #ifdef __cplusplus | |
24735 | extern "C" | |
24736 | #endif | |
24737 | /* We use char because int might match the return type of a gcc2 | |
24738 | builtin and then its argument prototype would still apply. */ | |
24739 | char png_check_sig (); | |
24740 | int | |
24741 | main () | |
24742 | { | |
24743 | png_check_sig (); | |
24744 | ; | |
24745 | return 0; | |
24746 | } | |
24747 | _ACEOF | |
24748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24750 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24751 | ac_status=$? |
ac1cb8d3 VS |
24752 | grep -v '^ *+' conftest.er1 >conftest.err |
24753 | rm -f conftest.er1 | |
24754 | cat conftest.err >&5 | |
a848cd7e SC |
24755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24756 | (exit $ac_status); } && | |
3565d135 RR |
24757 | { ac_try='test -z "$ac_c_werror_flag" |
24758 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24760 | (eval $ac_try) 2>&5 | |
24761 | ac_status=$? | |
24762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24763 | (exit $ac_status); }; } && | |
24764 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24766 | (eval $ac_try) 2>&5 | |
24767 | ac_status=$? | |
24768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24769 | (exit $ac_status); }; }; then | |
24770 | ac_cv_lib_png_png_check_sig=yes | |
24771 | else | |
24772 | echo "$as_me: failed program was:" >&5 | |
24773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24774 | ||
24775 | ac_cv_lib_png_png_check_sig=no | |
24776 | fi | |
ac1cb8d3 VS |
24777 | rm -f conftest.err conftest.$ac_objext \ |
24778 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24779 | LIBS=$ac_check_lib_save_LIBS |
24780 | fi | |
24781 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
24782 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
24783 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
24784 | PNG_LINK=" -lpng -lz" | |
24785 | fi | |
24786 | ||
24787 | fi | |
24788 | ||
24789 | if test "x$PNG_LINK" = "x" ; then | |
24790 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
24791 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
24792 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
24793 | { (exit 1); exit 1; }; } | |
24794 | else | |
24795 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
24796 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
24797 | wxUSE_LIBPNG=builtin | |
24798 | fi | |
24799 | else | |
24800 | wxUSE_LIBPNG=sys | |
24801 | fi | |
24802 | fi | |
24803 | fi | |
24804 | ||
24805 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
24806 | fi | |
24807 | ||
24808 | ||
24809 | JPEG_LINK= | |
24810 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
24811 | cat >>confdefs.h <<\_ACEOF | |
24812 | #define wxUSE_LIBJPEG 1 | |
24813 | _ACEOF | |
24814 | ||
24815 | ||
24816 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
24817 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
24818 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
24819 | wxUSE_LIBJPEG=sys | |
24820 | fi | |
24821 | ||
24822 | if test "$wxUSE_MGL" != 1 ; then | |
24823 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
24824 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
24825 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
24826 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
24827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24828 | else | |
24829 | cat >conftest.$ac_ext <<_ACEOF | |
24830 | /* confdefs.h. */ | |
24831 | _ACEOF | |
24832 | cat confdefs.h >>conftest.$ac_ext | |
24833 | cat >>conftest.$ac_ext <<_ACEOF | |
24834 | /* end confdefs.h. */ | |
24835 | ||
24836 | #undef HAVE_STDLIB_H | |
24837 | #include <stdio.h> | |
24838 | #include <jpeglib.h> | |
24839 | ||
24840 | int | |
24841 | main () | |
24842 | { | |
24843 | ||
24844 | ||
24845 | ; | |
24846 | return 0; | |
24847 | } | |
24848 | _ACEOF | |
24849 | rm -f conftest.$ac_objext | |
24850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24851 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24852 | ac_status=$? |
ac1cb8d3 VS |
24853 | grep -v '^ *+' conftest.er1 >conftest.err |
24854 | rm -f conftest.er1 | |
24855 | cat conftest.err >&5 | |
a848cd7e SC |
24856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24857 | (exit $ac_status); } && | |
3565d135 RR |
24858 | { ac_try='test -z "$ac_c_werror_flag" |
24859 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24861 | (eval $ac_try) 2>&5 | |
24862 | ac_status=$? | |
24863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24864 | (exit $ac_status); }; } && | |
24865 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24867 | (eval $ac_try) 2>&5 | |
24868 | ac_status=$? | |
24869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24870 | (exit $ac_status); }; }; then | |
24871 | ac_cv_header_jpeglib_h=yes | |
24872 | else | |
24873 | echo "$as_me: failed program was:" >&5 | |
24874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24875 | ||
24876 | ac_cv_header_jpeglib_h=no | |
24877 | ||
24878 | fi | |
ac1cb8d3 | 24879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24880 | |
24881 | fi | |
24882 | ||
24883 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
24884 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
24885 | ||
24886 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
24887 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
24888 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
24889 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
24890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24891 | else | |
24892 | ac_check_lib_save_LIBS=$LIBS | |
24893 | LIBS="-ljpeg $LIBS" | |
24894 | cat >conftest.$ac_ext <<_ACEOF | |
24895 | /* confdefs.h. */ | |
24896 | _ACEOF | |
24897 | cat confdefs.h >>conftest.$ac_ext | |
24898 | cat >>conftest.$ac_ext <<_ACEOF | |
24899 | /* end confdefs.h. */ | |
24900 | ||
24901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24902 | #ifdef __cplusplus | |
24903 | extern "C" | |
24904 | #endif | |
24905 | /* We use char because int might match the return type of a gcc2 | |
24906 | builtin and then its argument prototype would still apply. */ | |
24907 | char jpeg_read_header (); | |
24908 | int | |
24909 | main () | |
24910 | { | |
24911 | jpeg_read_header (); | |
24912 | ; | |
24913 | return 0; | |
24914 | } | |
24915 | _ACEOF | |
24916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24918 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24919 | ac_status=$? |
ac1cb8d3 VS |
24920 | grep -v '^ *+' conftest.er1 >conftest.err |
24921 | rm -f conftest.er1 | |
24922 | cat conftest.err >&5 | |
a848cd7e SC |
24923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24924 | (exit $ac_status); } && | |
3565d135 RR |
24925 | { ac_try='test -z "$ac_c_werror_flag" |
24926 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24928 | (eval $ac_try) 2>&5 | |
24929 | ac_status=$? | |
24930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24931 | (exit $ac_status); }; } && | |
24932 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24934 | (eval $ac_try) 2>&5 | |
24935 | ac_status=$? | |
24936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24937 | (exit $ac_status); }; }; then | |
24938 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
24939 | else | |
24940 | echo "$as_me: failed program was:" >&5 | |
24941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24942 | ||
24943 | ac_cv_lib_jpeg_jpeg_read_header=no | |
24944 | fi | |
ac1cb8d3 VS |
24945 | rm -f conftest.err conftest.$ac_objext \ |
24946 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24947 | LIBS=$ac_check_lib_save_LIBS |
24948 | fi | |
24949 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
24950 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
24951 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
24952 | JPEG_LINK=" -ljpeg" | |
24953 | fi | |
24954 | ||
24955 | fi | |
24956 | ||
24957 | if test "x$JPEG_LINK" = "x" ; then | |
24958 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
24959 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
24960 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
24961 | { (exit 1); exit 1; }; } | |
24962 | else | |
24963 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
24964 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
24965 | wxUSE_LIBJPEG=builtin | |
24966 | fi | |
24967 | else | |
24968 | wxUSE_LIBJPEG=sys | |
24969 | fi | |
24970 | fi | |
24971 | fi | |
24972 | fi | |
24973 | ||
24974 | ||
24975 | TIFF_LINK= | |
24976 | TIFF_PREREQ_LINKS=-lm | |
24977 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
24978 | cat >>confdefs.h <<\_ACEOF | |
24979 | #define wxUSE_LIBTIFF 1 | |
24980 | _ACEOF | |
24981 | ||
24982 | ||
24983 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
24984 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
24985 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
24986 | fi | |
24987 | if test "$wxUSE_ZLIB" = "sys"; then | |
24988 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
24989 | fi | |
24990 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24991 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24992 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24993 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24995 | fi | |
24996 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24997 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24998 | else | |
24999 | # Is the header compilable? | |
25000 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25001 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25002 | cat >conftest.$ac_ext <<_ACEOF | |
25003 | /* confdefs.h. */ | |
25004 | _ACEOF | |
25005 | cat confdefs.h >>conftest.$ac_ext | |
25006 | cat >>conftest.$ac_ext <<_ACEOF | |
25007 | /* end confdefs.h. */ | |
25008 | $ac_includes_default | |
25009 | #include <tiffio.h> | |
25010 | _ACEOF | |
25011 | rm -f conftest.$ac_objext | |
25012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25013 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25014 | ac_status=$? |
ac1cb8d3 VS |
25015 | grep -v '^ *+' conftest.er1 >conftest.err |
25016 | rm -f conftest.er1 | |
25017 | cat conftest.err >&5 | |
a848cd7e SC |
25018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25019 | (exit $ac_status); } && | |
3565d135 RR |
25020 | { ac_try='test -z "$ac_c_werror_flag" |
25021 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25023 | (eval $ac_try) 2>&5 | |
25024 | ac_status=$? | |
25025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25026 | (exit $ac_status); }; } && | |
25027 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25029 | (eval $ac_try) 2>&5 | |
25030 | ac_status=$? | |
25031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25032 | (exit $ac_status); }; }; then | |
25033 | ac_header_compiler=yes | |
25034 | else | |
25035 | echo "$as_me: failed program was:" >&5 | |
25036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25037 | ||
25038 | ac_header_compiler=no | |
25039 | fi | |
ac1cb8d3 | 25040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25041 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25042 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25043 | ||
25044 | # Is the header present? | |
25045 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25046 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25047 | cat >conftest.$ac_ext <<_ACEOF | |
25048 | /* confdefs.h. */ | |
25049 | _ACEOF | |
25050 | cat confdefs.h >>conftest.$ac_ext | |
25051 | cat >>conftest.$ac_ext <<_ACEOF | |
25052 | /* end confdefs.h. */ | |
25053 | #include <tiffio.h> | |
25054 | _ACEOF | |
25055 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25056 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25057 | ac_status=$? | |
25058 | grep -v '^ *+' conftest.er1 >conftest.err | |
25059 | rm -f conftest.er1 | |
25060 | cat conftest.err >&5 | |
25061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25062 | (exit $ac_status); } >/dev/null; then | |
25063 | if test -s conftest.err; then | |
25064 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25065 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25066 | else |
25067 | ac_cpp_err= | |
25068 | fi | |
25069 | else | |
25070 | ac_cpp_err=yes | |
25071 | fi | |
25072 | if test -z "$ac_cpp_err"; then | |
25073 | ac_header_preproc=yes | |
25074 | else | |
25075 | echo "$as_me: failed program was:" >&5 | |
25076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25077 | ||
25078 | ac_header_preproc=no | |
25079 | fi | |
25080 | rm -f conftest.err conftest.$ac_ext | |
25081 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25082 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25083 | ||
25084 | # So? What about this header? | |
ac1cb8d3 VS |
25085 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25086 | yes:no: ) | |
a848cd7e SC |
25087 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25088 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25089 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25090 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25091 | ac_header_preproc=yes | |
a848cd7e | 25092 | ;; |
ac1cb8d3 | 25093 | no:yes:* ) |
a848cd7e SC |
25094 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25095 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25096 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25097 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25098 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25099 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25100 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25101 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25102 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25103 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25104 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25105 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25106 | ( |
25107 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25108 | ## ----------------------------------------- ## |
25109 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25110 | ## ----------------------------------------- ## | |
a848cd7e SC |
25111 | _ASBOX |
25112 | ) | | |
25113 | sed "s/^/$as_me: WARNING: /" >&2 | |
25114 | ;; | |
25115 | esac | |
25116 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25117 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25118 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25120 | else | |
25121 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25122 | fi | |
25123 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25124 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25125 | ||
25126 | fi | |
25127 | if test $ac_cv_header_tiffio_h = yes; then | |
25128 | ||
25129 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
25130 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
25131 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
25132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25133 | else | |
25134 | ac_check_lib_save_LIBS=$LIBS | |
25135 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
25136 | cat >conftest.$ac_ext <<_ACEOF | |
25137 | /* confdefs.h. */ | |
25138 | _ACEOF | |
25139 | cat confdefs.h >>conftest.$ac_ext | |
25140 | cat >>conftest.$ac_ext <<_ACEOF | |
25141 | /* end confdefs.h. */ | |
25142 | ||
25143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25144 | #ifdef __cplusplus | |
25145 | extern "C" | |
25146 | #endif | |
25147 | /* We use char because int might match the return type of a gcc2 | |
25148 | builtin and then its argument prototype would still apply. */ | |
25149 | char TIFFError (); | |
25150 | int | |
25151 | main () | |
25152 | { | |
25153 | TIFFError (); | |
25154 | ; | |
25155 | return 0; | |
25156 | } | |
25157 | _ACEOF | |
25158 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25160 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25161 | ac_status=$? |
ac1cb8d3 VS |
25162 | grep -v '^ *+' conftest.er1 >conftest.err |
25163 | rm -f conftest.er1 | |
25164 | cat conftest.err >&5 | |
a848cd7e SC |
25165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25166 | (exit $ac_status); } && | |
3565d135 RR |
25167 | { ac_try='test -z "$ac_c_werror_flag" |
25168 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25170 | (eval $ac_try) 2>&5 | |
25171 | ac_status=$? | |
25172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25173 | (exit $ac_status); }; } && | |
25174 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25176 | (eval $ac_try) 2>&5 | |
25177 | ac_status=$? | |
25178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25179 | (exit $ac_status); }; }; then | |
25180 | ac_cv_lib_tiff_TIFFError=yes | |
25181 | else | |
25182 | echo "$as_me: failed program was:" >&5 | |
25183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25184 | ||
25185 | ac_cv_lib_tiff_TIFFError=no | |
25186 | fi | |
ac1cb8d3 VS |
25187 | rm -f conftest.err conftest.$ac_objext \ |
25188 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25189 | LIBS=$ac_check_lib_save_LIBS |
25190 | fi | |
25191 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
25192 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
25193 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
25194 | TIFF_LINK=" -ltiff" | |
25195 | fi | |
25196 | ||
25197 | ||
25198 | ||
25199 | fi | |
25200 | ||
25201 | ||
25202 | ||
25203 | if test "x$TIFF_LINK" = "x" ; then | |
25204 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
25205 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
25206 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
25207 | { (exit 1); exit 1; }; } | |
25208 | else | |
25209 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
25210 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
25211 | wxUSE_LIBTIFF=builtin | |
25212 | fi | |
25213 | else | |
25214 | wxUSE_LIBTIFF=sys | |
25215 | fi | |
25216 | fi | |
25217 | fi | |
25218 | ||
25219 | ||
47a7e797 MW |
25220 | if test "$wxUSE_WCHAR_T" != "yes"; then |
25221 | if test "$wxUSE_EXPAT" != "no"; then | |
25222 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
25223 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
25224 | wxUSE_EXPAT=no | |
25225 | fi | |
25226 | if test "$wxUSE_XML" != "no"; then | |
25227 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
25228 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
25229 | wxUSE_XML=no | |
25230 | fi | |
25231 | fi | |
25232 | ||
a848cd7e SC |
25233 | if test "$wxUSE_EXPAT" != "no"; then |
25234 | wxUSE_XML=yes | |
25235 | cat >>confdefs.h <<\_ACEOF | |
25236 | #define wxUSE_EXPAT 1 | |
25237 | _ACEOF | |
25238 | ||
25239 | cat >>confdefs.h <<\_ACEOF | |
25240 | #define wxUSE_XML 1 | |
25241 | _ACEOF | |
25242 | ||
25243 | ||
25244 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
25245 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25246 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25247 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25248 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25250 | fi | |
25251 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25252 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25253 | else | |
25254 | # Is the header compilable? | |
25255 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
25256 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
25257 | cat >conftest.$ac_ext <<_ACEOF | |
25258 | /* confdefs.h. */ | |
25259 | _ACEOF | |
25260 | cat confdefs.h >>conftest.$ac_ext | |
25261 | cat >>conftest.$ac_ext <<_ACEOF | |
25262 | /* end confdefs.h. */ | |
25263 | $ac_includes_default | |
25264 | #include <expat.h> | |
25265 | _ACEOF | |
25266 | rm -f conftest.$ac_objext | |
25267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25268 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25269 | ac_status=$? |
ac1cb8d3 VS |
25270 | grep -v '^ *+' conftest.er1 >conftest.err |
25271 | rm -f conftest.er1 | |
25272 | cat conftest.err >&5 | |
a848cd7e SC |
25273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25274 | (exit $ac_status); } && | |
3565d135 RR |
25275 | { ac_try='test -z "$ac_c_werror_flag" |
25276 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25278 | (eval $ac_try) 2>&5 | |
25279 | ac_status=$? | |
25280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25281 | (exit $ac_status); }; } && | |
25282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25284 | (eval $ac_try) 2>&5 | |
25285 | ac_status=$? | |
25286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25287 | (exit $ac_status); }; }; then | |
25288 | ac_header_compiler=yes | |
25289 | else | |
25290 | echo "$as_me: failed program was:" >&5 | |
25291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25292 | ||
25293 | ac_header_compiler=no | |
25294 | fi | |
ac1cb8d3 | 25295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25296 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25297 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25298 | ||
25299 | # Is the header present? | |
25300 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
25301 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
25302 | cat >conftest.$ac_ext <<_ACEOF | |
25303 | /* confdefs.h. */ | |
25304 | _ACEOF | |
25305 | cat confdefs.h >>conftest.$ac_ext | |
25306 | cat >>conftest.$ac_ext <<_ACEOF | |
25307 | /* end confdefs.h. */ | |
25308 | #include <expat.h> | |
25309 | _ACEOF | |
25310 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25311 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25312 | ac_status=$? | |
25313 | grep -v '^ *+' conftest.er1 >conftest.err | |
25314 | rm -f conftest.er1 | |
25315 | cat conftest.err >&5 | |
25316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25317 | (exit $ac_status); } >/dev/null; then | |
25318 | if test -s conftest.err; then | |
25319 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25320 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25321 | else |
25322 | ac_cpp_err= | |
25323 | fi | |
25324 | else | |
25325 | ac_cpp_err=yes | |
25326 | fi | |
25327 | if test -z "$ac_cpp_err"; then | |
25328 | ac_header_preproc=yes | |
25329 | else | |
25330 | echo "$as_me: failed program was:" >&5 | |
25331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25332 | ||
25333 | ac_header_preproc=no | |
25334 | fi | |
25335 | rm -f conftest.err conftest.$ac_ext | |
25336 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25337 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25338 | ||
25339 | # So? What about this header? | |
ac1cb8d3 VS |
25340 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25341 | yes:no: ) | |
a848cd7e SC |
25342 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25343 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25344 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
25345 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
25346 | ac_header_preproc=yes | |
a848cd7e | 25347 | ;; |
ac1cb8d3 | 25348 | no:yes:* ) |
a848cd7e SC |
25349 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
25350 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25351 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
25352 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
25353 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
25354 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
25355 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25356 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25357 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
25358 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25359 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
25360 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25361 | ( |
25362 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25363 | ## ----------------------------------------- ## |
25364 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25365 | ## ----------------------------------------- ## | |
a848cd7e SC |
25366 | _ASBOX |
25367 | ) | | |
25368 | sed "s/^/$as_me: WARNING: /" >&2 | |
25369 | ;; | |
25370 | esac | |
25371 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25372 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25373 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25375 | else | |
25376 | ac_cv_header_expat_h=$ac_header_preproc | |
25377 | fi | |
25378 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25379 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25380 | ||
25381 | fi | |
25382 | if test $ac_cv_header_expat_h = yes; then | |
25383 | found_expat_h=1 | |
25384 | fi | |
25385 | ||
25386 | ||
25387 | if test "x$found_expat_h" = "x1"; then | |
25388 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
25389 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
25390 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
25391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25392 | else | |
25393 | ||
25394 | ||
25395 | ||
25396 | ac_ext=cc | |
25397 | ac_cpp='$CXXCPP $CPPFLAGS' | |
25398 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25399 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25400 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25401 | ||
25402 | cat >conftest.$ac_ext <<_ACEOF | |
25403 | /* confdefs.h. */ | |
25404 | _ACEOF | |
25405 | cat confdefs.h >>conftest.$ac_ext | |
25406 | cat >>conftest.$ac_ext <<_ACEOF | |
25407 | /* end confdefs.h. */ | |
25408 | #include <expat.h> | |
25409 | int | |
25410 | main () | |
25411 | { | |
25412 | ||
25413 | ; | |
25414 | return 0; | |
25415 | } | |
25416 | _ACEOF | |
25417 | rm -f conftest.$ac_objext | |
25418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25419 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25420 | ac_status=$? |
ac1cb8d3 VS |
25421 | grep -v '^ *+' conftest.er1 >conftest.err |
25422 | rm -f conftest.er1 | |
25423 | cat conftest.err >&5 | |
a848cd7e SC |
25424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25425 | (exit $ac_status); } && | |
3565d135 RR |
25426 | { ac_try='test -z "$ac_cxx_werror_flag" |
25427 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25429 | (eval $ac_try) 2>&5 | |
25430 | ac_status=$? | |
25431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25432 | (exit $ac_status); }; } && | |
25433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25435 | (eval $ac_try) 2>&5 | |
25436 | ac_status=$? | |
25437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25438 | (exit $ac_status); }; }; then | |
25439 | wx_cv_expat_is_not_broken=yes | |
25440 | else | |
25441 | echo "$as_me: failed program was:" >&5 | |
25442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25443 | ||
25444 | wx_cv_expat_is_not_broken=no | |
25445 | ||
25446 | fi | |
ac1cb8d3 | 25447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25448 | ac_ext=c |
25449 | ac_cpp='$CPP $CPPFLAGS' | |
25450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25453 | ||
25454 | ||
25455 | ||
25456 | fi | |
25457 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
25458 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
25459 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
25460 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
25461 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
25462 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
25463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25464 | else | |
25465 | ac_check_lib_save_LIBS=$LIBS | |
25466 | LIBS="-lexpat $LIBS" | |
25467 | cat >conftest.$ac_ext <<_ACEOF | |
25468 | /* confdefs.h. */ | |
25469 | _ACEOF | |
25470 | cat confdefs.h >>conftest.$ac_ext | |
25471 | cat >>conftest.$ac_ext <<_ACEOF | |
25472 | /* end confdefs.h. */ | |
25473 | ||
25474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25475 | #ifdef __cplusplus | |
25476 | extern "C" | |
25477 | #endif | |
25478 | /* We use char because int might match the return type of a gcc2 | |
25479 | builtin and then its argument prototype would still apply. */ | |
25480 | char XML_ParserCreate (); | |
25481 | int | |
25482 | main () | |
25483 | { | |
25484 | XML_ParserCreate (); | |
25485 | ; | |
25486 | return 0; | |
25487 | } | |
25488 | _ACEOF | |
25489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25491 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25492 | ac_status=$? |
ac1cb8d3 VS |
25493 | grep -v '^ *+' conftest.er1 >conftest.err |
25494 | rm -f conftest.er1 | |
25495 | cat conftest.err >&5 | |
a848cd7e SC |
25496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25497 | (exit $ac_status); } && | |
3565d135 RR |
25498 | { ac_try='test -z "$ac_c_werror_flag" |
25499 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25501 | (eval $ac_try) 2>&5 | |
25502 | ac_status=$? | |
25503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25504 | (exit $ac_status); }; } && | |
25505 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25507 | (eval $ac_try) 2>&5 | |
25508 | ac_status=$? | |
25509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25510 | (exit $ac_status); }; }; then | |
25511 | ac_cv_lib_expat_XML_ParserCreate=yes | |
25512 | else | |
25513 | echo "$as_me: failed program was:" >&5 | |
25514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25515 | ||
25516 | ac_cv_lib_expat_XML_ParserCreate=no | |
25517 | fi | |
ac1cb8d3 VS |
25518 | rm -f conftest.err conftest.$ac_objext \ |
25519 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25520 | LIBS=$ac_check_lib_save_LIBS |
25521 | fi | |
25522 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
25523 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
25524 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
25525 | EXPAT_LINK=" -lexpat" | |
25526 | fi | |
25527 | ||
25528 | fi | |
25529 | fi | |
25530 | if test "x$EXPAT_LINK" = "x" ; then | |
25531 | if test "$wxUSE_EXPAT" = "sys" ; then | |
25532 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
25533 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
25534 | { (exit 1); exit 1; }; } | |
25535 | else | |
25536 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
25537 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
25538 | wxUSE_EXPAT=builtin | |
25539 | fi | |
25540 | else | |
25541 | wxUSE_EXPAT=sys | |
25542 | fi | |
25543 | fi | |
25544 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
25545 | ||
25546 | ||
25547 | subdirs="$subdirs src/expat" | |
25548 | ||
25549 | fi | |
25550 | fi | |
25551 | ||
25552 | ||
25553 | ||
25554 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
25555 | if test "${ac_cv_header_mspack_h+set}" = set; then |
25556 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25557 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25558 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25560 | fi | |
25561 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25562 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25563 | else | |
25564 | # Is the header compilable? | |
25565 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
25566 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
25567 | cat >conftest.$ac_ext <<_ACEOF | |
25568 | /* confdefs.h. */ | |
25569 | _ACEOF | |
25570 | cat confdefs.h >>conftest.$ac_ext | |
25571 | cat >>conftest.$ac_ext <<_ACEOF | |
25572 | /* end confdefs.h. */ | |
25573 | $ac_includes_default | |
25574 | #include <mspack.h> | |
25575 | _ACEOF | |
25576 | rm -f conftest.$ac_objext | |
25577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25578 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25579 | ac_status=$? |
ac1cb8d3 VS |
25580 | grep -v '^ *+' conftest.er1 >conftest.err |
25581 | rm -f conftest.er1 | |
25582 | cat conftest.err >&5 | |
a848cd7e SC |
25583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25584 | (exit $ac_status); } && | |
3565d135 RR |
25585 | { ac_try='test -z "$ac_c_werror_flag" |
25586 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25588 | (eval $ac_try) 2>&5 | |
25589 | ac_status=$? | |
25590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25591 | (exit $ac_status); }; } && | |
25592 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25594 | (eval $ac_try) 2>&5 | |
25595 | ac_status=$? | |
25596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25597 | (exit $ac_status); }; }; then | |
25598 | ac_header_compiler=yes | |
25599 | else | |
25600 | echo "$as_me: failed program was:" >&5 | |
25601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25602 | ||
25603 | ac_header_compiler=no | |
25604 | fi | |
ac1cb8d3 | 25605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25606 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25607 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25608 | ||
25609 | # Is the header present? | |
25610 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
25611 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
25612 | cat >conftest.$ac_ext <<_ACEOF | |
25613 | /* confdefs.h. */ | |
25614 | _ACEOF | |
25615 | cat confdefs.h >>conftest.$ac_ext | |
25616 | cat >>conftest.$ac_ext <<_ACEOF | |
25617 | /* end confdefs.h. */ | |
25618 | #include <mspack.h> | |
25619 | _ACEOF | |
25620 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25621 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25622 | ac_status=$? | |
25623 | grep -v '^ *+' conftest.er1 >conftest.err | |
25624 | rm -f conftest.er1 | |
25625 | cat conftest.err >&5 | |
25626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25627 | (exit $ac_status); } >/dev/null; then | |
25628 | if test -s conftest.err; then | |
25629 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25630 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25631 | else |
25632 | ac_cpp_err= | |
25633 | fi | |
25634 | else | |
25635 | ac_cpp_err=yes | |
25636 | fi | |
25637 | if test -z "$ac_cpp_err"; then | |
25638 | ac_header_preproc=yes | |
25639 | else | |
25640 | echo "$as_me: failed program was:" >&5 | |
25641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25642 | ||
25643 | ac_header_preproc=no | |
25644 | fi | |
25645 | rm -f conftest.err conftest.$ac_ext | |
25646 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25647 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25648 | ||
25649 | # So? What about this header? | |
ac1cb8d3 VS |
25650 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25651 | yes:no: ) | |
a848cd7e SC |
25652 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25653 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25654 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
25655 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
25656 | ac_header_preproc=yes | |
a848cd7e | 25657 | ;; |
ac1cb8d3 | 25658 | no:yes:* ) |
a848cd7e SC |
25659 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
25660 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25661 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
25662 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
25663 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
25664 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
25665 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25666 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25667 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
25668 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25669 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
25670 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25671 | ( |
25672 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25673 | ## ----------------------------------------- ## |
25674 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25675 | ## ----------------------------------------- ## | |
a848cd7e SC |
25676 | _ASBOX |
25677 | ) | | |
25678 | sed "s/^/$as_me: WARNING: /" >&2 | |
25679 | ;; | |
25680 | esac | |
25681 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25682 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25683 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25685 | else | |
25686 | ac_cv_header_mspack_h=$ac_header_preproc | |
25687 | fi | |
25688 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25689 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25690 | ||
25691 | fi | |
25692 | if test $ac_cv_header_mspack_h = yes; then | |
25693 | found_mspack_h=1 | |
25694 | fi | |
25695 | ||
25696 | ||
25697 | if test "x$found_mspack_h" = "x1"; then | |
25698 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
25699 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
25700 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
25701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25702 | else | |
25703 | ac_check_lib_save_LIBS=$LIBS | |
25704 | LIBS="-lmspack $LIBS" | |
25705 | cat >conftest.$ac_ext <<_ACEOF | |
25706 | /* confdefs.h. */ | |
25707 | _ACEOF | |
25708 | cat confdefs.h >>conftest.$ac_ext | |
25709 | cat >>conftest.$ac_ext <<_ACEOF | |
25710 | /* end confdefs.h. */ | |
25711 | ||
25712 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25713 | #ifdef __cplusplus | |
25714 | extern "C" | |
25715 | #endif | |
25716 | /* We use char because int might match the return type of a gcc2 | |
25717 | builtin and then its argument prototype would still apply. */ | |
25718 | char mspack_create_chm_decompressor (); | |
25719 | int | |
25720 | main () | |
25721 | { | |
25722 | mspack_create_chm_decompressor (); | |
25723 | ; | |
25724 | return 0; | |
25725 | } | |
25726 | _ACEOF | |
25727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25729 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25730 | ac_status=$? |
ac1cb8d3 VS |
25731 | grep -v '^ *+' conftest.er1 >conftest.err |
25732 | rm -f conftest.er1 | |
25733 | cat conftest.err >&5 | |
a848cd7e SC |
25734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25735 | (exit $ac_status); } && | |
3565d135 RR |
25736 | { ac_try='test -z "$ac_c_werror_flag" |
25737 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25739 | (eval $ac_try) 2>&5 | |
25740 | ac_status=$? | |
25741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25742 | (exit $ac_status); }; } && | |
25743 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25745 | (eval $ac_try) 2>&5 | |
25746 | ac_status=$? | |
25747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25748 | (exit $ac_status); }; }; then | |
25749 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
25750 | else | |
25751 | echo "$as_me: failed program was:" >&5 | |
25752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25753 | ||
25754 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
25755 | fi | |
ac1cb8d3 VS |
25756 | rm -f conftest.err conftest.$ac_objext \ |
25757 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25758 | LIBS=$ac_check_lib_save_LIBS |
25759 | fi | |
25760 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
25761 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
25762 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
25763 | MSPACK_LINK=" -lmspack" | |
25764 | fi | |
25765 | ||
25766 | fi | |
25767 | if test "x$MSPACK_LINK" = "x" ; then | |
25768 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
25769 | fi |
25770 | fi | |
25771 | ||
25772 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
25773 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
25774 | #define wxUSE_LIBMSPACK 1 |
25775 | _ACEOF | |
25776 | ||
a848cd7e SC |
25777 | fi |
25778 | ||
25779 | ||
25780 | ||
25781 | AFMINSTALL= | |
25782 | WIN32INSTALL= | |
25783 | ||
25784 | TOOLKIT= | |
25785 | TOOLKIT_INCLUDE= | |
25786 | WIDGET_SET= | |
25787 | ||
25788 | if test "$USE_WIN32" = 1 ; then | |
25789 | ||
25790 | for ac_header in w32api.h | |
25791 | do | |
25792 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25794 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25798 | fi | |
25799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25801 | else | |
25802 | # Is the header compilable? | |
25803 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25804 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25805 | cat >conftest.$ac_ext <<_ACEOF | |
25806 | /* confdefs.h. */ | |
25807 | _ACEOF | |
25808 | cat confdefs.h >>conftest.$ac_ext | |
25809 | cat >>conftest.$ac_ext <<_ACEOF | |
25810 | /* end confdefs.h. */ | |
25811 | $ac_includes_default | |
25812 | #include <$ac_header> | |
25813 | _ACEOF | |
25814 | rm -f conftest.$ac_objext | |
25815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25816 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25817 | ac_status=$? |
ac1cb8d3 VS |
25818 | grep -v '^ *+' conftest.er1 >conftest.err |
25819 | rm -f conftest.er1 | |
25820 | cat conftest.err >&5 | |
a848cd7e SC |
25821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25822 | (exit $ac_status); } && | |
3565d135 RR |
25823 | { ac_try='test -z "$ac_c_werror_flag" |
25824 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25826 | (eval $ac_try) 2>&5 | |
25827 | ac_status=$? | |
25828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25829 | (exit $ac_status); }; } && | |
25830 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25832 | (eval $ac_try) 2>&5 | |
25833 | ac_status=$? | |
25834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25835 | (exit $ac_status); }; }; then | |
25836 | ac_header_compiler=yes | |
25837 | else | |
25838 | echo "$as_me: failed program was:" >&5 | |
25839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25840 | ||
25841 | ac_header_compiler=no | |
25842 | fi | |
ac1cb8d3 | 25843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25844 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25845 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25846 | ||
25847 | # Is the header present? | |
25848 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25849 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
25850 | cat >conftest.$ac_ext <<_ACEOF | |
25851 | /* confdefs.h. */ | |
25852 | _ACEOF | |
25853 | cat confdefs.h >>conftest.$ac_ext | |
25854 | cat >>conftest.$ac_ext <<_ACEOF | |
25855 | /* end confdefs.h. */ | |
25856 | #include <$ac_header> | |
25857 | _ACEOF | |
25858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25860 | ac_status=$? | |
25861 | grep -v '^ *+' conftest.er1 >conftest.err | |
25862 | rm -f conftest.er1 | |
25863 | cat conftest.err >&5 | |
25864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25865 | (exit $ac_status); } >/dev/null; then | |
25866 | if test -s conftest.err; then | |
25867 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25868 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25869 | else |
25870 | ac_cpp_err= | |
25871 | fi | |
25872 | else | |
25873 | ac_cpp_err=yes | |
25874 | fi | |
25875 | if test -z "$ac_cpp_err"; then | |
25876 | ac_header_preproc=yes | |
25877 | else | |
25878 | echo "$as_me: failed program was:" >&5 | |
25879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25880 | ||
25881 | ac_header_preproc=no | |
25882 | fi | |
25883 | rm -f conftest.err conftest.$ac_ext | |
25884 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25885 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25886 | ||
25887 | # So? What about this header? | |
ac1cb8d3 VS |
25888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25889 | yes:no: ) | |
a848cd7e SC |
25890 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
25891 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
25893 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25894 | ac_header_preproc=yes | |
a848cd7e | 25895 | ;; |
ac1cb8d3 | 25896 | no:yes:* ) |
a848cd7e SC |
25897 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
25898 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25899 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
25900 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25901 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25902 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25903 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25904 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
25906 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25907 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
25908 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25909 | ( |
25910 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25911 | ## ----------------------------------------- ## |
25912 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25913 | ## ----------------------------------------- ## | |
a848cd7e SC |
25914 | _ASBOX |
25915 | ) | | |
25916 | sed "s/^/$as_me: WARNING: /" >&2 | |
25917 | ;; | |
25918 | esac | |
25919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25923 | else | |
ac1cb8d3 | 25924 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
25925 | fi |
25926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25928 | ||
25929 | fi | |
25930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25931 | cat >>confdefs.h <<_ACEOF | |
25932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25933 | _ACEOF | |
25934 | ||
25935 | fi | |
25936 | ||
25937 | done | |
25938 | ||
25939 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25940 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25941 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25942 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25944 | fi | |
25945 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25946 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25947 | else | |
25948 | # Is the header compilable? | |
25949 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
25950 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
25951 | cat >conftest.$ac_ext <<_ACEOF | |
25952 | /* confdefs.h. */ | |
25953 | _ACEOF | |
25954 | cat confdefs.h >>conftest.$ac_ext | |
25955 | cat >>conftest.$ac_ext <<_ACEOF | |
25956 | /* end confdefs.h. */ | |
25957 | $ac_includes_default | |
25958 | #include <windows.h> | |
25959 | _ACEOF | |
25960 | rm -f conftest.$ac_objext | |
25961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25963 | ac_status=$? |
ac1cb8d3 VS |
25964 | grep -v '^ *+' conftest.er1 >conftest.err |
25965 | rm -f conftest.er1 | |
25966 | cat conftest.err >&5 | |
a848cd7e SC |
25967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25968 | (exit $ac_status); } && | |
3565d135 RR |
25969 | { ac_try='test -z "$ac_c_werror_flag" |
25970 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25972 | (eval $ac_try) 2>&5 | |
25973 | ac_status=$? | |
25974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25975 | (exit $ac_status); }; } && | |
25976 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25978 | (eval $ac_try) 2>&5 | |
25979 | ac_status=$? | |
25980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25981 | (exit $ac_status); }; }; then | |
25982 | ac_header_compiler=yes | |
25983 | else | |
25984 | echo "$as_me: failed program was:" >&5 | |
25985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25986 | ||
25987 | ac_header_compiler=no | |
25988 | fi | |
ac1cb8d3 | 25989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25990 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25991 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25992 | ||
25993 | # Is the header present? | |
25994 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
25995 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
25996 | cat >conftest.$ac_ext <<_ACEOF | |
25997 | /* confdefs.h. */ | |
25998 | _ACEOF | |
25999 | cat confdefs.h >>conftest.$ac_ext | |
26000 | cat >>conftest.$ac_ext <<_ACEOF | |
26001 | /* end confdefs.h. */ | |
26002 | #include <windows.h> | |
26003 | _ACEOF | |
26004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26006 | ac_status=$? | |
26007 | grep -v '^ *+' conftest.er1 >conftest.err | |
26008 | rm -f conftest.er1 | |
26009 | cat conftest.err >&5 | |
26010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26011 | (exit $ac_status); } >/dev/null; then | |
26012 | if test -s conftest.err; then | |
26013 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26015 | else |
26016 | ac_cpp_err= | |
26017 | fi | |
26018 | else | |
26019 | ac_cpp_err=yes | |
26020 | fi | |
26021 | if test -z "$ac_cpp_err"; then | |
26022 | ac_header_preproc=yes | |
26023 | else | |
26024 | echo "$as_me: failed program was:" >&5 | |
26025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26026 | ||
26027 | ac_header_preproc=no | |
26028 | fi | |
26029 | rm -f conftest.err conftest.$ac_ext | |
26030 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26031 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26032 | ||
26033 | # So? What about this header? | |
ac1cb8d3 VS |
26034 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26035 | yes:no: ) | |
a848cd7e SC |
26036 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26037 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26038 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26039 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26040 | ac_header_preproc=yes | |
a848cd7e | 26041 | ;; |
ac1cb8d3 | 26042 | no:yes:* ) |
a848cd7e SC |
26043 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26044 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26045 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26046 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26047 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26048 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26049 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26050 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26051 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26052 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26053 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26054 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26055 | ( |
26056 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26057 | ## ----------------------------------------- ## |
26058 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26059 | ## ----------------------------------------- ## | |
a848cd7e SC |
26060 | _ASBOX |
26061 | ) | | |
26062 | sed "s/^/$as_me: WARNING: /" >&2 | |
26063 | ;; | |
26064 | esac | |
26065 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26066 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26067 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26069 | else | |
26070 | ac_cv_header_windows_h=$ac_header_preproc | |
26071 | fi | |
26072 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26073 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26074 | ||
26075 | fi | |
26076 | if test $ac_cv_header_windows_h = yes; then | |
26077 | : | |
26078 | else | |
26079 | ||
26080 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26081 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26082 | { (exit 1); exit 1; }; } | |
26083 | ||
26084 | fi | |
26085 | ||
26086 | ||
26087 | ||
26088 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26089 | ||
26090 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26091 | LIBS="$LIBS -loleacc" | |
26092 | fi | |
26093 | ||
26094 | case "${host}" in | |
26095 | *-*-cygwin* ) | |
26096 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26097 | esac |
26098 | ||
26099 | if test "$wxUSE_ODBC" = "sys" ; then | |
26100 | wxUSE_ODBC = "yes" | |
26101 | fi | |
26102 | if test "$wxUSE_ODBC" = "yes" ; then | |
26103 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26104 | cat >>confdefs.h <<\_ACEOF | |
26105 | #define wxUSE_ODBC 1 | |
26106 | _ACEOF | |
26107 | ||
26108 | fi | |
26109 | ||
370d2fd7 | 26110 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26111 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26112 | ||
004ee6da | 26113 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26114 | |
a848cd7e SC |
26115 | WIN32INSTALL=win32install |
26116 | fi | |
26117 | ||
26118 | if test "$wxUSE_GUI" = "yes"; then | |
26119 | USE_GUI=1 | |
26120 | ||
26121 | GUI_TK_LIBRARY= | |
26122 | ||
26123 | WXGTK12= | |
26124 | WXGTK127= | |
26125 | WXGTK20= | |
26126 | WXGPE= | |
26127 | ||
207bc66c RN |
26128 | if test "$wxUSE_COCOA" = 1 ; then |
26129 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26130 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26131 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26132 | wxUSE_PRINTING_ARCHITECTURE=no | |
26133 | fi | |
26134 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26135 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26136 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26137 | wxUSE_DRAG_AND_DROP=no | |
26138 | fi | |
26139 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
26140 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
26141 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
26142 | wxUSE_DRAGIMAGE=no | |
26143 | fi | |
26144 | fi | |
26145 | ||
a848cd7e SC |
26146 | if test "$wxUSE_MSW" = 1 ; then |
26147 | TOOLKIT=MSW | |
26148 | GUIDIST=MSW_DIST | |
26149 | ||
ceec2216 | 26150 | case "${host}" in |
a848cd7e SC |
26151 | *-*-mingw32* ) |
26152 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
26153 | esac | |
26154 | fi | |
26155 | ||
26156 | if test "$wxUSE_GTK" = 1; then | |
26157 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
26158 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
26159 | ||
26160 | gtk_version_cached=1 | |
26161 | if test "${wx_cv_lib_gtk+set}" = set; then | |
26162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26163 | else | |
26164 | ||
26165 | gtk_version_cached=0 | |
26166 | echo "$as_me:$LINENO: result: " >&5 | |
26167 | echo "${ECHO_T}" >&6 | |
26168 | ||
26169 | GTK_MODULES= | |
26170 | if test "$wxUSE_THREADS" = "yes"; then | |
26171 | GTK_MODULES=gthread | |
26172 | fi | |
26173 | ||
f597b41c | 26174 | wx_cv_lib_gtk= |
5001df0d MW |
26175 | if test "x$wxGTK_VERSION" != "x1" |
26176 | then | |
26177 | case "${host}" in | |
26178 | *-*-solaris2* ) | |
26179 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 26180 | enable_gtktest=no |
5001df0d MW |
26181 | fi |
26182 | esac | |
26183 | ||
a848cd7e SC |
26184 | # Check whether --enable-gtktest or --disable-gtktest was given. |
26185 | if test "${enable_gtktest+set}" = set; then | |
26186 | enableval="$enable_gtktest" | |
26187 | ||
26188 | else | |
26189 | enable_gtktest=yes | |
26190 | fi; | |
26191 | ||
26192 | pkg_config_args=gtk+-2.0 | |
26193 | for module in . $GTK_MODULES | |
26194 | do | |
26195 | case "$module" in | |
26196 | gthread) | |
26197 | pkg_config_args="$pkg_config_args gthread-2.0" | |
26198 | ;; | |
26199 | esac | |
26200 | done | |
26201 | ||
26202 | no_gtk="" | |
26203 | ||
26204 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26205 | set dummy pkg-config; ac_word=$2 | |
26206 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26208 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26210 | else | |
26211 | case $PKG_CONFIG in | |
26212 | [\\/]* | ?:[\\/]*) | |
26213 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26214 | ;; | |
26215 | *) | |
26216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26217 | for as_dir in $PATH | |
26218 | do | |
26219 | IFS=$as_save_IFS | |
26220 | test -z "$as_dir" && as_dir=. | |
26221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26223 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26225 | break 2 | |
26226 | fi | |
26227 | done | |
26228 | done | |
26229 | ||
26230 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26231 | ;; | |
26232 | esac | |
26233 | fi | |
26234 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26235 | ||
26236 | if test -n "$PKG_CONFIG"; then | |
26237 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26238 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26239 | else | |
26240 | echo "$as_me:$LINENO: result: no" >&5 | |
26241 | echo "${ECHO_T}no" >&6 | |
26242 | fi | |
26243 | ||
26244 | ||
26245 | if test x$PKG_CONFIG != xno ; then | |
26246 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
26247 | : | |
26248 | else | |
c2218763 | 26249 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
26250 | no_gtk=yes |
26251 | PKG_CONFIG=no | |
26252 | fi | |
26253 | else | |
26254 | no_gtk=yes | |
26255 | fi | |
26256 | ||
26257 | min_gtk_version=2.0.0 | |
26258 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
26259 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
26260 | ||
26261 | if test x$PKG_CONFIG != xno ; then | |
26262 | ## don't try to run the test against uninstalled libtool libs | |
26263 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
26264 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
26265 | enable_gtktest=no | |
26266 | fi | |
26267 | ||
26268 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
26269 | : | |
26270 | else | |
26271 | no_gtk=yes | |
26272 | fi | |
26273 | fi | |
26274 | ||
26275 | if test x"$no_gtk" = x ; then | |
26276 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
26277 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
26278 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26279 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26280 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26281 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26282 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26283 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26284 | if test "x$enable_gtktest" = "xyes" ; then | |
26285 | ac_save_CFLAGS="$CFLAGS" | |
26286 | ac_save_LIBS="$LIBS" | |
26287 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26288 | LIBS="$GTK_LIBS $LIBS" | |
26289 | rm -f conf.gtktest | |
26290 | if test "$cross_compiling" = yes; then | |
26291 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26292 | else | |
26293 | cat >conftest.$ac_ext <<_ACEOF | |
26294 | /* confdefs.h. */ | |
26295 | _ACEOF | |
26296 | cat confdefs.h >>conftest.$ac_ext | |
26297 | cat >>conftest.$ac_ext <<_ACEOF | |
26298 | /* end confdefs.h. */ | |
26299 | ||
26300 | #include <gtk/gtk.h> | |
26301 | #include <stdio.h> | |
26302 | #include <stdlib.h> | |
26303 | ||
26304 | int | |
26305 | main () | |
26306 | { | |
26307 | int major, minor, micro; | |
26308 | char *tmp_version; | |
26309 | ||
26310 | system ("touch conf.gtktest"); | |
26311 | ||
26312 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26313 | tmp_version = g_strdup("$min_gtk_version"); | |
26314 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26315 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26316 | exit(1); | |
26317 | } | |
26318 | ||
26319 | if ((gtk_major_version != $gtk_config_major_version) || | |
26320 | (gtk_minor_version != $gtk_config_minor_version) || | |
26321 | (gtk_micro_version != $gtk_config_micro_version)) | |
26322 | { | |
26323 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26324 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26325 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26326 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
26327 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26328 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26329 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26330 | printf("*** required on your system.\n"); | |
26331 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
26332 | printf("*** to point to the correct configuration files\n"); | |
26333 | } | |
26334 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26335 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26336 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26337 | { | |
26338 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26339 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26340 | printf("*** library (version %d.%d.%d)\n", | |
26341 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26342 | } | |
26343 | else | |
26344 | { | |
26345 | if ((gtk_major_version > major) || | |
26346 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26347 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26348 | { | |
26349 | return 0; | |
26350 | } | |
26351 | else | |
26352 | { | |
26353 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26354 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26355 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26356 | major, minor, micro); | |
26357 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26358 | printf("***\n"); | |
26359 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26360 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
26361 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26362 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
26363 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
26364 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26365 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26366 | } | |
26367 | } | |
26368 | return 1; | |
26369 | } | |
26370 | ||
26371 | _ACEOF | |
26372 | rm -f conftest$ac_exeext | |
26373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26374 | (eval $ac_link) 2>&5 | |
26375 | ac_status=$? | |
26376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26379 | (eval $ac_try) 2>&5 | |
26380 | ac_status=$? | |
26381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26382 | (exit $ac_status); }; }; then | |
26383 | : | |
26384 | else | |
26385 | echo "$as_me: program exited with status $ac_status" >&5 | |
26386 | echo "$as_me: failed program was:" >&5 | |
26387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26388 | ||
26389 | ( exit $ac_status ) | |
26390 | no_gtk=yes | |
26391 | fi | |
ac1cb8d3 | 26392 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26393 | fi |
26394 | CFLAGS="$ac_save_CFLAGS" | |
26395 | LIBS="$ac_save_LIBS" | |
26396 | fi | |
26397 | fi | |
26398 | if test "x$no_gtk" = x ; then | |
26399 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26400 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26401 | wx_cv_lib_gtk=2.0 | |
26402 | else | |
26403 | echo "$as_me:$LINENO: result: no" >&5 | |
26404 | echo "${ECHO_T}no" >&6 | |
26405 | if test "$PKG_CONFIG" = "no" ; then | |
26406 | echo "*** A new enough version of pkg-config was not found." | |
26407 | echo "*** See http://pkgconfig.sourceforge.net" | |
26408 | else | |
26409 | if test -f conf.gtktest ; then | |
26410 | : | |
26411 | else | |
26412 | echo "*** Could not run GTK+ test program, checking why..." | |
26413 | ac_save_CFLAGS="$CFLAGS" | |
26414 | ac_save_LIBS="$LIBS" | |
26415 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26416 | LIBS="$LIBS $GTK_LIBS" | |
26417 | cat >conftest.$ac_ext <<_ACEOF | |
26418 | /* confdefs.h. */ | |
26419 | _ACEOF | |
26420 | cat confdefs.h >>conftest.$ac_ext | |
26421 | cat >>conftest.$ac_ext <<_ACEOF | |
26422 | /* end confdefs.h. */ | |
26423 | ||
26424 | #include <gtk/gtk.h> | |
26425 | #include <stdio.h> | |
26426 | ||
26427 | int | |
26428 | main () | |
26429 | { | |
26430 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26431 | ; | |
26432 | return 0; | |
26433 | } | |
26434 | _ACEOF | |
26435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26437 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26438 | ac_status=$? |
ac1cb8d3 VS |
26439 | grep -v '^ *+' conftest.er1 >conftest.err |
26440 | rm -f conftest.er1 | |
26441 | cat conftest.err >&5 | |
a848cd7e SC |
26442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26443 | (exit $ac_status); } && | |
3565d135 RR |
26444 | { ac_try='test -z "$ac_c_werror_flag" |
26445 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26447 | (eval $ac_try) 2>&5 | |
26448 | ac_status=$? | |
26449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26450 | (exit $ac_status); }; } && | |
26451 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26453 | (eval $ac_try) 2>&5 | |
26454 | ac_status=$? | |
26455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26456 | (exit $ac_status); }; }; then | |
26457 | echo "*** The test program compiled, but did not run. This usually means" | |
26458 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
26459 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
26460 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26461 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26462 | echo "*** is required on your system" | |
26463 | echo "***" | |
26464 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26465 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26466 | else | |
26467 | echo "$as_me: failed program was:" >&5 | |
26468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26469 | ||
26470 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26471 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
26472 | fi | |
ac1cb8d3 VS |
26473 | rm -f conftest.err conftest.$ac_objext \ |
26474 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26475 | CFLAGS="$ac_save_CFLAGS" |
26476 | LIBS="$ac_save_LIBS" | |
26477 | fi | |
26478 | fi | |
26479 | GTK_CFLAGS="" | |
26480 | GTK_LIBS="" | |
26481 | : | |
26482 | fi | |
26483 | ||
26484 | ||
26485 | rm -f conf.gtktest | |
26486 | ||
5001df0d MW |
26487 | |
26488 | case "${host}" in | |
26489 | *-*-solaris2* ) | |
26490 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
26491 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
26492 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
26493 | fi | |
26494 | if test "$wxUSE_SHARED" != "yes"; then | |
26495 | GTK_LIBS="$GTK_LIBS -lX11" | |
26496 | fi | |
26497 | esac | |
f597b41c MW |
26498 | fi |
26499 | ||
f34ca037 MW |
26500 | if test -z "$wx_cv_lib_gtk"; then |
26501 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
26502 | |
26503 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26504 | if test "${with_gtk_prefix+set}" = set; then | |
26505 | withval="$with_gtk_prefix" | |
26506 | gtk_config_prefix="$withval" | |
26507 | else | |
26508 | gtk_config_prefix="" | |
26509 | fi; | |
26510 | ||
26511 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26512 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26513 | withval="$with_gtk_exec_prefix" | |
26514 | gtk_config_exec_prefix="$withval" | |
26515 | else | |
26516 | gtk_config_exec_prefix="" | |
26517 | fi; | |
26518 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26519 | if test "${enable_gtktest+set}" = set; then | |
26520 | enableval="$enable_gtktest" | |
26521 | ||
26522 | else | |
26523 | enable_gtktest=yes | |
26524 | fi; | |
26525 | ||
26526 | for module in . $GTK_MODULES | |
26527 | do | |
26528 | case "$module" in | |
26529 | gthread) | |
26530 | gtk_config_args="$gtk_config_args gthread" | |
26531 | ;; | |
26532 | esac | |
26533 | done | |
26534 | ||
26535 | if test x$gtk_config_exec_prefix != x ; then | |
26536 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26537 | if test x${GTK_CONFIG+set} != xset ; then | |
26538 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26539 | fi | |
26540 | fi | |
26541 | if test x$gtk_config_prefix != x ; then | |
26542 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26543 | if test x${GTK_CONFIG+set} != xset ; then | |
26544 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26545 | fi | |
26546 | fi | |
26547 | ||
26548 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26549 | set dummy gtk-config; ac_word=$2 | |
26550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26552 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26554 | else | |
26555 | case $GTK_CONFIG in | |
26556 | [\\/]* | ?:[\\/]*) | |
26557 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26558 | ;; | |
26559 | *) | |
26560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26561 | for as_dir in $PATH | |
26562 | do | |
26563 | IFS=$as_save_IFS | |
26564 | test -z "$as_dir" && as_dir=. | |
26565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26567 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26569 | break 2 | |
26570 | fi | |
26571 | done | |
26572 | done | |
26573 | ||
26574 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26575 | ;; | |
26576 | esac | |
26577 | fi | |
26578 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26579 | ||
26580 | if test -n "$GTK_CONFIG"; then | |
26581 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26582 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26583 | else | |
26584 | echo "$as_me:$LINENO: result: no" >&5 | |
26585 | echo "${ECHO_T}no" >&6 | |
26586 | fi | |
26587 | ||
26588 | min_gtk_version=1.2.7 | |
26589 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26590 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26591 | no_gtk="" | |
26592 | if test "$GTK_CONFIG" = "no" ; then | |
26593 | no_gtk=yes | |
26594 | else | |
26595 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26596 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26597 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26598 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26599 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26600 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26601 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26602 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26603 | if test "x$enable_gtktest" = "xyes" ; then | |
26604 | ac_save_CFLAGS="$CFLAGS" | |
26605 | ac_save_LIBS="$LIBS" | |
26606 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26607 | LIBS="$GTK_LIBS $LIBS" | |
26608 | rm -f conf.gtktest | |
26609 | if test "$cross_compiling" = yes; then | |
26610 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26611 | else | |
26612 | cat >conftest.$ac_ext <<_ACEOF | |
26613 | /* confdefs.h. */ | |
26614 | _ACEOF | |
26615 | cat confdefs.h >>conftest.$ac_ext | |
26616 | cat >>conftest.$ac_ext <<_ACEOF | |
26617 | /* end confdefs.h. */ | |
26618 | ||
26619 | #include <gtk/gtk.h> | |
26620 | #include <stdio.h> | |
26621 | #include <stdlib.h> | |
26622 | ||
26623 | int | |
26624 | main () | |
26625 | { | |
26626 | int major, minor, micro; | |
26627 | char *tmp_version; | |
26628 | ||
26629 | system ("touch conf.gtktest"); | |
26630 | ||
26631 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26632 | tmp_version = g_strdup("$min_gtk_version"); | |
26633 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26634 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26635 | exit(1); | |
26636 | } | |
26637 | ||
26638 | if ((gtk_major_version != $gtk_config_major_version) || | |
26639 | (gtk_minor_version != $gtk_config_minor_version) || | |
26640 | (gtk_micro_version != $gtk_config_micro_version)) | |
26641 | { | |
26642 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26643 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26644 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26645 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26646 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26647 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26648 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26649 | printf("*** required on your system.\n"); | |
26650 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26651 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26652 | printf("*** before re-running configure\n"); | |
26653 | } | |
26654 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26655 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26656 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26657 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26658 | { | |
26659 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26660 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26661 | printf("*** library (version %d.%d.%d)\n", | |
26662 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26663 | } | |
26664 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26665 | else | |
26666 | { | |
26667 | if ((gtk_major_version > major) || | |
26668 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26669 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26670 | { | |
26671 | return 0; | |
26672 | } | |
26673 | else | |
26674 | { | |
26675 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26676 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26677 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26678 | major, minor, micro); | |
26679 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26680 | printf("***\n"); | |
26681 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26682 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26683 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26684 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26685 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26686 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26687 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26688 | } | |
26689 | } | |
26690 | return 1; | |
26691 | } | |
26692 | ||
26693 | _ACEOF | |
26694 | rm -f conftest$ac_exeext | |
26695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26696 | (eval $ac_link) 2>&5 | |
26697 | ac_status=$? | |
26698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26699 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26701 | (eval $ac_try) 2>&5 | |
26702 | ac_status=$? | |
26703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26704 | (exit $ac_status); }; }; then | |
26705 | : | |
26706 | else | |
26707 | echo "$as_me: program exited with status $ac_status" >&5 | |
26708 | echo "$as_me: failed program was:" >&5 | |
26709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26710 | ||
26711 | ( exit $ac_status ) | |
26712 | no_gtk=yes | |
26713 | fi | |
ac1cb8d3 | 26714 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26715 | fi |
26716 | CFLAGS="$ac_save_CFLAGS" | |
26717 | LIBS="$ac_save_LIBS" | |
26718 | fi | |
26719 | fi | |
26720 | if test "x$no_gtk" = x ; then | |
26721 | echo "$as_me:$LINENO: result: yes" >&5 | |
26722 | echo "${ECHO_T}yes" >&6 | |
26723 | wx_cv_lib_gtk=1.2.7 | |
26724 | else | |
26725 | echo "$as_me:$LINENO: result: no" >&5 | |
26726 | echo "${ECHO_T}no" >&6 | |
26727 | if test "$GTK_CONFIG" = "no" ; then | |
26728 | echo "*** The gtk-config script installed by GTK could not be found" | |
26729 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26730 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26731 | echo "*** full path to gtk-config." | |
26732 | else | |
26733 | if test -f conf.gtktest ; then | |
26734 | : | |
26735 | else | |
26736 | echo "*** Could not run GTK test program, checking why..." | |
26737 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26738 | LIBS="$LIBS $GTK_LIBS" | |
26739 | cat >conftest.$ac_ext <<_ACEOF | |
26740 | /* confdefs.h. */ | |
26741 | _ACEOF | |
26742 | cat confdefs.h >>conftest.$ac_ext | |
26743 | cat >>conftest.$ac_ext <<_ACEOF | |
26744 | /* end confdefs.h. */ | |
26745 | ||
26746 | #include <gtk/gtk.h> | |
26747 | #include <stdio.h> | |
26748 | ||
26749 | int | |
26750 | main () | |
26751 | { | |
26752 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26753 | ; | |
26754 | return 0; | |
26755 | } | |
26756 | _ACEOF | |
26757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26759 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26760 | ac_status=$? |
ac1cb8d3 VS |
26761 | grep -v '^ *+' conftest.er1 >conftest.err |
26762 | rm -f conftest.er1 | |
26763 | cat conftest.err >&5 | |
a848cd7e SC |
26764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26765 | (exit $ac_status); } && | |
3565d135 RR |
26766 | { ac_try='test -z "$ac_c_werror_flag" |
26767 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26769 | (eval $ac_try) 2>&5 | |
26770 | ac_status=$? | |
26771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26772 | (exit $ac_status); }; } && | |
26773 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26775 | (eval $ac_try) 2>&5 | |
26776 | ac_status=$? | |
26777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26778 | (exit $ac_status); }; }; then | |
26779 | echo "*** The test program compiled, but did not run. This usually means" | |
26780 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26781 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26782 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26783 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26784 | echo "*** is required on your system" | |
26785 | echo "***" | |
26786 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26787 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26788 | echo "***" | |
26789 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26790 | echo "*** came with the system with the command" | |
26791 | echo "***" | |
26792 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26793 | else | |
26794 | echo "$as_me: failed program was:" >&5 | |
26795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26796 | ||
26797 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26798 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26799 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26800 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26801 | fi | |
ac1cb8d3 VS |
26802 | rm -f conftest.err conftest.$ac_objext \ |
26803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26804 | CFLAGS="$ac_save_CFLAGS" |
26805 | LIBS="$ac_save_LIBS" | |
26806 | fi | |
26807 | fi | |
26808 | GTK_CFLAGS="" | |
26809 | GTK_LIBS="" | |
26810 | : | |
26811 | fi | |
26812 | ||
26813 | ||
26814 | rm -f conf.gtktest | |
26815 | ||
26816 | ||
f34ca037 | 26817 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
26818 | |
26819 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26820 | if test "${with_gtk_prefix+set}" = set; then | |
26821 | withval="$with_gtk_prefix" | |
26822 | gtk_config_prefix="$withval" | |
26823 | else | |
26824 | gtk_config_prefix="" | |
26825 | fi; | |
26826 | ||
26827 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26828 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26829 | withval="$with_gtk_exec_prefix" | |
26830 | gtk_config_exec_prefix="$withval" | |
26831 | else | |
26832 | gtk_config_exec_prefix="" | |
26833 | fi; | |
26834 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26835 | if test "${enable_gtktest+set}" = set; then | |
26836 | enableval="$enable_gtktest" | |
26837 | ||
26838 | else | |
26839 | enable_gtktest=yes | |
26840 | fi; | |
26841 | ||
26842 | for module in . $GTK_MODULES | |
26843 | do | |
26844 | case "$module" in | |
26845 | gthread) | |
26846 | gtk_config_args="$gtk_config_args gthread" | |
26847 | ;; | |
26848 | esac | |
26849 | done | |
26850 | ||
26851 | if test x$gtk_config_exec_prefix != x ; then | |
26852 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26853 | if test x${GTK_CONFIG+set} != xset ; then | |
26854 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26855 | fi | |
26856 | fi | |
26857 | if test x$gtk_config_prefix != x ; then | |
26858 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26859 | if test x${GTK_CONFIG+set} != xset ; then | |
26860 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26861 | fi | |
26862 | fi | |
26863 | ||
26864 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26865 | set dummy gtk-config; ac_word=$2 | |
26866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26868 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26870 | else | |
26871 | case $GTK_CONFIG in | |
26872 | [\\/]* | ?:[\\/]*) | |
26873 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26874 | ;; | |
26875 | *) | |
26876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26877 | for as_dir in $PATH | |
26878 | do | |
26879 | IFS=$as_save_IFS | |
26880 | test -z "$as_dir" && as_dir=. | |
26881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26883 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26885 | break 2 | |
26886 | fi | |
26887 | done | |
26888 | done | |
26889 | ||
26890 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26891 | ;; | |
26892 | esac | |
26893 | fi | |
26894 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26895 | ||
26896 | if test -n "$GTK_CONFIG"; then | |
26897 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26898 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26899 | else | |
26900 | echo "$as_me:$LINENO: result: no" >&5 | |
26901 | echo "${ECHO_T}no" >&6 | |
26902 | fi | |
26903 | ||
26904 | min_gtk_version=1.2.3 | |
26905 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26906 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26907 | no_gtk="" | |
26908 | if test "$GTK_CONFIG" = "no" ; then | |
26909 | no_gtk=yes | |
26910 | else | |
26911 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26912 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26913 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26914 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26915 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26916 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26917 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26918 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26919 | if test "x$enable_gtktest" = "xyes" ; then | |
26920 | ac_save_CFLAGS="$CFLAGS" | |
26921 | ac_save_LIBS="$LIBS" | |
26922 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26923 | LIBS="$GTK_LIBS $LIBS" | |
26924 | rm -f conf.gtktest | |
26925 | if test "$cross_compiling" = yes; then | |
26926 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26927 | else | |
26928 | cat >conftest.$ac_ext <<_ACEOF | |
26929 | /* confdefs.h. */ | |
26930 | _ACEOF | |
26931 | cat confdefs.h >>conftest.$ac_ext | |
26932 | cat >>conftest.$ac_ext <<_ACEOF | |
26933 | /* end confdefs.h. */ | |
26934 | ||
26935 | #include <gtk/gtk.h> | |
26936 | #include <stdio.h> | |
26937 | #include <stdlib.h> | |
26938 | ||
26939 | int | |
26940 | main () | |
26941 | { | |
26942 | int major, minor, micro; | |
26943 | char *tmp_version; | |
26944 | ||
26945 | system ("touch conf.gtktest"); | |
26946 | ||
26947 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26948 | tmp_version = g_strdup("$min_gtk_version"); | |
26949 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26950 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26951 | exit(1); | |
26952 | } | |
26953 | ||
26954 | if ((gtk_major_version != $gtk_config_major_version) || | |
26955 | (gtk_minor_version != $gtk_config_minor_version) || | |
26956 | (gtk_micro_version != $gtk_config_micro_version)) | |
26957 | { | |
26958 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26959 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26960 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26961 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26962 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26963 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26964 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26965 | printf("*** required on your system.\n"); | |
26966 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26967 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26968 | printf("*** before re-running configure\n"); | |
26969 | } | |
26970 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26971 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26972 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26973 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26974 | { | |
26975 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26976 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26977 | printf("*** library (version %d.%d.%d)\n", | |
26978 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26979 | } | |
26980 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26981 | else | |
26982 | { | |
26983 | if ((gtk_major_version > major) || | |
26984 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26985 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26986 | { | |
26987 | return 0; | |
26988 | } | |
26989 | else | |
26990 | { | |
26991 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26992 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26993 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26994 | major, minor, micro); | |
26995 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26996 | printf("***\n"); | |
26997 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26998 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26999 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27000 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27001 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27002 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27003 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27004 | } | |
27005 | } | |
27006 | return 1; | |
27007 | } | |
27008 | ||
27009 | _ACEOF | |
27010 | rm -f conftest$ac_exeext | |
27011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27012 | (eval $ac_link) 2>&5 | |
27013 | ac_status=$? | |
27014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27017 | (eval $ac_try) 2>&5 | |
27018 | ac_status=$? | |
27019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27020 | (exit $ac_status); }; }; then | |
27021 | : | |
27022 | else | |
27023 | echo "$as_me: program exited with status $ac_status" >&5 | |
27024 | echo "$as_me: failed program was:" >&5 | |
27025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27026 | ||
27027 | ( exit $ac_status ) | |
27028 | no_gtk=yes | |
27029 | fi | |
ac1cb8d3 | 27030 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27031 | fi |
27032 | CFLAGS="$ac_save_CFLAGS" | |
27033 | LIBS="$ac_save_LIBS" | |
27034 | fi | |
27035 | fi | |
27036 | if test "x$no_gtk" = x ; then | |
27037 | echo "$as_me:$LINENO: result: yes" >&5 | |
27038 | echo "${ECHO_T}yes" >&6 | |
27039 | wx_cv_lib_gtk=1.2.3 | |
27040 | else | |
27041 | echo "$as_me:$LINENO: result: no" >&5 | |
27042 | echo "${ECHO_T}no" >&6 | |
27043 | if test "$GTK_CONFIG" = "no" ; then | |
27044 | echo "*** The gtk-config script installed by GTK could not be found" | |
27045 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27046 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27047 | echo "*** full path to gtk-config." | |
27048 | else | |
27049 | if test -f conf.gtktest ; then | |
27050 | : | |
27051 | else | |
27052 | echo "*** Could not run GTK test program, checking why..." | |
27053 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27054 | LIBS="$LIBS $GTK_LIBS" | |
27055 | cat >conftest.$ac_ext <<_ACEOF | |
27056 | /* confdefs.h. */ | |
27057 | _ACEOF | |
27058 | cat confdefs.h >>conftest.$ac_ext | |
27059 | cat >>conftest.$ac_ext <<_ACEOF | |
27060 | /* end confdefs.h. */ | |
27061 | ||
27062 | #include <gtk/gtk.h> | |
27063 | #include <stdio.h> | |
27064 | ||
27065 | int | |
27066 | main () | |
27067 | { | |
27068 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27069 | ; | |
27070 | return 0; | |
27071 | } | |
27072 | _ACEOF | |
27073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27075 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27076 | ac_status=$? |
ac1cb8d3 VS |
27077 | grep -v '^ *+' conftest.er1 >conftest.err |
27078 | rm -f conftest.er1 | |
27079 | cat conftest.err >&5 | |
a848cd7e SC |
27080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27081 | (exit $ac_status); } && | |
3565d135 RR |
27082 | { ac_try='test -z "$ac_c_werror_flag" |
27083 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27085 | (eval $ac_try) 2>&5 | |
27086 | ac_status=$? | |
27087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27088 | (exit $ac_status); }; } && | |
27089 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27091 | (eval $ac_try) 2>&5 | |
27092 | ac_status=$? | |
27093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27094 | (exit $ac_status); }; }; then | |
27095 | echo "*** The test program compiled, but did not run. This usually means" | |
27096 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27097 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27098 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27099 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27100 | echo "*** is required on your system" | |
27101 | echo "***" | |
27102 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27103 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27104 | echo "***" | |
27105 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27106 | echo "*** came with the system with the command" | |
27107 | echo "***" | |
27108 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27109 | else | |
27110 | echo "$as_me: failed program was:" >&5 | |
27111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27112 | ||
27113 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27114 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27115 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27116 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27117 | fi | |
ac1cb8d3 VS |
27118 | rm -f conftest.err conftest.$ac_objext \ |
27119 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27120 | CFLAGS="$ac_save_CFLAGS" |
27121 | LIBS="$ac_save_LIBS" | |
27122 | fi | |
27123 | fi | |
27124 | GTK_CFLAGS="" | |
27125 | GTK_LIBS="" | |
27126 | : | |
27127 | fi | |
27128 | ||
27129 | ||
27130 | rm -f conf.gtktest | |
27131 | ||
f34ca037 | 27132 | fi |
a848cd7e SC |
27133 | fi |
27134 | fi | |
27135 | ||
27136 | if test -z "$wx_cv_lib_gtk"; then | |
27137 | wx_cv_lib_gtk=none | |
27138 | else | |
27139 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 27140 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
27141 | fi |
27142 | ||
27143 | ||
27144 | fi | |
27145 | ||
27146 | ||
27147 | if test "$gtk_version_cached" = 1; then | |
27148 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
27149 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
27150 | fi | |
27151 | ||
27152 | case "$wx_cv_lib_gtk" in | |
27153 | 2.0) WXGTK20=1 | |
27154 | TOOLKIT_VERSION=2 | |
27155 | ;; | |
27156 | 1.2.7) WXGTK127=1 | |
27157 | WXGTK12=1 | |
27158 | ;; | |
27159 | 1.2.3) WXGTK12=1 | |
27160 | ;; | |
27161 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
27162 | The development files for GTK+ were not found. For GTK+ 2, please |
27163 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27164 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27165 | and that the version is 1.2.3 or above. Also check that the | |
27166 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27167 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27168 | " >&5 |
27169 | echo "$as_me: error: | |
f597b41c MW |
27170 | The development files for GTK+ were not found. For GTK+ 2, please |
27171 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27172 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27173 | and that the version is 1.2.3 or above. Also check that the | |
27174 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27175 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27176 | " >&2;} |
27177 | { (exit 1); exit 1; }; } | |
27178 | ;; | |
27179 | esac | |
27180 | ||
27181 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
27182 | save_CFLAGS="$CFLAGS" |
27183 | save_LIBS="$LIBS" | |
c92ad099 | 27184 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 27185 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 27186 | |
d12aef51 VZ |
27187 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
27188 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
27189 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
27190 | /* confdefs.h. */ |
27191 | _ACEOF | |
27192 | cat confdefs.h >>conftest.$ac_ext | |
27193 | cat >>conftest.$ac_ext <<_ACEOF | |
27194 | /* end confdefs.h. */ | |
304205f1 | 27195 | |
d12aef51 | 27196 | #include <gtk/gtk.h> |
304205f1 | 27197 | |
d12aef51 VZ |
27198 | int |
27199 | main () | |
27200 | { | |
304205f1 | 27201 | |
d12aef51 | 27202 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
27203 | |
27204 | ; | |
27205 | return 0; | |
27206 | } | |
27207 | _ACEOF | |
27208 | rm -f conftest.$ac_objext | |
27209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27210 | (eval $ac_compile) 2>conftest.er1 | |
27211 | ac_status=$? | |
27212 | grep -v '^ *+' conftest.er1 >conftest.err | |
27213 | rm -f conftest.er1 | |
27214 | cat conftest.err >&5 | |
27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27216 | (exit $ac_status); } && | |
3565d135 RR |
27217 | { ac_try='test -z "$ac_c_werror_flag" |
27218 | || test ! -s conftest.err' | |
abc736fd MW |
27219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27220 | (eval $ac_try) 2>&5 | |
27221 | ac_status=$? | |
27222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27223 | (exit $ac_status); }; } && | |
27224 | { ac_try='test -s conftest.$ac_objext' | |
27225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27226 | (eval $ac_try) 2>&5 | |
27227 | ac_status=$? | |
27228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27229 | (exit $ac_status); }; }; then | |
27230 | ||
27231 | echo "$as_me:$LINENO: result: no" >&5 | |
27232 | echo "${ECHO_T}no" >&6 | |
27233 | ||
27234 | else | |
27235 | echo "$as_me: failed program was:" >&5 | |
27236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27237 | ||
27238 | ||
27239 | cat >>confdefs.h <<\_ACEOF | |
27240 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
27241 | _ACEOF | |
27242 | ||
27243 | echo "$as_me:$LINENO: result: yes" >&5 | |
27244 | echo "${ECHO_T}yes" >&6 | |
27245 | ||
27246 | fi | |
27247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27248 | ||
9755e73b VS |
27249 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
27250 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
27251 | cat >conftest.$ac_ext <<_ACEOF | |
27252 | /* confdefs.h. */ | |
27253 | _ACEOF | |
27254 | cat confdefs.h >>conftest.$ac_ext | |
27255 | cat >>conftest.$ac_ext <<_ACEOF | |
27256 | /* end confdefs.h. */ | |
27257 | ||
27258 | #include <gtk/gtk.h> | |
27259 | ||
27260 | int | |
27261 | main () | |
27262 | { | |
27263 | ||
27264 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 27265 | Not GTK+ 2.4 |
9755e73b VS |
27266 | #endif |
27267 | ||
27268 | ; | |
27269 | return 0; | |
27270 | } | |
27271 | _ACEOF | |
27272 | rm -f conftest.$ac_objext | |
27273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27274 | (eval $ac_compile) 2>conftest.er1 | |
27275 | ac_status=$? | |
27276 | grep -v '^ *+' conftest.er1 >conftest.err | |
27277 | rm -f conftest.er1 | |
27278 | cat conftest.err >&5 | |
27279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27280 | (exit $ac_status); } && | |
3565d135 RR |
27281 | { ac_try='test -z "$ac_c_werror_flag" |
27282 | || test ! -s conftest.err' | |
9755e73b VS |
27283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27284 | (eval $ac_try) 2>&5 | |
27285 | ac_status=$? | |
27286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27287 | (exit $ac_status); }; } && | |
27288 | { ac_try='test -s conftest.$ac_objext' | |
27289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27290 | (eval $ac_try) 2>&5 | |
27291 | ac_status=$? | |
27292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27293 | (exit $ac_status); }; }; then | |
27294 | ||
27295 | cat >>confdefs.h <<\_ACEOF | |
27296 | #define __WXGTK24__ 1 | |
27297 | _ACEOF | |
27298 | ||
27299 | echo "$as_me:$LINENO: result: yes" >&5 | |
27300 | echo "${ECHO_T}yes" >&6 | |
27301 | ||
27302 | else | |
27303 | echo "$as_me: failed program was:" >&5 | |
27304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27305 | ||
27306 | ||
27307 | echo "$as_me:$LINENO: result: no" >&5 | |
27308 | echo "${ECHO_T}no" >&6 | |
27309 | ||
27310 | fi | |
27311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27312 | ||
304205f1 VS |
27313 | CFLAGS="$save_CFLAGS" |
27314 | LIBS="$save_LIBS" | |
a848cd7e SC |
27315 | else |
27316 | if test "$wxUSE_UNICODE" = "yes"; then | |
27317 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
27318 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
27319 | wxUSE_UNICODE=no | |
27320 | fi | |
27321 | fi | |
27322 | ||
27323 | if test "$USE_DARWIN" != 1; then | |
27324 | ||
27325 | for ac_func in poll | |
27326 | do | |
27327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27328 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27330 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27332 | else | |
27333 | cat >conftest.$ac_ext <<_ACEOF | |
27334 | /* confdefs.h. */ | |
27335 | _ACEOF | |
27336 | cat confdefs.h >>conftest.$ac_ext | |
27337 | cat >>conftest.$ac_ext <<_ACEOF | |
27338 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27339 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27341 | #define $ac_func innocuous_$ac_func | |
27342 | ||
a848cd7e SC |
27343 | /* System header to define __stub macros and hopefully few prototypes, |
27344 | which can conflict with char $ac_func (); below. | |
27345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27346 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27347 | |
a848cd7e SC |
27348 | #ifdef __STDC__ |
27349 | # include <limits.h> | |
27350 | #else | |
27351 | # include <assert.h> | |
27352 | #endif | |
ac1cb8d3 VS |
27353 | |
27354 | #undef $ac_func | |
27355 | ||
a848cd7e SC |
27356 | /* Override any gcc2 internal prototype to avoid an error. */ |
27357 | #ifdef __cplusplus | |
27358 | extern "C" | |
27359 | { | |
27360 | #endif | |
27361 | /* We use char because int might match the return type of a gcc2 | |
27362 | builtin and then its argument prototype would still apply. */ | |
27363 | char $ac_func (); | |
27364 | /* The GNU C library defines this for functions which it implements | |
27365 | to always fail with ENOSYS. Some functions are actually named | |
27366 | something starting with __ and the normal name is an alias. */ | |
27367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27368 | choke me | |
27369 | #else | |
27370 | char (*f) () = $ac_func; | |
27371 | #endif | |
27372 | #ifdef __cplusplus | |
27373 | } | |
27374 | #endif | |
27375 | ||
27376 | int | |
27377 | main () | |
27378 | { | |
27379 | return f != $ac_func; | |
27380 | ; | |
27381 | return 0; | |
27382 | } | |
27383 | _ACEOF | |
27384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27386 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27387 | ac_status=$? |
ac1cb8d3 VS |
27388 | grep -v '^ *+' conftest.er1 >conftest.err |
27389 | rm -f conftest.er1 | |
27390 | cat conftest.err >&5 | |
a848cd7e SC |
27391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27392 | (exit $ac_status); } && | |
3565d135 RR |
27393 | { ac_try='test -z "$ac_c_werror_flag" |
27394 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27396 | (eval $ac_try) 2>&5 | |
27397 | ac_status=$? | |
27398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27399 | (exit $ac_status); }; } && | |
27400 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27402 | (eval $ac_try) 2>&5 | |
27403 | ac_status=$? | |
27404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27405 | (exit $ac_status); }; }; then | |
27406 | eval "$as_ac_var=yes" | |
27407 | else | |
27408 | echo "$as_me: failed program was:" >&5 | |
27409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27410 | ||
27411 | eval "$as_ac_var=no" | |
27412 | fi | |
ac1cb8d3 VS |
27413 | rm -f conftest.err conftest.$ac_objext \ |
27414 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27415 | fi |
27416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27417 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27418 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27419 | cat >>confdefs.h <<_ACEOF | |
27420 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27421 | _ACEOF | |
27422 | ||
27423 | fi | |
27424 | done | |
27425 | ||
27426 | fi | |
27427 | ||
27428 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
27429 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
27430 | ||
27431 | AFMINSTALL=afminstall | |
27432 | TOOLKIT=GTK | |
27433 | GUIDIST=GTK_DIST | |
27434 | ||
27435 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
27436 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
27437 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
27438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27439 | else | |
27440 | ac_check_lib_save_LIBS=$LIBS | |
27441 | LIBS="-lgdk $LIBS" | |
27442 | cat >conftest.$ac_ext <<_ACEOF | |
27443 | /* confdefs.h. */ | |
27444 | _ACEOF | |
27445 | cat confdefs.h >>conftest.$ac_ext | |
27446 | cat >>conftest.$ac_ext <<_ACEOF | |
27447 | /* end confdefs.h. */ | |
27448 | ||
27449 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27450 | #ifdef __cplusplus | |
27451 | extern "C" | |
27452 | #endif | |
27453 | /* We use char because int might match the return type of a gcc2 | |
27454 | builtin and then its argument prototype would still apply. */ | |
27455 | char gdk_im_open (); | |
27456 | int | |
27457 | main () | |
27458 | { | |
27459 | gdk_im_open (); | |
27460 | ; | |
27461 | return 0; | |
27462 | } | |
27463 | _ACEOF | |
27464 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27466 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27467 | ac_status=$? |
ac1cb8d3 VS |
27468 | grep -v '^ *+' conftest.er1 >conftest.err |
27469 | rm -f conftest.er1 | |
27470 | cat conftest.err >&5 | |
a848cd7e SC |
27471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27472 | (exit $ac_status); } && | |
3565d135 RR |
27473 | { ac_try='test -z "$ac_c_werror_flag" |
27474 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27476 | (eval $ac_try) 2>&5 | |
27477 | ac_status=$? | |
27478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27479 | (exit $ac_status); }; } && | |
27480 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27482 | (eval $ac_try) 2>&5 | |
27483 | ac_status=$? | |
27484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27485 | (exit $ac_status); }; }; then | |
27486 | ac_cv_lib_gdk_gdk_im_open=yes | |
27487 | else | |
27488 | echo "$as_me: failed program was:" >&5 | |
27489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27490 | ||
27491 | ac_cv_lib_gdk_gdk_im_open=no | |
27492 | fi | |
ac1cb8d3 VS |
27493 | rm -f conftest.err conftest.$ac_objext \ |
27494 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27495 | LIBS=$ac_check_lib_save_LIBS |
27496 | fi | |
27497 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
27498 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
27499 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
27500 | cat >>confdefs.h <<\_ACEOF | |
27501 | #define HAVE_XIM 1 | |
27502 | _ACEOF | |
27503 | ||
27504 | fi | |
27505 | ||
27506 | ||
27507 | ||
27508 | if test "$wxUSE_GPE" = "yes"; then | |
27509 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
27510 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
27511 | ||
0ad5d837 VZ |
27512 | ac_find_libraries= |
27513 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 27514 | do |
3eca31dc | 27515 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
27516 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
27517 | ac_find_libraries=$ac_dir | |
27518 | break 2 | |
27519 | fi | |
27520 | done | |
27521 | done | |
27522 | ||
27523 | if test "$ac_find_libraries" != "" ; then | |
27524 | ||
0ad5d837 | 27525 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
27526 | ac_path_to_link="" |
27527 | else | |
0ad5d837 VZ |
27528 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
27529 | result=$? | |
27530 | if test $result = 0; then | |
27531 | ac_path_to_link="" | |
27532 | else | |
27533 | ac_path_to_link=" -L$ac_find_libraries" | |
27534 | fi | |
a848cd7e SC |
27535 | fi |
27536 | ||
27537 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
27538 | WXGPE=1 | |
0ad5d837 VZ |
27539 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
27540 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
27541 | else |
27542 | echo "$as_me:$LINENO: result: not found" >&5 | |
27543 | echo "${ECHO_T}not found" >&6 | |
27544 | fi | |
27545 | ||
27546 | fi | |
27547 | fi | |
27548 | ||
27549 | if test "$wxUSE_MGL" = 1; then | |
27550 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
27551 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
27552 | if test "x$MGL_ROOT" = x ; then | |
27553 | echo "$as_me:$LINENO: result: not found" >&5 | |
27554 | echo "${ECHO_T}not found" >&6 | |
27555 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
27556 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
27557 | { (exit 1); exit 1; }; } | |
27558 | else | |
27559 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
27560 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
27561 | fi | |
27562 | ||
27563 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
27564 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
27565 | case "${host}" in | |
27566 | *-*-linux* ) | |
27567 | if test "x$wxUSE_SHARED" = xyes ; then | |
27568 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
27569 | else | |
27570 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
27571 | fi | |
27572 | ;; | |
27573 | *-pc-msdosdjgpp ) | |
27574 | mgl_os_candidates="dos32/dj2" | |
27575 | ;; | |
27576 | *) | |
27577 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
27578 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
27579 | { (exit 1); exit 1; }; } | |
27580 | esac | |
27581 | ||
27582 | mgl_lib_type="" | |
27583 | mgl_os="" | |
27584 | ||
27585 | for mgl_os_i in $mgl_os_candidates ; do | |
27586 | if test "x$mgl_os" = x ; then | |
27587 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
27588 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
27589 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
27590 | mgl_lib_type=debug | |
27591 | mgl_os=$mgl_os_i | |
27592 | fi | |
27593 | fi | |
27594 | if test "x$mgl_lib_type" = x ; then | |
27595 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
27596 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
27597 | mgl_lib_type=release | |
27598 | mgl_os=$mgl_os_i | |
27599 | fi | |
27600 | fi | |
27601 | fi | |
27602 | done | |
27603 | ||
27604 | if test "x$mgl_os" = x ; then | |
27605 | echo "$as_me:$LINENO: result: not found" >&5 | |
27606 | echo "${ECHO_T}not found" >&6 | |
27607 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
27608 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
27609 | { (exit 1); exit 1; }; } | |
27610 | fi | |
27611 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
27612 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
27613 | ||
27614 | wxUSE_UNIVERSAL="yes" | |
27615 | ||
27616 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
27617 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
27618 | ||
27619 | AFMINSTALL=afminstall | |
27620 | TOOLKIT=MGL | |
27621 | GUIDIST=MGL_DIST | |
27622 | fi | |
27623 | ||
27624 | if test "$wxUSE_MICROWIN" = 1; then | |
27625 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
27626 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
27627 | if test "x$MICROWINDOWS" = x ; then | |
27628 | echo "$as_me:$LINENO: result: not found" >&5 | |
27629 | echo "${ECHO_T}not found" >&6 | |
27630 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
27631 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
27632 | { (exit 1); exit 1; }; } | |
27633 | else | |
27634 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
27635 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
27636 | fi | |
27637 | ||
27638 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
27639 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
27640 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
27641 | else | |
27642 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
27643 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
27644 | { (exit 1); exit 1; }; } | |
27645 | fi | |
27646 | ||
27647 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
27648 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
27649 | ||
27650 | wxUSE_UNIVERSAL="yes" | |
27651 | ||
27652 | AFMINSTALL=afminstall | |
27653 | TOOLKIT=MICROWIN | |
27654 | GUIDIST=MICROWIN_DIST | |
27655 | ||
27656 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
27657 | fi | |
27658 | ||
74b84332 | 27659 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
3565d135 | 27660 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
27661 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
27662 | ||
27663 | ||
27664 | # Check whether --with-x or --without-x was given. | |
27665 | if test "${with_x+set}" = set; then | |
27666 | withval="$with_x" | |
27667 | ||
27668 | fi; | |
27669 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
27670 | if test "x$with_x" = xno; then | |
27671 | # The user explicitly disabled X. | |
27672 | have_x=disabled | |
27673 | else | |
27674 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
27675 | # Both variables are already set. | |
27676 | have_x=yes | |
27677 | else | |
27678 | if test "${ac_cv_have_x+set}" = set; then | |
27679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27680 | else | |
27681 | # One or both of the vars are not set, and there is no cached value. | |
27682 | ac_x_includes=no ac_x_libraries=no | |
27683 | rm -fr conftest.dir | |
27684 | if mkdir conftest.dir; then | |
27685 | cd conftest.dir | |
27686 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
27687 | cat >Imakefile <<'_ACEOF' | |
27688 | acfindx: | |
27689 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
27690 | _ACEOF | |
27691 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
27692 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
27693 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
27694 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
27695 | for ac_extension in a so sl; do | |
27696 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
27697 | test -f $ac_im_libdir/libX11.$ac_extension; then |
27698 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
27699 | fi |
27700 | done | |
27701 | # Screen out bogus values from the imake configuration. They are | |
27702 | # bogus both because they are the default anyway, and because | |
27703 | # using them would break gcc on systems where it needs fixed includes. | |
27704 | case $ac_im_incroot in | |
27705 | /usr/include) ;; | |
27706 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
27707 | esac | |
27708 | case $ac_im_usrlibdir in | |
27709 | /usr/lib | /lib) ;; | |
27710 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
27711 | esac | |
27712 | fi | |
27713 | cd .. | |
27714 | rm -fr conftest.dir | |
27715 | fi | |
27716 | ||
27717 | # Standard set of common directories for X headers. | |
27718 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
27719 | ac_x_header_dirs=' | |
27720 | /usr/X11/include | |
27721 | /usr/X11R6/include | |
27722 | /usr/X11R5/include | |
27723 | /usr/X11R4/include | |
27724 | ||
27725 | /usr/include/X11 | |
27726 | /usr/include/X11R6 | |
27727 | /usr/include/X11R5 | |
27728 | /usr/include/X11R4 | |
27729 | ||
27730 | /usr/local/X11/include | |
27731 | /usr/local/X11R6/include | |
27732 | /usr/local/X11R5/include | |
27733 | /usr/local/X11R4/include | |
27734 | ||
27735 | /usr/local/include/X11 | |
27736 | /usr/local/include/X11R6 | |
27737 | /usr/local/include/X11R5 | |
27738 | /usr/local/include/X11R4 | |
27739 | ||
27740 | /usr/X386/include | |
27741 | /usr/x386/include | |
27742 | /usr/XFree86/include/X11 | |
27743 | ||
27744 | /usr/include | |
27745 | /usr/local/include | |
27746 | /usr/unsupported/include | |
27747 | /usr/athena/include | |
27748 | /usr/local/x11r5/include | |
27749 | /usr/lpp/Xamples/include | |
27750 | ||
27751 | /usr/openwin/include | |
27752 | /usr/openwin/share/include' | |
27753 | ||
27754 | if test "$ac_x_includes" = no; then | |
3565d135 | 27755 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
27756 | # First, try using that file with no special directory specified. |
27757 | cat >conftest.$ac_ext <<_ACEOF | |
27758 | /* confdefs.h. */ | |
27759 | _ACEOF | |
27760 | cat confdefs.h >>conftest.$ac_ext | |
27761 | cat >>conftest.$ac_ext <<_ACEOF | |
27762 | /* end confdefs.h. */ | |
3565d135 | 27763 | #include <X11/Intrinsic.h> |
a848cd7e SC |
27764 | _ACEOF |
27765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27767 | ac_status=$? | |
27768 | grep -v '^ *+' conftest.er1 >conftest.err | |
27769 | rm -f conftest.er1 | |
27770 | cat conftest.err >&5 | |
27771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27772 | (exit $ac_status); } >/dev/null; then | |
27773 | if test -s conftest.err; then | |
27774 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27775 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27776 | else |
27777 | ac_cpp_err= | |
27778 | fi | |
27779 | else | |
27780 | ac_cpp_err=yes | |
27781 | fi | |
27782 | if test -z "$ac_cpp_err"; then | |
27783 | # We can compile using X headers with no special include directory. | |
27784 | ac_x_includes= | |
27785 | else | |
27786 | echo "$as_me: failed program was:" >&5 | |
27787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27788 | ||
27789 | for ac_dir in $ac_x_header_dirs; do | |
3565d135 | 27790 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
a848cd7e SC |
27791 | ac_x_includes=$ac_dir |
27792 | break | |
27793 | fi | |
27794 | done | |
27795 | fi | |
27796 | rm -f conftest.err conftest.$ac_ext | |
27797 | fi # $ac_x_includes = no | |
27798 | ||
27799 | if test "$ac_x_libraries" = no; then | |
27800 | # Check for the libraries. | |
27801 | # See if we find them without any special options. | |
27802 | # Don't add to $LIBS permanently. | |
27803 | ac_save_LIBS=$LIBS | |
3565d135 | 27804 | LIBS="-lXt $LIBS" |
a848cd7e SC |
27805 | cat >conftest.$ac_ext <<_ACEOF |
27806 | /* confdefs.h. */ | |
27807 | _ACEOF | |
27808 | cat confdefs.h >>conftest.$ac_ext | |
27809 | cat >>conftest.$ac_ext <<_ACEOF | |
27810 | /* end confdefs.h. */ | |
3565d135 | 27811 | #include <X11/Intrinsic.h> |
a848cd7e SC |
27812 | int |
27813 | main () | |
27814 | { | |
3565d135 | 27815 | XtMalloc (0) |
a848cd7e SC |
27816 | ; |
27817 | return 0; | |
27818 | } | |
27819 | _ACEOF | |
27820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27822 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27823 | ac_status=$? |
ac1cb8d3 VS |
27824 | grep -v '^ *+' conftest.er1 >conftest.err |
27825 | rm -f conftest.er1 | |
27826 | cat conftest.err >&5 | |
a848cd7e SC |
27827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27828 | (exit $ac_status); } && | |
3565d135 RR |
27829 | { ac_try='test -z "$ac_c_werror_flag" |
27830 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27832 | (eval $ac_try) 2>&5 | |
27833 | ac_status=$? | |
27834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27835 | (exit $ac_status); }; } && | |
27836 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27838 | (eval $ac_try) 2>&5 | |
27839 | ac_status=$? | |
27840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27841 | (exit $ac_status); }; }; then | |
27842 | LIBS=$ac_save_LIBS | |
27843 | # We can link X programs with no special library path. | |
27844 | ac_x_libraries= | |
27845 | else | |
27846 | echo "$as_me: failed program was:" >&5 | |
27847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27848 | ||
27849 | LIBS=$ac_save_LIBS | |
27850 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
27851 | do | |
27852 | # Don't even attempt the hair of trying to link an X program! | |
27853 | for ac_extension in a so sl; do | |
3565d135 | 27854 | if test -r $ac_dir/libXt.$ac_extension; then |
a848cd7e SC |
27855 | ac_x_libraries=$ac_dir |
27856 | break 2 | |
27857 | fi | |
27858 | done | |
27859 | done | |
27860 | fi | |
ac1cb8d3 VS |
27861 | rm -f conftest.err conftest.$ac_objext \ |
27862 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27863 | fi # $ac_x_libraries = no |
27864 | ||
27865 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
27866 | # Didn't find X anywhere. Cache the known absence of X. | |
27867 | ac_cv_have_x="have_x=no" | |
27868 | else | |
27869 | # Record where we found X for the cache. | |
27870 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 27871 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
27872 | fi |
27873 | fi | |
27874 | ||
27875 | fi | |
27876 | eval "$ac_cv_have_x" | |
27877 | fi # $with_x != no | |
27878 | ||
27879 | if test "$have_x" != yes; then | |
27880 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
27881 | echo "${ECHO_T}$have_x" >&6 | |
27882 | no_x=yes | |
27883 | else | |
27884 | # If each of the values was on the command line, it overrides each guess. | |
27885 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
27886 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
27887 | # Update the cache value to reflect the command line values. | |
27888 | ac_cv_have_x="have_x=yes \ | |
27889 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3565d135 RR |
27890 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
27891 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
27892 | fi |
27893 | ||
27894 | if test "$no_x" = yes; then | |
27895 | # Not all programs may use this symbol, but it does not hurt to define it. | |
27896 | ||
27897 | cat >>confdefs.h <<\_ACEOF | |
27898 | #define X_DISPLAY_MISSING 1 | |
27899 | _ACEOF | |
27900 | ||
27901 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
27902 | else | |
27903 | if test -n "$x_includes"; then | |
27904 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
27905 | fi | |
27906 | ||
27907 | # It would also be nice to do this for all -L options, not just this one. | |
27908 | if test -n "$x_libraries"; then | |
27909 | X_LIBS="$X_LIBS -L$x_libraries" | |
27910 | # For Solaris; some versions of Sun CC require a space after -R and | |
27911 | # others require no space. Words are not sufficient . . . . | |
27912 | case `(uname -sr) 2>/dev/null` in | |
27913 | "SunOS 5"*) | |
27914 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
27915 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
27916 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
27917 | cat >conftest.$ac_ext <<_ACEOF | |
27918 | /* confdefs.h. */ | |
27919 | _ACEOF | |
27920 | cat confdefs.h >>conftest.$ac_ext | |
27921 | cat >>conftest.$ac_ext <<_ACEOF | |
27922 | /* end confdefs.h. */ | |
27923 | ||
27924 | int | |
27925 | main () | |
27926 | { | |
27927 | ||
27928 | ; | |
27929 | return 0; | |
27930 | } | |
27931 | _ACEOF | |
27932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27934 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27935 | ac_status=$? |
ac1cb8d3 VS |
27936 | grep -v '^ *+' conftest.er1 >conftest.err |
27937 | rm -f conftest.er1 | |
27938 | cat conftest.err >&5 | |
a848cd7e SC |
27939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27940 | (exit $ac_status); } && | |
3565d135 RR |
27941 | { ac_try='test -z "$ac_c_werror_flag" |
27942 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27944 | (eval $ac_try) 2>&5 | |
27945 | ac_status=$? | |
27946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27947 | (exit $ac_status); }; } && | |
27948 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27950 | (eval $ac_try) 2>&5 | |
27951 | ac_status=$? | |
27952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27953 | (exit $ac_status); }; }; then | |
27954 | ac_R_nospace=yes | |
27955 | else | |
27956 | echo "$as_me: failed program was:" >&5 | |
27957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27958 | ||
27959 | ac_R_nospace=no | |
27960 | fi | |
ac1cb8d3 VS |
27961 | rm -f conftest.err conftest.$ac_objext \ |
27962 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27963 | if test $ac_R_nospace = yes; then |
27964 | echo "$as_me:$LINENO: result: no" >&5 | |
27965 | echo "${ECHO_T}no" >&6 | |
27966 | X_LIBS="$X_LIBS -R$x_libraries" | |
27967 | else | |
27968 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
27969 | cat >conftest.$ac_ext <<_ACEOF | |
27970 | /* confdefs.h. */ | |
27971 | _ACEOF | |
27972 | cat confdefs.h >>conftest.$ac_ext | |
27973 | cat >>conftest.$ac_ext <<_ACEOF | |
27974 | /* end confdefs.h. */ | |
27975 | ||
27976 | int | |
27977 | main () | |
27978 | { | |
27979 | ||
27980 | ; | |
27981 | return 0; | |
27982 | } | |
27983 | _ACEOF | |
27984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27986 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27987 | ac_status=$? |
ac1cb8d3 VS |
27988 | grep -v '^ *+' conftest.er1 >conftest.err |
27989 | rm -f conftest.er1 | |
27990 | cat conftest.err >&5 | |
a848cd7e SC |
27991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27992 | (exit $ac_status); } && | |
3565d135 RR |
27993 | { ac_try='test -z "$ac_c_werror_flag" |
27994 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27996 | (eval $ac_try) 2>&5 | |
27997 | ac_status=$? | |
27998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27999 | (exit $ac_status); }; } && | |
28000 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28002 | (eval $ac_try) 2>&5 | |
28003 | ac_status=$? | |
28004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28005 | (exit $ac_status); }; }; then | |
28006 | ac_R_space=yes | |
28007 | else | |
28008 | echo "$as_me: failed program was:" >&5 | |
28009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28010 | ||
28011 | ac_R_space=no | |
28012 | fi | |
ac1cb8d3 VS |
28013 | rm -f conftest.err conftest.$ac_objext \ |
28014 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28015 | if test $ac_R_space = yes; then |
28016 | echo "$as_me:$LINENO: result: yes" >&5 | |
28017 | echo "${ECHO_T}yes" >&6 | |
28018 | X_LIBS="$X_LIBS -R $x_libraries" | |
28019 | else | |
28020 | echo "$as_me:$LINENO: result: neither works" >&5 | |
28021 | echo "${ECHO_T}neither works" >&6 | |
28022 | fi | |
28023 | fi | |
28024 | LIBS=$ac_xsave_LIBS | |
28025 | esac | |
28026 | fi | |
28027 | ||
28028 | # Check for system-dependent libraries X programs must link with. | |
28029 | # Do this before checking for the system-independent R6 libraries | |
28030 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
28031 | ||
28032 | if test "$ISC" = yes; then | |
28033 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
28034 | else | |
28035 | # Martyn Johnson says this is needed for Ultrix, if the X | |
28036 | # libraries were built with DECnet support. And Karl Berry says | |
28037 | # the Alpha needs dnet_stub (dnet does not exist). | |
28038 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
28039 | cat >conftest.$ac_ext <<_ACEOF | |
28040 | /* confdefs.h. */ | |
28041 | _ACEOF | |
28042 | cat confdefs.h >>conftest.$ac_ext | |
28043 | cat >>conftest.$ac_ext <<_ACEOF | |
28044 | /* end confdefs.h. */ | |
28045 | ||
28046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28047 | #ifdef __cplusplus | |
28048 | extern "C" | |
28049 | #endif | |
28050 | /* We use char because int might match the return type of a gcc2 | |
28051 | builtin and then its argument prototype would still apply. */ | |
28052 | char XOpenDisplay (); | |
28053 | int | |
28054 | main () | |
28055 | { | |
28056 | XOpenDisplay (); | |
28057 | ; | |
28058 | return 0; | |
28059 | } | |
28060 | _ACEOF | |
28061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28063 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28064 | ac_status=$? |
ac1cb8d3 VS |
28065 | grep -v '^ *+' conftest.er1 >conftest.err |
28066 | rm -f conftest.er1 | |
28067 | cat conftest.err >&5 | |
a848cd7e SC |
28068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28069 | (exit $ac_status); } && | |
3565d135 RR |
28070 | { ac_try='test -z "$ac_c_werror_flag" |
28071 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28073 | (eval $ac_try) 2>&5 | |
28074 | ac_status=$? | |
28075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28076 | (exit $ac_status); }; } && | |
28077 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28079 | (eval $ac_try) 2>&5 | |
28080 | ac_status=$? | |
28081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28082 | (exit $ac_status); }; }; then | |
28083 | : | |
28084 | else | |
28085 | echo "$as_me: failed program was:" >&5 | |
28086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28087 | ||
28088 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
28089 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
28090 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
28091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28092 | else | |
28093 | ac_check_lib_save_LIBS=$LIBS | |
28094 | LIBS="-ldnet $LIBS" | |
28095 | cat >conftest.$ac_ext <<_ACEOF | |
28096 | /* confdefs.h. */ | |
28097 | _ACEOF | |
28098 | cat confdefs.h >>conftest.$ac_ext | |
28099 | cat >>conftest.$ac_ext <<_ACEOF | |
28100 | /* end confdefs.h. */ | |
28101 | ||
28102 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28103 | #ifdef __cplusplus | |
28104 | extern "C" | |
28105 | #endif | |
28106 | /* We use char because int might match the return type of a gcc2 | |
28107 | builtin and then its argument prototype would still apply. */ | |
28108 | char dnet_ntoa (); | |
28109 | int | |
28110 | main () | |
28111 | { | |
28112 | dnet_ntoa (); | |
28113 | ; | |
28114 | return 0; | |
28115 | } | |
28116 | _ACEOF | |
28117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28119 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28120 | ac_status=$? |
ac1cb8d3 VS |
28121 | grep -v '^ *+' conftest.er1 >conftest.err |
28122 | rm -f conftest.er1 | |
28123 | cat conftest.err >&5 | |
a848cd7e SC |
28124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28125 | (exit $ac_status); } && | |
3565d135 RR |
28126 | { ac_try='test -z "$ac_c_werror_flag" |
28127 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28129 | (eval $ac_try) 2>&5 | |
28130 | ac_status=$? | |
28131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28132 | (exit $ac_status); }; } && | |
28133 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28135 | (eval $ac_try) 2>&5 | |
28136 | ac_status=$? | |
28137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28138 | (exit $ac_status); }; }; then | |
28139 | ac_cv_lib_dnet_dnet_ntoa=yes | |
28140 | else | |
28141 | echo "$as_me: failed program was:" >&5 | |
28142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28143 | ||
28144 | ac_cv_lib_dnet_dnet_ntoa=no | |
28145 | fi | |
ac1cb8d3 VS |
28146 | rm -f conftest.err conftest.$ac_objext \ |
28147 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28148 | LIBS=$ac_check_lib_save_LIBS |
28149 | fi | |
28150 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
28151 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
28152 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
28153 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
28154 | fi | |
28155 | ||
28156 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
28157 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
28158 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
28159 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
28160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28161 | else | |
28162 | ac_check_lib_save_LIBS=$LIBS | |
28163 | LIBS="-ldnet_stub $LIBS" | |
28164 | cat >conftest.$ac_ext <<_ACEOF | |
28165 | /* confdefs.h. */ | |
28166 | _ACEOF | |
28167 | cat confdefs.h >>conftest.$ac_ext | |
28168 | cat >>conftest.$ac_ext <<_ACEOF | |
28169 | /* end confdefs.h. */ | |
28170 | ||
28171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28172 | #ifdef __cplusplus | |
28173 | extern "C" | |
28174 | #endif | |
28175 | /* We use char because int might match the return type of a gcc2 | |
28176 | builtin and then its argument prototype would still apply. */ | |
28177 | char dnet_ntoa (); | |
28178 | int | |
28179 | main () | |
28180 | { | |
28181 | dnet_ntoa (); | |
28182 | ; | |
28183 | return 0; | |
28184 | } | |
28185 | _ACEOF | |
28186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28188 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28189 | ac_status=$? |
ac1cb8d3 VS |
28190 | grep -v '^ *+' conftest.er1 >conftest.err |
28191 | rm -f conftest.er1 | |
28192 | cat conftest.err >&5 | |
a848cd7e SC |
28193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28194 | (exit $ac_status); } && | |
3565d135 RR |
28195 | { ac_try='test -z "$ac_c_werror_flag" |
28196 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28198 | (eval $ac_try) 2>&5 | |
28199 | ac_status=$? | |
28200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28201 | (exit $ac_status); }; } && | |
28202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28204 | (eval $ac_try) 2>&5 | |
28205 | ac_status=$? | |
28206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28207 | (exit $ac_status); }; }; then | |
28208 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
28209 | else | |
28210 | echo "$as_me: failed program was:" >&5 | |
28211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28212 | ||
28213 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
28214 | fi | |
ac1cb8d3 VS |
28215 | rm -f conftest.err conftest.$ac_objext \ |
28216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28217 | LIBS=$ac_check_lib_save_LIBS |
28218 | fi | |
28219 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
28220 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
28221 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
28222 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
28223 | fi | |
28224 | ||
28225 | fi | |
28226 | fi | |
ac1cb8d3 VS |
28227 | rm -f conftest.err conftest.$ac_objext \ |
28228 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28229 | LIBS="$ac_xsave_LIBS" |
28230 | ||
28231 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
28232 | # to get the SysV transport functions. | |
28233 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
28234 | # needs -lnsl. | |
28235 | # The nsl library prevents programs from opening the X display | |
28236 | # on Irix 5.2, according to T.E. Dickey. | |
28237 | # The functions gethostbyname, getservbyname, and inet_addr are | |
28238 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
28239 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
28240 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
28241 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
28242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28243 | else | |
28244 | cat >conftest.$ac_ext <<_ACEOF | |
28245 | /* confdefs.h. */ | |
28246 | _ACEOF | |
28247 | cat confdefs.h >>conftest.$ac_ext | |
28248 | cat >>conftest.$ac_ext <<_ACEOF | |
28249 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28250 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
28251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28252 | #define gethostbyname innocuous_gethostbyname | |
28253 | ||
a848cd7e SC |
28254 | /* System header to define __stub macros and hopefully few prototypes, |
28255 | which can conflict with char gethostbyname (); below. | |
28256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28257 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28258 | |
a848cd7e SC |
28259 | #ifdef __STDC__ |
28260 | # include <limits.h> | |
28261 | #else | |
28262 | # include <assert.h> | |
28263 | #endif | |
ac1cb8d3 VS |
28264 | |
28265 | #undef gethostbyname | |
28266 | ||
a848cd7e SC |
28267 | /* Override any gcc2 internal prototype to avoid an error. */ |
28268 | #ifdef __cplusplus | |
28269 | extern "C" | |
28270 | { | |
28271 | #endif | |
28272 | /* We use char because int might match the return type of a gcc2 | |
28273 | builtin and then its argument prototype would still apply. */ | |
28274 | char gethostbyname (); | |
28275 | /* The GNU C library defines this for functions which it implements | |
28276 | to always fail with ENOSYS. Some functions are actually named | |
28277 | something starting with __ and the normal name is an alias. */ | |
28278 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
28279 | choke me | |
28280 | #else | |
28281 | char (*f) () = gethostbyname; | |
28282 | #endif | |
28283 | #ifdef __cplusplus | |
28284 | } | |
28285 | #endif | |
28286 | ||
28287 | int | |
28288 | main () | |
28289 | { | |
28290 | return f != gethostbyname; | |
28291 | ; | |
28292 | return 0; | |
28293 | } | |
28294 | _ACEOF | |
28295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28297 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28298 | ac_status=$? |
ac1cb8d3 VS |
28299 | grep -v '^ *+' conftest.er1 >conftest.err |
28300 | rm -f conftest.er1 | |
28301 | cat conftest.err >&5 | |
a848cd7e SC |
28302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28303 | (exit $ac_status); } && | |
3565d135 RR |
28304 | { ac_try='test -z "$ac_c_werror_flag" |
28305 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28307 | (eval $ac_try) 2>&5 | |
28308 | ac_status=$? | |
28309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28310 | (exit $ac_status); }; } && | |
28311 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28313 | (eval $ac_try) 2>&5 | |
28314 | ac_status=$? | |
28315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28316 | (exit $ac_status); }; }; then | |
28317 | ac_cv_func_gethostbyname=yes | |
28318 | else | |
28319 | echo "$as_me: failed program was:" >&5 | |
28320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28321 | ||
28322 | ac_cv_func_gethostbyname=no | |
28323 | fi | |
ac1cb8d3 VS |
28324 | rm -f conftest.err conftest.$ac_objext \ |
28325 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28326 | fi |
28327 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
28328 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
28329 | ||
28330 | if test $ac_cv_func_gethostbyname = no; then | |
28331 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
28332 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
28333 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
28334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28335 | else | |
28336 | ac_check_lib_save_LIBS=$LIBS | |
28337 | LIBS="-lnsl $LIBS" | |
28338 | cat >conftest.$ac_ext <<_ACEOF | |
28339 | /* confdefs.h. */ | |
28340 | _ACEOF | |
28341 | cat confdefs.h >>conftest.$ac_ext | |
28342 | cat >>conftest.$ac_ext <<_ACEOF | |
28343 | /* end confdefs.h. */ | |
28344 | ||
28345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28346 | #ifdef __cplusplus | |
28347 | extern "C" | |
28348 | #endif | |
28349 | /* We use char because int might match the return type of a gcc2 | |
28350 | builtin and then its argument prototype would still apply. */ | |
28351 | char gethostbyname (); | |
28352 | int | |
28353 | main () | |
28354 | { | |
28355 | gethostbyname (); | |
28356 | ; | |
28357 | return 0; | |
28358 | } | |
28359 | _ACEOF | |
28360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
28362 | (eval $ac_link) 2>conftest.er1 |
28363 | ac_status=$? | |
28364 | grep -v '^ *+' conftest.er1 >conftest.err | |
28365 | rm -f conftest.er1 | |
28366 | cat conftest.err >&5 | |
28367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28368 | (exit $ac_status); } && | |
3565d135 RR |
28369 | { ac_try='test -z "$ac_c_werror_flag" |
28370 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28372 | (eval $ac_try) 2>&5 | |
28373 | ac_status=$? | |
28374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28375 | (exit $ac_status); }; } && | |
28376 | { ac_try='test -s conftest$ac_exeext' | |
28377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28378 | (eval $ac_try) 2>&5 | |
28379 | ac_status=$? | |
28380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28381 | (exit $ac_status); }; }; then | |
28382 | ac_cv_lib_nsl_gethostbyname=yes | |
28383 | else | |
28384 | echo "$as_me: failed program was:" >&5 | |
28385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28386 | ||
28387 | ac_cv_lib_nsl_gethostbyname=no | |
28388 | fi | |
28389 | rm -f conftest.err conftest.$ac_objext \ | |
28390 | conftest$ac_exeext conftest.$ac_ext | |
28391 | LIBS=$ac_check_lib_save_LIBS | |
28392 | fi | |
28393 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
28394 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
28395 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
28396 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28397 | fi | |
28398 | ||
28399 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28400 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28401 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28402 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28404 | else | |
28405 | ac_check_lib_save_LIBS=$LIBS | |
28406 | LIBS="-lbsd $LIBS" | |
28407 | cat >conftest.$ac_ext <<_ACEOF | |
28408 | /* confdefs.h. */ | |
28409 | _ACEOF | |
28410 | cat confdefs.h >>conftest.$ac_ext | |
28411 | cat >>conftest.$ac_ext <<_ACEOF | |
28412 | /* end confdefs.h. */ | |
28413 | ||
28414 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28415 | #ifdef __cplusplus | |
28416 | extern "C" | |
28417 | #endif | |
28418 | /* We use char because int might match the return type of a gcc2 | |
28419 | builtin and then its argument prototype would still apply. */ | |
28420 | char gethostbyname (); | |
28421 | int | |
28422 | main () | |
28423 | { | |
28424 | gethostbyname (); | |
28425 | ; | |
28426 | return 0; | |
28427 | } | |
28428 | _ACEOF | |
28429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28431 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28432 | ac_status=$? |
ac1cb8d3 VS |
28433 | grep -v '^ *+' conftest.er1 >conftest.err |
28434 | rm -f conftest.er1 | |
28435 | cat conftest.err >&5 | |
a848cd7e SC |
28436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28437 | (exit $ac_status); } && | |
3565d135 RR |
28438 | { ac_try='test -z "$ac_c_werror_flag" |
28439 | || test ! -s conftest.err' | |
a848cd7e SC |
28440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28441 | (eval $ac_try) 2>&5 | |
28442 | ac_status=$? | |
28443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
28444 | (exit $ac_status); }; } && |
28445 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28447 | (eval $ac_try) 2>&5 | |
28448 | ac_status=$? | |
28449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28450 | (exit $ac_status); }; }; then | |
28451 | ac_cv_lib_bsd_gethostbyname=yes | |
28452 | else | |
28453 | echo "$as_me: failed program was:" >&5 | |
28454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28455 | ||
28456 | ac_cv_lib_bsd_gethostbyname=no | |
28457 | fi | |
ac1cb8d3 VS |
28458 | rm -f conftest.err conftest.$ac_objext \ |
28459 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28460 | LIBS=$ac_check_lib_save_LIBS |
28461 | fi | |
28462 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
28463 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
28464 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
28465 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
28466 | fi | |
28467 | ||
28468 | fi | |
28469 | fi | |
28470 | ||
28471 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
28472 | # socket/setsockopt and other routines are undefined under SCO ODT | |
28473 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
28474 | # on later versions), says Simon Leinen: it contains gethostby* | |
28475 | # variants that don't use the name server (or something). -lsocket | |
28476 | # must be given before -lnsl if both are needed. We assume that | |
28477 | # if connect needs -lnsl, so does gethostbyname. | |
28478 | echo "$as_me:$LINENO: checking for connect" >&5 | |
28479 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
28480 | if test "${ac_cv_func_connect+set}" = set; then | |
28481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28482 | else | |
28483 | cat >conftest.$ac_ext <<_ACEOF | |
28484 | /* confdefs.h. */ | |
28485 | _ACEOF | |
28486 | cat confdefs.h >>conftest.$ac_ext | |
28487 | cat >>conftest.$ac_ext <<_ACEOF | |
28488 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28489 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
28490 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28491 | #define connect innocuous_connect | |
28492 | ||
a848cd7e SC |
28493 | /* System header to define __stub macros and hopefully few prototypes, |
28494 | which can conflict with char connect (); below. | |
28495 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28496 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28497 | |
a848cd7e SC |
28498 | #ifdef __STDC__ |
28499 | # include <limits.h> | |
28500 | #else | |
28501 | # include <assert.h> | |
28502 | #endif | |
ac1cb8d3 VS |
28503 | |
28504 | #undef connect | |
28505 | ||
a848cd7e SC |
28506 | /* Override any gcc2 internal prototype to avoid an error. */ |
28507 | #ifdef __cplusplus | |
28508 | extern "C" | |
28509 | { | |
28510 | #endif | |
28511 | /* We use char because int might match the return type of a gcc2 | |
28512 | builtin and then its argument prototype would still apply. */ | |
28513 | char connect (); | |
28514 | /* The GNU C library defines this for functions which it implements | |
28515 | to always fail with ENOSYS. Some functions are actually named | |
28516 | something starting with __ and the normal name is an alias. */ | |
28517 | #if defined (__stub_connect) || defined (__stub___connect) | |
28518 | choke me | |
28519 | #else | |
28520 | char (*f) () = connect; | |
28521 | #endif | |
28522 | #ifdef __cplusplus | |
28523 | } | |
28524 | #endif | |
28525 | ||
28526 | int | |
28527 | main () | |
28528 | { | |
28529 | return f != connect; | |
28530 | ; | |
28531 | return 0; | |
28532 | } | |
28533 | _ACEOF | |
28534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28536 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28537 | ac_status=$? |
ac1cb8d3 VS |
28538 | grep -v '^ *+' conftest.er1 >conftest.err |
28539 | rm -f conftest.er1 | |
28540 | cat conftest.err >&5 | |
a848cd7e SC |
28541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28542 | (exit $ac_status); } && | |
3565d135 RR |
28543 | { ac_try='test -z "$ac_c_werror_flag" |
28544 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28546 | (eval $ac_try) 2>&5 | |
28547 | ac_status=$? | |
28548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28549 | (exit $ac_status); }; } && | |
28550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28552 | (eval $ac_try) 2>&5 | |
28553 | ac_status=$? | |
28554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28555 | (exit $ac_status); }; }; then | |
28556 | ac_cv_func_connect=yes | |
28557 | else | |
28558 | echo "$as_me: failed program was:" >&5 | |
28559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28560 | ||
28561 | ac_cv_func_connect=no | |
28562 | fi | |
ac1cb8d3 VS |
28563 | rm -f conftest.err conftest.$ac_objext \ |
28564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28565 | fi |
28566 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
28567 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
28568 | ||
28569 | if test $ac_cv_func_connect = no; then | |
28570 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
28571 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
28572 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
28573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28574 | else | |
28575 | ac_check_lib_save_LIBS=$LIBS | |
28576 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
28577 | cat >conftest.$ac_ext <<_ACEOF | |
28578 | /* confdefs.h. */ | |
28579 | _ACEOF | |
28580 | cat confdefs.h >>conftest.$ac_ext | |
28581 | cat >>conftest.$ac_ext <<_ACEOF | |
28582 | /* end confdefs.h. */ | |
28583 | ||
28584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28585 | #ifdef __cplusplus | |
28586 | extern "C" | |
28587 | #endif | |
28588 | /* We use char because int might match the return type of a gcc2 | |
28589 | builtin and then its argument prototype would still apply. */ | |
28590 | char connect (); | |
28591 | int | |
28592 | main () | |
28593 | { | |
28594 | connect (); | |
28595 | ; | |
28596 | return 0; | |
28597 | } | |
28598 | _ACEOF | |
28599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28601 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28602 | ac_status=$? |
ac1cb8d3 VS |
28603 | grep -v '^ *+' conftest.er1 >conftest.err |
28604 | rm -f conftest.er1 | |
28605 | cat conftest.err >&5 | |
a848cd7e SC |
28606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28607 | (exit $ac_status); } && | |
3565d135 RR |
28608 | { ac_try='test -z "$ac_c_werror_flag" |
28609 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28611 | (eval $ac_try) 2>&5 | |
28612 | ac_status=$? | |
28613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28614 | (exit $ac_status); }; } && | |
28615 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28617 | (eval $ac_try) 2>&5 | |
28618 | ac_status=$? | |
28619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28620 | (exit $ac_status); }; }; then | |
28621 | ac_cv_lib_socket_connect=yes | |
28622 | else | |
28623 | echo "$as_me: failed program was:" >&5 | |
28624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28625 | ||
28626 | ac_cv_lib_socket_connect=no | |
28627 | fi | |
ac1cb8d3 VS |
28628 | rm -f conftest.err conftest.$ac_objext \ |
28629 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28630 | LIBS=$ac_check_lib_save_LIBS |
28631 | fi | |
28632 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
28633 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
28634 | if test $ac_cv_lib_socket_connect = yes; then | |
28635 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
28636 | fi | |
28637 | ||
28638 | fi | |
28639 | ||
28640 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
28641 | echo "$as_me:$LINENO: checking for remove" >&5 | |
28642 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
28643 | if test "${ac_cv_func_remove+set}" = set; then | |
28644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28645 | else | |
28646 | cat >conftest.$ac_ext <<_ACEOF | |
28647 | /* confdefs.h. */ | |
28648 | _ACEOF | |
28649 | cat confdefs.h >>conftest.$ac_ext | |
28650 | cat >>conftest.$ac_ext <<_ACEOF | |
28651 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28652 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
28653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28654 | #define remove innocuous_remove | |
28655 | ||
a848cd7e SC |
28656 | /* System header to define __stub macros and hopefully few prototypes, |
28657 | which can conflict with char remove (); below. | |
28658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28659 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28660 | |
a848cd7e SC |
28661 | #ifdef __STDC__ |
28662 | # include <limits.h> | |
28663 | #else | |
28664 | # include <assert.h> | |
28665 | #endif | |
ac1cb8d3 VS |
28666 | |
28667 | #undef remove | |
28668 | ||
a848cd7e SC |
28669 | /* Override any gcc2 internal prototype to avoid an error. */ |
28670 | #ifdef __cplusplus | |
28671 | extern "C" | |
28672 | { | |
28673 | #endif | |
28674 | /* We use char because int might match the return type of a gcc2 | |
28675 | builtin and then its argument prototype would still apply. */ | |
28676 | char remove (); | |
28677 | /* The GNU C library defines this for functions which it implements | |
28678 | to always fail with ENOSYS. Some functions are actually named | |
28679 | something starting with __ and the normal name is an alias. */ | |
28680 | #if defined (__stub_remove) || defined (__stub___remove) | |
28681 | choke me | |
28682 | #else | |
28683 | char (*f) () = remove; | |
28684 | #endif | |
28685 | #ifdef __cplusplus | |
28686 | } | |
28687 | #endif | |
28688 | ||
28689 | int | |
28690 | main () | |
28691 | { | |
28692 | return f != remove; | |
28693 | ; | |
28694 | return 0; | |
28695 | } | |
28696 | _ACEOF | |
28697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28699 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28700 | ac_status=$? |
ac1cb8d3 VS |
28701 | grep -v '^ *+' conftest.er1 >conftest.err |
28702 | rm -f conftest.er1 | |
28703 | cat conftest.err >&5 | |
a848cd7e SC |
28704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28705 | (exit $ac_status); } && | |
3565d135 RR |
28706 | { ac_try='test -z "$ac_c_werror_flag" |
28707 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28709 | (eval $ac_try) 2>&5 | |
28710 | ac_status=$? | |
28711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28712 | (exit $ac_status); }; } && | |
28713 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28715 | (eval $ac_try) 2>&5 | |
28716 | ac_status=$? | |
28717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28718 | (exit $ac_status); }; }; then | |
28719 | ac_cv_func_remove=yes | |
28720 | else | |
28721 | echo "$as_me: failed program was:" >&5 | |
28722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28723 | ||
28724 | ac_cv_func_remove=no | |
28725 | fi | |
ac1cb8d3 VS |
28726 | rm -f conftest.err conftest.$ac_objext \ |
28727 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28728 | fi |
28729 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
28730 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
28731 | ||
28732 | if test $ac_cv_func_remove = no; then | |
28733 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
28734 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
28735 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
28736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28737 | else | |
28738 | ac_check_lib_save_LIBS=$LIBS | |
28739 | LIBS="-lposix $LIBS" | |
28740 | cat >conftest.$ac_ext <<_ACEOF | |
28741 | /* confdefs.h. */ | |
28742 | _ACEOF | |
28743 | cat confdefs.h >>conftest.$ac_ext | |
28744 | cat >>conftest.$ac_ext <<_ACEOF | |
28745 | /* end confdefs.h. */ | |
28746 | ||
28747 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28748 | #ifdef __cplusplus | |
28749 | extern "C" | |
28750 | #endif | |
28751 | /* We use char because int might match the return type of a gcc2 | |
28752 | builtin and then its argument prototype would still apply. */ | |
28753 | char remove (); | |
28754 | int | |
28755 | main () | |
28756 | { | |
28757 | remove (); | |
28758 | ; | |
28759 | return 0; | |
28760 | } | |
28761 | _ACEOF | |
28762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28764 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28765 | ac_status=$? |
ac1cb8d3 VS |
28766 | grep -v '^ *+' conftest.er1 >conftest.err |
28767 | rm -f conftest.er1 | |
28768 | cat conftest.err >&5 | |
a848cd7e SC |
28769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28770 | (exit $ac_status); } && | |
3565d135 RR |
28771 | { ac_try='test -z "$ac_c_werror_flag" |
28772 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28774 | (eval $ac_try) 2>&5 | |
28775 | ac_status=$? | |
28776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28777 | (exit $ac_status); }; } && | |
28778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28780 | (eval $ac_try) 2>&5 | |
28781 | ac_status=$? | |
28782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28783 | (exit $ac_status); }; }; then | |
28784 | ac_cv_lib_posix_remove=yes | |
28785 | else | |
28786 | echo "$as_me: failed program was:" >&5 | |
28787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28788 | ||
28789 | ac_cv_lib_posix_remove=no | |
28790 | fi | |
ac1cb8d3 VS |
28791 | rm -f conftest.err conftest.$ac_objext \ |
28792 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28793 | LIBS=$ac_check_lib_save_LIBS |
28794 | fi | |
28795 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
28796 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
28797 | if test $ac_cv_lib_posix_remove = yes; then | |
28798 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
28799 | fi | |
28800 | ||
28801 | fi | |
28802 | ||
28803 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
28804 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
28805 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
28806 | if test "${ac_cv_func_shmat+set}" = set; then | |
28807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28808 | else | |
28809 | cat >conftest.$ac_ext <<_ACEOF | |
28810 | /* confdefs.h. */ | |
28811 | _ACEOF | |
28812 | cat confdefs.h >>conftest.$ac_ext | |
28813 | cat >>conftest.$ac_ext <<_ACEOF | |
28814 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28815 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
28816 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28817 | #define shmat innocuous_shmat | |
28818 | ||
a848cd7e SC |
28819 | /* System header to define __stub macros and hopefully few prototypes, |
28820 | which can conflict with char shmat (); below. | |
28821 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28822 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28823 | |
a848cd7e SC |
28824 | #ifdef __STDC__ |
28825 | # include <limits.h> | |
28826 | #else | |
28827 | # include <assert.h> | |
28828 | #endif | |
ac1cb8d3 VS |
28829 | |
28830 | #undef shmat | |
28831 | ||
a848cd7e SC |
28832 | /* Override any gcc2 internal prototype to avoid an error. */ |
28833 | #ifdef __cplusplus | |
28834 | extern "C" | |
28835 | { | |
28836 | #endif | |
28837 | /* We use char because int might match the return type of a gcc2 | |
28838 | builtin and then its argument prototype would still apply. */ | |
28839 | char shmat (); | |
28840 | /* The GNU C library defines this for functions which it implements | |
28841 | to always fail with ENOSYS. Some functions are actually named | |
28842 | something starting with __ and the normal name is an alias. */ | |
28843 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
28844 | choke me | |
28845 | #else | |
28846 | char (*f) () = shmat; | |
28847 | #endif | |
28848 | #ifdef __cplusplus | |
28849 | } | |
28850 | #endif | |
28851 | ||
28852 | int | |
28853 | main () | |
28854 | { | |
28855 | return f != shmat; | |
28856 | ; | |
28857 | return 0; | |
28858 | } | |
28859 | _ACEOF | |
28860 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28862 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28863 | ac_status=$? |
ac1cb8d3 VS |
28864 | grep -v '^ *+' conftest.er1 >conftest.err |
28865 | rm -f conftest.er1 | |
28866 | cat conftest.err >&5 | |
a848cd7e SC |
28867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28868 | (exit $ac_status); } && | |
3565d135 RR |
28869 | { ac_try='test -z "$ac_c_werror_flag" |
28870 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28872 | (eval $ac_try) 2>&5 | |
28873 | ac_status=$? | |
28874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28875 | (exit $ac_status); }; } && | |
28876 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28878 | (eval $ac_try) 2>&5 | |
28879 | ac_status=$? | |
28880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28881 | (exit $ac_status); }; }; then | |
28882 | ac_cv_func_shmat=yes | |
28883 | else | |
28884 | echo "$as_me: failed program was:" >&5 | |
28885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28886 | ||
28887 | ac_cv_func_shmat=no | |
28888 | fi | |
ac1cb8d3 VS |
28889 | rm -f conftest.err conftest.$ac_objext \ |
28890 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28891 | fi |
28892 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
28893 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
28894 | ||
28895 | if test $ac_cv_func_shmat = no; then | |
28896 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
28897 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
28898 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
28899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28900 | else | |
28901 | ac_check_lib_save_LIBS=$LIBS | |
28902 | LIBS="-lipc $LIBS" | |
28903 | cat >conftest.$ac_ext <<_ACEOF | |
28904 | /* confdefs.h. */ | |
28905 | _ACEOF | |
28906 | cat confdefs.h >>conftest.$ac_ext | |
28907 | cat >>conftest.$ac_ext <<_ACEOF | |
28908 | /* end confdefs.h. */ | |
28909 | ||
28910 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28911 | #ifdef __cplusplus | |
28912 | extern "C" | |
28913 | #endif | |
28914 | /* We use char because int might match the return type of a gcc2 | |
28915 | builtin and then its argument prototype would still apply. */ | |
28916 | char shmat (); | |
28917 | int | |
28918 | main () | |
28919 | { | |
28920 | shmat (); | |
28921 | ; | |
28922 | return 0; | |
28923 | } | |
28924 | _ACEOF | |
28925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28927 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28928 | ac_status=$? |
ac1cb8d3 VS |
28929 | grep -v '^ *+' conftest.er1 >conftest.err |
28930 | rm -f conftest.er1 | |
28931 | cat conftest.err >&5 | |
a848cd7e SC |
28932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28933 | (exit $ac_status); } && | |
3565d135 RR |
28934 | { ac_try='test -z "$ac_c_werror_flag" |
28935 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28937 | (eval $ac_try) 2>&5 | |
28938 | ac_status=$? | |
28939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28940 | (exit $ac_status); }; } && | |
28941 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28943 | (eval $ac_try) 2>&5 | |
28944 | ac_status=$? | |
28945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28946 | (exit $ac_status); }; }; then | |
28947 | ac_cv_lib_ipc_shmat=yes | |
28948 | else | |
28949 | echo "$as_me: failed program was:" >&5 | |
28950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28951 | ||
28952 | ac_cv_lib_ipc_shmat=no | |
28953 | fi | |
ac1cb8d3 VS |
28954 | rm -f conftest.err conftest.$ac_objext \ |
28955 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28956 | LIBS=$ac_check_lib_save_LIBS |
28957 | fi | |
28958 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
28959 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
28960 | if test $ac_cv_lib_ipc_shmat = yes; then | |
28961 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
28962 | fi | |
28963 | ||
28964 | fi | |
28965 | fi | |
28966 | ||
28967 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
28968 | ac_save_LDFLAGS=$LDFLAGS | |
28969 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
28970 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
28971 | # check for ICE first), but we must link in the order -lSM -lICE or | |
28972 | # we get undefined symbols. So assume we have SM if we have ICE. | |
28973 | # These have to be linked with before -lX11, unlike the other | |
28974 | # libraries we check for below, so use a different variable. | |
28975 | # John Interrante, Karl Berry | |
28976 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
28977 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
28978 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
28979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28980 | else | |
28981 | ac_check_lib_save_LIBS=$LIBS | |
28982 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
28983 | cat >conftest.$ac_ext <<_ACEOF | |
28984 | /* confdefs.h. */ | |
28985 | _ACEOF | |
28986 | cat confdefs.h >>conftest.$ac_ext | |
28987 | cat >>conftest.$ac_ext <<_ACEOF | |
28988 | /* end confdefs.h. */ | |
28989 | ||
28990 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28991 | #ifdef __cplusplus | |
28992 | extern "C" | |
28993 | #endif | |
28994 | /* We use char because int might match the return type of a gcc2 | |
28995 | builtin and then its argument prototype would still apply. */ | |
28996 | char IceConnectionNumber (); | |
28997 | int | |
28998 | main () | |
28999 | { | |
29000 | IceConnectionNumber (); | |
29001 | ; | |
29002 | return 0; | |
29003 | } | |
29004 | _ACEOF | |
29005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29007 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29008 | ac_status=$? |
ac1cb8d3 VS |
29009 | grep -v '^ *+' conftest.er1 >conftest.err |
29010 | rm -f conftest.er1 | |
29011 | cat conftest.err >&5 | |
a848cd7e SC |
29012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29013 | (exit $ac_status); } && | |
3565d135 RR |
29014 | { ac_try='test -z "$ac_c_werror_flag" |
29015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29017 | (eval $ac_try) 2>&5 | |
29018 | ac_status=$? | |
29019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29020 | (exit $ac_status); }; } && | |
29021 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29023 | (eval $ac_try) 2>&5 | |
29024 | ac_status=$? | |
29025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29026 | (exit $ac_status); }; }; then | |
29027 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
29028 | else | |
29029 | echo "$as_me: failed program was:" >&5 | |
29030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29031 | ||
29032 | ac_cv_lib_ICE_IceConnectionNumber=no | |
29033 | fi | |
ac1cb8d3 VS |
29034 | rm -f conftest.err conftest.$ac_objext \ |
29035 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29036 | LIBS=$ac_check_lib_save_LIBS |
29037 | fi | |
29038 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
29039 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
29040 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
29041 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
29042 | fi | |
29043 | ||
29044 | LDFLAGS=$ac_save_LDFLAGS | |
29045 | ||
29046 | fi | |
29047 | ||
29048 | ||
29049 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
29050 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
29051 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
29052 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
29053 | fi |
29054 | ||
74b84332 VS |
29055 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
29056 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
29057 | AFMINSTALL=afminstall |
29058 | COMPILED_X_PROGRAM=0 | |
29059 | ||
74b84332 VS |
29060 | fi |
29061 | ||
29062 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
29063 | if test "$wxUSE_NANOX" = "yes"; then |
29064 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
29065 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
29066 | if test "x$MICROWIN" = x ; then | |
29067 | echo "$as_me:$LINENO: result: not found" >&5 | |
29068 | echo "${ECHO_T}not found" >&6 | |
29069 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
29070 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
29071 | { (exit 1); exit 1; }; } | |
29072 | else | |
29073 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
29074 | echo "${ECHO_T}$MICROWIN" >&6 | |
29075 | cat >>confdefs.h <<\_ACEOF | |
29076 | #define wxUSE_NANOX 1 | |
29077 | _ACEOF | |
29078 | ||
29079 | fi | |
29080 | fi | |
29081 | ||
29082 | if test "$wxUSE_UNICODE" = "yes"; then | |
29083 | ||
29084 | succeeded=no | |
29085 | ||
29086 | if test -z "$PKG_CONFIG"; then | |
29087 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29088 | set dummy pkg-config; ac_word=$2 | |
29089 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29091 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29093 | else | |
29094 | case $PKG_CONFIG in | |
29095 | [\\/]* | ?:[\\/]*) | |
29096 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29097 | ;; | |
29098 | *) | |
29099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29100 | for as_dir in $PATH | |
29101 | do | |
29102 | IFS=$as_save_IFS | |
29103 | test -z "$as_dir" && as_dir=. | |
29104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29106 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29108 | break 2 | |
29109 | fi | |
29110 | done | |
29111 | done | |
29112 | ||
29113 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29114 | ;; | |
29115 | esac | |
29116 | fi | |
29117 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29118 | ||
29119 | if test -n "$PKG_CONFIG"; then | |
29120 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29121 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29122 | else | |
29123 | echo "$as_me:$LINENO: result: no" >&5 | |
29124 | echo "${ECHO_T}no" >&6 | |
29125 | fi | |
29126 | ||
29127 | fi | |
29128 | ||
29129 | if test "$PKG_CONFIG" = "no" ; then | |
29130 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29131 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29132 | echo "*** to the full path to pkg-config." | |
29133 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29134 | else | |
29135 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29136 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29137 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
29138 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
29139 | ||
29140 | if $PKG_CONFIG --exists "pangox" ; then | |
29141 | echo "$as_me:$LINENO: result: yes" >&5 | |
29142 | echo "${ECHO_T}yes" >&6 | |
29143 | succeeded=yes | |
29144 | ||
29145 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
29146 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
29147 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
29148 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
29149 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
29150 | ||
29151 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
29152 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
29153 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
29154 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
29155 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
29156 | else | |
29157 | PANGOX_CFLAGS="" | |
29158 | PANGOX_LIBS="" | |
29159 | ## If we have a custom action on failure, don't print errors, but | |
29160 | ## do set a variable so people can do so. | |
29161 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
29162 | ||
29163 | fi | |
29164 | ||
29165 | ||
29166 | ||
29167 | else | |
29168 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29169 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29170 | fi | |
29171 | fi | |
29172 | ||
29173 | if test $succeeded = yes; then | |
29174 | ||
c92ad099 | 29175 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29176 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
29177 | ||
29178 | else | |
29179 | ||
29180 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
29181 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
29182 | { (exit 1); exit 1; }; } | |
29183 | ||
29184 | ||
29185 | fi | |
29186 | ||
29187 | ||
29188 | succeeded=no | |
29189 | ||
29190 | if test -z "$PKG_CONFIG"; then | |
29191 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29192 | set dummy pkg-config; ac_word=$2 | |
29193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29195 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29197 | else | |
29198 | case $PKG_CONFIG in | |
29199 | [\\/]* | ?:[\\/]*) | |
29200 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29201 | ;; | |
29202 | *) | |
29203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29204 | for as_dir in $PATH | |
29205 | do | |
29206 | IFS=$as_save_IFS | |
29207 | test -z "$as_dir" && as_dir=. | |
29208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29210 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29212 | break 2 | |
29213 | fi | |
29214 | done | |
29215 | done | |
29216 | ||
29217 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29218 | ;; | |
29219 | esac | |
29220 | fi | |
29221 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29222 | ||
29223 | if test -n "$PKG_CONFIG"; then | |
29224 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29225 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29226 | else | |
29227 | echo "$as_me:$LINENO: result: no" >&5 | |
29228 | echo "${ECHO_T}no" >&6 | |
29229 | fi | |
29230 | ||
29231 | fi | |
29232 | ||
29233 | if test "$PKG_CONFIG" = "no" ; then | |
29234 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29235 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29236 | echo "*** to the full path to pkg-config." | |
29237 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29238 | else | |
29239 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29240 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29241 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
29242 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
29243 | ||
29244 | if $PKG_CONFIG --exists "pangoft2" ; then | |
29245 | echo "$as_me:$LINENO: result: yes" >&5 | |
29246 | echo "${ECHO_T}yes" >&6 | |
29247 | succeeded=yes | |
29248 | ||
29249 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
29250 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
29251 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
29252 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
29253 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
29254 | ||
29255 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
29256 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
29257 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
29258 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
29259 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
29260 | else | |
29261 | PANGOFT2_CFLAGS="" | |
29262 | PANGOFT2_LIBS="" | |
29263 | ## If we have a custom action on failure, don't print errors, but | |
29264 | ## do set a variable so people can do so. | |
29265 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
29266 | ||
29267 | fi | |
29268 | ||
29269 | ||
29270 | ||
29271 | else | |
29272 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29273 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29274 | fi | |
29275 | fi | |
29276 | ||
29277 | if test $succeeded = yes; then | |
29278 | ||
c92ad099 | 29279 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29280 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
29281 | ||
29282 | else | |
29283 | ||
29284 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
29285 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
29286 | wxUSE_PRINTING_ARCHITECTURE="no" | |
29287 | ||
29288 | ||
29289 | fi | |
29290 | ||
29291 | ||
29292 | succeeded=no | |
29293 | ||
29294 | if test -z "$PKG_CONFIG"; then | |
29295 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29296 | set dummy pkg-config; ac_word=$2 | |
29297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29299 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29301 | else | |
29302 | case $PKG_CONFIG in | |
29303 | [\\/]* | ?:[\\/]*) | |
29304 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29305 | ;; | |
29306 | *) | |
29307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29308 | for as_dir in $PATH | |
29309 | do | |
29310 | IFS=$as_save_IFS | |
29311 | test -z "$as_dir" && as_dir=. | |
29312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29313 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29314 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29316 | break 2 | |
29317 | fi | |
29318 | done | |
29319 | done | |
29320 | ||
29321 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29322 | ;; | |
29323 | esac | |
29324 | fi | |
29325 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29326 | ||
29327 | if test -n "$PKG_CONFIG"; then | |
29328 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29329 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29330 | else | |
29331 | echo "$as_me:$LINENO: result: no" >&5 | |
29332 | echo "${ECHO_T}no" >&6 | |
29333 | fi | |
29334 | ||
29335 | fi | |
29336 | ||
29337 | if test "$PKG_CONFIG" = "no" ; then | |
29338 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29339 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29340 | echo "*** to the full path to pkg-config." | |
29341 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29342 | else | |
29343 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29344 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29345 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
29346 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
29347 | ||
29348 | if $PKG_CONFIG --exists "pangoxft" ; then | |
29349 | echo "$as_me:$LINENO: result: yes" >&5 | |
29350 | echo "${ECHO_T}yes" >&6 | |
29351 | succeeded=yes | |
29352 | ||
29353 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
29354 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
29355 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
29356 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
29357 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
29358 | ||
29359 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
29360 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
29361 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
29362 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
29363 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
29364 | else | |
29365 | PANGOXFT_CFLAGS="" | |
29366 | PANGOXFT_LIBS="" | |
29367 | ## If we have a custom action on failure, don't print errors, but | |
29368 | ## do set a variable so people can do so. | |
29369 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
29370 | ||
29371 | fi | |
29372 | ||
29373 | ||
29374 | ||
29375 | else | |
29376 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29377 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29378 | fi | |
29379 | fi | |
29380 | ||
29381 | if test $succeeded = yes; then | |
29382 | ||
4ae1af05 MB |
29383 | cat >>confdefs.h <<\_ACEOF |
29384 | #define HAVE_PANGO_XFT 1 | |
29385 | _ACEOF | |
29386 | ||
c92ad099 | 29387 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29388 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
29389 | ||
29390 | else | |
29391 | ||
29392 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
29393 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
29394 | ||
29395 | ||
29396 | fi | |
29397 | ||
304205f1 VS |
29398 | save_CFLAGS="$CFLAGS" |
29399 | save_LIBS="$LIBS" | |
c92ad099 | 29400 | CFLAGS="$PANGOX_CFLAGS $CFLAGS" |
304205f1 VS |
29401 | LIBS="$LIBS $PANGOX_LIBS" |
29402 | ||
29403 | for ac_func in pango_font_family_is_monospace | |
29404 | do | |
29405 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29406 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29407 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29408 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29410 | else | |
29411 | cat >conftest.$ac_ext <<_ACEOF | |
29412 | /* confdefs.h. */ | |
29413 | _ACEOF | |
29414 | cat confdefs.h >>conftest.$ac_ext | |
29415 | cat >>conftest.$ac_ext <<_ACEOF | |
29416 | /* end confdefs.h. */ | |
29417 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
29418 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29419 | #define $ac_func innocuous_$ac_func | |
29420 | ||
29421 | /* System header to define __stub macros and hopefully few prototypes, | |
29422 | which can conflict with char $ac_func (); below. | |
29423 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29424 | <limits.h> exists even on freestanding compilers. */ | |
29425 | ||
29426 | #ifdef __STDC__ | |
29427 | # include <limits.h> | |
29428 | #else | |
29429 | # include <assert.h> | |
29430 | #endif | |
29431 | ||
29432 | #undef $ac_func | |
29433 | ||
29434 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29435 | #ifdef __cplusplus | |
29436 | extern "C" | |
29437 | { | |
29438 | #endif | |
29439 | /* We use char because int might match the return type of a gcc2 | |
29440 | builtin and then its argument prototype would still apply. */ | |
29441 | char $ac_func (); | |
29442 | /* The GNU C library defines this for functions which it implements | |
29443 | to always fail with ENOSYS. Some functions are actually named | |
29444 | something starting with __ and the normal name is an alias. */ | |
29445 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29446 | choke me | |
29447 | #else | |
29448 | char (*f) () = $ac_func; | |
29449 | #endif | |
29450 | #ifdef __cplusplus | |
29451 | } | |
29452 | #endif | |
29453 | ||
29454 | int | |
29455 | main () | |
29456 | { | |
29457 | return f != $ac_func; | |
29458 | ; | |
29459 | return 0; | |
29460 | } | |
29461 | _ACEOF | |
29462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29464 | (eval $ac_link) 2>conftest.er1 | |
29465 | ac_status=$? | |
29466 | grep -v '^ *+' conftest.er1 >conftest.err | |
29467 | rm -f conftest.er1 | |
29468 | cat conftest.err >&5 | |
29469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29470 | (exit $ac_status); } && | |
3565d135 RR |
29471 | { ac_try='test -z "$ac_c_werror_flag" |
29472 | || test ! -s conftest.err' | |
304205f1 VS |
29473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29474 | (eval $ac_try) 2>&5 | |
29475 | ac_status=$? | |
29476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29477 | (exit $ac_status); }; } && | |
29478 | { ac_try='test -s conftest$ac_exeext' | |
29479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29480 | (eval $ac_try) 2>&5 | |
29481 | ac_status=$? | |
29482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29483 | (exit $ac_status); }; }; then | |
29484 | eval "$as_ac_var=yes" | |
29485 | else | |
29486 | echo "$as_me: failed program was:" >&5 | |
29487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29488 | ||
29489 | eval "$as_ac_var=no" | |
29490 | fi | |
29491 | rm -f conftest.err conftest.$ac_objext \ | |
29492 | conftest$ac_exeext conftest.$ac_ext | |
29493 | fi | |
29494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29495 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29496 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29497 | cat >>confdefs.h <<_ACEOF | |
29498 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29499 | _ACEOF | |
29500 | ||
29501 | fi | |
29502 | done | |
29503 | ||
29504 | CFLAGS="$save_CFLAGS" | |
29505 | LIBS="$save_LIBS" | |
a848cd7e SC |
29506 | fi |
29507 | ||
29508 | wxUSE_UNIVERSAL="yes" | |
29509 | ||
29510 | if test "$wxUSE_NANOX" = "yes"; then | |
29511 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
29512 | 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" | |
29513 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
29514 | else | |
29515 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
29516 | fi | |
29517 | ||
a848cd7e SC |
29518 | TOOLKIT=X11 |
29519 | GUIDIST=X11_DIST | |
29520 | fi | |
29521 | ||
29522 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
29523 | if test "$wxUSE_UNICODE" = "yes"; then |
29524 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
29525 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
29526 | { (exit 1); exit 1; }; } | |
29527 | fi | |
29528 | ||
74b84332 VS |
29529 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
29530 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 29531 | |
74b84332 VS |
29532 | ac_find_includes= |
29533 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29534 | do | |
29535 | if test -f "$ac_dir/Xm/Xm.h"; then | |
29536 | ac_find_includes=$ac_dir | |
29537 | break | |
29538 | fi | |
29539 | done | |
a848cd7e | 29540 | |
74b84332 VS |
29541 | if test "$ac_find_includes" != "" ; then |
29542 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29543 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29544 | ||
29545 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29546 | ac_path_to_include="" | |
29547 | else | |
29548 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
29549 | result=$? | |
29550 | if test $result = 0; then | |
29551 | ac_path_to_include="" | |
29552 | else | |
29553 | ac_path_to_include=" -I$ac_find_includes" | |
29554 | fi | |
a848cd7e SC |
29555 | fi |
29556 | ||
74b84332 VS |
29557 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
29558 | else | |
e051b34e | 29559 | save_CFLAGS=$CFLAGS |
c92ad099 | 29560 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
e051b34e | 29561 | |
74b84332 | 29562 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29563 | /* confdefs.h. */ |
29564 | _ACEOF | |
29565 | cat confdefs.h >>conftest.$ac_ext | |
29566 | cat >>conftest.$ac_ext <<_ACEOF | |
29567 | /* end confdefs.h. */ | |
29568 | ||
74b84332 VS |
29569 | #include <Xm/Xm.h> |
29570 | ||
a848cd7e SC |
29571 | int |
29572 | main () | |
29573 | { | |
29574 | ||
74b84332 VS |
29575 | int version; |
29576 | version = xmUseVersion; | |
29577 | ||
a848cd7e SC |
29578 | ; |
29579 | return 0; | |
29580 | } | |
29581 | _ACEOF | |
74b84332 VS |
29582 | rm -f conftest.$ac_objext |
29583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29584 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 29585 | ac_status=$? |
ac1cb8d3 VS |
29586 | grep -v '^ *+' conftest.er1 >conftest.err |
29587 | rm -f conftest.er1 | |
29588 | cat conftest.err >&5 | |
a848cd7e SC |
29589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29590 | (exit $ac_status); } && | |
3565d135 RR |
29591 | { ac_try='test -z "$ac_c_werror_flag" |
29592 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29594 | (eval $ac_try) 2>&5 | |
29595 | ac_status=$? | |
29596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29597 | (exit $ac_status); }; } && | |
74b84332 | 29598 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29600 | (eval $ac_try) 2>&5 | |
29601 | ac_status=$? | |
29602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29603 | (exit $ac_status); }; }; then | |
74b84332 VS |
29604 | |
29605 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
29606 | echo "${ECHO_T}found in default search path" >&6 | |
29607 | COMPILED_X_PROGRAM=1 | |
29608 | ||
a848cd7e SC |
29609 | else |
29610 | echo "$as_me: failed program was:" >&5 | |
29611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29612 | ||
a848cd7e | 29613 | |
74b84332 VS |
29614 | echo "$as_me:$LINENO: result: no" >&5 |
29615 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
29616 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
29617 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 29618 | { (exit 1); exit 1; }; } |
a848cd7e | 29619 | |
a848cd7e | 29620 | |
a848cd7e | 29621 | fi |
74b84332 | 29622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
29623 | |
29624 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
29625 | fi |
29626 | ||
0ad5d837 VZ |
29627 | |
29628 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
29629 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
29630 | ||
0ad5d837 VZ |
29631 | ac_find_libraries= |
29632 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 29633 | do |
3eca31dc | 29634 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
29635 | if test -f "$ac_dir/libXm.$ac_extension"; then |
29636 | ac_find_libraries=$ac_dir | |
29637 | break 2 | |
a848cd7e | 29638 | fi |
74b84332 VS |
29639 | done |
29640 | done | |
a848cd7e | 29641 | |
0ad5d837 VZ |
29642 | |
29643 | if test "x$ac_find_libraries" != "x" ; then | |
29644 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
29645 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 29646 | |
74b84332 | 29647 | |
0ad5d837 | 29648 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 29649 | ac_path_to_link="" |
a848cd7e | 29650 | else |
0ad5d837 VZ |
29651 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29652 | result=$? | |
29653 | if test $result = 0; then | |
29654 | ac_path_to_link="" | |
29655 | else | |
29656 | ac_path_to_link=" -L$ac_find_libraries" | |
29657 | fi | |
74b84332 VS |
29658 | fi |
29659 | ||
0ad5d837 VZ |
29660 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
29661 | else | |
29662 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29663 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
6f9cf1e6 MW |
29664 | save_LIBS="$LIBS" |
29665 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 29666 | |
0ad5d837 | 29667 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29668 | /* confdefs.h. */ |
29669 | _ACEOF | |
29670 | cat confdefs.h >>conftest.$ac_ext | |
29671 | cat >>conftest.$ac_ext <<_ACEOF | |
29672 | /* end confdefs.h. */ | |
29673 | ||
0ad5d837 | 29674 | #include <Xm/Xm.h> |
74b84332 | 29675 | |
a848cd7e SC |
29676 | int |
29677 | main () | |
29678 | { | |
74b84332 | 29679 | |
0ad5d837 VZ |
29680 | int version; |
29681 | version = xmUseVersion; | |
74b84332 | 29682 | |
a848cd7e SC |
29683 | ; |
29684 | return 0; | |
29685 | } | |
29686 | _ACEOF | |
0ad5d837 VZ |
29687 | rm -f conftest.$ac_objext conftest$ac_exeext |
29688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29689 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29690 | ac_status=$? |
ac1cb8d3 VS |
29691 | grep -v '^ *+' conftest.er1 >conftest.err |
29692 | rm -f conftest.er1 | |
29693 | cat conftest.err >&5 | |
a848cd7e SC |
29694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29695 | (exit $ac_status); } && | |
3565d135 RR |
29696 | { ac_try='test -z "$ac_c_werror_flag" |
29697 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29699 | (eval $ac_try) 2>&5 | |
29700 | ac_status=$? | |
29701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29702 | (exit $ac_status); }; } && | |
0ad5d837 | 29703 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29705 | (eval $ac_try) 2>&5 | |
29706 | ac_status=$? | |
29707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29708 | (exit $ac_status); }; }; then | |
74b84332 | 29709 | |
0ad5d837 | 29710 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 29711 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 29712 | COMPILED_X_PROGRAM=1 |
74b84332 | 29713 | |
a848cd7e SC |
29714 | else |
29715 | echo "$as_me: failed program was:" >&5 | |
29716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29717 | ||
74b84332 | 29718 | |
6f9cf1e6 | 29719 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 29720 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 29721 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
29722 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
29723 | { (exit 1); exit 1; }; } | |
29724 | ||
29725 | ||
29726 | fi | |
0ad5d837 VZ |
29727 | rm -f conftest.err conftest.$ac_objext \ |
29728 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 29729 | |
0ad5d837 | 29730 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 29731 | LIBS="$save_LIBS" |
74b84332 VS |
29732 | fi |
29733 | ||
29734 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
29735 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
29736 | libp_link="" | |
29737 | libsm_ice_link="" | |
29738 | libs_found=0 | |
29739 | for libp in "" " -lXp"; do | |
29740 | if test "$libs_found" = "0"; then | |
29741 | for libsm_ice in "" " -lSM -lICE"; do | |
29742 | if test "$libs_found" = "0"; then | |
29743 | save_LIBS="$LIBS" | |
29744 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
29745 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29746 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
74b84332 VS |
29747 | |
29748 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29749 | /* confdefs.h. */ |
29750 | _ACEOF | |
29751 | cat confdefs.h >>conftest.$ac_ext | |
29752 | cat >>conftest.$ac_ext <<_ACEOF | |
29753 | /* end confdefs.h. */ | |
29754 | ||
74b84332 VS |
29755 | #include <Xm/Xm.h> |
29756 | #include <Xm/List.h> | |
29757 | ||
a848cd7e SC |
29758 | int |
29759 | main () | |
29760 | { | |
74b84332 VS |
29761 | |
29762 | XmString string = NULL; | |
29763 | Widget w = NULL; | |
29764 | int position = 0; | |
29765 | XmListAddItem(w, string, position); | |
29766 | ||
a848cd7e SC |
29767 | ; |
29768 | return 0; | |
29769 | } | |
29770 | _ACEOF | |
29771 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29773 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29774 | ac_status=$? |
ac1cb8d3 VS |
29775 | grep -v '^ *+' conftest.er1 >conftest.err |
29776 | rm -f conftest.er1 | |
29777 | cat conftest.err >&5 | |
a848cd7e SC |
29778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29779 | (exit $ac_status); } && | |
3565d135 RR |
29780 | { ac_try='test -z "$ac_c_werror_flag" |
29781 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29783 | (eval $ac_try) 2>&5 | |
29784 | ac_status=$? | |
29785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29786 | (exit $ac_status); }; } && | |
29787 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29789 | (eval $ac_try) 2>&5 | |
29790 | ac_status=$? | |
29791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29792 | (exit $ac_status); }; }; then | |
29793 | ||
29794 | libp_link="$libp" | |
29795 | libsm_ice_link="$libsm_ice" | |
29796 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
29797 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
29798 | libs_found=1 | |
29799 | ||
29800 | else | |
29801 | echo "$as_me: failed program was:" >&5 | |
29802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29803 | ||
29804 | ||
29805 | ||
29806 | fi | |
ac1cb8d3 VS |
29807 | rm -f conftest.err conftest.$ac_objext \ |
29808 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29809 | |
29810 | LIBS="$save_LIBS" | |
29811 | CFLAGS=$save_CFLAGS | |
29812 | fi | |
29813 | done | |
29814 | fi | |
29815 | done | |
29816 | ||
29817 | if test "$libs_found" = "0"; then | |
29818 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
29819 | echo "${ECHO_T}can't find the right libraries" >&6 | |
29820 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
29821 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
29822 | { (exit 1); exit 1; }; } | |
29823 | fi | |
29824 | ||
62fa8b3a MW |
29825 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
29826 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
29827 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
29828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29829 | else | |
29830 | ac_check_lib_save_LIBS=$LIBS | |
29831 | LIBS="-lSgm $LIBS" | |
29832 | cat >conftest.$ac_ext <<_ACEOF | |
29833 | /* confdefs.h. */ | |
29834 | _ACEOF | |
29835 | cat confdefs.h >>conftest.$ac_ext | |
29836 | cat >>conftest.$ac_ext <<_ACEOF | |
29837 | /* end confdefs.h. */ | |
29838 | ||
29839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29840 | #ifdef __cplusplus | |
29841 | extern "C" | |
29842 | #endif | |
29843 | /* We use char because int might match the return type of a gcc2 | |
29844 | builtin and then its argument prototype would still apply. */ | |
29845 | char SgCreateList (); | |
29846 | int | |
29847 | main () | |
29848 | { | |
29849 | SgCreateList (); | |
29850 | ; | |
29851 | return 0; | |
29852 | } | |
29853 | _ACEOF | |
29854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29856 | (eval $ac_link) 2>conftest.er1 | |
29857 | ac_status=$? | |
29858 | grep -v '^ *+' conftest.er1 >conftest.err | |
29859 | rm -f conftest.er1 | |
29860 | cat conftest.err >&5 | |
29861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29862 | (exit $ac_status); } && | |
3565d135 RR |
29863 | { ac_try='test -z "$ac_c_werror_flag" |
29864 | || test ! -s conftest.err' | |
62fa8b3a MW |
29865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29866 | (eval $ac_try) 2>&5 | |
29867 | ac_status=$? | |
29868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29869 | (exit $ac_status); }; } && | |
29870 | { ac_try='test -s conftest$ac_exeext' | |
29871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29872 | (eval $ac_try) 2>&5 | |
29873 | ac_status=$? | |
29874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29875 | (exit $ac_status); }; }; then | |
29876 | ac_cv_lib_Sgm_SgCreateList=yes | |
29877 | else | |
29878 | echo "$as_me: failed program was:" >&5 | |
29879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29880 | ||
29881 | ac_cv_lib_Sgm_SgCreateList=no | |
29882 | fi | |
29883 | rm -f conftest.err conftest.$ac_objext \ | |
29884 | conftest$ac_exeext conftest.$ac_ext | |
29885 | LIBS=$ac_check_lib_save_LIBS | |
29886 | fi | |
29887 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
29888 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
29889 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
29890 | libsgm_link=" -lSgm" | |
29891 | fi | |
29892 | ||
29893 | ||
a848cd7e | 29894 | save_CFLAGS=$CFLAGS |
c92ad099 | 29895 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
0ad5d837 | 29896 | |
a848cd7e SC |
29897 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
29898 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
29899 | if test "${wx_cv_lib_motif2+set}" = set; then |
29900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29901 | else | |
29902 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29903 | /* confdefs.h. */ |
29904 | _ACEOF | |
29905 | cat confdefs.h >>conftest.$ac_ext | |
29906 | cat >>conftest.$ac_ext <<_ACEOF | |
29907 | /* end confdefs.h. */ | |
29908 | ||
0ad5d837 | 29909 | #include <Xm/Xm.h> |
a848cd7e SC |
29910 | |
29911 | int | |
29912 | main () | |
29913 | { | |
29914 | ||
0ad5d837 VZ |
29915 | #if XmVersion < 2000 |
29916 | Not Motif 2 | |
29917 | #endif | |
a848cd7e SC |
29918 | |
29919 | ; | |
29920 | return 0; | |
29921 | } | |
29922 | _ACEOF | |
29923 | rm -f conftest.$ac_objext | |
29924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29925 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29926 | ac_status=$? |
ac1cb8d3 VS |
29927 | grep -v '^ *+' conftest.er1 >conftest.err |
29928 | rm -f conftest.er1 | |
29929 | cat conftest.err >&5 | |
a848cd7e SC |
29930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29931 | (exit $ac_status); } && | |
3565d135 RR |
29932 | { ac_try='test -z "$ac_c_werror_flag" |
29933 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29935 | (eval $ac_try) 2>&5 | |
29936 | ac_status=$? | |
29937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29938 | (exit $ac_status); }; } && | |
29939 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29941 | (eval $ac_try) 2>&5 | |
29942 | ac_status=$? | |
29943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29944 | (exit $ac_status); }; }; then | |
0ad5d837 | 29945 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
29946 | else |
29947 | echo "$as_me: failed program was:" >&5 | |
29948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29949 | ||
0ad5d837 VZ |
29950 | wx_cv_lib_motif2="no" |
29951 | fi | |
29952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29953 | fi | |
29954 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
29955 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
29956 | if test "$wx_cv_lib_motif2" = "yes"; then | |
29957 | cat >>confdefs.h <<\_ACEOF | |
29958 | #define __WXMOTIF20__ 1 | |
29959 | _ACEOF | |
a848cd7e | 29960 | |
0ad5d837 VZ |
29961 | else |
29962 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29963 | #define __WXMOTIF20__ 0 |
29964 | _ACEOF | |
29965 | ||
0ad5d837 | 29966 | fi |
2113bc77 MW |
29967 | |
29968 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
29969 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
29970 | if test "${wx_cv_lib_lesstif+set}" = set; then |
29971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29972 | else | |
29973 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
29974 | /* confdefs.h. */ |
29975 | _ACEOF | |
29976 | cat confdefs.h >>conftest.$ac_ext | |
29977 | cat >>conftest.$ac_ext <<_ACEOF | |
29978 | /* end confdefs.h. */ | |
29979 | ||
0ad5d837 | 29980 | #include <Xm/Xm.h> |
2113bc77 MW |
29981 | |
29982 | int | |
29983 | main () | |
29984 | { | |
29985 | ||
0ad5d837 VZ |
29986 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
29987 | Not Lesstif | |
29988 | #endif | |
2113bc77 MW |
29989 | |
29990 | ; | |
29991 | return 0; | |
29992 | } | |
29993 | _ACEOF | |
29994 | rm -f conftest.$ac_objext | |
29995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29996 | (eval $ac_compile) 2>conftest.er1 | |
29997 | ac_status=$? | |
29998 | grep -v '^ *+' conftest.er1 >conftest.err | |
29999 | rm -f conftest.er1 | |
30000 | cat conftest.err >&5 | |
30001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30002 | (exit $ac_status); } && | |
3565d135 RR |
30003 | { ac_try='test -z "$ac_c_werror_flag" |
30004 | || test ! -s conftest.err' | |
2113bc77 MW |
30005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30006 | (eval $ac_try) 2>&5 | |
30007 | ac_status=$? | |
30008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30009 | (exit $ac_status); }; } && | |
30010 | { ac_try='test -s conftest.$ac_objext' | |
30011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30012 | (eval $ac_try) 2>&5 | |
30013 | ac_status=$? | |
30014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30015 | (exit $ac_status); }; }; then | |
0ad5d837 | 30016 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
30017 | else |
30018 | echo "$as_me: failed program was:" >&5 | |
30019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30020 | ||
0ad5d837 VZ |
30021 | wx_cv_lib_lesstif="no" |
30022 | fi | |
30023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 30024 | |
0ad5d837 VZ |
30025 | fi |
30026 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
30027 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
30028 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
30029 | cat >>confdefs.h <<\_ACEOF | |
30030 | #define __WXLESSTIF__ 1 | |
30031 | _ACEOF | |
30032 | ||
30033 | else | |
30034 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
30035 | #define __WXLESSTIF__ 0 |
30036 | _ACEOF | |
30037 | ||
0ad5d837 | 30038 | fi |
2113bc77 | 30039 | |
a848cd7e SC |
30040 | CFLAGS=$save_CFLAGS |
30041 | ||
62fa8b3a | 30042 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
30043 | TOOLKIT=MOTIF |
30044 | GUIDIST=MOTIF_DIST | |
30045 | fi | |
30046 | ||
74b84332 | 30047 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
30048 | if test "$wxUSE_LIBXPM" = "sys"; then |
30049 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
30050 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
30051 | ||
0ad5d837 VZ |
30052 | ac_find_libraries= |
30053 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30054 | do |
3eca31dc | 30055 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30056 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
30057 | ac_find_libraries=$ac_dir | |
30058 | break 2 | |
30059 | fi | |
30060 | done | |
30061 | done | |
30062 | ||
30063 | if test "$ac_find_libraries" != "" ; then | |
30064 | ||
0ad5d837 | 30065 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30066 | ac_path_to_link="" |
30067 | else | |
0ad5d837 VZ |
30068 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30069 | result=$? | |
30070 | if test $result = 0; then | |
30071 | ac_path_to_link="" | |
30072 | else | |
30073 | ac_path_to_link=" -L$ac_find_libraries" | |
30074 | fi | |
a848cd7e SC |
30075 | fi |
30076 | ||
30077 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
30078 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
30079 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
30080 | |
30081 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
30082 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
30083 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
30084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30085 | else | |
30086 | ||
30087 | save_CFLAGS=$CFLAGS | |
c92ad099 | 30088 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
a848cd7e SC |
30089 | |
30090 | cat >conftest.$ac_ext <<_ACEOF | |
30091 | /* confdefs.h. */ | |
30092 | _ACEOF | |
30093 | cat confdefs.h >>conftest.$ac_ext | |
30094 | cat >>conftest.$ac_ext <<_ACEOF | |
30095 | /* end confdefs.h. */ | |
30096 | ||
30097 | #include <X11/xpm.h> | |
30098 | ||
30099 | int | |
30100 | main () | |
30101 | { | |
30102 | ||
30103 | int version; | |
30104 | version = XpmLibraryVersion(); | |
30105 | ||
30106 | ; | |
30107 | return 0; | |
30108 | } | |
30109 | _ACEOF | |
30110 | rm -f conftest.$ac_objext | |
30111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30113 | ac_status=$? |
ac1cb8d3 VS |
30114 | grep -v '^ *+' conftest.er1 >conftest.err |
30115 | rm -f conftest.er1 | |
30116 | cat conftest.err >&5 | |
a848cd7e SC |
30117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30118 | (exit $ac_status); } && | |
3565d135 RR |
30119 | { ac_try='test -z "$ac_c_werror_flag" |
30120 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30122 | (eval $ac_try) 2>&5 | |
30123 | ac_status=$? | |
30124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30125 | (exit $ac_status); }; } && | |
30126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30128 | (eval $ac_try) 2>&5 | |
30129 | ac_status=$? | |
30130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30131 | (exit $ac_status); }; }; then | |
30132 | wx_cv_x11_xpm_h=yes | |
30133 | else | |
30134 | echo "$as_me: failed program was:" >&5 | |
30135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30136 | ||
30137 | wx_cv_x11_xpm_h=no | |
30138 | ||
30139 | fi | |
ac1cb8d3 | 30140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30141 | |
30142 | CFLAGS=$save_CFLAGS | |
30143 | ||
30144 | ||
30145 | fi | |
30146 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
30147 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
30148 | ||
30149 | if test $wx_cv_x11_xpm_h = "yes"; then | |
30150 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
30151 | cat >>confdefs.h <<\_ACEOF | |
30152 | #define wxHAVE_LIB_XPM 1 | |
30153 | _ACEOF | |
30154 | ||
30155 | else | |
30156 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
30157 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
30158 | fi | |
30159 | fi | |
30160 | ||
30161 | fi | |
30162 | ||
30163 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
30164 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
30165 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
30166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30167 | else | |
30168 | ac_check_lib_save_LIBS=$LIBS | |
30169 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
30170 | cat >conftest.$ac_ext <<_ACEOF | |
30171 | /* confdefs.h. */ | |
30172 | _ACEOF | |
30173 | cat confdefs.h >>conftest.$ac_ext | |
30174 | cat >>conftest.$ac_ext <<_ACEOF | |
30175 | /* end confdefs.h. */ | |
30176 | ||
30177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30178 | #ifdef __cplusplus | |
30179 | extern "C" | |
30180 | #endif | |
30181 | /* We use char because int might match the return type of a gcc2 | |
30182 | builtin and then its argument prototype would still apply. */ | |
30183 | char XShapeQueryExtension (); | |
30184 | int | |
30185 | main () | |
30186 | { | |
30187 | XShapeQueryExtension (); | |
30188 | ; | |
30189 | return 0; | |
30190 | } | |
30191 | _ACEOF | |
30192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30194 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30195 | ac_status=$? |
ac1cb8d3 VS |
30196 | grep -v '^ *+' conftest.er1 >conftest.err |
30197 | rm -f conftest.er1 | |
30198 | cat conftest.err >&5 | |
a848cd7e SC |
30199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30200 | (exit $ac_status); } && | |
3565d135 RR |
30201 | { ac_try='test -z "$ac_c_werror_flag" |
30202 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30204 | (eval $ac_try) 2>&5 | |
30205 | ac_status=$? | |
30206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30207 | (exit $ac_status); }; } && | |
30208 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30210 | (eval $ac_try) 2>&5 | |
30211 | ac_status=$? | |
30212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30213 | (exit $ac_status); }; }; then | |
30214 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
30215 | else | |
30216 | echo "$as_me: failed program was:" >&5 | |
30217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30218 | ||
30219 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
30220 | fi | |
ac1cb8d3 VS |
30221 | rm -f conftest.err conftest.$ac_objext \ |
30222 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30223 | LIBS=$ac_check_lib_save_LIBS |
30224 | fi | |
30225 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
30226 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
30227 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
30228 | ||
30229 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
30230 | wxHAVE_XEXT_LIB=1 | |
30231 | ||
30232 | fi | |
30233 | ||
30234 | ||
30235 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
30236 | save_CFLAGS="$CFLAGS" | |
c92ad099 | 30237 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
a848cd7e SC |
30238 | |
30239 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
30240 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
30241 | cat >conftest.$ac_ext <<_ACEOF | |
30242 | /* confdefs.h. */ | |
30243 | _ACEOF | |
30244 | cat confdefs.h >>conftest.$ac_ext | |
30245 | cat >>conftest.$ac_ext <<_ACEOF | |
30246 | /* end confdefs.h. */ | |
30247 | ||
30248 | #include <X11/Xlib.h> | |
30249 | #include <X11/extensions/shape.h> | |
30250 | ||
30251 | int | |
30252 | main () | |
30253 | { | |
30254 | ||
30255 | int dummy1, dummy2; | |
30256 | XShapeQueryExtension((Display*)NULL, | |
30257 | (int*)NULL, (int*)NULL); | |
30258 | ||
30259 | ; | |
30260 | return 0; | |
30261 | } | |
30262 | _ACEOF | |
30263 | rm -f conftest.$ac_objext | |
30264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30265 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30266 | ac_status=$? |
ac1cb8d3 VS |
30267 | grep -v '^ *+' conftest.er1 >conftest.err |
30268 | rm -f conftest.er1 | |
30269 | cat conftest.err >&5 | |
a848cd7e SC |
30270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30271 | (exit $ac_status); } && | |
3565d135 RR |
30272 | { ac_try='test -z "$ac_c_werror_flag" |
30273 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30275 | (eval $ac_try) 2>&5 | |
30276 | ac_status=$? | |
30277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30278 | (exit $ac_status); }; } && | |
30279 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30281 | (eval $ac_try) 2>&5 | |
30282 | ac_status=$? | |
30283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30284 | (exit $ac_status); }; }; then | |
30285 | ||
30286 | cat >>confdefs.h <<\_ACEOF | |
30287 | #define HAVE_XSHAPE 1 | |
30288 | _ACEOF | |
30289 | ||
30290 | echo "$as_me:$LINENO: result: found" >&5 | |
30291 | echo "${ECHO_T}found" >&6 | |
30292 | ||
30293 | else | |
30294 | echo "$as_me: failed program was:" >&5 | |
30295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30296 | ||
30297 | ||
30298 | echo "$as_me:$LINENO: result: not found" >&5 | |
30299 | echo "${ECHO_T}not found" >&6 | |
30300 | ||
30301 | fi | |
ac1cb8d3 | 30302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30303 | CFLAGS="$save_CFLAGS" |
30304 | ||
30305 | fi | |
30306 | fi | |
30307 | ||
30308 | if test "$wxUSE_MAC" = 1; then | |
30309 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
30310 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
30311 | if test "$GCC" = yes; then | |
30312 | echo "$as_me:$LINENO: result: gcc" >&5 | |
30313 | echo "${ECHO_T}gcc" >&6 | |
30314 | CPPFLAGS_PASCAL="-fpascal-strings" | |
30315 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
30316 | echo "$as_me:$LINENO: result: xlc" >&5 | |
30317 | echo "${ECHO_T}xlc" >&6 | |
30318 | CPPFLAGS_PASCAL="-qmacpstr" | |
30319 | else | |
30320 | echo "$as_me:$LINENO: result: none" >&5 | |
30321 | echo "${ECHO_T}none" >&6 | |
30322 | fi | |
30323 | ||
1e9e8aba | 30324 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 30325 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 30326 | else |
c92ad099 | 30327 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 30328 | fi |
a848cd7e | 30329 | |
a848cd7e SC |
30330 | TOOLKIT=MAC |
30331 | GUIDIST=MACX_DIST | |
dd21ced8 | 30332 | WXBASEPORT="_carbon" |
a848cd7e SC |
30333 | fi |
30334 | ||
30335 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
30336 | TOOLKIT=COCOA |
30337 | GUIDIST=COCOA_DIST | |
30338 | fi | |
30339 | ||
30340 | if test "$wxUSE_PM" = 1; then | |
30341 | TOOLKIT=PM | |
de59c161 RD |
30342 | GUIDIST=PM_DIST |
30343 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
30344 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
30345 | if test "${wx_cv_spbcdata+set}" = set; then | |
30346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30347 | else | |
30348 | ||
30349 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
30350 | /* confdefs.h. */ |
30351 | _ACEOF | |
30352 | cat confdefs.h >>conftest.$ac_ext | |
30353 | cat >>conftest.$ac_ext <<_ACEOF | |
30354 | /* end confdefs.h. */ | |
30355 | ||
30356 | #define INCL_PM | |
30357 | #include <os2.h> | |
30358 | ||
30359 | int | |
30360 | main () | |
30361 | { | |
30362 | ||
30363 | SPBCDATA test; | |
30364 | ||
30365 | ; | |
30366 | return 0; | |
30367 | } | |
30368 | _ACEOF | |
30369 | rm -f conftest.$ac_objext | |
30370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30371 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 30372 | ac_status=$? |
ac1cb8d3 VS |
30373 | grep -v '^ *+' conftest.er1 >conftest.err |
30374 | rm -f conftest.er1 | |
30375 | cat conftest.err >&5 | |
de59c161 RD |
30376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30377 | (exit $ac_status); } && | |
3565d135 RR |
30378 | { ac_try='test -z "$ac_c_werror_flag" |
30379 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30381 | (eval $ac_try) 2>&5 | |
30382 | ac_status=$? | |
30383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30384 | (exit $ac_status); }; } && | |
30385 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
30386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30387 | (eval $ac_try) 2>&5 | |
30388 | ac_status=$? | |
30389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30390 | (exit $ac_status); }; }; then | |
30391 | wx_cv_spbcdata=yes | |
30392 | else | |
30393 | echo "$as_me: failed program was:" >&5 | |
30394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30395 | ||
30396 | wx_cv_spbcdata=no | |
30397 | ||
30398 | fi | |
ac1cb8d3 | 30399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30400 | |
30401 | ||
30402 | fi | |
30403 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
30404 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
30405 | ||
30406 | if test $wx_cv_spbcdata = "yes"; then | |
30407 | cat >>confdefs.h <<\_ACEOF | |
30408 | #define HAVE_SPBCDATA 1 | |
30409 | _ACEOF | |
30410 | ||
30411 | fi | |
a848cd7e SC |
30412 | fi |
30413 | ||
30414 | if test "$TOOLKIT" = "PM" ; then | |
30415 | TOOLKIT_DIR="os2" | |
30416 | else | |
30417 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
30418 | fi | |
30419 | ||
a848cd7e | 30420 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
30421 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
30422 | WIDGET_SET=univ | |
a848cd7e SC |
30423 | fi |
30424 | ||
30425 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
30426 | DISTDIR="wx\$(TOOLKIT)" | |
30427 | else | |
30428 | USE_GUI=0 | |
30429 | ||
30430 | TOOLKIT_DIR="base" | |
30431 | ||
30432 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 30433 | TOOLKIT="MSW" |
a848cd7e SC |
30434 | fi |
30435 | ||
a848cd7e SC |
30436 | GUIDIST="BASE_DIST" |
30437 | DISTDIR="wxBase" | |
30438 | fi | |
30439 | ||
30440 | ||
d12aef51 VZ |
30441 | if test "$wxUSE_GUI" = "yes"; then |
30442 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
30443 | ||
30444 | for ac_header in X11/Xlib.h | |
30445 | do | |
30446 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30448 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30450 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30452 | fi | |
30453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30454 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30455 | else | |
30456 | # Is the header compilable? | |
30457 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30458 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30459 | cat >conftest.$ac_ext <<_ACEOF | |
30460 | /* confdefs.h. */ | |
30461 | _ACEOF | |
30462 | cat confdefs.h >>conftest.$ac_ext | |
30463 | cat >>conftest.$ac_ext <<_ACEOF | |
30464 | /* end confdefs.h. */ | |
30465 | $ac_includes_default | |
30466 | #include <$ac_header> | |
30467 | _ACEOF | |
30468 | rm -f conftest.$ac_objext | |
30469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30470 | (eval $ac_compile) 2>conftest.er1 | |
30471 | ac_status=$? | |
30472 | grep -v '^ *+' conftest.er1 >conftest.err | |
30473 | rm -f conftest.er1 | |
30474 | cat conftest.err >&5 | |
30475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30476 | (exit $ac_status); } && | |
3565d135 RR |
30477 | { ac_try='test -z "$ac_c_werror_flag" |
30478 | || test ! -s conftest.err' | |
d12aef51 VZ |
30479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30480 | (eval $ac_try) 2>&5 | |
30481 | ac_status=$? | |
30482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30483 | (exit $ac_status); }; } && | |
30484 | { ac_try='test -s conftest.$ac_objext' | |
30485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30486 | (eval $ac_try) 2>&5 | |
30487 | ac_status=$? | |
30488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30489 | (exit $ac_status); }; }; then | |
30490 | ac_header_compiler=yes | |
30491 | else | |
30492 | echo "$as_me: failed program was:" >&5 | |
30493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30494 | ||
30495 | ac_header_compiler=no | |
30496 | fi | |
30497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30498 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30499 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30500 | ||
30501 | # Is the header present? | |
30502 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30503 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30504 | cat >conftest.$ac_ext <<_ACEOF | |
30505 | /* confdefs.h. */ | |
30506 | _ACEOF | |
30507 | cat confdefs.h >>conftest.$ac_ext | |
30508 | cat >>conftest.$ac_ext <<_ACEOF | |
30509 | /* end confdefs.h. */ | |
30510 | #include <$ac_header> | |
30511 | _ACEOF | |
30512 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30513 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30514 | ac_status=$? | |
30515 | grep -v '^ *+' conftest.er1 >conftest.err | |
30516 | rm -f conftest.er1 | |
30517 | cat conftest.err >&5 | |
30518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30519 | (exit $ac_status); } >/dev/null; then | |
30520 | if test -s conftest.err; then | |
30521 | ac_cpp_err=$ac_c_preproc_warn_flag | |
30522 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
30523 | else | |
30524 | ac_cpp_err= | |
30525 | fi | |
30526 | else | |
30527 | ac_cpp_err=yes | |
30528 | fi | |
30529 | if test -z "$ac_cpp_err"; then | |
30530 | ac_header_preproc=yes | |
30531 | else | |
30532 | echo "$as_me: failed program was:" >&5 | |
30533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30534 | ||
30535 | ac_header_preproc=no | |
30536 | fi | |
30537 | rm -f conftest.err conftest.$ac_ext | |
30538 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30539 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30540 | ||
30541 | # So? What about this header? | |
30542 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
30543 | yes:no: ) | |
30544 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
30545 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
30546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
30547 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
30548 | ac_header_preproc=yes | |
30549 | ;; | |
30550 | no:yes:* ) | |
30551 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
30552 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
30553 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
30554 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
30555 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
30556 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
30557 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
30558 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
30559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
30560 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30561 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
30562 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
30563 | ( | |
30564 | cat <<\_ASBOX | |
30565 | ## ----------------------------------------- ## | |
30566 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30567 | ## ----------------------------------------- ## | |
30568 | _ASBOX | |
30569 | ) | | |
30570 | sed "s/^/$as_me: WARNING: /" >&2 | |
30571 | ;; | |
30572 | esac | |
30573 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30574 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30577 | else | |
30578 | eval "$as_ac_Header=\$ac_header_preproc" | |
30579 | fi | |
30580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30581 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30582 | ||
30583 | fi | |
30584 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30585 | cat >>confdefs.h <<_ACEOF | |
30586 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30587 | _ACEOF | |
30588 | ||
30589 | fi | |
30590 | ||
30591 | done | |
30592 | ||
30593 | ||
30594 | for ac_header in X11/XKBlib.h | |
30595 | do | |
30596 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30601 | else | |
30602 | cat >conftest.$ac_ext <<_ACEOF | |
30603 | /* confdefs.h. */ | |
30604 | _ACEOF | |
30605 | cat confdefs.h >>conftest.$ac_ext | |
30606 | cat >>conftest.$ac_ext <<_ACEOF | |
30607 | /* end confdefs.h. */ | |
30608 | ||
30609 | #if HAVE_X11_XLIB_H | |
30610 | #include <X11/Xlib.h> | |
30611 | #endif | |
30612 | ||
30613 | ||
30614 | #include <$ac_header> | |
30615 | _ACEOF | |
30616 | rm -f conftest.$ac_objext | |
30617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30618 | (eval $ac_compile) 2>conftest.er1 | |
30619 | ac_status=$? | |
30620 | grep -v '^ *+' conftest.er1 >conftest.err | |
30621 | rm -f conftest.er1 | |
30622 | cat conftest.err >&5 | |
30623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30624 | (exit $ac_status); } && | |
3565d135 RR |
30625 | { ac_try='test -z "$ac_c_werror_flag" |
30626 | || test ! -s conftest.err' | |
d12aef51 VZ |
30627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30628 | (eval $ac_try) 2>&5 | |
30629 | ac_status=$? | |
30630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30631 | (exit $ac_status); }; } && | |
30632 | { ac_try='test -s conftest.$ac_objext' | |
30633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30634 | (eval $ac_try) 2>&5 | |
30635 | ac_status=$? | |
30636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30637 | (exit $ac_status); }; }; then | |
30638 | eval "$as_ac_Header=yes" | |
30639 | else | |
30640 | echo "$as_me: failed program was:" >&5 | |
30641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30642 | ||
30643 | eval "$as_ac_Header=no" | |
30644 | fi | |
30645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30646 | fi | |
30647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30650 | cat >>confdefs.h <<_ACEOF | |
30651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30652 | _ACEOF | |
30653 | ||
30654 | fi | |
30655 | ||
30656 | done | |
30657 | ||
30658 | fi | |
30659 | fi | |
30660 | ||
a848cd7e SC |
30661 | |
30662 | ||
30663 | IODBC_C_SRC="" | |
30664 | ||
30665 | ||
30666 | if test "$TOOLKIT" != "MSW" ; then | |
30667 | ||
30668 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
30669 | ||
30670 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30671 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30672 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30673 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30675 | fi | |
30676 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30677 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30678 | else | |
30679 | # Is the header compilable? | |
30680 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
30681 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
30682 | cat >conftest.$ac_ext <<_ACEOF | |
30683 | /* confdefs.h. */ | |
30684 | _ACEOF | |
30685 | cat confdefs.h >>conftest.$ac_ext | |
30686 | cat >>conftest.$ac_ext <<_ACEOF | |
30687 | /* end confdefs.h. */ | |
30688 | $ac_includes_default | |
30689 | #include <sql.h> | |
30690 | _ACEOF | |
30691 | rm -f conftest.$ac_objext | |
30692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30693 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30694 | ac_status=$? |
ac1cb8d3 VS |
30695 | grep -v '^ *+' conftest.er1 >conftest.err |
30696 | rm -f conftest.er1 | |
30697 | cat conftest.err >&5 | |
a848cd7e SC |
30698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30699 | (exit $ac_status); } && | |
3565d135 RR |
30700 | { ac_try='test -z "$ac_c_werror_flag" |
30701 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30703 | (eval $ac_try) 2>&5 | |
30704 | ac_status=$? | |
30705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30706 | (exit $ac_status); }; } && | |
30707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30709 | (eval $ac_try) 2>&5 | |
30710 | ac_status=$? | |
30711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30712 | (exit $ac_status); }; }; then | |
30713 | ac_header_compiler=yes | |
30714 | else | |
30715 | echo "$as_me: failed program was:" >&5 | |
30716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30717 | ||
30718 | ac_header_compiler=no | |
30719 | fi | |
ac1cb8d3 | 30720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30721 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30722 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30723 | ||
30724 | # Is the header present? | |
30725 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
30726 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
30727 | cat >conftest.$ac_ext <<_ACEOF | |
30728 | /* confdefs.h. */ | |
30729 | _ACEOF | |
30730 | cat confdefs.h >>conftest.$ac_ext | |
30731 | cat >>conftest.$ac_ext <<_ACEOF | |
30732 | /* end confdefs.h. */ | |
30733 | #include <sql.h> | |
30734 | _ACEOF | |
30735 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30736 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30737 | ac_status=$? | |
30738 | grep -v '^ *+' conftest.er1 >conftest.err | |
30739 | rm -f conftest.er1 | |
30740 | cat conftest.err >&5 | |
30741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30742 | (exit $ac_status); } >/dev/null; then | |
30743 | if test -s conftest.err; then | |
30744 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30745 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30746 | else |
30747 | ac_cpp_err= | |
30748 | fi | |
30749 | else | |
30750 | ac_cpp_err=yes | |
30751 | fi | |
30752 | if test -z "$ac_cpp_err"; then | |
30753 | ac_header_preproc=yes | |
30754 | else | |
30755 | echo "$as_me: failed program was:" >&5 | |
30756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30757 | ||
30758 | ac_header_preproc=no | |
30759 | fi | |
30760 | rm -f conftest.err conftest.$ac_ext | |
30761 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30762 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30763 | ||
30764 | # So? What about this header? | |
ac1cb8d3 VS |
30765 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30766 | yes:no: ) | |
a848cd7e SC |
30767 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30768 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30769 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
30770 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
30771 | ac_header_preproc=yes | |
a848cd7e | 30772 | ;; |
ac1cb8d3 | 30773 | no:yes:* ) |
a848cd7e SC |
30774 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
30775 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30776 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
30777 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
30778 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
30779 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
30780 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30781 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30782 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
30783 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30784 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
30785 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30786 | ( |
30787 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30788 | ## ----------------------------------------- ## |
30789 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30790 | ## ----------------------------------------- ## | |
a848cd7e SC |
30791 | _ASBOX |
30792 | ) | | |
30793 | sed "s/^/$as_me: WARNING: /" >&2 | |
30794 | ;; | |
30795 | esac | |
30796 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30797 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30798 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30800 | else | |
30801 | ac_cv_header_sql_h=$ac_header_preproc | |
30802 | fi | |
30803 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30804 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30805 | ||
30806 | fi | |
30807 | if test $ac_cv_header_sql_h = yes; then | |
30808 | found_sql_h=1 | |
30809 | fi | |
30810 | ||
30811 | ||
30812 | if test "x$found_sql_h" = "x1" ; then | |
30813 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
30814 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
30815 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
30816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30817 | else | |
30818 | ac_check_lib_save_LIBS=$LIBS | |
30819 | LIBS="-liodbc $LIBS" | |
30820 | cat >conftest.$ac_ext <<_ACEOF | |
30821 | /* confdefs.h. */ | |
30822 | _ACEOF | |
30823 | cat confdefs.h >>conftest.$ac_ext | |
30824 | cat >>conftest.$ac_ext <<_ACEOF | |
30825 | /* end confdefs.h. */ | |
30826 | ||
30827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30828 | #ifdef __cplusplus | |
30829 | extern "C" | |
30830 | #endif | |
30831 | /* We use char because int might match the return type of a gcc2 | |
30832 | builtin and then its argument prototype would still apply. */ | |
30833 | char SQLAllocEnv (); | |
30834 | int | |
30835 | main () | |
30836 | { | |
30837 | SQLAllocEnv (); | |
30838 | ; | |
30839 | return 0; | |
30840 | } | |
30841 | _ACEOF | |
30842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30844 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30845 | ac_status=$? |
ac1cb8d3 VS |
30846 | grep -v '^ *+' conftest.er1 >conftest.err |
30847 | rm -f conftest.er1 | |
30848 | cat conftest.err >&5 | |
a848cd7e SC |
30849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30850 | (exit $ac_status); } && | |
3565d135 RR |
30851 | { ac_try='test -z "$ac_c_werror_flag" |
30852 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30854 | (eval $ac_try) 2>&5 | |
30855 | ac_status=$? | |
30856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30857 | (exit $ac_status); }; } && | |
30858 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30860 | (eval $ac_try) 2>&5 | |
30861 | ac_status=$? | |
30862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30863 | (exit $ac_status); }; }; then | |
30864 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
30865 | else | |
30866 | echo "$as_me: failed program was:" >&5 | |
30867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30868 | ||
30869 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
30870 | fi | |
ac1cb8d3 VS |
30871 | rm -f conftest.err conftest.$ac_objext \ |
30872 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30873 | LIBS=$ac_check_lib_save_LIBS |
30874 | fi | |
30875 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
30876 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
30877 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
30878 | ODBC_LINK=" -liodbc" | |
30879 | else | |
30880 | ||
30881 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
30882 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
30883 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
30884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30885 | else | |
30886 | ac_check_lib_save_LIBS=$LIBS | |
30887 | LIBS="-lunixodbc $LIBS" | |
30888 | cat >conftest.$ac_ext <<_ACEOF | |
30889 | /* confdefs.h. */ | |
30890 | _ACEOF | |
30891 | cat confdefs.h >>conftest.$ac_ext | |
30892 | cat >>conftest.$ac_ext <<_ACEOF | |
30893 | /* end confdefs.h. */ | |
30894 | ||
30895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30896 | #ifdef __cplusplus | |
30897 | extern "C" | |
30898 | #endif | |
30899 | /* We use char because int might match the return type of a gcc2 | |
30900 | builtin and then its argument prototype would still apply. */ | |
30901 | char SQLAllocEnv (); | |
30902 | int | |
30903 | main () | |
30904 | { | |
30905 | SQLAllocEnv (); | |
30906 | ; | |
30907 | return 0; | |
30908 | } | |
30909 | _ACEOF | |
30910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30912 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30913 | ac_status=$? |
ac1cb8d3 VS |
30914 | grep -v '^ *+' conftest.er1 >conftest.err |
30915 | rm -f conftest.er1 | |
30916 | cat conftest.err >&5 | |
a848cd7e SC |
30917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30918 | (exit $ac_status); } && | |
3565d135 RR |
30919 | { ac_try='test -z "$ac_c_werror_flag" |
30920 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30922 | (eval $ac_try) 2>&5 | |
30923 | ac_status=$? | |
30924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30925 | (exit $ac_status); }; } && | |
30926 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30928 | (eval $ac_try) 2>&5 | |
30929 | ac_status=$? | |
30930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30931 | (exit $ac_status); }; }; then | |
30932 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
30933 | else | |
30934 | echo "$as_me: failed program was:" >&5 | |
30935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30936 | ||
30937 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
30938 | fi | |
ac1cb8d3 VS |
30939 | rm -f conftest.err conftest.$ac_objext \ |
30940 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30941 | LIBS=$ac_check_lib_save_LIBS |
30942 | fi | |
30943 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
30944 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
30945 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
30946 | ODBC_LINK=" -lunixodbc" | |
30947 | else | |
30948 | ||
30949 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
30950 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
30951 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
30952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30953 | else | |
30954 | ac_check_lib_save_LIBS=$LIBS | |
30955 | LIBS="-lodbc $LIBS" | |
30956 | cat >conftest.$ac_ext <<_ACEOF | |
30957 | /* confdefs.h. */ | |
30958 | _ACEOF | |
30959 | cat confdefs.h >>conftest.$ac_ext | |
30960 | cat >>conftest.$ac_ext <<_ACEOF | |
30961 | /* end confdefs.h. */ | |
30962 | ||
30963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30964 | #ifdef __cplusplus | |
30965 | extern "C" | |
30966 | #endif | |
30967 | /* We use char because int might match the return type of a gcc2 | |
30968 | builtin and then its argument prototype would still apply. */ | |
30969 | char SQLAllocEnv (); | |
30970 | int | |
30971 | main () | |
30972 | { | |
30973 | SQLAllocEnv (); | |
30974 | ; | |
30975 | return 0; | |
30976 | } | |
30977 | _ACEOF | |
30978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30980 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30981 | ac_status=$? |
ac1cb8d3 VS |
30982 | grep -v '^ *+' conftest.er1 >conftest.err |
30983 | rm -f conftest.er1 | |
30984 | cat conftest.err >&5 | |
a848cd7e SC |
30985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30986 | (exit $ac_status); } && | |
3565d135 RR |
30987 | { ac_try='test -z "$ac_c_werror_flag" |
30988 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30990 | (eval $ac_try) 2>&5 | |
30991 | ac_status=$? | |
30992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30993 | (exit $ac_status); }; } && | |
30994 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30996 | (eval $ac_try) 2>&5 | |
30997 | ac_status=$? | |
30998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30999 | (exit $ac_status); }; }; then | |
31000 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
31001 | else | |
31002 | echo "$as_me: failed program was:" >&5 | |
31003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31004 | ||
31005 | ac_cv_lib_odbc_SQLAllocEnv=no | |
31006 | fi | |
ac1cb8d3 VS |
31007 | rm -f conftest.err conftest.$ac_objext \ |
31008 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31009 | LIBS=$ac_check_lib_save_LIBS |
31010 | fi | |
31011 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
31012 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
31013 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
31014 | ODBC_LINK=" -lodbc" | |
31015 | fi | |
31016 | ||
31017 | ||
31018 | fi | |
31019 | ||
31020 | ||
31021 | fi | |
31022 | ||
31023 | fi | |
31024 | if test "x$ODBC_LINK" = "x" ; then | |
31025 | if test "$wxUSE_ODBC" = "sys" ; then | |
31026 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
31027 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
31028 | { (exit 1); exit 1; }; } | |
31029 | else | |
31030 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
31031 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
31032 | wxUSE_ODBC=builtin | |
31033 | fi | |
31034 | else | |
31035 | wxUSE_ODBC=sys | |
31036 | fi | |
31037 | fi | |
a848cd7e | 31038 | |
2da0c077 RD |
31039 | if test "$wxUSE_ODBC" = "builtin" ; then |
31040 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31041 | #define wxUSE_BUILTIN_IODBC 1 |
31042 | _ACEOF | |
31043 | ||
a848cd7e SC |
31044 | fi |
31045 | fi | |
31046 | ||
2da0c077 RD |
31047 | if test "$wxUSE_ODBC" != "no" ; then |
31048 | cat >>confdefs.h <<\_ACEOF | |
31049 | #define wxUSE_ODBC 1 | |
31050 | _ACEOF | |
31051 | ||
31052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
31053 | ||
5ff751d6 | 31054 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 31055 | fi |
a848cd7e | 31056 | |
01cb68df | 31057 | |
a848cd7e | 31058 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 31059 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
31060 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
31061 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
31062 | ||
0ad5d837 VZ |
31063 | ac_find_libraries= |
31064 | for ac_dir in $SEARCH_LIB; | |
31065 | do | |
31066 | for ac_extension in a so sl dylib dll.a; do | |
31067 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
31068 | ac_find_libraries=$ac_dir | |
31069 | break 2 | |
31070 | fi | |
31071 | done | |
31072 | done | |
31073 | ||
a848cd7e SC |
31074 | if test "$ac_find_libraries" != "" ; then |
31075 | ||
0ad5d837 | 31076 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31077 | ac_path_to_link="" |
31078 | else | |
0ad5d837 VZ |
31079 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31080 | result=$? | |
31081 | if test $result = 0; then | |
31082 | ac_path_to_link="" | |
31083 | else | |
31084 | ac_path_to_link=" -L$ac_find_libraries" | |
31085 | fi | |
a848cd7e SC |
31086 | fi |
31087 | ||
31088 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31089 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
31090 | fi | |
31091 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
31092 | echo "$as_me:$LINENO: result: yes" >&5 | |
31093 | echo "${ECHO_T}yes" >&6 | |
31094 | ||
31095 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
31096 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
31097 | ||
0ad5d837 VZ |
31098 | ac_find_libraries= |
31099 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31100 | do |
3eca31dc | 31101 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31102 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
31103 | ac_find_libraries=$ac_dir | |
31104 | break 2 | |
31105 | fi | |
31106 | done | |
31107 | done | |
31108 | ||
31109 | if test "$ac_find_libraries" != "" ; then | |
31110 | echo "$as_me:$LINENO: result: yes" >&5 | |
31111 | echo "${ECHO_T}yes" >&6 | |
31112 | ||
31113 | for ac_header in X11/extensions/xf86vmode.h | |
31114 | do | |
31115 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31116 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31120 | else | |
31121 | cat >conftest.$ac_ext <<_ACEOF | |
31122 | /* confdefs.h. */ | |
31123 | _ACEOF | |
31124 | cat confdefs.h >>conftest.$ac_ext | |
31125 | cat >>conftest.$ac_ext <<_ACEOF | |
31126 | /* end confdefs.h. */ | |
31127 | ||
31128 | #if HAVE_X11_XLIB_H | |
31129 | #include <X11/Xlib.h> | |
31130 | #endif | |
31131 | ||
31132 | ||
31133 | #include <$ac_header> | |
31134 | _ACEOF | |
31135 | rm -f conftest.$ac_objext | |
31136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31137 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31138 | ac_status=$? |
ac1cb8d3 VS |
31139 | grep -v '^ *+' conftest.er1 >conftest.err |
31140 | rm -f conftest.er1 | |
31141 | cat conftest.err >&5 | |
a848cd7e SC |
31142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31143 | (exit $ac_status); } && | |
3565d135 RR |
31144 | { ac_try='test -z "$ac_c_werror_flag" |
31145 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31147 | (eval $ac_try) 2>&5 | |
31148 | ac_status=$? | |
31149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31150 | (exit $ac_status); }; } && | |
31151 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31153 | (eval $ac_try) 2>&5 | |
31154 | ac_status=$? | |
31155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31156 | (exit $ac_status); }; }; then | |
31157 | eval "$as_ac_Header=yes" | |
31158 | else | |
31159 | echo "$as_me: failed program was:" >&5 | |
31160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31161 | ||
31162 | eval "$as_ac_Header=no" | |
31163 | fi | |
ac1cb8d3 | 31164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31165 | fi |
31166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31167 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31168 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31169 | cat >>confdefs.h <<_ACEOF | |
31170 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31171 | _ACEOF | |
31172 | ||
31173 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
31174 | ||
31175 | fi | |
31176 | ||
31177 | done | |
31178 | ||
31179 | else | |
31180 | echo "$as_me:$LINENO: result: no" >&5 | |
31181 | echo "${ECHO_T}no" >&6 | |
31182 | fi | |
31183 | ||
31184 | else | |
31185 | echo "$as_me:$LINENO: result: no" >&5 | |
31186 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
31187 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
31188 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
31189 | wxUSE_DISPLAY="no" |
31190 | fi | |
01cb68df RG |
31191 | elif test "$wxUSE_MSW" = 1; then |
31192 | ||
31193 | ||
31194 | for ac_header in multimon.h ddraw.h | |
31195 | do | |
31196 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 31197 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
31198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
31199 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 31201 | else |
5294a27e | 31202 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
31203 | /* confdefs.h. */ |
31204 | _ACEOF | |
31205 | cat confdefs.h >>conftest.$ac_ext | |
31206 | cat >>conftest.$ac_ext <<_ACEOF | |
31207 | /* end confdefs.h. */ | |
5294a27e VZ |
31208 | #include <windows.h> |
31209 | ||
01cb68df RG |
31210 | #include <$ac_header> |
31211 | _ACEOF | |
31212 | rm -f conftest.$ac_objext | |
31213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31214 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 31215 | ac_status=$? |
ac1cb8d3 VS |
31216 | grep -v '^ *+' conftest.er1 >conftest.err |
31217 | rm -f conftest.er1 | |
31218 | cat conftest.err >&5 | |
01cb68df RG |
31219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31220 | (exit $ac_status); } && | |
3565d135 RR |
31221 | { ac_try='test -z "$ac_c_werror_flag" |
31222 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31224 | (eval $ac_try) 2>&5 | |
31225 | ac_status=$? | |
31226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31227 | (exit $ac_status); }; } && | |
31228 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
31229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31230 | (eval $ac_try) 2>&5 | |
31231 | ac_status=$? | |
31232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31233 | (exit $ac_status); }; }; then | |
5294a27e | 31234 | eval "$as_ac_Header=yes" |
01cb68df RG |
31235 | else |
31236 | echo "$as_me: failed program was:" >&5 | |
31237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31238 | ||
5294a27e | 31239 | eval "$as_ac_Header=no" |
01cb68df | 31240 | fi |
ac1cb8d3 | 31241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
31242 | fi |
31243 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31244 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
31245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31246 | cat >>confdefs.h <<_ACEOF | |
31247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31248 | _ACEOF | |
31249 | ||
31250 | else | |
31251 | ||
5294a27e VZ |
31252 | wxUSE_DISPLAY="no" |
31253 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 31254 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
31255 | |
31256 | fi | |
31257 | ||
31258 | done | |
31259 | ||
a848cd7e SC |
31260 | fi |
31261 | fi | |
31262 | ||
31263 | ||
31264 | USE_OPENGL=0 | |
31265 | if test "$wxUSE_OPENGL" = "yes"; then | |
31266 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
31267 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
31268 | elif test "$wxUSE_MSW" = 1; then | |
31269 | OPENGL_LIBS="-lopengl32 -lglu32" | |
31270 | else | |
31271 | ||
31272 | ||
31273 | ac_find_includes= | |
31274 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31275 | do | |
31276 | if test -f "$ac_dir/GL/gl.h"; then | |
31277 | ac_find_includes=$ac_dir | |
31278 | break | |
31279 | fi | |
31280 | done | |
31281 | ||
31282 | if test "$ac_find_includes" != "" ; then | |
31283 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31284 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31285 | ||
31286 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31287 | ac_path_to_include="" | |
31288 | else | |
31289 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
31290 | result=$? | |
31291 | if test $result = 0; then | |
31292 | ac_path_to_include="" | |
31293 | else | |
31294 | ac_path_to_include=" -I$ac_find_includes" | |
31295 | fi | |
31296 | fi | |
31297 | ||
c92ad099 | 31298 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
31299 | fi |
31300 | ||
31301 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31302 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31303 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31304 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31306 | fi | |
31307 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31308 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31309 | else | |
31310 | # Is the header compilable? | |
31311 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
31312 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
31313 | cat >conftest.$ac_ext <<_ACEOF | |
31314 | /* confdefs.h. */ | |
31315 | _ACEOF | |
31316 | cat confdefs.h >>conftest.$ac_ext | |
31317 | cat >>conftest.$ac_ext <<_ACEOF | |
31318 | /* end confdefs.h. */ | |
31319 | $ac_includes_default | |
31320 | #include <GL/gl.h> | |
31321 | _ACEOF | |
31322 | rm -f conftest.$ac_objext | |
31323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31324 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31325 | ac_status=$? |
ac1cb8d3 VS |
31326 | grep -v '^ *+' conftest.er1 >conftest.err |
31327 | rm -f conftest.er1 | |
31328 | cat conftest.err >&5 | |
a848cd7e SC |
31329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31330 | (exit $ac_status); } && | |
3565d135 RR |
31331 | { ac_try='test -z "$ac_c_werror_flag" |
31332 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31334 | (eval $ac_try) 2>&5 | |
31335 | ac_status=$? | |
31336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31337 | (exit $ac_status); }; } && | |
31338 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31340 | (eval $ac_try) 2>&5 | |
31341 | ac_status=$? | |
31342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31343 | (exit $ac_status); }; }; then | |
31344 | ac_header_compiler=yes | |
31345 | else | |
31346 | echo "$as_me: failed program was:" >&5 | |
31347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31348 | ||
31349 | ac_header_compiler=no | |
31350 | fi | |
ac1cb8d3 | 31351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31352 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31353 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31354 | ||
31355 | # Is the header present? | |
31356 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
31357 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
31358 | cat >conftest.$ac_ext <<_ACEOF | |
31359 | /* confdefs.h. */ | |
31360 | _ACEOF | |
31361 | cat confdefs.h >>conftest.$ac_ext | |
31362 | cat >>conftest.$ac_ext <<_ACEOF | |
31363 | /* end confdefs.h. */ | |
31364 | #include <GL/gl.h> | |
31365 | _ACEOF | |
31366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31368 | ac_status=$? | |
31369 | grep -v '^ *+' conftest.er1 >conftest.err | |
31370 | rm -f conftest.er1 | |
31371 | cat conftest.err >&5 | |
31372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31373 | (exit $ac_status); } >/dev/null; then | |
31374 | if test -s conftest.err; then | |
31375 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31377 | else |
31378 | ac_cpp_err= | |
31379 | fi | |
31380 | else | |
31381 | ac_cpp_err=yes | |
31382 | fi | |
31383 | if test -z "$ac_cpp_err"; then | |
31384 | ac_header_preproc=yes | |
31385 | else | |
31386 | echo "$as_me: failed program was:" >&5 | |
31387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31388 | ||
31389 | ac_header_preproc=no | |
31390 | fi | |
31391 | rm -f conftest.err conftest.$ac_ext | |
31392 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31393 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31394 | ||
31395 | # So? What about this header? | |
ac1cb8d3 VS |
31396 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31397 | yes:no: ) | |
a848cd7e SC |
31398 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31399 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31400 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31401 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31402 | ac_header_preproc=yes | |
a848cd7e | 31403 | ;; |
ac1cb8d3 | 31404 | no:yes:* ) |
a848cd7e SC |
31405 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31406 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31407 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31408 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31409 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31410 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
31411 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31412 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31413 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
31414 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31415 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
31416 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31417 | ( |
31418 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31419 | ## ----------------------------------------- ## |
31420 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31421 | ## ----------------------------------------- ## | |
a848cd7e SC |
31422 | _ASBOX |
31423 | ) | | |
31424 | sed "s/^/$as_me: WARNING: /" >&2 | |
31425 | ;; | |
31426 | esac | |
31427 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31428 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31429 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31431 | else | |
31432 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
31433 | fi | |
31434 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31435 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31436 | ||
31437 | fi | |
31438 | if test $ac_cv_header_GL_gl_h = yes; then | |
31439 | ||
31440 | found_gl=0 | |
31441 | ||
31442 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
31443 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
31444 | ||
0ad5d837 VZ |
31445 | ac_find_libraries= |
31446 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31447 | do |
3eca31dc | 31448 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31449 | if test -f "$ac_dir/libGL.$ac_extension"; then |
31450 | ac_find_libraries=$ac_dir | |
31451 | break 2 | |
31452 | fi | |
31453 | done | |
31454 | done | |
31455 | ||
31456 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
31457 | echo "$as_me:$LINENO: result: yes" >&5 |
31458 | echo "${ECHO_T}yes" >&6 | |
31459 | ||
a848cd7e | 31460 | |
0ad5d837 | 31461 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31462 | ac_path_to_link="" |
31463 | else | |
0ad5d837 VZ |
31464 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31465 | result=$? | |
31466 | if test $result = 0; then | |
31467 | ac_path_to_link="" | |
31468 | else | |
31469 | ac_path_to_link=" -L$ac_find_libraries" | |
31470 | fi | |
a848cd7e SC |
31471 | fi |
31472 | ||
31473 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31474 | LDFLAGS_GL="$ac_path_to_link" | |
31475 | fi | |
31476 | ||
69120ee4 VZ |
31477 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
31478 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 31479 | |
0ad5d837 VZ |
31480 | ac_find_libraries= |
31481 | for ac_dir in $SEARCH_LIB; | |
31482 | do | |
31483 | for ac_extension in a so sl dylib dll.a; do | |
31484 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
31485 | ac_find_libraries=$ac_dir | |
31486 | break 2 | |
31487 | fi | |
31488 | done | |
31489 | done | |
31490 | ||
a848cd7e SC |
31491 | if test "$ac_find_libraries" != "" ; then |
31492 | ||
0ad5d837 | 31493 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31494 | ac_path_to_link="" |
31495 | else | |
0ad5d837 VZ |
31496 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31497 | result=$? | |
31498 | if test $result = 0; then | |
31499 | ac_path_to_link="" | |
31500 | else | |
31501 | ac_path_to_link=" -L$ac_find_libraries" | |
31502 | fi | |
a848cd7e SC |
31503 | fi |
31504 | ||
31505 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
31506 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
31507 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
31508 | fi | |
31509 | ||
31510 | found_gl=1 | |
31511 | OPENGL_LIBS="-lGL -lGLU" | |
31512 | echo "$as_me:$LINENO: result: yes" >&5 | |
31513 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
31514 | else |
31515 | echo "$as_me:$LINENO: result: no" >&5 | |
31516 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 31517 | fi |
69120ee4 VZ |
31518 | else |
31519 | echo "$as_me:$LINENO: result: no" >&5 | |
31520 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
31521 | fi |
31522 | ||
31523 | if test "$found_gl" != 1; then | |
a848cd7e SC |
31524 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
31525 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
31526 | ||
0ad5d837 VZ |
31527 | ac_find_libraries= |
31528 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31529 | do |
3eca31dc | 31530 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31531 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
31532 | ac_find_libraries=$ac_dir | |
31533 | break 2 | |
31534 | fi | |
31535 | done | |
31536 | done | |
31537 | ||
31538 | if test "$ac_find_libraries" != "" ; then | |
31539 | ||
0ad5d837 | 31540 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31541 | ac_path_to_link="" |
31542 | else | |
0ad5d837 VZ |
31543 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31544 | result=$? | |
31545 | if test $result = 0; then | |
31546 | ac_path_to_link="" | |
31547 | else | |
31548 | ac_path_to_link=" -L$ac_find_libraries" | |
31549 | fi | |
a848cd7e SC |
31550 | fi |
31551 | ||
31552 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
31553 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
31554 | echo "$as_me:$LINENO: result: yes" >&5 | |
31555 | echo "${ECHO_T}yes" >&6 | |
31556 | else | |
31557 | echo "$as_me:$LINENO: result: no" >&5 | |
31558 | echo "${ECHO_T}no" >&6 | |
31559 | fi | |
31560 | fi | |
31561 | ||
31562 | fi | |
31563 | ||
31564 | ||
31565 | ||
31566 | if test "x$OPENGL_LIBS" = "x"; then | |
31567 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
31568 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
31569 | { (exit 1); exit 1; }; } | |
31570 | fi | |
31571 | fi | |
31572 | ||
31573 | if test "$wxUSE_OPENGL" = "yes"; then | |
31574 | USE_OPENGL=1 | |
31575 | cat >>confdefs.h <<\_ACEOF | |
31576 | #define wxUSE_OPENGL 1 | |
31577 | _ACEOF | |
31578 | ||
31579 | cat >>confdefs.h <<\_ACEOF | |
31580 | #define wxUSE_GLCANVAS 1 | |
31581 | _ACEOF | |
31582 | ||
31583 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
31584 | fi | |
31585 | fi | |
31586 | ||
a848cd7e SC |
31587 | |
31588 | if test -n "$TOOLKIT" ; then | |
31589 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
31590 | fi | |
31591 | ||
a848cd7e SC |
31592 | |
31593 | ||
31594 | if test "$wxUSE_SHARED" = "yes"; then | |
31595 | case "${host}" in | |
31596 | *-pc-msdosdjgpp ) | |
31597 | wxUSE_SHARED=no | |
31598 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
31599 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
31600 | ;; | |
31601 | esac | |
31602 | fi | |
31603 | ||
a848cd7e | 31604 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
31605 | |
31606 | ||
31607 | found_versioning=no | |
31608 | ||
31609 | ||
31610 | if test $found_versioning = no ; then | |
31611 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
31612 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
31613 | if test "${wx_cv_version_script+set}" = set; then | |
31614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31615 | else | |
31616 | ||
31617 | echo "VER_1 { *; };" >conftest.sym | |
31618 | echo "int main() { return 0; }" >conftest.cpp | |
31619 | ||
31620 | if { ac_try=' | |
31621 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31622 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
31623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31624 | (eval $ac_try) 2>&5 | |
31625 | ac_status=$? | |
31626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31627 | (exit $ac_status); }; } ; then | |
31628 | if test -s conftest.stderr ; then | |
31629 | wx_cv_version_script=no | |
31630 | else | |
31631 | wx_cv_version_script=yes | |
31632 | fi | |
31633 | else | |
31634 | wx_cv_version_script=no | |
31635 | fi | |
e5d4b470 MW |
31636 | |
31637 | if test $wx_cv_version_script = yes | |
31638 | then | |
31639 | echo "struct B { virtual ~B() { } }; \ | |
31640 | struct D : public B { }; \ | |
31641 | void F() { D d; }" > conftest.cpp | |
31642 | ||
31643 | if { ac_try=' | |
31644 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31645 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
31646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31647 | (eval $ac_try) 2>&5 | |
31648 | ac_status=$? | |
31649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31650 | (exit $ac_status); }; } && | |
31651 | { ac_try=' | |
31652 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31653 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
31654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31655 | (eval $ac_try) 2>&5 | |
31656 | ac_status=$? | |
31657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31658 | (exit $ac_status); }; } | |
31659 | then | |
31660 | if { ac_try=' | |
31661 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31662 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
31663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31664 | (eval $ac_try) 2>&5 | |
31665 | ac_status=$? | |
31666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31667 | (exit $ac_status); }; } | |
31668 | then | |
31669 | wx_cv_version_script=yes | |
31670 | else | |
31671 | wx_cv_version_script=no | |
31672 | fi | |
31673 | fi | |
31674 | fi | |
31675 | ||
a848cd7e | 31676 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 31677 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
31678 | |
31679 | fi | |
31680 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
31681 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
31682 | if test $wx_cv_version_script = yes ; then | |
31683 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
31684 | fi | |
31685 | fi | |
31686 | ||
31687 | ||
31688 | case "${host}" in | |
31689 | *-*-linux* | *-*-gnu* ) | |
31690 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31691 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 31692 | ;; |
a848cd7e SC |
31693 | |
31694 | *-*-solaris2* ) | |
31695 | if test "$GCC" = yes ; then | |
c92ad099 | 31696 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
31697 | |
31698 | saveLdflags="$LDFLAGS" | |
31699 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
31700 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
31701 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
31702 | cat >conftest.$ac_ext <<_ACEOF | |
31703 | /* confdefs.h. */ | |
31704 | _ACEOF | |
31705 | cat confdefs.h >>conftest.$ac_ext | |
31706 | cat >>conftest.$ac_ext <<_ACEOF | |
31707 | /* end confdefs.h. */ | |
31708 | ||
31709 | int | |
31710 | main () | |
31711 | { | |
31712 | ||
31713 | ; | |
31714 | return 0; | |
31715 | } | |
31716 | _ACEOF | |
31717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31719 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31720 | ac_status=$? |
ac1cb8d3 VS |
31721 | grep -v '^ *+' conftest.er1 >conftest.err |
31722 | rm -f conftest.er1 | |
31723 | cat conftest.err >&5 | |
a848cd7e SC |
31724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31725 | (exit $ac_status); } && | |
3565d135 RR |
31726 | { ac_try='test -z "$ac_c_werror_flag" |
31727 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31729 | (eval $ac_try) 2>&5 | |
31730 | ac_status=$? | |
31731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31732 | (exit $ac_status); }; } && | |
31733 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31735 | (eval $ac_try) 2>&5 | |
31736 | ac_status=$? | |
31737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31738 | (exit $ac_status); }; }; then | |
31739 | ||
31740 | echo "$as_me:$LINENO: result: yes" >&5 | |
31741 | echo "${ECHO_T}yes" >&6 | |
31742 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31743 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
31744 | |
31745 | else | |
31746 | echo "$as_me: failed program was:" >&5 | |
31747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31748 | ||
31749 | ||
31750 | echo "$as_me:$LINENO: result: no" >&5 | |
31751 | echo "${ECHO_T}no" >&6 | |
31752 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
31753 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
31754 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
31755 | cat >conftest.$ac_ext <<_ACEOF | |
31756 | /* confdefs.h. */ | |
31757 | _ACEOF | |
31758 | cat confdefs.h >>conftest.$ac_ext | |
31759 | cat >>conftest.$ac_ext <<_ACEOF | |
31760 | /* end confdefs.h. */ | |
31761 | ||
31762 | int | |
31763 | main () | |
31764 | { | |
31765 | ||
31766 | ; | |
31767 | return 0; | |
31768 | } | |
31769 | _ACEOF | |
31770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31772 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31773 | ac_status=$? |
ac1cb8d3 VS |
31774 | grep -v '^ *+' conftest.er1 >conftest.err |
31775 | rm -f conftest.er1 | |
31776 | cat conftest.err >&5 | |
a848cd7e SC |
31777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31778 | (exit $ac_status); } && | |
3565d135 RR |
31779 | { ac_try='test -z "$ac_c_werror_flag" |
31780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31782 | (eval $ac_try) 2>&5 | |
31783 | ac_status=$? | |
31784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31785 | (exit $ac_status); }; } && | |
31786 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31788 | (eval $ac_try) 2>&5 | |
31789 | ac_status=$? | |
31790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31791 | (exit $ac_status); }; }; then | |
31792 | ||
ffa0583f | 31793 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 31794 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
31795 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
31796 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
31797 | ||
a848cd7e SC |
31798 | else |
31799 | echo "$as_me: failed program was:" >&5 | |
31800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31801 | ||
31802 | ||
31803 | echo "$as_me:$LINENO: result: no" >&5 | |
31804 | echo "${ECHO_T}no" >&6 | |
31805 | ||
31806 | fi | |
ac1cb8d3 VS |
31807 | rm -f conftest.err conftest.$ac_objext \ |
31808 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31809 | |
31810 | fi | |
ac1cb8d3 VS |
31811 | rm -f conftest.err conftest.$ac_objext \ |
31812 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31813 | LDFLAGS="$saveLdflags" |
31814 | else | |
a848cd7e | 31815 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 31816 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
31817 | fi |
31818 | ;; | |
31819 | ||
cfda0ea8 | 31820 | *-*-darwin* ) |
0caebc27 MW |
31821 | install_name_tool=`which install_name_tool` |
31822 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
31823 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
31824 | cat <<EOF >change-install-names | |
a848cd7e SC |
31825 | #!/bin/sh |
31826 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
31827 | inst_cmd="install_name_tool " | |
31828 | for i in \${libnames} ; do | |
31829 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
31830 | done | |
31831 | \${inst_cmd} \${3} | |
31832 | EOF | |
0caebc27 MW |
31833 | chmod +x change-install-names |
31834 | fi | |
a848cd7e SC |
31835 | ;; |
31836 | ||
31837 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
31838 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
31839 | ;; | |
a848cd7e | 31840 | |
81f90336 MW |
31841 | *-*-hpux* ) |
31842 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
31843 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 31844 | ;; |
81f90336 | 31845 | |
a848cd7e | 31846 | esac |
ceec2216 | 31847 | |
ffa0583f RL |
31848 | if test $wxUSE_RPATH = "no"; then |
31849 | SAMPLES_RPATH_FLAG='' | |
31850 | SAMPLES_RPATH_POSTLINK='' | |
31851 | WXCONFIG_RPATH='' | |
31852 | fi | |
31853 | ||
31854 | SHARED=1 | |
31855 | ||
31856 | else | |
31857 | ||
ceec2216 RL |
31858 | config_linkage_component="-static" |
31859 | SHARED=0 | |
ffa0583f | 31860 | |
ceec2216 | 31861 | fi |
a848cd7e | 31862 | |
a848cd7e | 31863 | |
ceec2216 RL |
31864 | UNICODE=0 |
31865 | lib_unicode_suffix= | |
31866 | WX_CHARTYPE="ansi" | |
31867 | if test "$wxUSE_UNICODE" = "yes"; then | |
31868 | lib_unicode_suffix=u | |
31869 | WX_CHARTYPE="unicode" | |
31870 | UNICODE=1 | |
a848cd7e SC |
31871 | fi |
31872 | ||
ceec2216 RL |
31873 | lib_debug_suffix= |
31874 | WX_DEBUGTYPE="release" | |
31875 | DEBUG_FLAG=0 | |
31876 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
31877 | lib_debug_suffix=d | |
31878 | WX_DEBUGTYPE="debug" | |
31879 | DEBUG_FLAG=1 | |
31880 | fi | |
a848cd7e | 31881 | |
ceec2216 RL |
31882 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
31883 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 31884 | |
ceec2216 RL |
31885 | DEBUG_INFO=0 |
31886 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
31887 | DEBUG_INFO=1 | |
31888 | fi | |
a848cd7e | 31889 | |
ceec2216 | 31890 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 31891 | |
ceec2216 | 31892 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 31893 | |
ceec2216 | 31894 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 31895 | |
ceec2216 RL |
31896 | if test "$cross_compiling" = "yes"; then |
31897 | HOST_SUFFIX="-$host_alias" | |
31898 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
31899 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
31900 | fi |
31901 | ||
dd21ced8 | 31902 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
31903 | if test "${TOOLKIT_DIR}" = "os2"; then |
31904 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31905 | else | |
31906 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31907 | fi | |
ceec2216 RL |
31908 | |
31909 | ||
31910 | ||
1d1af5ea DE |
31911 | if test "$wxUSE_COCOA" = 1; then |
31912 | ||
31913 | ||
31914 | ac_ext=c | |
31915 | ac_cpp='$CPP $CPPFLAGS' | |
31916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31919 | ||
31920 | ac_ext=m | |
31921 | ||
31922 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
31923 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
31924 | cat >conftest.$ac_ext <<_ACEOF | |
31925 | /* confdefs.h. */ | |
31926 | _ACEOF | |
31927 | cat confdefs.h >>conftest.$ac_ext | |
31928 | cat >>conftest.$ac_ext <<_ACEOF | |
31929 | /* end confdefs.h. */ | |
31930 | #include <AppKit/NSEvent.h> | |
31931 | #include <CoreFoundation/CoreFoundation.h> | |
31932 | ||
31933 | int | |
31934 | main () | |
31935 | { | |
31936 | ||
31937 | ; | |
31938 | return 0; | |
31939 | } | |
31940 | _ACEOF | |
31941 | rm -f conftest.$ac_objext | |
31942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31943 | (eval $ac_compile) 2>conftest.er1 | |
31944 | ac_status=$? | |
31945 | grep -v '^ *+' conftest.er1 >conftest.err | |
31946 | rm -f conftest.er1 | |
31947 | cat conftest.err >&5 | |
31948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31949 | (exit $ac_status); } && | |
3565d135 RR |
31950 | { ac_try='test -z "$ac_c_werror_flag" |
31951 | || test ! -s conftest.err' | |
1d1af5ea DE |
31952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31953 | (eval $ac_try) 2>&5 | |
31954 | ac_status=$? | |
31955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31956 | (exit $ac_status); }; } && | |
31957 | { ac_try='test -s conftest.$ac_objext' | |
31958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31959 | (eval $ac_try) 2>&5 | |
31960 | ac_status=$? | |
31961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31962 | (exit $ac_status); }; }; then | |
31963 | echo "$as_me:$LINENO: result: no" >&5 | |
31964 | echo "${ECHO_T}no" >&6 | |
31965 | else | |
31966 | echo "$as_me: failed program was:" >&5 | |
31967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31968 | ||
31969 | echo "$as_me:$LINENO: result: yes" >&5 | |
31970 | echo "${ECHO_T}yes" >&6 | |
31971 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
31972 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
31973 | cat >conftest.$ac_ext <<_ACEOF | |
31974 | /* confdefs.h. */ | |
31975 | _ACEOF | |
31976 | cat confdefs.h >>conftest.$ac_ext | |
31977 | cat >>conftest.$ac_ext <<_ACEOF | |
31978 | /* end confdefs.h. */ | |
31979 | #define __Point__ 1 | |
31980 | #include <AppKit/NSEvent.h> | |
31981 | #include <CoreFoundation/CoreFoundation.h> | |
31982 | ||
31983 | int | |
31984 | main () | |
31985 | { | |
31986 | ||
31987 | ; | |
31988 | return 0; | |
31989 | } | |
31990 | _ACEOF | |
31991 | rm -f conftest.$ac_objext | |
31992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31993 | (eval $ac_compile) 2>conftest.er1 | |
31994 | ac_status=$? | |
31995 | grep -v '^ *+' conftest.er1 >conftest.err | |
31996 | rm -f conftest.er1 | |
31997 | cat conftest.err >&5 | |
31998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31999 | (exit $ac_status); } && | |
3565d135 RR |
32000 | { ac_try='test -z "$ac_c_werror_flag" |
32001 | || test ! -s conftest.err' | |
1d1af5ea DE |
32002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32003 | (eval $ac_try) 2>&5 | |
32004 | ac_status=$? | |
32005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32006 | (exit $ac_status); }; } && | |
32007 | { ac_try='test -s conftest.$ac_objext' | |
32008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32009 | (eval $ac_try) 2>&5 | |
32010 | ac_status=$? | |
32011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32012 | (exit $ac_status); }; }; then | |
32013 | echo "$as_me:$LINENO: result: yes" >&5 | |
32014 | echo "${ECHO_T}yes" >&6 | |
32015 | cat >>confdefs.h <<\_ACEOF | |
32016 | #define __Point__ 1 | |
32017 | _ACEOF | |
32018 | ||
32019 | ||
32020 | else | |
32021 | echo "$as_me: failed program was:" >&5 | |
32022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32023 | ||
32024 | { { echo "$as_me:$LINENO: error: no | |
32025 | See \`config.log' for more details." >&5 | |
32026 | echo "$as_me: error: no | |
32027 | See \`config.log' for more details." >&2;} | |
32028 | { (exit 1); exit 1; }; } | |
32029 | ||
32030 | fi | |
32031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32032 | ||
32033 | fi | |
32034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32035 | ac_ext=c | |
32036 | ac_cpp='$CPP $CPPFLAGS' | |
32037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32040 | ||
32041 | fi | |
32042 | ||
a848cd7e | 32043 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
32044 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
32045 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 32046 | |
a848cd7e | 32047 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
32048 | |
32049 | # Extract the first word of "Rez", so it can be a program name with args. | |
32050 | set dummy Rez; ac_word=$2 | |
32051 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 32053 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
32054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32055 | else | |
8ced02f6 DE |
32056 | if test -n "$REZ"; then |
32057 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
32058 | else |
32059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32060 | for as_dir in $PATH | |
32061 | do | |
32062 | IFS=$as_save_IFS | |
32063 | test -z "$as_dir" && as_dir=. | |
32064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32065 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 32066 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
32067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
32068 | break 2 | |
32069 | fi | |
32070 | done | |
32071 | done | |
32072 | ||
8ced02f6 | 32073 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
32074 | fi |
32075 | fi | |
8ced02f6 DE |
32076 | REZ=$ac_cv_prog_REZ |
32077 | if test -n "$REZ"; then | |
32078 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
32079 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
32080 | else |
32081 | echo "$as_me:$LINENO: result: no" >&5 | |
32082 | echo "${ECHO_T}no" >&6 | |
32083 | fi | |
32084 | ||
32085 | # Extract the first word of "DeRez", so it can be a program name with args. | |
32086 | set dummy DeRez; ac_word=$2 | |
32087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32089 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
32090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32091 | else | |
32092 | if test -n "$DEREZ"; then | |
32093 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
32094 | else | |
32095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32096 | for as_dir in $PATH | |
32097 | do | |
32098 | IFS=$as_save_IFS | |
32099 | test -z "$as_dir" && as_dir=. | |
32100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32102 | ac_cv_prog_DEREZ="DeRez" | |
32103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32104 | break 2 | |
32105 | fi | |
32106 | done | |
32107 | done | |
32108 | ||
32109 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
32110 | fi | |
32111 | fi | |
32112 | DEREZ=$ac_cv_prog_DEREZ | |
32113 | if test -n "$DEREZ"; then | |
32114 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
32115 | echo "${ECHO_T}$DEREZ" >&6 | |
32116 | else | |
32117 | echo "$as_me:$LINENO: result: no" >&5 | |
32118 | echo "${ECHO_T}no" >&6 | |
32119 | fi | |
32120 | ||
32121 | # Extract the first word of "SetFile", so it can be a program name with args. | |
32122 | set dummy SetFile; ac_word=$2 | |
32123 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32125 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
32126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32127 | else | |
32128 | if test -n "$SETFILE"; then | |
32129 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
32130 | else | |
32131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32132 | for as_dir in $PATH | |
32133 | do | |
32134 | IFS=$as_save_IFS | |
32135 | test -z "$as_dir" && as_dir=. | |
32136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32137 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32138 | ac_cv_prog_SETFILE="SetFile" | |
32139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32140 | break 2 | |
32141 | fi | |
32142 | done | |
32143 | done | |
32144 | ||
32145 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
32146 | fi | |
32147 | fi | |
32148 | SETFILE=$ac_cv_prog_SETFILE | |
32149 | if test -n "$SETFILE"; then | |
32150 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
32151 | echo "${ECHO_T}$SETFILE" >&6 | |
32152 | else | |
32153 | echo "$as_me:$LINENO: result: no" >&5 | |
32154 | echo "${ECHO_T}no" >&6 | |
32155 | fi | |
32156 | ||
32157 | ||
32158 | MACSETFILE="\$(SETFILE)" | |
32159 | ||
32160 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 32161 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
32162 | RESCOMP="$REZ" |
32163 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 32164 | else |
004ee6da RL |
32165 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
32166 | RESCOMP="echo -n \| $REZ" | |
32167 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 32168 | fi |
004ee6da | 32169 | |
a848cd7e | 32170 | else |
ffa0583f | 32171 | MACSETFILE="@true" |
a848cd7e | 32172 | |
8ced02f6 | 32173 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
32174 | RESCOMP="emxbind" |
32175 | WXCONFIG_RESFLAGS="-ep" | |
32176 | ||
32177 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 32178 | else |
8ced02f6 | 32179 | POSTLINK_COMMAND="@true" |
a848cd7e | 32180 | fi |
004ee6da | 32181 | |
a848cd7e SC |
32182 | fi |
32183 | ||
32184 | ||
32185 | ||
32186 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
32187 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
32188 | if test "${ac_cv_type_mode_t+set}" = set; then | |
32189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32190 | else | |
32191 | cat >conftest.$ac_ext <<_ACEOF | |
32192 | /* confdefs.h. */ | |
32193 | _ACEOF | |
32194 | cat confdefs.h >>conftest.$ac_ext | |
32195 | cat >>conftest.$ac_ext <<_ACEOF | |
32196 | /* end confdefs.h. */ | |
32197 | $ac_includes_default | |
32198 | int | |
32199 | main () | |
32200 | { | |
32201 | if ((mode_t *) 0) | |
32202 | return 0; | |
32203 | if (sizeof (mode_t)) | |
32204 | return 0; | |
32205 | ; | |
32206 | return 0; | |
32207 | } | |
32208 | _ACEOF | |
32209 | rm -f conftest.$ac_objext | |
32210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32211 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32212 | ac_status=$? |
ac1cb8d3 VS |
32213 | grep -v '^ *+' conftest.er1 >conftest.err |
32214 | rm -f conftest.er1 | |
32215 | cat conftest.err >&5 | |
a848cd7e SC |
32216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32217 | (exit $ac_status); } && | |
3565d135 RR |
32218 | { ac_try='test -z "$ac_c_werror_flag" |
32219 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32221 | (eval $ac_try) 2>&5 | |
32222 | ac_status=$? | |
32223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32224 | (exit $ac_status); }; } && | |
32225 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32227 | (eval $ac_try) 2>&5 | |
32228 | ac_status=$? | |
32229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32230 | (exit $ac_status); }; }; then | |
32231 | ac_cv_type_mode_t=yes | |
32232 | else | |
32233 | echo "$as_me: failed program was:" >&5 | |
32234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32235 | ||
32236 | ac_cv_type_mode_t=no | |
32237 | fi | |
ac1cb8d3 | 32238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32239 | fi |
32240 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
32241 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
32242 | if test $ac_cv_type_mode_t = yes; then | |
32243 | : | |
32244 | else | |
32245 | ||
32246 | cat >>confdefs.h <<_ACEOF | |
32247 | #define mode_t int | |
32248 | _ACEOF | |
32249 | ||
32250 | fi | |
32251 | ||
32252 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
32253 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
32254 | if test "${ac_cv_type_off_t+set}" = set; then | |
32255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32256 | else | |
32257 | cat >conftest.$ac_ext <<_ACEOF | |
32258 | /* confdefs.h. */ | |
32259 | _ACEOF | |
32260 | cat confdefs.h >>conftest.$ac_ext | |
32261 | cat >>conftest.$ac_ext <<_ACEOF | |
32262 | /* end confdefs.h. */ | |
32263 | $ac_includes_default | |
32264 | int | |
32265 | main () | |
32266 | { | |
32267 | if ((off_t *) 0) | |
32268 | return 0; | |
32269 | if (sizeof (off_t)) | |
32270 | return 0; | |
32271 | ; | |
32272 | return 0; | |
32273 | } | |
32274 | _ACEOF | |
32275 | rm -f conftest.$ac_objext | |
32276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32277 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32278 | ac_status=$? |
ac1cb8d3 VS |
32279 | grep -v '^ *+' conftest.er1 >conftest.err |
32280 | rm -f conftest.er1 | |
32281 | cat conftest.err >&5 | |
a848cd7e SC |
32282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32283 | (exit $ac_status); } && | |
3565d135 RR |
32284 | { ac_try='test -z "$ac_c_werror_flag" |
32285 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32287 | (eval $ac_try) 2>&5 | |
32288 | ac_status=$? | |
32289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32290 | (exit $ac_status); }; } && | |
32291 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32293 | (eval $ac_try) 2>&5 | |
32294 | ac_status=$? | |
32295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32296 | (exit $ac_status); }; }; then | |
32297 | ac_cv_type_off_t=yes | |
32298 | else | |
32299 | echo "$as_me: failed program was:" >&5 | |
32300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32301 | ||
32302 | ac_cv_type_off_t=no | |
32303 | fi | |
ac1cb8d3 | 32304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32305 | fi |
32306 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
32307 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
32308 | if test $ac_cv_type_off_t = yes; then | |
32309 | : | |
32310 | else | |
32311 | ||
32312 | cat >>confdefs.h <<_ACEOF | |
32313 | #define off_t long | |
32314 | _ACEOF | |
32315 | ||
32316 | fi | |
32317 | ||
32318 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
32319 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
32320 | if test "${ac_cv_type_pid_t+set}" = set; then | |
32321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32322 | else | |
32323 | cat >conftest.$ac_ext <<_ACEOF | |
32324 | /* confdefs.h. */ | |
32325 | _ACEOF | |
32326 | cat confdefs.h >>conftest.$ac_ext | |
32327 | cat >>conftest.$ac_ext <<_ACEOF | |
32328 | /* end confdefs.h. */ | |
32329 | $ac_includes_default | |
32330 | int | |
32331 | main () | |
32332 | { | |
32333 | if ((pid_t *) 0) | |
32334 | return 0; | |
32335 | if (sizeof (pid_t)) | |
32336 | return 0; | |
32337 | ; | |
32338 | return 0; | |
32339 | } | |
32340 | _ACEOF | |
32341 | rm -f conftest.$ac_objext | |
32342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32343 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32344 | ac_status=$? |
ac1cb8d3 VS |
32345 | grep -v '^ *+' conftest.er1 >conftest.err |
32346 | rm -f conftest.er1 | |
32347 | cat conftest.err >&5 | |
a848cd7e SC |
32348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32349 | (exit $ac_status); } && | |
3565d135 RR |
32350 | { ac_try='test -z "$ac_c_werror_flag" |
32351 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32353 | (eval $ac_try) 2>&5 | |
32354 | ac_status=$? | |
32355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32356 | (exit $ac_status); }; } && | |
32357 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32359 | (eval $ac_try) 2>&5 | |
32360 | ac_status=$? | |
32361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32362 | (exit $ac_status); }; }; then | |
32363 | ac_cv_type_pid_t=yes | |
32364 | else | |
32365 | echo "$as_me: failed program was:" >&5 | |
32366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32367 | ||
32368 | ac_cv_type_pid_t=no | |
32369 | fi | |
ac1cb8d3 | 32370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32371 | fi |
32372 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
32373 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
32374 | if test $ac_cv_type_pid_t = yes; then | |
32375 | : | |
32376 | else | |
32377 | ||
32378 | cat >>confdefs.h <<_ACEOF | |
32379 | #define pid_t int | |
32380 | _ACEOF | |
32381 | ||
32382 | fi | |
32383 | ||
32384 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
32385 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
32386 | if test "${ac_cv_type_size_t+set}" = set; then | |
32387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32388 | else | |
32389 | cat >conftest.$ac_ext <<_ACEOF | |
32390 | /* confdefs.h. */ | |
32391 | _ACEOF | |
32392 | cat confdefs.h >>conftest.$ac_ext | |
32393 | cat >>conftest.$ac_ext <<_ACEOF | |
32394 | /* end confdefs.h. */ | |
32395 | $ac_includes_default | |
32396 | int | |
32397 | main () | |
32398 | { | |
32399 | if ((size_t *) 0) | |
32400 | return 0; | |
32401 | if (sizeof (size_t)) | |
32402 | return 0; | |
32403 | ; | |
32404 | return 0; | |
32405 | } | |
32406 | _ACEOF | |
32407 | rm -f conftest.$ac_objext | |
32408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32409 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32410 | ac_status=$? |
ac1cb8d3 VS |
32411 | grep -v '^ *+' conftest.er1 >conftest.err |
32412 | rm -f conftest.er1 | |
32413 | cat conftest.err >&5 | |
a848cd7e SC |
32414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32415 | (exit $ac_status); } && | |
3565d135 RR |
32416 | { ac_try='test -z "$ac_c_werror_flag" |
32417 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32419 | (eval $ac_try) 2>&5 | |
32420 | ac_status=$? | |
32421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32422 | (exit $ac_status); }; } && | |
32423 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32425 | (eval $ac_try) 2>&5 | |
32426 | ac_status=$? | |
32427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32428 | (exit $ac_status); }; }; then | |
32429 | ac_cv_type_size_t=yes | |
32430 | else | |
32431 | echo "$as_me: failed program was:" >&5 | |
32432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32433 | ||
32434 | ac_cv_type_size_t=no | |
32435 | fi | |
ac1cb8d3 | 32436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32437 | fi |
32438 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
32439 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
32440 | if test $ac_cv_type_size_t = yes; then | |
32441 | : | |
32442 | else | |
32443 | ||
32444 | cat >>confdefs.h <<_ACEOF | |
32445 | #define size_t unsigned | |
32446 | _ACEOF | |
32447 | ||
32448 | fi | |
32449 | ||
32450 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
32451 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
32452 | if test "${ac_cv_type_uid_t+set}" = set; then | |
32453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32454 | else | |
32455 | cat >conftest.$ac_ext <<_ACEOF | |
32456 | /* confdefs.h. */ | |
32457 | _ACEOF | |
32458 | cat confdefs.h >>conftest.$ac_ext | |
32459 | cat >>conftest.$ac_ext <<_ACEOF | |
32460 | /* end confdefs.h. */ | |
32461 | #include <sys/types.h> | |
32462 | ||
32463 | _ACEOF | |
32464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
32465 | $EGREP "uid_t" >/dev/null 2>&1; then | |
32466 | ac_cv_type_uid_t=yes | |
32467 | else | |
32468 | ac_cv_type_uid_t=no | |
32469 | fi | |
32470 | rm -f conftest* | |
32471 | ||
32472 | fi | |
32473 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
32474 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
32475 | if test $ac_cv_type_uid_t = no; then | |
32476 | ||
32477 | cat >>confdefs.h <<\_ACEOF | |
32478 | #define uid_t int | |
32479 | _ACEOF | |
32480 | ||
32481 | ||
32482 | cat >>confdefs.h <<\_ACEOF | |
32483 | #define gid_t int | |
32484 | _ACEOF | |
32485 | ||
32486 | fi | |
32487 | ||
32488 | ||
d51253e8 RL |
32489 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
32490 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
32491 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
32492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32493 | else | |
32494 | cat >conftest.$ac_ext <<_ACEOF | |
32495 | /* confdefs.h. */ | |
32496 | _ACEOF | |
32497 | cat confdefs.h >>conftest.$ac_ext | |
32498 | cat >>conftest.$ac_ext <<_ACEOF | |
32499 | /* end confdefs.h. */ | |
32500 | $ac_includes_default | |
32501 | int | |
32502 | main () | |
32503 | { | |
32504 | if ((ssize_t *) 0) | |
32505 | return 0; | |
32506 | if (sizeof (ssize_t)) | |
32507 | return 0; | |
32508 | ; | |
32509 | return 0; | |
32510 | } | |
32511 | _ACEOF | |
32512 | rm -f conftest.$ac_objext | |
32513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32514 | (eval $ac_compile) 2>conftest.er1 | |
32515 | ac_status=$? | |
32516 | grep -v '^ *+' conftest.er1 >conftest.err | |
32517 | rm -f conftest.er1 | |
32518 | cat conftest.err >&5 | |
32519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32520 | (exit $ac_status); } && | |
3565d135 RR |
32521 | { ac_try='test -z "$ac_c_werror_flag" |
32522 | || test ! -s conftest.err' | |
d51253e8 RL |
32523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32524 | (eval $ac_try) 2>&5 | |
32525 | ac_status=$? | |
32526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32527 | (exit $ac_status); }; } && | |
32528 | { ac_try='test -s conftest.$ac_objext' | |
32529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32530 | (eval $ac_try) 2>&5 | |
32531 | ac_status=$? | |
32532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32533 | (exit $ac_status); }; }; then | |
32534 | ac_cv_type_ssize_t=yes | |
32535 | else | |
32536 | echo "$as_me: failed program was:" >&5 | |
32537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32538 | ||
32539 | ac_cv_type_ssize_t=no | |
32540 | fi | |
32541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32542 | fi | |
32543 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
32544 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
32545 | if test $ac_cv_type_ssize_t = yes; then | |
32546 | ||
32547 | cat >>confdefs.h <<_ACEOF | |
32548 | #define HAVE_SSIZE_T 1 | |
32549 | _ACEOF | |
32550 | ||
32551 | ||
32552 | fi | |
32553 | ||
32554 | ||
a848cd7e SC |
32555 | |
32556 | ||
32557 | ac_ext=cc | |
32558 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32559 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32560 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32561 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32562 | ||
32563 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
32564 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
32565 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
32566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32567 | else | |
32568 | ||
32569 | cat >conftest.$ac_ext <<_ACEOF | |
32570 | /* confdefs.h. */ | |
32571 | _ACEOF | |
32572 | cat confdefs.h >>conftest.$ac_ext | |
32573 | cat >>conftest.$ac_ext <<_ACEOF | |
32574 | /* end confdefs.h. */ | |
32575 | #include <stddef.h> | |
32576 | int | |
32577 | main () | |
32578 | { | |
32579 | ||
32580 | return 0; } | |
32581 | ||
32582 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
32583 | ||
32584 | int bar() { | |
32585 | ||
32586 | ; | |
32587 | return 0; | |
32588 | } | |
32589 | _ACEOF | |
32590 | rm -f conftest.$ac_objext | |
32591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32592 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32593 | ac_status=$? |
ac1cb8d3 VS |
32594 | grep -v '^ *+' conftest.er1 >conftest.err |
32595 | rm -f conftest.er1 | |
32596 | cat conftest.err >&5 | |
a848cd7e SC |
32597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32598 | (exit $ac_status); } && | |
3565d135 RR |
32599 | { ac_try='test -z "$ac_cxx_werror_flag" |
32600 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32602 | (eval $ac_try) 2>&5 | |
32603 | ac_status=$? | |
32604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32605 | (exit $ac_status); }; } && | |
32606 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32608 | (eval $ac_try) 2>&5 | |
32609 | ac_status=$? | |
32610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32611 | (exit $ac_status); }; }; then | |
32612 | wx_cv_size_t_is_uint=no | |
32613 | else | |
32614 | echo "$as_me: failed program was:" >&5 | |
32615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32616 | ||
32617 | wx_cv_size_t_is_uint=yes | |
32618 | ||
32619 | fi | |
ac1cb8d3 | 32620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32621 | |
32622 | ||
32623 | fi | |
32624 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
32625 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
32626 | ||
32627 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
32628 | cat >>confdefs.h <<\_ACEOF | |
32629 | #define wxSIZE_T_IS_UINT 1 | |
32630 | _ACEOF | |
32631 | ||
32632 | else | |
32633 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
32634 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
32635 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
32636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32637 | else | |
32638 | cat >conftest.$ac_ext <<_ACEOF | |
32639 | /* confdefs.h. */ | |
32640 | _ACEOF | |
32641 | cat confdefs.h >>conftest.$ac_ext | |
32642 | cat >>conftest.$ac_ext <<_ACEOF | |
32643 | /* end confdefs.h. */ | |
32644 | #include <stddef.h> | |
32645 | int | |
32646 | main () | |
32647 | { | |
32648 | ||
32649 | return 0; } | |
32650 | ||
32651 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
32652 | ||
32653 | int bar() { | |
32654 | ||
32655 | ; | |
32656 | return 0; | |
32657 | } | |
32658 | _ACEOF | |
32659 | rm -f conftest.$ac_objext | |
32660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32661 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32662 | ac_status=$? |
ac1cb8d3 VS |
32663 | grep -v '^ *+' conftest.er1 >conftest.err |
32664 | rm -f conftest.er1 | |
32665 | cat conftest.err >&5 | |
a848cd7e SC |
32666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32667 | (exit $ac_status); } && | |
3565d135 RR |
32668 | { ac_try='test -z "$ac_cxx_werror_flag" |
32669 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32671 | (eval $ac_try) 2>&5 | |
32672 | ac_status=$? | |
32673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32674 | (exit $ac_status); }; } && | |
32675 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32677 | (eval $ac_try) 2>&5 | |
32678 | ac_status=$? | |
32679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32680 | (exit $ac_status); }; }; then | |
32681 | wx_cv_size_t_is_ulong=no | |
32682 | else | |
32683 | echo "$as_me: failed program was:" >&5 | |
32684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32685 | ||
32686 | wx_cv_size_t_is_ulong=yes | |
32687 | ||
32688 | fi | |
ac1cb8d3 | 32689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32690 | |
32691 | fi | |
32692 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
32693 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
32694 | ||
32695 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
32696 | cat >>confdefs.h <<\_ACEOF | |
32697 | #define wxSIZE_T_IS_ULONG 1 | |
32698 | _ACEOF | |
32699 | ||
32700 | fi | |
32701 | fi | |
32702 | ||
32703 | ac_ext=c | |
32704 | ac_cpp='$CPP $CPPFLAGS' | |
32705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32708 | ||
32709 | ||
32710 | ||
32711 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
32712 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
32713 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
32714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32715 | else | |
32716 | ||
32717 | cat >conftest.$ac_ext <<_ACEOF | |
32718 | /* confdefs.h. */ | |
32719 | _ACEOF | |
32720 | cat confdefs.h >>conftest.$ac_ext | |
32721 | cat >>conftest.$ac_ext <<_ACEOF | |
32722 | /* end confdefs.h. */ | |
32723 | #include <pwd.h> | |
32724 | int | |
32725 | main () | |
32726 | { | |
32727 | ||
32728 | char *p; | |
32729 | struct passwd *pw; | |
32730 | p = pw->pw_gecos; | |
32731 | ||
32732 | ; | |
32733 | return 0; | |
32734 | } | |
32735 | _ACEOF | |
32736 | rm -f conftest.$ac_objext | |
32737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32738 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32739 | ac_status=$? |
ac1cb8d3 VS |
32740 | grep -v '^ *+' conftest.er1 >conftest.err |
32741 | rm -f conftest.er1 | |
32742 | cat conftest.err >&5 | |
a848cd7e SC |
32743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32744 | (exit $ac_status); } && | |
3565d135 RR |
32745 | { ac_try='test -z "$ac_c_werror_flag" |
32746 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32748 | (eval $ac_try) 2>&5 | |
32749 | ac_status=$? | |
32750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32751 | (exit $ac_status); }; } && | |
32752 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32754 | (eval $ac_try) 2>&5 | |
32755 | ac_status=$? | |
32756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32757 | (exit $ac_status); }; }; then | |
32758 | ||
32759 | wx_cv_struct_pw_gecos=yes | |
32760 | ||
32761 | else | |
32762 | echo "$as_me: failed program was:" >&5 | |
32763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32764 | ||
32765 | ||
32766 | wx_cv_struct_pw_gecos=no | |
32767 | ||
32768 | ||
32769 | fi | |
ac1cb8d3 | 32770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32771 | |
32772 | ||
32773 | fi | |
32774 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
32775 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
32776 | ||
32777 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
32778 | cat >>confdefs.h <<\_ACEOF | |
32779 | #define HAVE_PW_GECOS 1 | |
32780 | _ACEOF | |
32781 | ||
32782 | fi | |
32783 | ||
32784 | ||
47a7e797 | 32785 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
32786 | cat >>confdefs.h <<\_ACEOF |
32787 | #define wxUSE_WCHAR_T 1 | |
32788 | _ACEOF | |
32789 | ||
32790 | ||
32791 | WCSLEN_FOUND=0 | |
32792 | WCHAR_LINK= | |
32793 | ||
32794 | for ac_func in wcslen | |
32795 | do | |
32796 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32797 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32798 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32799 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32801 | else | |
32802 | cat >conftest.$ac_ext <<_ACEOF | |
32803 | /* confdefs.h. */ | |
32804 | _ACEOF | |
32805 | cat confdefs.h >>conftest.$ac_ext | |
32806 | cat >>conftest.$ac_ext <<_ACEOF | |
32807 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32808 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32810 | #define $ac_func innocuous_$ac_func | |
32811 | ||
a848cd7e SC |
32812 | /* System header to define __stub macros and hopefully few prototypes, |
32813 | which can conflict with char $ac_func (); below. | |
32814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32815 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32816 | |
a848cd7e SC |
32817 | #ifdef __STDC__ |
32818 | # include <limits.h> | |
32819 | #else | |
32820 | # include <assert.h> | |
32821 | #endif | |
ac1cb8d3 VS |
32822 | |
32823 | #undef $ac_func | |
32824 | ||
a848cd7e SC |
32825 | /* Override any gcc2 internal prototype to avoid an error. */ |
32826 | #ifdef __cplusplus | |
32827 | extern "C" | |
32828 | { | |
32829 | #endif | |
32830 | /* We use char because int might match the return type of a gcc2 | |
32831 | builtin and then its argument prototype would still apply. */ | |
32832 | char $ac_func (); | |
32833 | /* The GNU C library defines this for functions which it implements | |
32834 | to always fail with ENOSYS. Some functions are actually named | |
32835 | something starting with __ and the normal name is an alias. */ | |
32836 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32837 | choke me | |
32838 | #else | |
32839 | char (*f) () = $ac_func; | |
32840 | #endif | |
32841 | #ifdef __cplusplus | |
32842 | } | |
32843 | #endif | |
32844 | ||
32845 | int | |
32846 | main () | |
32847 | { | |
32848 | return f != $ac_func; | |
32849 | ; | |
32850 | return 0; | |
32851 | } | |
32852 | _ACEOF | |
32853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32855 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32856 | ac_status=$? |
ac1cb8d3 VS |
32857 | grep -v '^ *+' conftest.er1 >conftest.err |
32858 | rm -f conftest.er1 | |
32859 | cat conftest.err >&5 | |
a848cd7e SC |
32860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32861 | (exit $ac_status); } && | |
3565d135 RR |
32862 | { ac_try='test -z "$ac_c_werror_flag" |
32863 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32865 | (eval $ac_try) 2>&5 | |
32866 | ac_status=$? | |
32867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32868 | (exit $ac_status); }; } && | |
32869 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32871 | (eval $ac_try) 2>&5 | |
32872 | ac_status=$? | |
32873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32874 | (exit $ac_status); }; }; then | |
32875 | eval "$as_ac_var=yes" | |
32876 | else | |
32877 | echo "$as_me: failed program was:" >&5 | |
32878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32879 | ||
32880 | eval "$as_ac_var=no" | |
32881 | fi | |
ac1cb8d3 VS |
32882 | rm -f conftest.err conftest.$ac_objext \ |
32883 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32884 | fi |
32885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32886 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32887 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32888 | cat >>confdefs.h <<_ACEOF | |
32889 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32890 | _ACEOF | |
32891 | WCSLEN_FOUND=1 | |
32892 | fi | |
32893 | done | |
32894 | ||
32895 | ||
32896 | if test "$WCSLEN_FOUND" = 0; then | |
32897 | if test "$TOOLKIT" = "MSW"; then | |
32898 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
32899 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
32900 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
32901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32902 | else | |
32903 | ac_check_lib_save_LIBS=$LIBS | |
32904 | LIBS="-lmsvcrt $LIBS" | |
32905 | cat >conftest.$ac_ext <<_ACEOF | |
32906 | /* confdefs.h. */ | |
32907 | _ACEOF | |
32908 | cat confdefs.h >>conftest.$ac_ext | |
32909 | cat >>conftest.$ac_ext <<_ACEOF | |
32910 | /* end confdefs.h. */ | |
32911 | ||
32912 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32913 | #ifdef __cplusplus | |
32914 | extern "C" | |
32915 | #endif | |
32916 | /* We use char because int might match the return type of a gcc2 | |
32917 | builtin and then its argument prototype would still apply. */ | |
32918 | char wcslen (); | |
32919 | int | |
32920 | main () | |
32921 | { | |
32922 | wcslen (); | |
32923 | ; | |
32924 | return 0; | |
32925 | } | |
32926 | _ACEOF | |
32927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32929 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32930 | ac_status=$? |
ac1cb8d3 VS |
32931 | grep -v '^ *+' conftest.er1 >conftest.err |
32932 | rm -f conftest.er1 | |
32933 | cat conftest.err >&5 | |
a848cd7e SC |
32934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32935 | (exit $ac_status); } && | |
3565d135 RR |
32936 | { ac_try='test -z "$ac_c_werror_flag" |
32937 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32939 | (eval $ac_try) 2>&5 | |
32940 | ac_status=$? | |
32941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32942 | (exit $ac_status); }; } && | |
32943 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32945 | (eval $ac_try) 2>&5 | |
32946 | ac_status=$? | |
32947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32948 | (exit $ac_status); }; }; then | |
32949 | ac_cv_lib_msvcrt_wcslen=yes | |
32950 | else | |
32951 | echo "$as_me: failed program was:" >&5 | |
32952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32953 | ||
32954 | ac_cv_lib_msvcrt_wcslen=no | |
32955 | fi | |
ac1cb8d3 VS |
32956 | rm -f conftest.err conftest.$ac_objext \ |
32957 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32958 | LIBS=$ac_check_lib_save_LIBS |
32959 | fi | |
32960 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
32961 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
32962 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
32963 | WCHAR_OK=1 | |
32964 | fi | |
32965 | ||
32966 | else | |
32967 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
32968 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
32969 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
32970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32971 | else | |
32972 | ac_check_lib_save_LIBS=$LIBS | |
32973 | LIBS="-lw $LIBS" | |
32974 | cat >conftest.$ac_ext <<_ACEOF | |
32975 | /* confdefs.h. */ | |
32976 | _ACEOF | |
32977 | cat confdefs.h >>conftest.$ac_ext | |
32978 | cat >>conftest.$ac_ext <<_ACEOF | |
32979 | /* end confdefs.h. */ | |
32980 | ||
32981 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32982 | #ifdef __cplusplus | |
32983 | extern "C" | |
32984 | #endif | |
32985 | /* We use char because int might match the return type of a gcc2 | |
32986 | builtin and then its argument prototype would still apply. */ | |
32987 | char wcslen (); | |
32988 | int | |
32989 | main () | |
32990 | { | |
32991 | wcslen (); | |
32992 | ; | |
32993 | return 0; | |
32994 | } | |
32995 | _ACEOF | |
32996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32998 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32999 | ac_status=$? |
ac1cb8d3 VS |
33000 | grep -v '^ *+' conftest.er1 >conftest.err |
33001 | rm -f conftest.er1 | |
33002 | cat conftest.err >&5 | |
a848cd7e SC |
33003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33004 | (exit $ac_status); } && | |
3565d135 RR |
33005 | { ac_try='test -z "$ac_c_werror_flag" |
33006 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33008 | (eval $ac_try) 2>&5 | |
33009 | ac_status=$? | |
33010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33011 | (exit $ac_status); }; } && | |
33012 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33014 | (eval $ac_try) 2>&5 | |
33015 | ac_status=$? | |
33016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33017 | (exit $ac_status); }; }; then | |
33018 | ac_cv_lib_w_wcslen=yes | |
33019 | else | |
33020 | echo "$as_me: failed program was:" >&5 | |
33021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33022 | ||
33023 | ac_cv_lib_w_wcslen=no | |
33024 | fi | |
ac1cb8d3 VS |
33025 | rm -f conftest.err conftest.$ac_objext \ |
33026 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33027 | LIBS=$ac_check_lib_save_LIBS |
33028 | fi | |
33029 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
33030 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
33031 | if test $ac_cv_lib_w_wcslen = yes; then | |
33032 | ||
33033 | WCHAR_LINK=" -lw" | |
33034 | WCSLEN_FOUND=1 | |
33035 | ||
33036 | fi | |
33037 | ||
33038 | fi | |
33039 | fi | |
33040 | ||
33041 | if test "$WCSLEN_FOUND" = 1; then | |
33042 | cat >>confdefs.h <<\_ACEOF | |
33043 | #define HAVE_WCSLEN 1 | |
33044 | _ACEOF | |
33045 | ||
33046 | fi | |
33047 | ||
efdf6afe | 33048 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 33049 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
33050 | fi |
33051 | ||
efdf6afe VZ |
33052 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
33053 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
33054 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
33055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33056 | else | |
33057 | cat >conftest.$ac_ext <<_ACEOF | |
33058 | /* confdefs.h. */ | |
33059 | _ACEOF | |
33060 | cat confdefs.h >>conftest.$ac_ext | |
33061 | cat >>conftest.$ac_ext <<_ACEOF | |
33062 | /* end confdefs.h. */ | |
33063 | #include <wchar.h> | |
33064 | ||
33065 | int | |
33066 | main () | |
33067 | { | |
33068 | if ((mbstate_t *) 0) | |
33069 | return 0; | |
33070 | if (sizeof (mbstate_t)) | |
33071 | return 0; | |
33072 | ; | |
33073 | return 0; | |
33074 | } | |
33075 | _ACEOF | |
33076 | rm -f conftest.$ac_objext | |
33077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33078 | (eval $ac_compile) 2>conftest.er1 | |
33079 | ac_status=$? | |
33080 | grep -v '^ *+' conftest.er1 >conftest.err | |
33081 | rm -f conftest.er1 | |
33082 | cat conftest.err >&5 | |
33083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33084 | (exit $ac_status); } && | |
3565d135 RR |
33085 | { ac_try='test -z "$ac_c_werror_flag" |
33086 | || test ! -s conftest.err' | |
efdf6afe VZ |
33087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33088 | (eval $ac_try) 2>&5 | |
33089 | ac_status=$? | |
33090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33091 | (exit $ac_status); }; } && | |
33092 | { ac_try='test -s conftest.$ac_objext' | |
33093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33094 | (eval $ac_try) 2>&5 | |
33095 | ac_status=$? | |
33096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33097 | (exit $ac_status); }; }; then | |
33098 | ac_cv_type_mbstate_t=yes | |
33099 | else | |
33100 | echo "$as_me: failed program was:" >&5 | |
33101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33102 | ||
33103 | ac_cv_type_mbstate_t=no | |
33104 | fi | |
33105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33106 | fi | |
33107 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
33108 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
33109 | if test $ac_cv_type_mbstate_t = yes; then | |
33110 | ||
33111 | cat >>confdefs.h <<_ACEOF | |
33112 | #define HAVE_MBSTATE_T 1 | |
33113 | _ACEOF | |
33114 | ||
a848cd7e SC |
33115 | |
33116 | for ac_func in wcsrtombs | |
33117 | do | |
33118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33119 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33121 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33123 | else | |
33124 | cat >conftest.$ac_ext <<_ACEOF | |
33125 | /* confdefs.h. */ | |
33126 | _ACEOF | |
33127 | cat confdefs.h >>conftest.$ac_ext | |
33128 | cat >>conftest.$ac_ext <<_ACEOF | |
33129 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33132 | #define $ac_func innocuous_$ac_func | |
33133 | ||
a848cd7e SC |
33134 | /* System header to define __stub macros and hopefully few prototypes, |
33135 | which can conflict with char $ac_func (); below. | |
33136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33137 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33138 | |
a848cd7e SC |
33139 | #ifdef __STDC__ |
33140 | # include <limits.h> | |
33141 | #else | |
33142 | # include <assert.h> | |
33143 | #endif | |
ac1cb8d3 VS |
33144 | |
33145 | #undef $ac_func | |
33146 | ||
a848cd7e SC |
33147 | /* Override any gcc2 internal prototype to avoid an error. */ |
33148 | #ifdef __cplusplus | |
33149 | extern "C" | |
33150 | { | |
33151 | #endif | |
33152 | /* We use char because int might match the return type of a gcc2 | |
33153 | builtin and then its argument prototype would still apply. */ | |
33154 | char $ac_func (); | |
33155 | /* The GNU C library defines this for functions which it implements | |
33156 | to always fail with ENOSYS. Some functions are actually named | |
33157 | something starting with __ and the normal name is an alias. */ | |
33158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33159 | choke me | |
33160 | #else | |
33161 | char (*f) () = $ac_func; | |
33162 | #endif | |
33163 | #ifdef __cplusplus | |
33164 | } | |
33165 | #endif | |
33166 | ||
33167 | int | |
33168 | main () | |
33169 | { | |
33170 | return f != $ac_func; | |
33171 | ; | |
33172 | return 0; | |
33173 | } | |
33174 | _ACEOF | |
33175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33177 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33178 | ac_status=$? |
ac1cb8d3 VS |
33179 | grep -v '^ *+' conftest.er1 >conftest.err |
33180 | rm -f conftest.er1 | |
33181 | cat conftest.err >&5 | |
a848cd7e SC |
33182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33183 | (exit $ac_status); } && | |
3565d135 RR |
33184 | { ac_try='test -z "$ac_c_werror_flag" |
33185 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33187 | (eval $ac_try) 2>&5 | |
33188 | ac_status=$? | |
33189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33190 | (exit $ac_status); }; } && | |
33191 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33193 | (eval $ac_try) 2>&5 | |
33194 | ac_status=$? | |
33195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33196 | (exit $ac_status); }; }; then | |
33197 | eval "$as_ac_var=yes" | |
33198 | else | |
33199 | echo "$as_me: failed program was:" >&5 | |
33200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33201 | ||
33202 | eval "$as_ac_var=no" | |
33203 | fi | |
ac1cb8d3 VS |
33204 | rm -f conftest.err conftest.$ac_objext \ |
33205 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33206 | fi |
33207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33208 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33209 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33210 | cat >>confdefs.h <<_ACEOF | |
33211 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33212 | _ACEOF | |
33213 | ||
33214 | fi | |
33215 | done | |
33216 | ||
efdf6afe VZ |
33217 | fi |
33218 | ||
a848cd7e SC |
33219 | else |
33220 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
33221 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
33222 | fi | |
33223 | ||
33224 | ||
33225 | ||
33226 | ac_ext=cc | |
33227 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33228 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33229 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33230 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33231 | ||
33232 | ||
33233 | ||
4a767dd5 VZ |
33234 | |
33235 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
33236 | do |
33237 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33238 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33239 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33240 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33242 | else | |
33243 | cat >conftest.$ac_ext <<_ACEOF | |
33244 | /* confdefs.h. */ | |
33245 | _ACEOF | |
33246 | cat confdefs.h >>conftest.$ac_ext | |
33247 | cat >>conftest.$ac_ext <<_ACEOF | |
33248 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33249 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33250 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33251 | #define $ac_func innocuous_$ac_func | |
33252 | ||
a848cd7e SC |
33253 | /* System header to define __stub macros and hopefully few prototypes, |
33254 | which can conflict with char $ac_func (); below. | |
33255 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33256 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33257 | |
a848cd7e SC |
33258 | #ifdef __STDC__ |
33259 | # include <limits.h> | |
33260 | #else | |
33261 | # include <assert.h> | |
33262 | #endif | |
ac1cb8d3 VS |
33263 | |
33264 | #undef $ac_func | |
33265 | ||
a848cd7e SC |
33266 | /* Override any gcc2 internal prototype to avoid an error. */ |
33267 | #ifdef __cplusplus | |
33268 | extern "C" | |
33269 | { | |
33270 | #endif | |
33271 | /* We use char because int might match the return type of a gcc2 | |
33272 | builtin and then its argument prototype would still apply. */ | |
33273 | char $ac_func (); | |
33274 | /* The GNU C library defines this for functions which it implements | |
33275 | to always fail with ENOSYS. Some functions are actually named | |
33276 | something starting with __ and the normal name is an alias. */ | |
33277 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33278 | choke me | |
33279 | #else | |
33280 | char (*f) () = $ac_func; | |
33281 | #endif | |
33282 | #ifdef __cplusplus | |
33283 | } | |
33284 | #endif | |
33285 | ||
33286 | int | |
33287 | main () | |
33288 | { | |
33289 | return f != $ac_func; | |
33290 | ; | |
33291 | return 0; | |
33292 | } | |
33293 | _ACEOF | |
33294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33296 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33297 | ac_status=$? |
ac1cb8d3 VS |
33298 | grep -v '^ *+' conftest.er1 >conftest.err |
33299 | rm -f conftest.er1 | |
33300 | cat conftest.err >&5 | |
a848cd7e SC |
33301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33302 | (exit $ac_status); } && | |
3565d135 RR |
33303 | { ac_try='test -z "$ac_cxx_werror_flag" |
33304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33306 | (eval $ac_try) 2>&5 | |
33307 | ac_status=$? | |
33308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33309 | (exit $ac_status); }; } && | |
33310 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33312 | (eval $ac_try) 2>&5 | |
33313 | ac_status=$? | |
33314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33315 | (exit $ac_status); }; }; then | |
33316 | eval "$as_ac_var=yes" | |
33317 | else | |
33318 | echo "$as_me: failed program was:" >&5 | |
33319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33320 | ||
33321 | eval "$as_ac_var=no" | |
33322 | fi | |
ac1cb8d3 VS |
33323 | rm -f conftest.err conftest.$ac_objext \ |
33324 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33325 | fi |
33326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33327 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33328 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33329 | cat >>confdefs.h <<_ACEOF | |
33330 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33331 | _ACEOF | |
33332 | ||
33333 | fi | |
33334 | done | |
33335 | ||
33336 | ||
33337 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
33338 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
33339 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
33340 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
33341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33342 | else | |
33343 | ||
efdf6afe | 33344 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
33345 | /* confdefs.h. */ |
33346 | _ACEOF | |
33347 | cat confdefs.h >>conftest.$ac_ext | |
33348 | cat >>conftest.$ac_ext <<_ACEOF | |
33349 | /* end confdefs.h. */ | |
33350 | ||
33351 | #include <stdio.h> | |
33352 | #include <stdarg.h> | |
efdf6afe VZ |
33353 | #ifdef __MSL__ |
33354 | #if __MSL__ >= 0x6000 | |
33355 | namespace std {} | |
33356 | using namespace std; | |
33357 | #endif | |
33358 | #endif | |
a848cd7e SC |
33359 | |
33360 | int | |
33361 | main () | |
33362 | { | |
33363 | ||
33364 | char *buf; | |
33365 | va_list ap; | |
62fa8b3a | 33366 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
33367 | |
33368 | ; | |
33369 | return 0; | |
33370 | } | |
33371 | _ACEOF | |
33372 | rm -f conftest.$ac_objext | |
33373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33374 | (eval $ac_compile) 2>conftest.er1 | |
33375 | ac_status=$? | |
33376 | grep -v '^ *+' conftest.er1 >conftest.err | |
33377 | rm -f conftest.er1 | |
33378 | cat conftest.err >&5 | |
33379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33380 | (exit $ac_status); } && | |
3565d135 RR |
33381 | { ac_try='test -z "$ac_cxx_werror_flag" |
33382 | || test ! -s conftest.err' | |
c122b164 DE |
33383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33384 | (eval $ac_try) 2>&5 | |
33385 | ac_status=$? | |
33386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33387 | (exit $ac_status); }; } && | |
33388 | { ac_try='test -s conftest.$ac_objext' | |
33389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33390 | (eval $ac_try) 2>&5 | |
33391 | ac_status=$? | |
33392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33393 | (exit $ac_status); }; }; then | |
33394 | wx_cv_func_vsnprintf_decl=yes | |
33395 | else | |
33396 | echo "$as_me: failed program was:" >&5 | |
33397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33398 | ||
a848cd7e SC |
33399 | wx_cv_func_vsnprintf_decl=no |
33400 | ||
33401 | fi | |
ac1cb8d3 | 33402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33403 | |
33404 | ||
33405 | fi | |
33406 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33407 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33408 | ||
33409 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33410 | cat >>confdefs.h <<\_ACEOF | |
33411 | #define HAVE_VSNPRINTF_DECL 1 | |
33412 | _ACEOF | |
33413 | ||
62fa8b3a MW |
33414 | |
33415 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33416 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33417 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33419 | else | |
33420 | ||
33421 | cat >conftest.$ac_ext <<_ACEOF | |
33422 | /* confdefs.h. */ | |
33423 | _ACEOF | |
33424 | cat confdefs.h >>conftest.$ac_ext | |
33425 | cat >>conftest.$ac_ext <<_ACEOF | |
33426 | /* end confdefs.h. */ | |
33427 | ||
33428 | #include <stdio.h> | |
33429 | #include <stdarg.h> | |
33430 | #ifdef __MSL__ | |
33431 | #if __MSL__ >= 0x6000 | |
33432 | namespace std {} | |
33433 | using namespace std; | |
33434 | #endif | |
33435 | #endif | |
33436 | ||
33437 | int | |
33438 | main () | |
33439 | { | |
33440 | ||
33441 | char *buf; | |
33442 | va_list ap; | |
33443 | const char *fmt = "%s"; | |
33444 | vsnprintf(buf, 10u, fmt, ap); | |
33445 | ||
33446 | ; | |
33447 | return 0; | |
33448 | } | |
33449 | _ACEOF | |
33450 | rm -f conftest.$ac_objext | |
33451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33452 | (eval $ac_compile) 2>conftest.er1 | |
33453 | ac_status=$? | |
33454 | grep -v '^ *+' conftest.er1 >conftest.err | |
33455 | rm -f conftest.er1 | |
33456 | cat conftest.err >&5 | |
33457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33458 | (exit $ac_status); } && | |
3565d135 RR |
33459 | { ac_try='test -z "$ac_cxx_werror_flag" |
33460 | || test ! -s conftest.err' | |
62fa8b3a MW |
33461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33462 | (eval $ac_try) 2>&5 | |
33463 | ac_status=$? | |
33464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33465 | (exit $ac_status); }; } && | |
33466 | { ac_try='test -s conftest.$ac_objext' | |
33467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33468 | (eval $ac_try) 2>&5 | |
33469 | ac_status=$? | |
33470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33471 | (exit $ac_status); }; }; then | |
33472 | wx_cv_func_broken_vsnprintf_decl=no | |
33473 | else | |
33474 | echo "$as_me: failed program was:" >&5 | |
33475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33476 | ||
33477 | wx_cv_func_broken_vsnprintf_decl=yes | |
33478 | ||
33479 | fi | |
33480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33481 | ||
33482 | ||
33483 | fi | |
33484 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
33485 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
33486 | ||
33487 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
33488 | cat >>confdefs.h <<\_ACEOF | |
33489 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
33490 | _ACEOF | |
33491 | ||
33492 | fi | |
a848cd7e SC |
33493 | fi |
33494 | fi | |
33495 | ||
4a767dd5 VZ |
33496 | if test "$ac_cv_func_snprintf" = "yes"; then |
33497 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
33498 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
33499 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
33500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33501 | else | |
33502 | ||
33503 | cat >conftest.$ac_ext <<_ACEOF | |
33504 | /* confdefs.h. */ | |
33505 | _ACEOF | |
33506 | cat confdefs.h >>conftest.$ac_ext | |
33507 | cat >>conftest.$ac_ext <<_ACEOF | |
33508 | /* end confdefs.h. */ | |
33509 | ||
33510 | #include <stdio.h> | |
33511 | #include <stdarg.h> | |
33512 | #ifdef __MSL__ | |
33513 | #if __MSL__ >= 0x6000 | |
33514 | namespace std {} | |
33515 | using namespace std; | |
33516 | #endif | |
33517 | #endif | |
33518 | ||
33519 | int | |
33520 | main () | |
33521 | { | |
33522 | ||
33523 | char *buf; | |
62fa8b3a | 33524 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
33525 | |
33526 | ; | |
33527 | return 0; | |
33528 | } | |
33529 | _ACEOF | |
33530 | rm -f conftest.$ac_objext | |
33531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33532 | (eval $ac_compile) 2>conftest.er1 | |
33533 | ac_status=$? | |
33534 | grep -v '^ *+' conftest.er1 >conftest.err | |
33535 | rm -f conftest.er1 | |
33536 | cat conftest.err >&5 | |
33537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33538 | (exit $ac_status); } && | |
3565d135 RR |
33539 | { ac_try='test -z "$ac_cxx_werror_flag" |
33540 | || test ! -s conftest.err' | |
4a767dd5 VZ |
33541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33542 | (eval $ac_try) 2>&5 | |
33543 | ac_status=$? | |
33544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33545 | (exit $ac_status); }; } && | |
33546 | { ac_try='test -s conftest.$ac_objext' | |
33547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33548 | (eval $ac_try) 2>&5 | |
33549 | ac_status=$? | |
33550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33551 | (exit $ac_status); }; }; then | |
33552 | wx_cv_func_snprintf_decl=yes | |
33553 | else | |
33554 | echo "$as_me: failed program was:" >&5 | |
33555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33556 | ||
33557 | wx_cv_func_snprintf_decl=no | |
33558 | ||
33559 | fi | |
33560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33561 | ||
33562 | ||
33563 | fi | |
33564 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
33565 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
33566 | ||
33567 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
33568 | cat >>confdefs.h <<\_ACEOF | |
33569 | #define HAVE_SNPRINTF_DECL 1 | |
33570 | _ACEOF | |
33571 | ||
62fa8b3a MW |
33572 | |
33573 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
33574 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
33575 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
33576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33577 | else | |
33578 | ||
33579 | cat >conftest.$ac_ext <<_ACEOF | |
33580 | /* confdefs.h. */ | |
33581 | _ACEOF | |
33582 | cat confdefs.h >>conftest.$ac_ext | |
33583 | cat >>conftest.$ac_ext <<_ACEOF | |
33584 | /* end confdefs.h. */ | |
33585 | ||
33586 | #include <stdio.h> | |
33587 | #include <stdarg.h> | |
33588 | #ifdef __MSL__ | |
33589 | #if __MSL__ >= 0x6000 | |
33590 | namespace std {} | |
33591 | using namespace std; | |
33592 | #endif | |
33593 | #endif | |
33594 | ||
33595 | int | |
33596 | main () | |
33597 | { | |
33598 | ||
33599 | char *buf; | |
33600 | const char *fmt = "%s"; | |
33601 | snprintf(buf, 10u, fmt, "wx"); | |
33602 | ||
33603 | ; | |
33604 | return 0; | |
33605 | } | |
33606 | _ACEOF | |
33607 | rm -f conftest.$ac_objext | |
33608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33609 | (eval $ac_compile) 2>conftest.er1 | |
33610 | ac_status=$? | |
33611 | grep -v '^ *+' conftest.er1 >conftest.err | |
33612 | rm -f conftest.er1 | |
33613 | cat conftest.err >&5 | |
33614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33615 | (exit $ac_status); } && | |
3565d135 RR |
33616 | { ac_try='test -z "$ac_cxx_werror_flag" |
33617 | || test ! -s conftest.err' | |
62fa8b3a MW |
33618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33619 | (eval $ac_try) 2>&5 | |
33620 | ac_status=$? | |
33621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33622 | (exit $ac_status); }; } && | |
33623 | { ac_try='test -s conftest.$ac_objext' | |
33624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33625 | (eval $ac_try) 2>&5 | |
33626 | ac_status=$? | |
33627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33628 | (exit $ac_status); }; }; then | |
33629 | wx_cv_func_broken_snprintf_decl=no | |
33630 | else | |
33631 | echo "$as_me: failed program was:" >&5 | |
33632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33633 | ||
33634 | wx_cv_func_broken_snprintf_decl=yes | |
33635 | ||
33636 | fi | |
33637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33638 | ||
33639 | ||
33640 | fi | |
33641 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
33642 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
33643 | ||
33644 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
33645 | cat >>confdefs.h <<\_ACEOF | |
33646 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
33647 | _ACEOF | |
33648 | ||
33649 | fi | |
4a767dd5 VZ |
33650 | fi |
33651 | fi | |
33652 | ||
a848cd7e SC |
33653 | if test "$wxUSE_UNICODE" = yes; then |
33654 | ||
33655 | ||
33656 | ||
fbe47c7b VS |
33657 | |
33658 | ||
33659 | ||
33660 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
33661 | do |
33662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33663 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33665 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33667 | else | |
33668 | cat >conftest.$ac_ext <<_ACEOF | |
33669 | /* confdefs.h. */ | |
33670 | _ACEOF | |
33671 | cat confdefs.h >>conftest.$ac_ext | |
33672 | cat >>conftest.$ac_ext <<_ACEOF | |
33673 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33674 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33676 | #define $ac_func innocuous_$ac_func | |
33677 | ||
a848cd7e SC |
33678 | /* System header to define __stub macros and hopefully few prototypes, |
33679 | which can conflict with char $ac_func (); below. | |
33680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33681 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33682 | |
a848cd7e SC |
33683 | #ifdef __STDC__ |
33684 | # include <limits.h> | |
33685 | #else | |
33686 | # include <assert.h> | |
33687 | #endif | |
ac1cb8d3 VS |
33688 | |
33689 | #undef $ac_func | |
33690 | ||
a848cd7e SC |
33691 | /* Override any gcc2 internal prototype to avoid an error. */ |
33692 | #ifdef __cplusplus | |
33693 | extern "C" | |
33694 | { | |
33695 | #endif | |
33696 | /* We use char because int might match the return type of a gcc2 | |
33697 | builtin and then its argument prototype would still apply. */ | |
33698 | char $ac_func (); | |
33699 | /* The GNU C library defines this for functions which it implements | |
33700 | to always fail with ENOSYS. Some functions are actually named | |
33701 | something starting with __ and the normal name is an alias. */ | |
33702 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33703 | choke me | |
33704 | #else | |
33705 | char (*f) () = $ac_func; | |
33706 | #endif | |
33707 | #ifdef __cplusplus | |
33708 | } | |
33709 | #endif | |
33710 | ||
33711 | int | |
33712 | main () | |
33713 | { | |
33714 | return f != $ac_func; | |
33715 | ; | |
33716 | return 0; | |
33717 | } | |
33718 | _ACEOF | |
33719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33721 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33722 | ac_status=$? |
ac1cb8d3 VS |
33723 | grep -v '^ *+' conftest.er1 >conftest.err |
33724 | rm -f conftest.er1 | |
33725 | cat conftest.err >&5 | |
a848cd7e SC |
33726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33727 | (exit $ac_status); } && | |
3565d135 RR |
33728 | { ac_try='test -z "$ac_cxx_werror_flag" |
33729 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33731 | (eval $ac_try) 2>&5 | |
33732 | ac_status=$? | |
33733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33734 | (exit $ac_status); }; } && | |
33735 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33737 | (eval $ac_try) 2>&5 | |
33738 | ac_status=$? | |
33739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33740 | (exit $ac_status); }; }; then | |
33741 | eval "$as_ac_var=yes" | |
33742 | else | |
33743 | echo "$as_me: failed program was:" >&5 | |
33744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33745 | ||
33746 | eval "$as_ac_var=no" | |
33747 | fi | |
ac1cb8d3 VS |
33748 | rm -f conftest.err conftest.$ac_objext \ |
33749 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33750 | fi |
33751 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33752 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33753 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33754 | cat >>confdefs.h <<_ACEOF | |
33755 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33756 | _ACEOF | |
33757 | ||
33758 | fi | |
33759 | done | |
33760 | ||
33761 | ||
33762 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
33763 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
33764 | cat >conftest.$ac_ext <<_ACEOF | |
33765 | /* confdefs.h. */ | |
33766 | _ACEOF | |
33767 | cat confdefs.h >>conftest.$ac_ext | |
33768 | cat >>conftest.$ac_ext <<_ACEOF | |
33769 | /* end confdefs.h. */ | |
33770 | #include <wchar.h> | |
33771 | int | |
33772 | main () | |
33773 | { | |
33774 | &_vsnwprintf; | |
33775 | ; | |
33776 | return 0; | |
33777 | } | |
33778 | _ACEOF | |
33779 | rm -f conftest.$ac_objext | |
33780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33781 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33782 | ac_status=$? |
ac1cb8d3 VS |
33783 | grep -v '^ *+' conftest.er1 >conftest.err |
33784 | rm -f conftest.er1 | |
33785 | cat conftest.err >&5 | |
a848cd7e SC |
33786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33787 | (exit $ac_status); } && | |
3565d135 RR |
33788 | { ac_try='test -z "$ac_cxx_werror_flag" |
33789 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33791 | (eval $ac_try) 2>&5 | |
33792 | ac_status=$? | |
33793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33794 | (exit $ac_status); }; } && | |
33795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33797 | (eval $ac_try) 2>&5 | |
33798 | ac_status=$? | |
33799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33800 | (exit $ac_status); }; }; then | |
33801 | echo "$as_me:$LINENO: result: yes" >&5 | |
33802 | echo "${ECHO_T}yes" >&6 | |
33803 | cat >>confdefs.h <<\_ACEOF | |
33804 | #define HAVE__VSNWPRINTF 1 | |
33805 | _ACEOF | |
33806 | ||
33807 | else | |
33808 | echo "$as_me: failed program was:" >&5 | |
33809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33810 | ||
33811 | echo "$as_me:$LINENO: result: no" >&5 | |
33812 | echo "${ECHO_T}no" >&6 | |
33813 | fi | |
ac1cb8d3 | 33814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
33815 | fi |
33816 | ||
33817 | ac_ext=c | |
33818 | ac_cpp='$CPP $CPPFLAGS' | |
33819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33822 | ||
33823 | ||
6ebeb4c7 VZ |
33824 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
33825 | ||
33826 | for ac_func in fnmatch | |
33827 | do | |
33828 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33829 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33830 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33831 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33833 | else | |
33834 | cat >conftest.$ac_ext <<_ACEOF | |
33835 | /* confdefs.h. */ | |
33836 | _ACEOF | |
33837 | cat confdefs.h >>conftest.$ac_ext | |
33838 | cat >>conftest.$ac_ext <<_ACEOF | |
33839 | /* end confdefs.h. */ | |
33840 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33841 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33842 | #define $ac_func innocuous_$ac_func | |
33843 | ||
33844 | /* System header to define __stub macros and hopefully few prototypes, | |
33845 | which can conflict with char $ac_func (); below. | |
33846 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33847 | <limits.h> exists even on freestanding compilers. */ | |
33848 | ||
33849 | #ifdef __STDC__ | |
33850 | # include <limits.h> | |
33851 | #else | |
33852 | # include <assert.h> | |
33853 | #endif | |
33854 | ||
33855 | #undef $ac_func | |
33856 | ||
33857 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33858 | #ifdef __cplusplus | |
33859 | extern "C" | |
33860 | { | |
33861 | #endif | |
33862 | /* We use char because int might match the return type of a gcc2 | |
33863 | builtin and then its argument prototype would still apply. */ | |
33864 | char $ac_func (); | |
33865 | /* The GNU C library defines this for functions which it implements | |
33866 | to always fail with ENOSYS. Some functions are actually named | |
33867 | something starting with __ and the normal name is an alias. */ | |
33868 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33869 | choke me | |
33870 | #else | |
33871 | char (*f) () = $ac_func; | |
33872 | #endif | |
33873 | #ifdef __cplusplus | |
33874 | } | |
33875 | #endif | |
33876 | ||
33877 | int | |
33878 | main () | |
33879 | { | |
33880 | return f != $ac_func; | |
33881 | ; | |
33882 | return 0; | |
33883 | } | |
33884 | _ACEOF | |
33885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33887 | (eval $ac_link) 2>conftest.er1 | |
33888 | ac_status=$? | |
33889 | grep -v '^ *+' conftest.er1 >conftest.err | |
33890 | rm -f conftest.er1 | |
33891 | cat conftest.err >&5 | |
33892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33893 | (exit $ac_status); } && | |
3565d135 RR |
33894 | { ac_try='test -z "$ac_c_werror_flag" |
33895 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
33896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33897 | (eval $ac_try) 2>&5 | |
33898 | ac_status=$? | |
33899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33900 | (exit $ac_status); }; } && | |
33901 | { ac_try='test -s conftest$ac_exeext' | |
33902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33903 | (eval $ac_try) 2>&5 | |
33904 | ac_status=$? | |
33905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33906 | (exit $ac_status); }; }; then | |
33907 | eval "$as_ac_var=yes" | |
33908 | else | |
33909 | echo "$as_me: failed program was:" >&5 | |
33910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33911 | ||
33912 | eval "$as_ac_var=no" | |
33913 | fi | |
33914 | rm -f conftest.err conftest.$ac_objext \ | |
33915 | conftest$ac_exeext conftest.$ac_ext | |
33916 | fi | |
33917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33918 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33919 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33920 | cat >>confdefs.h <<_ACEOF | |
33921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33922 | _ACEOF | |
33923 | ||
33924 | fi | |
33925 | done | |
33926 | ||
33927 | fi | |
33928 | ||
33929 | if test "$wxUSE_FILE" = "yes"; then | |
33930 | ||
33931 | for ac_func in fsync | |
33932 | do | |
33933 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33934 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33935 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33936 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33938 | else | |
33939 | cat >conftest.$ac_ext <<_ACEOF | |
33940 | /* confdefs.h. */ | |
33941 | _ACEOF | |
33942 | cat confdefs.h >>conftest.$ac_ext | |
33943 | cat >>conftest.$ac_ext <<_ACEOF | |
33944 | /* end confdefs.h. */ | |
33945 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33947 | #define $ac_func innocuous_$ac_func | |
33948 | ||
33949 | /* System header to define __stub macros and hopefully few prototypes, | |
33950 | which can conflict with char $ac_func (); below. | |
33951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33952 | <limits.h> exists even on freestanding compilers. */ | |
33953 | ||
33954 | #ifdef __STDC__ | |
33955 | # include <limits.h> | |
33956 | #else | |
33957 | # include <assert.h> | |
33958 | #endif | |
33959 | ||
33960 | #undef $ac_func | |
33961 | ||
33962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33963 | #ifdef __cplusplus | |
33964 | extern "C" | |
33965 | { | |
33966 | #endif | |
33967 | /* We use char because int might match the return type of a gcc2 | |
33968 | builtin and then its argument prototype would still apply. */ | |
33969 | char $ac_func (); | |
33970 | /* The GNU C library defines this for functions which it implements | |
33971 | to always fail with ENOSYS. Some functions are actually named | |
33972 | something starting with __ and the normal name is an alias. */ | |
33973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33974 | choke me | |
33975 | #else | |
33976 | char (*f) () = $ac_func; | |
33977 | #endif | |
33978 | #ifdef __cplusplus | |
33979 | } | |
33980 | #endif | |
33981 | ||
33982 | int | |
33983 | main () | |
33984 | { | |
33985 | return f != $ac_func; | |
33986 | ; | |
33987 | return 0; | |
33988 | } | |
33989 | _ACEOF | |
33990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33992 | (eval $ac_link) 2>conftest.er1 | |
33993 | ac_status=$? | |
33994 | grep -v '^ *+' conftest.er1 >conftest.err | |
33995 | rm -f conftest.er1 | |
33996 | cat conftest.err >&5 | |
33997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33998 | (exit $ac_status); } && | |
3565d135 RR |
33999 | { ac_try='test -z "$ac_c_werror_flag" |
34000 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
34001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34002 | (eval $ac_try) 2>&5 | |
34003 | ac_status=$? | |
34004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34005 | (exit $ac_status); }; } && | |
34006 | { ac_try='test -s conftest$ac_exeext' | |
34007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34008 | (eval $ac_try) 2>&5 | |
34009 | ac_status=$? | |
34010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34011 | (exit $ac_status); }; }; then | |
34012 | eval "$as_ac_var=yes" | |
34013 | else | |
34014 | echo "$as_me: failed program was:" >&5 | |
34015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34016 | ||
34017 | eval "$as_ac_var=no" | |
34018 | fi | |
34019 | rm -f conftest.err conftest.$ac_objext \ | |
34020 | conftest$ac_exeext conftest.$ac_ext | |
34021 | fi | |
34022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34023 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34024 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34025 | cat >>confdefs.h <<_ACEOF | |
34026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34027 | _ACEOF | |
34028 | ||
34029 | fi | |
34030 | done | |
34031 | ||
34032 | fi | |
a848cd7e SC |
34033 | |
34034 | ||
34035 | if test "$TOOLKIT" != "MSW"; then | |
34036 | ||
34037 | ||
34038 | ||
34039 | ||
34040 | ac_ext=cc | |
34041 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34042 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34043 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34044 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34045 | ||
34046 | ||
34047 | ||
34048 | ||
34049 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
34050 | if test "${with_libiconv_prefix+set}" = set; then | |
34051 | withval="$with_libiconv_prefix" | |
34052 | ||
34053 | for dir in `echo "$withval" | tr : ' '`; do | |
34054 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
34055 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
34056 | done | |
34057 | ||
34058 | fi; | |
34059 | ||
34060 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
34061 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
34062 | if test "${am_cv_func_iconv+set}" = set; then | |
34063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34064 | else | |
34065 | ||
34066 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
34067 | am_cv_lib_iconv=no | |
34068 | cat >conftest.$ac_ext <<_ACEOF | |
34069 | /* confdefs.h. */ | |
34070 | _ACEOF | |
34071 | cat confdefs.h >>conftest.$ac_ext | |
34072 | cat >>conftest.$ac_ext <<_ACEOF | |
34073 | /* end confdefs.h. */ | |
34074 | #include <stdlib.h> | |
34075 | #include <iconv.h> | |
34076 | int | |
34077 | main () | |
34078 | { | |
34079 | iconv_t cd = iconv_open("",""); | |
34080 | iconv(cd,NULL,NULL,NULL,NULL); | |
34081 | iconv_close(cd); | |
34082 | ; | |
34083 | return 0; | |
34084 | } | |
34085 | _ACEOF | |
34086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34089 | ac_status=$? |
ac1cb8d3 VS |
34090 | grep -v '^ *+' conftest.er1 >conftest.err |
34091 | rm -f conftest.er1 | |
34092 | cat conftest.err >&5 | |
a848cd7e SC |
34093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34094 | (exit $ac_status); } && | |
3565d135 RR |
34095 | { ac_try='test -z "$ac_cxx_werror_flag" |
34096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34098 | (eval $ac_try) 2>&5 | |
34099 | ac_status=$? | |
34100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34101 | (exit $ac_status); }; } && | |
34102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34104 | (eval $ac_try) 2>&5 | |
34105 | ac_status=$? | |
34106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34107 | (exit $ac_status); }; }; then | |
34108 | am_cv_func_iconv=yes | |
34109 | else | |
34110 | echo "$as_me: failed program was:" >&5 | |
34111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34112 | ||
34113 | fi | |
ac1cb8d3 VS |
34114 | rm -f conftest.err conftest.$ac_objext \ |
34115 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34116 | if test "$am_cv_func_iconv" != yes; then |
34117 | am_save_LIBS="$LIBS" | |
34118 | LIBS="$LIBS -liconv" | |
34119 | cat >conftest.$ac_ext <<_ACEOF | |
34120 | /* confdefs.h. */ | |
34121 | _ACEOF | |
34122 | cat confdefs.h >>conftest.$ac_ext | |
34123 | cat >>conftest.$ac_ext <<_ACEOF | |
34124 | /* end confdefs.h. */ | |
34125 | #include <stdlib.h> | |
34126 | #include <iconv.h> | |
34127 | int | |
34128 | main () | |
34129 | { | |
34130 | iconv_t cd = iconv_open("",""); | |
34131 | iconv(cd,NULL,NULL,NULL,NULL); | |
34132 | iconv_close(cd); | |
34133 | ; | |
34134 | return 0; | |
34135 | } | |
34136 | _ACEOF | |
34137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34139 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34140 | ac_status=$? |
ac1cb8d3 VS |
34141 | grep -v '^ *+' conftest.er1 >conftest.err |
34142 | rm -f conftest.er1 | |
34143 | cat conftest.err >&5 | |
a848cd7e SC |
34144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34145 | (exit $ac_status); } && | |
3565d135 RR |
34146 | { ac_try='test -z "$ac_cxx_werror_flag" |
34147 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34149 | (eval $ac_try) 2>&5 | |
34150 | ac_status=$? | |
34151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34152 | (exit $ac_status); }; } && | |
34153 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34155 | (eval $ac_try) 2>&5 | |
34156 | ac_status=$? | |
34157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34158 | (exit $ac_status); }; }; then | |
34159 | am_cv_lib_iconv=yes | |
34160 | am_cv_func_iconv=yes | |
34161 | else | |
34162 | echo "$as_me: failed program was:" >&5 | |
34163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34164 | ||
34165 | fi | |
ac1cb8d3 VS |
34166 | rm -f conftest.err conftest.$ac_objext \ |
34167 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34168 | LIBS="$am_save_LIBS" |
34169 | fi | |
34170 | ||
34171 | fi | |
34172 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
34173 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
34174 | if test "$am_cv_func_iconv" = yes; then | |
34175 | ||
34176 | cat >>confdefs.h <<\_ACEOF | |
34177 | #define HAVE_ICONV 1 | |
34178 | _ACEOF | |
34179 | ||
34180 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
34181 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
34182 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
34183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34184 | else | |
34185 | cat >conftest.$ac_ext <<_ACEOF | |
34186 | /* confdefs.h. */ | |
34187 | _ACEOF | |
34188 | cat confdefs.h >>conftest.$ac_ext | |
34189 | cat >>conftest.$ac_ext <<_ACEOF | |
34190 | /* end confdefs.h. */ | |
34191 | ||
34192 | #include <stdlib.h> | |
34193 | #include <iconv.h> | |
34194 | extern | |
34195 | #ifdef __cplusplus | |
34196 | "C" | |
34197 | #endif | |
34198 | #if defined(__STDC__) || defined(__cplusplus) | |
34199 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
34200 | #else | |
34201 | size_t iconv(); | |
34202 | #endif | |
34203 | ||
34204 | int | |
34205 | main () | |
34206 | { | |
34207 | ||
34208 | ; | |
34209 | return 0; | |
34210 | } | |
34211 | _ACEOF | |
34212 | rm -f conftest.$ac_objext | |
34213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34214 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34215 | ac_status=$? |
ac1cb8d3 VS |
34216 | grep -v '^ *+' conftest.er1 >conftest.err |
34217 | rm -f conftest.er1 | |
34218 | cat conftest.err >&5 | |
a848cd7e SC |
34219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34220 | (exit $ac_status); } && | |
3565d135 RR |
34221 | { ac_try='test -z "$ac_cxx_werror_flag" |
34222 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34224 | (eval $ac_try) 2>&5 | |
34225 | ac_status=$? | |
34226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34227 | (exit $ac_status); }; } && | |
34228 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34230 | (eval $ac_try) 2>&5 | |
34231 | ac_status=$? | |
34232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34233 | (exit $ac_status); }; }; then | |
34234 | wx_cv_func_iconv_const="no" | |
34235 | else | |
34236 | echo "$as_me: failed program was:" >&5 | |
34237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34238 | ||
34239 | wx_cv_func_iconv_const="yes" | |
34240 | ||
34241 | fi | |
ac1cb8d3 | 34242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34243 | |
34244 | fi | |
34245 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
34246 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
34247 | ||
34248 | iconv_const= | |
34249 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
34250 | iconv_const="const" | |
34251 | fi | |
34252 | ||
34253 | ||
34254 | cat >>confdefs.h <<_ACEOF | |
34255 | #define ICONV_CONST $iconv_const | |
34256 | _ACEOF | |
34257 | ||
34258 | fi | |
34259 | LIBICONV= | |
34260 | if test "$am_cv_lib_iconv" = yes; then | |
34261 | LIBICONV="-liconv" | |
34262 | fi | |
34263 | ||
34264 | ||
34265 | LIBS="$LIBICONV $LIBS" | |
34266 | ac_ext=c | |
34267 | ac_cpp='$CPP $CPPFLAGS' | |
34268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34271 | ||
34272 | ||
34273 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
34274 | ||
34275 | for ac_func in sigaction | |
34276 | do | |
34277 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34278 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34280 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34282 | else | |
34283 | cat >conftest.$ac_ext <<_ACEOF | |
34284 | /* confdefs.h. */ | |
34285 | _ACEOF | |
34286 | cat confdefs.h >>conftest.$ac_ext | |
34287 | cat >>conftest.$ac_ext <<_ACEOF | |
34288 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34289 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34290 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34291 | #define $ac_func innocuous_$ac_func | |
34292 | ||
a848cd7e SC |
34293 | /* System header to define __stub macros and hopefully few prototypes, |
34294 | which can conflict with char $ac_func (); below. | |
34295 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34296 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34297 | |
a848cd7e SC |
34298 | #ifdef __STDC__ |
34299 | # include <limits.h> | |
34300 | #else | |
34301 | # include <assert.h> | |
34302 | #endif | |
ac1cb8d3 VS |
34303 | |
34304 | #undef $ac_func | |
34305 | ||
a848cd7e SC |
34306 | /* Override any gcc2 internal prototype to avoid an error. */ |
34307 | #ifdef __cplusplus | |
34308 | extern "C" | |
34309 | { | |
34310 | #endif | |
34311 | /* We use char because int might match the return type of a gcc2 | |
34312 | builtin and then its argument prototype would still apply. */ | |
34313 | char $ac_func (); | |
34314 | /* The GNU C library defines this for functions which it implements | |
34315 | to always fail with ENOSYS. Some functions are actually named | |
34316 | something starting with __ and the normal name is an alias. */ | |
34317 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34318 | choke me | |
34319 | #else | |
34320 | char (*f) () = $ac_func; | |
34321 | #endif | |
34322 | #ifdef __cplusplus | |
34323 | } | |
34324 | #endif | |
34325 | ||
34326 | int | |
34327 | main () | |
34328 | { | |
34329 | return f != $ac_func; | |
34330 | ; | |
34331 | return 0; | |
34332 | } | |
34333 | _ACEOF | |
34334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34336 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34337 | ac_status=$? |
ac1cb8d3 VS |
34338 | grep -v '^ *+' conftest.er1 >conftest.err |
34339 | rm -f conftest.er1 | |
34340 | cat conftest.err >&5 | |
a848cd7e SC |
34341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34342 | (exit $ac_status); } && | |
3565d135 RR |
34343 | { ac_try='test -z "$ac_c_werror_flag" |
34344 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34346 | (eval $ac_try) 2>&5 | |
34347 | ac_status=$? | |
34348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34349 | (exit $ac_status); }; } && | |
34350 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34352 | (eval $ac_try) 2>&5 | |
34353 | ac_status=$? | |
34354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34355 | (exit $ac_status); }; }; then | |
34356 | eval "$as_ac_var=yes" | |
34357 | else | |
34358 | echo "$as_me: failed program was:" >&5 | |
34359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34360 | ||
34361 | eval "$as_ac_var=no" | |
34362 | fi | |
ac1cb8d3 VS |
34363 | rm -f conftest.err conftest.$ac_objext \ |
34364 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34365 | fi |
34366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34367 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34368 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34369 | cat >>confdefs.h <<_ACEOF | |
34370 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34371 | _ACEOF | |
34372 | ||
34373 | fi | |
34374 | done | |
34375 | ||
34376 | ||
34377 | if test "$ac_cv_func_sigaction" = "no"; then | |
34378 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
34379 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
34380 | wxUSE_ON_FATAL_EXCEPTION=no | |
34381 | fi | |
34382 | ||
34383 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
34384 | ||
34385 | ||
34386 | ac_ext=cc | |
34387 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34388 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34389 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34390 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34391 | ||
34392 | ||
34393 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
34394 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
34395 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
34396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34397 | else | |
34398 | ||
34399 | cat >conftest.$ac_ext <<_ACEOF | |
34400 | /* confdefs.h. */ | |
34401 | _ACEOF | |
34402 | cat confdefs.h >>conftest.$ac_ext | |
34403 | cat >>conftest.$ac_ext <<_ACEOF | |
34404 | /* end confdefs.h. */ | |
34405 | #include <signal.h> | |
34406 | int | |
34407 | main () | |
34408 | { | |
34409 | ||
34410 | extern void testSigHandler(int); | |
34411 | ||
34412 | struct sigaction sa; | |
34413 | sa.sa_handler = testSigHandler; | |
34414 | ||
34415 | ; | |
34416 | return 0; | |
34417 | } | |
34418 | _ACEOF | |
34419 | rm -f conftest.$ac_objext | |
34420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34421 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34422 | ac_status=$? |
ac1cb8d3 VS |
34423 | grep -v '^ *+' conftest.er1 >conftest.err |
34424 | rm -f conftest.er1 | |
34425 | cat conftest.err >&5 | |
a848cd7e SC |
34426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34427 | (exit $ac_status); } && | |
3565d135 RR |
34428 | { ac_try='test -z "$ac_cxx_werror_flag" |
34429 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34431 | (eval $ac_try) 2>&5 | |
34432 | ac_status=$? | |
34433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34434 | (exit $ac_status); }; } && | |
34435 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34437 | (eval $ac_try) 2>&5 | |
34438 | ac_status=$? | |
34439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34440 | (exit $ac_status); }; }; then | |
34441 | ||
34442 | wx_cv_type_sa_handler=int | |
34443 | ||
34444 | else | |
34445 | echo "$as_me: failed program was:" >&5 | |
34446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34447 | ||
34448 | ||
34449 | wx_cv_type_sa_handler=void | |
34450 | ||
34451 | fi | |
ac1cb8d3 | 34452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34453 | |
34454 | fi | |
34455 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34456 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34457 | ||
34458 | ac_ext=c | |
34459 | ac_cpp='$CPP $CPPFLAGS' | |
34460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34463 | ||
34464 | ||
34465 | cat >>confdefs.h <<_ACEOF | |
34466 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34467 | _ACEOF | |
34468 | ||
34469 | fi | |
34470 | fi | |
34471 | ||
eaff0f0d VZ |
34472 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
34473 | ||
34474 | ||
34475 | ac_ext=cc | |
34476 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34477 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34478 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34479 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34480 | ||
34481 | ||
34482 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
34483 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
34484 | if test "${wx_cv_func_backtrace+set}" = set; then | |
34485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34486 | else | |
34487 | ||
34488 | cat >conftest.$ac_ext <<_ACEOF | |
34489 | /* confdefs.h. */ | |
34490 | _ACEOF | |
34491 | cat confdefs.h >>conftest.$ac_ext | |
34492 | cat >>conftest.$ac_ext <<_ACEOF | |
34493 | /* end confdefs.h. */ | |
34494 | #include <execinfo.h> | |
34495 | int | |
34496 | main () | |
34497 | { | |
34498 | ||
34499 | void *trace[1]; | |
34500 | char **messages; | |
34501 | ||
34502 | backtrace(trace, 1); | |
34503 | messages = backtrace_symbols(trace, 1); | |
34504 | ||
34505 | ; | |
34506 | return 0; | |
34507 | } | |
34508 | _ACEOF | |
34509 | rm -f conftest.$ac_objext | |
34510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34511 | (eval $ac_compile) 2>conftest.er1 | |
34512 | ac_status=$? | |
34513 | grep -v '^ *+' conftest.er1 >conftest.err | |
34514 | rm -f conftest.er1 | |
34515 | cat conftest.err >&5 | |
34516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34517 | (exit $ac_status); } && | |
3565d135 RR |
34518 | { ac_try='test -z "$ac_cxx_werror_flag" |
34519 | || test ! -s conftest.err' | |
eaff0f0d VZ |
34520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34521 | (eval $ac_try) 2>&5 | |
34522 | ac_status=$? | |
34523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34524 | (exit $ac_status); }; } && | |
34525 | { ac_try='test -s conftest.$ac_objext' | |
34526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34527 | (eval $ac_try) 2>&5 | |
34528 | ac_status=$? | |
34529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34530 | (exit $ac_status); }; }; then | |
34531 | wx_cv_func_backtrace=yes | |
34532 | else | |
34533 | echo "$as_me: failed program was:" >&5 | |
34534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34535 | ||
34536 | wx_cv_func_backtrace=no | |
34537 | ||
34538 | fi | |
34539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34540 | ||
34541 | ||
34542 | fi | |
34543 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
34544 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
34545 | ||
34546 | ||
34547 | if test "$wx_cv_func_backtrace" = "no"; then | |
34548 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
34549 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
34550 | wxUSE_STACKWALKER=no | |
34551 | else | |
34552 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
34553 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
34554 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
34555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34556 | else | |
34557 | ||
34558 | cat >conftest.$ac_ext <<_ACEOF | |
34559 | /* confdefs.h. */ | |
34560 | _ACEOF | |
34561 | cat confdefs.h >>conftest.$ac_ext | |
34562 | cat >>conftest.$ac_ext <<_ACEOF | |
34563 | /* end confdefs.h. */ | |
34564 | #include <cxxabi.h> | |
34565 | int | |
34566 | main () | |
34567 | { | |
34568 | ||
34569 | int rc; | |
34570 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
34571 | ||
34572 | ; | |
34573 | return 0; | |
34574 | } | |
34575 | _ACEOF | |
dfe0c803 JS |
34576 | rm -f conftest.$ac_objext conftest$ac_exeext |
34577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34578 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
34579 | ac_status=$? |
34580 | grep -v '^ *+' conftest.er1 >conftest.err | |
34581 | rm -f conftest.er1 | |
34582 | cat conftest.err >&5 | |
34583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34584 | (exit $ac_status); } && | |
3565d135 RR |
34585 | { ac_try='test -z "$ac_cxx_werror_flag" |
34586 | || test ! -s conftest.err' | |
eaff0f0d VZ |
34587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34588 | (eval $ac_try) 2>&5 | |
34589 | ac_status=$? | |
34590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34591 | (exit $ac_status); }; } && | |
dfe0c803 | 34592 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
34593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34594 | (eval $ac_try) 2>&5 | |
34595 | ac_status=$? | |
34596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34597 | (exit $ac_status); }; }; then | |
34598 | wx_cv_func_cxa_demangle=yes | |
34599 | else | |
34600 | echo "$as_me: failed program was:" >&5 | |
34601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34602 | ||
34603 | wx_cv_func_cxa_demangle=no | |
34604 | ||
34605 | fi | |
dfe0c803 JS |
34606 | rm -f conftest.err conftest.$ac_objext \ |
34607 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
34608 | |
34609 | ||
34610 | fi | |
34611 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
34612 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
34613 | ||
34614 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
34615 | cat >>confdefs.h <<\_ACEOF | |
34616 | #define HAVE_CXA_DEMANGLE 1 | |
34617 | _ACEOF | |
34618 | ||
34619 | fi | |
34620 | fi | |
34621 | ||
34622 | ac_ext=c | |
34623 | ac_cpp='$CPP $CPPFLAGS' | |
34624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34627 | ||
34628 | fi | |
34629 | ||
898beab1 DE |
34630 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
34631 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
34632 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
34633 | wxUSE_STACKWALKER=no | |
34634 | fi | |
34635 | ||
34636 | ||
a848cd7e SC |
34637 | |
34638 | ||
34639 | for ac_func in mkstemp mktemp | |
34640 | do | |
34641 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34642 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34643 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34644 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34646 | else | |
34647 | cat >conftest.$ac_ext <<_ACEOF | |
34648 | /* confdefs.h. */ | |
34649 | _ACEOF | |
34650 | cat confdefs.h >>conftest.$ac_ext | |
34651 | cat >>conftest.$ac_ext <<_ACEOF | |
34652 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34653 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34654 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34655 | #define $ac_func innocuous_$ac_func | |
34656 | ||
a848cd7e SC |
34657 | /* System header to define __stub macros and hopefully few prototypes, |
34658 | which can conflict with char $ac_func (); below. | |
34659 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34660 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34661 | |
a848cd7e SC |
34662 | #ifdef __STDC__ |
34663 | # include <limits.h> | |
34664 | #else | |
34665 | # include <assert.h> | |
34666 | #endif | |
ac1cb8d3 VS |
34667 | |
34668 | #undef $ac_func | |
34669 | ||
a848cd7e SC |
34670 | /* Override any gcc2 internal prototype to avoid an error. */ |
34671 | #ifdef __cplusplus | |
34672 | extern "C" | |
34673 | { | |
34674 | #endif | |
34675 | /* We use char because int might match the return type of a gcc2 | |
34676 | builtin and then its argument prototype would still apply. */ | |
34677 | char $ac_func (); | |
34678 | /* The GNU C library defines this for functions which it implements | |
34679 | to always fail with ENOSYS. Some functions are actually named | |
34680 | something starting with __ and the normal name is an alias. */ | |
34681 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34682 | choke me | |
34683 | #else | |
34684 | char (*f) () = $ac_func; | |
34685 | #endif | |
34686 | #ifdef __cplusplus | |
34687 | } | |
34688 | #endif | |
34689 | ||
34690 | int | |
34691 | main () | |
34692 | { | |
34693 | return f != $ac_func; | |
34694 | ; | |
34695 | return 0; | |
34696 | } | |
34697 | _ACEOF | |
34698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34700 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34701 | ac_status=$? |
ac1cb8d3 VS |
34702 | grep -v '^ *+' conftest.er1 >conftest.err |
34703 | rm -f conftest.er1 | |
34704 | cat conftest.err >&5 | |
a848cd7e SC |
34705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34706 | (exit $ac_status); } && | |
3565d135 RR |
34707 | { ac_try='test -z "$ac_c_werror_flag" |
34708 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34710 | (eval $ac_try) 2>&5 | |
34711 | ac_status=$? | |
34712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34713 | (exit $ac_status); }; } && | |
34714 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34716 | (eval $ac_try) 2>&5 | |
34717 | ac_status=$? | |
34718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34719 | (exit $ac_status); }; }; then | |
34720 | eval "$as_ac_var=yes" | |
34721 | else | |
34722 | echo "$as_me: failed program was:" >&5 | |
34723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34724 | ||
34725 | eval "$as_ac_var=no" | |
34726 | fi | |
ac1cb8d3 VS |
34727 | rm -f conftest.err conftest.$ac_objext \ |
34728 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34729 | fi |
34730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34731 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34732 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34733 | cat >>confdefs.h <<_ACEOF | |
34734 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34735 | _ACEOF | |
34736 | break | |
34737 | fi | |
34738 | done | |
34739 | ||
34740 | ||
34741 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
34742 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
34743 | if test "${wx_cv_func_statfs+set}" = set; then | |
34744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34745 | else | |
34746 | cat >conftest.$ac_ext <<_ACEOF | |
34747 | /* confdefs.h. */ | |
34748 | _ACEOF | |
34749 | cat confdefs.h >>conftest.$ac_ext | |
34750 | cat >>conftest.$ac_ext <<_ACEOF | |
34751 | /* end confdefs.h. */ | |
34752 | ||
34753 | #if defined(__BSD__) | |
84ae7ca4 VZ |
34754 | #include <sys/param.h> |
34755 | #include <sys/mount.h> | |
a848cd7e | 34756 | #else |
84ae7ca4 | 34757 | #include <sys/vfs.h> |
a848cd7e SC |
34758 | #endif |
34759 | ||
34760 | int | |
34761 | main () | |
34762 | { | |
34763 | ||
34764 | long l; | |
34765 | struct statfs fs; | |
34766 | statfs("/", &fs); | |
34767 | l = fs.f_bsize; | |
34768 | l += fs.f_blocks; | |
34769 | l += fs.f_bavail; | |
34770 | ||
34771 | ; | |
34772 | return 0; | |
34773 | } | |
34774 | _ACEOF | |
34775 | rm -f conftest.$ac_objext | |
34776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34777 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34778 | ac_status=$? |
ac1cb8d3 VS |
34779 | grep -v '^ *+' conftest.er1 >conftest.err |
34780 | rm -f conftest.er1 | |
34781 | cat conftest.err >&5 | |
a848cd7e SC |
34782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34783 | (exit $ac_status); } && | |
3565d135 RR |
34784 | { ac_try='test -z "$ac_c_werror_flag" |
34785 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34787 | (eval $ac_try) 2>&5 | |
34788 | ac_status=$? | |
34789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34790 | (exit $ac_status); }; } && | |
34791 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34793 | (eval $ac_try) 2>&5 | |
34794 | ac_status=$? | |
34795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34796 | (exit $ac_status); }; }; then | |
84ae7ca4 | 34797 | wx_cv_func_statfs=yes |
a848cd7e SC |
34798 | else |
34799 | echo "$as_me: failed program was:" >&5 | |
34800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34801 | ||
84ae7ca4 | 34802 | wx_cv_func_statfs=no |
a848cd7e SC |
34803 | |
34804 | fi | |
ac1cb8d3 | 34805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34806 | |
34807 | fi | |
34808 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
34809 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
34810 | ||
34811 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
34812 | |
34813 | ||
34814 | ac_ext=cc | |
34815 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34816 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34817 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34818 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34819 | ||
34820 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
34821 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
34822 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
34823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34824 | else | |
0683aca6 VZ |
34825 | cat >conftest.$ac_ext <<_ACEOF |
34826 | /* confdefs.h. */ | |
34827 | _ACEOF | |
34828 | cat confdefs.h >>conftest.$ac_ext | |
34829 | cat >>conftest.$ac_ext <<_ACEOF | |
34830 | /* end confdefs.h. */ | |
84ae7ca4 | 34831 | |
0683aca6 VZ |
34832 | #if defined(__BSD__) |
34833 | #include <sys/param.h> | |
34834 | #include <sys/mount.h> | |
34835 | #else | |
34836 | #include <sys/vfs.h> | |
34837 | #endif | |
34838 | ||
34839 | int | |
34840 | main () | |
34841 | { | |
34842 | ||
34843 | struct statfs fs; | |
34844 | statfs("", &fs); | |
34845 | ||
34846 | ; | |
34847 | return 0; | |
34848 | } | |
34849 | _ACEOF | |
34850 | rm -f conftest.$ac_objext | |
34851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34852 | (eval $ac_compile) 2>conftest.er1 | |
34853 | ac_status=$? | |
34854 | grep -v '^ *+' conftest.er1 >conftest.err | |
34855 | rm -f conftest.er1 | |
34856 | cat conftest.err >&5 | |
34857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34858 | (exit $ac_status); } && | |
3565d135 RR |
34859 | { ac_try='test -z "$ac_cxx_werror_flag" |
34860 | || test ! -s conftest.err' | |
0683aca6 VZ |
34861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34862 | (eval $ac_try) 2>&5 | |
34863 | ac_status=$? | |
34864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34865 | (exit $ac_status); }; } && | |
34866 | { ac_try='test -s conftest.$ac_objext' | |
34867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34868 | (eval $ac_try) 2>&5 | |
34869 | ac_status=$? | |
34870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34871 | (exit $ac_status); }; }; then | |
34872 | wx_cv_func_statfs_decl=yes | |
34873 | else | |
34874 | echo "$as_me: failed program was:" >&5 | |
34875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34876 | ||
34877 | wx_cv_func_statfs_decl=no | |
34878 | ||
34879 | fi | |
34880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
34881 | |
34882 | fi | |
34883 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
34884 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
34885 | ac_ext=c | |
34886 | ac_cpp='$CPP $CPPFLAGS' | |
34887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34890 | ||
34891 | ||
34892 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
34893 | cat >>confdefs.h <<\_ACEOF | |
34894 | #define HAVE_STATFS_DECL 1 | |
34895 | _ACEOF | |
34896 | ||
34897 | fi | |
34898 | ||
a848cd7e SC |
34899 | wx_cv_type_statvfs_t="struct statfs" |
34900 | cat >>confdefs.h <<\_ACEOF | |
34901 | #define HAVE_STATFS 1 | |
34902 | _ACEOF | |
34903 | ||
34904 | else | |
34905 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
34906 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
34907 | if test "${wx_cv_func_statvfs+set}" = set; then | |
34908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34909 | else | |
34910 | cat >conftest.$ac_ext <<_ACEOF | |
34911 | /* confdefs.h. */ | |
34912 | _ACEOF | |
34913 | cat confdefs.h >>conftest.$ac_ext | |
34914 | cat >>conftest.$ac_ext <<_ACEOF | |
34915 | /* end confdefs.h. */ | |
34916 | ||
34917 | #include <stddef.h> | |
34918 | #include <sys/statvfs.h> | |
34919 | ||
34920 | int | |
34921 | main () | |
34922 | { | |
34923 | ||
34924 | statvfs("/", NULL); | |
34925 | ||
34926 | ; | |
34927 | return 0; | |
34928 | } | |
34929 | _ACEOF | |
34930 | rm -f conftest.$ac_objext | |
34931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34933 | ac_status=$? |
ac1cb8d3 VS |
34934 | grep -v '^ *+' conftest.er1 >conftest.err |
34935 | rm -f conftest.er1 | |
34936 | cat conftest.err >&5 | |
a848cd7e SC |
34937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34938 | (exit $ac_status); } && | |
3565d135 RR |
34939 | { ac_try='test -z "$ac_c_werror_flag" |
34940 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34942 | (eval $ac_try) 2>&5 | |
34943 | ac_status=$? | |
34944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34945 | (exit $ac_status); }; } && | |
34946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34948 | (eval $ac_try) 2>&5 | |
34949 | ac_status=$? | |
34950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34951 | (exit $ac_status); }; }; then | |
34952 | wx_cv_func_statvfs=yes | |
34953 | else | |
34954 | echo "$as_me: failed program was:" >&5 | |
34955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34956 | ||
34957 | wx_cv_func_statvfs=no | |
34958 | ||
34959 | fi | |
ac1cb8d3 | 34960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34961 | |
34962 | fi | |
34963 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
34964 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
34965 | ||
34966 | if test "$wx_cv_func_statvfs" = "yes"; then | |
34967 | ||
34968 | ||
34969 | ac_ext=cc | |
34970 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34971 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34972 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34973 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34974 | ||
34975 | ||
34976 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
34977 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
34978 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
34979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34980 | else | |
34981 | cat >conftest.$ac_ext <<_ACEOF | |
34982 | /* confdefs.h. */ | |
34983 | _ACEOF | |
34984 | cat confdefs.h >>conftest.$ac_ext | |
34985 | cat >>conftest.$ac_ext <<_ACEOF | |
34986 | /* end confdefs.h. */ | |
34987 | ||
34988 | #include <sys/statvfs.h> | |
34989 | ||
34990 | int | |
34991 | main () | |
34992 | { | |
34993 | ||
34994 | long l; | |
34995 | statvfs_t fs; | |
34996 | statvfs("/", &fs); | |
34997 | l = fs.f_bsize; | |
34998 | l += fs.f_blocks; | |
34999 | l += fs.f_bavail; | |
35000 | ||
35001 | ; | |
35002 | return 0; | |
35003 | } | |
35004 | _ACEOF | |
35005 | rm -f conftest.$ac_objext | |
35006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35008 | ac_status=$? |
ac1cb8d3 VS |
35009 | grep -v '^ *+' conftest.er1 >conftest.err |
35010 | rm -f conftest.er1 | |
35011 | cat conftest.err >&5 | |
a848cd7e SC |
35012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35013 | (exit $ac_status); } && | |
3565d135 RR |
35014 | { ac_try='test -z "$ac_cxx_werror_flag" |
35015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35017 | (eval $ac_try) 2>&5 | |
35018 | ac_status=$? | |
35019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35020 | (exit $ac_status); }; } && | |
35021 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35023 | (eval $ac_try) 2>&5 | |
35024 | ac_status=$? | |
35025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35026 | (exit $ac_status); }; }; then | |
35027 | wx_cv_type_statvfs_t=statvfs_t | |
35028 | else | |
35029 | echo "$as_me: failed program was:" >&5 | |
35030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35031 | ||
35032 | ||
35033 | cat >conftest.$ac_ext <<_ACEOF | |
35034 | /* confdefs.h. */ | |
35035 | _ACEOF | |
35036 | cat confdefs.h >>conftest.$ac_ext | |
35037 | cat >>conftest.$ac_ext <<_ACEOF | |
35038 | /* end confdefs.h. */ | |
35039 | ||
35040 | #include <sys/statvfs.h> | |
35041 | ||
35042 | int | |
35043 | main () | |
35044 | { | |
35045 | ||
35046 | long l; | |
35047 | struct statvfs fs; | |
35048 | statvfs("/", &fs); | |
35049 | l = fs.f_bsize; | |
35050 | l += fs.f_blocks; | |
35051 | l += fs.f_bavail; | |
35052 | ||
35053 | ; | |
35054 | return 0; | |
35055 | } | |
35056 | _ACEOF | |
35057 | rm -f conftest.$ac_objext | |
35058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35059 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35060 | ac_status=$? |
ac1cb8d3 VS |
35061 | grep -v '^ *+' conftest.er1 >conftest.err |
35062 | rm -f conftest.er1 | |
35063 | cat conftest.err >&5 | |
a848cd7e SC |
35064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35065 | (exit $ac_status); } && | |
3565d135 RR |
35066 | { ac_try='test -z "$ac_cxx_werror_flag" |
35067 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35069 | (eval $ac_try) 2>&5 | |
35070 | ac_status=$? | |
35071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35072 | (exit $ac_status); }; } && | |
35073 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35075 | (eval $ac_try) 2>&5 | |
35076 | ac_status=$? | |
35077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35078 | (exit $ac_status); }; }; then | |
35079 | wx_cv_type_statvfs_t="struct statvfs" | |
35080 | else | |
35081 | echo "$as_me: failed program was:" >&5 | |
35082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35083 | ||
35084 | wx_cv_type_statvfs_t="unknown" | |
35085 | ||
35086 | fi | |
ac1cb8d3 | 35087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35088 | |
35089 | ||
35090 | fi | |
ac1cb8d3 | 35091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35092 | |
35093 | fi | |
35094 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
35095 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
35096 | ||
35097 | ac_ext=c | |
35098 | ac_cpp='$CPP $CPPFLAGS' | |
35099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35102 | ||
35103 | ||
35104 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35105 | cat >>confdefs.h <<\_ACEOF | |
35106 | #define HAVE_STATVFS 1 | |
35107 | _ACEOF | |
35108 | ||
35109 | fi | |
35110 | else | |
35111 | wx_cv_type_statvfs_t="unknown" | |
35112 | fi | |
35113 | fi | |
35114 | ||
35115 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35116 | cat >>confdefs.h <<_ACEOF | |
35117 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
35118 | _ACEOF | |
35119 | ||
35120 | else | |
35121 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
35122 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
35123 | fi | |
35124 | ||
35125 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
35126 | ||
35127 | ||
35128 | for ac_func in fcntl flock | |
35129 | do | |
35130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35131 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35133 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35135 | else | |
35136 | cat >conftest.$ac_ext <<_ACEOF | |
35137 | /* confdefs.h. */ | |
35138 | _ACEOF | |
35139 | cat confdefs.h >>conftest.$ac_ext | |
35140 | cat >>conftest.$ac_ext <<_ACEOF | |
35141 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35142 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35144 | #define $ac_func innocuous_$ac_func | |
35145 | ||
a848cd7e SC |
35146 | /* System header to define __stub macros and hopefully few prototypes, |
35147 | which can conflict with char $ac_func (); below. | |
35148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35149 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35150 | |
a848cd7e SC |
35151 | #ifdef __STDC__ |
35152 | # include <limits.h> | |
35153 | #else | |
35154 | # include <assert.h> | |
35155 | #endif | |
ac1cb8d3 VS |
35156 | |
35157 | #undef $ac_func | |
35158 | ||
a848cd7e SC |
35159 | /* Override any gcc2 internal prototype to avoid an error. */ |
35160 | #ifdef __cplusplus | |
35161 | extern "C" | |
35162 | { | |
35163 | #endif | |
35164 | /* We use char because int might match the return type of a gcc2 | |
35165 | builtin and then its argument prototype would still apply. */ | |
35166 | char $ac_func (); | |
35167 | /* The GNU C library defines this for functions which it implements | |
35168 | to always fail with ENOSYS. Some functions are actually named | |
35169 | something starting with __ and the normal name is an alias. */ | |
35170 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35171 | choke me | |
35172 | #else | |
35173 | char (*f) () = $ac_func; | |
35174 | #endif | |
35175 | #ifdef __cplusplus | |
35176 | } | |
35177 | #endif | |
35178 | ||
35179 | int | |
35180 | main () | |
35181 | { | |
35182 | return f != $ac_func; | |
35183 | ; | |
35184 | return 0; | |
35185 | } | |
35186 | _ACEOF | |
35187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35190 | ac_status=$? |
ac1cb8d3 VS |
35191 | grep -v '^ *+' conftest.er1 >conftest.err |
35192 | rm -f conftest.er1 | |
35193 | cat conftest.err >&5 | |
a848cd7e SC |
35194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35195 | (exit $ac_status); } && | |
3565d135 RR |
35196 | { ac_try='test -z "$ac_c_werror_flag" |
35197 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35199 | (eval $ac_try) 2>&5 | |
35200 | ac_status=$? | |
35201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35202 | (exit $ac_status); }; } && | |
35203 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35205 | (eval $ac_try) 2>&5 | |
35206 | ac_status=$? | |
35207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35208 | (exit $ac_status); }; }; then | |
35209 | eval "$as_ac_var=yes" | |
35210 | else | |
35211 | echo "$as_me: failed program was:" >&5 | |
35212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35213 | ||
35214 | eval "$as_ac_var=no" | |
35215 | fi | |
ac1cb8d3 VS |
35216 | rm -f conftest.err conftest.$ac_objext \ |
35217 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35218 | fi |
35219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35220 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35221 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35222 | cat >>confdefs.h <<_ACEOF | |
35223 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35224 | _ACEOF | |
35225 | break | |
35226 | fi | |
35227 | done | |
35228 | ||
35229 | ||
35230 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
35231 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
35232 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
35233 | wxUSE_SNGLINST_CHECKER=no | |
35234 | fi | |
35235 | fi | |
35236 | ||
35237 | ||
35238 | for ac_func in timegm | |
35239 | do | |
35240 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35241 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35242 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35243 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35245 | else | |
35246 | cat >conftest.$ac_ext <<_ACEOF | |
35247 | /* confdefs.h. */ | |
35248 | _ACEOF | |
35249 | cat confdefs.h >>conftest.$ac_ext | |
35250 | cat >>conftest.$ac_ext <<_ACEOF | |
35251 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35252 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35254 | #define $ac_func innocuous_$ac_func | |
35255 | ||
a848cd7e SC |
35256 | /* System header to define __stub macros and hopefully few prototypes, |
35257 | which can conflict with char $ac_func (); below. | |
35258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35259 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35260 | |
a848cd7e SC |
35261 | #ifdef __STDC__ |
35262 | # include <limits.h> | |
35263 | #else | |
35264 | # include <assert.h> | |
35265 | #endif | |
ac1cb8d3 VS |
35266 | |
35267 | #undef $ac_func | |
35268 | ||
a848cd7e SC |
35269 | /* Override any gcc2 internal prototype to avoid an error. */ |
35270 | #ifdef __cplusplus | |
35271 | extern "C" | |
35272 | { | |
35273 | #endif | |
35274 | /* We use char because int might match the return type of a gcc2 | |
35275 | builtin and then its argument prototype would still apply. */ | |
35276 | char $ac_func (); | |
35277 | /* The GNU C library defines this for functions which it implements | |
35278 | to always fail with ENOSYS. Some functions are actually named | |
35279 | something starting with __ and the normal name is an alias. */ | |
35280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35281 | choke me | |
35282 | #else | |
35283 | char (*f) () = $ac_func; | |
35284 | #endif | |
35285 | #ifdef __cplusplus | |
35286 | } | |
35287 | #endif | |
35288 | ||
35289 | int | |
35290 | main () | |
35291 | { | |
35292 | return f != $ac_func; | |
35293 | ; | |
35294 | return 0; | |
35295 | } | |
35296 | _ACEOF | |
35297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35299 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35300 | ac_status=$? |
ac1cb8d3 VS |
35301 | grep -v '^ *+' conftest.er1 >conftest.err |
35302 | rm -f conftest.er1 | |
35303 | cat conftest.err >&5 | |
a848cd7e SC |
35304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35305 | (exit $ac_status); } && | |
3565d135 RR |
35306 | { ac_try='test -z "$ac_c_werror_flag" |
35307 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35309 | (eval $ac_try) 2>&5 | |
35310 | ac_status=$? | |
35311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35312 | (exit $ac_status); }; } && | |
35313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35315 | (eval $ac_try) 2>&5 | |
35316 | ac_status=$? | |
35317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35318 | (exit $ac_status); }; }; then | |
35319 | eval "$as_ac_var=yes" | |
35320 | else | |
35321 | echo "$as_me: failed program was:" >&5 | |
35322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35323 | ||
35324 | eval "$as_ac_var=no" | |
35325 | fi | |
ac1cb8d3 VS |
35326 | rm -f conftest.err conftest.$ac_objext \ |
35327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35328 | fi |
35329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35330 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35331 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35332 | cat >>confdefs.h <<_ACEOF | |
35333 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35334 | _ACEOF | |
35335 | ||
35336 | fi | |
35337 | done | |
35338 | ||
35339 | ||
35340 | ||
35341 | ||
35342 | for ac_func in putenv setenv | |
35343 | do | |
35344 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35345 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35346 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35347 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35349 | else | |
35350 | cat >conftest.$ac_ext <<_ACEOF | |
35351 | /* confdefs.h. */ | |
35352 | _ACEOF | |
35353 | cat confdefs.h >>conftest.$ac_ext | |
35354 | cat >>conftest.$ac_ext <<_ACEOF | |
35355 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35356 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35357 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35358 | #define $ac_func innocuous_$ac_func | |
35359 | ||
a848cd7e SC |
35360 | /* System header to define __stub macros and hopefully few prototypes, |
35361 | which can conflict with char $ac_func (); below. | |
35362 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35363 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35364 | |
a848cd7e SC |
35365 | #ifdef __STDC__ |
35366 | # include <limits.h> | |
35367 | #else | |
35368 | # include <assert.h> | |
35369 | #endif | |
ac1cb8d3 VS |
35370 | |
35371 | #undef $ac_func | |
35372 | ||
a848cd7e SC |
35373 | /* Override any gcc2 internal prototype to avoid an error. */ |
35374 | #ifdef __cplusplus | |
35375 | extern "C" | |
35376 | { | |
35377 | #endif | |
35378 | /* We use char because int might match the return type of a gcc2 | |
35379 | builtin and then its argument prototype would still apply. */ | |
35380 | char $ac_func (); | |
35381 | /* The GNU C library defines this for functions which it implements | |
35382 | to always fail with ENOSYS. Some functions are actually named | |
35383 | something starting with __ and the normal name is an alias. */ | |
35384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35385 | choke me | |
35386 | #else | |
35387 | char (*f) () = $ac_func; | |
35388 | #endif | |
35389 | #ifdef __cplusplus | |
35390 | } | |
35391 | #endif | |
35392 | ||
35393 | int | |
35394 | main () | |
35395 | { | |
35396 | return f != $ac_func; | |
35397 | ; | |
35398 | return 0; | |
35399 | } | |
35400 | _ACEOF | |
35401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35403 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35404 | ac_status=$? |
ac1cb8d3 VS |
35405 | grep -v '^ *+' conftest.er1 >conftest.err |
35406 | rm -f conftest.er1 | |
35407 | cat conftest.err >&5 | |
a848cd7e SC |
35408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35409 | (exit $ac_status); } && | |
3565d135 RR |
35410 | { ac_try='test -z "$ac_c_werror_flag" |
35411 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35413 | (eval $ac_try) 2>&5 | |
35414 | ac_status=$? | |
35415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35416 | (exit $ac_status); }; } && | |
35417 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35419 | (eval $ac_try) 2>&5 | |
35420 | ac_status=$? | |
35421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35422 | (exit $ac_status); }; }; then | |
35423 | eval "$as_ac_var=yes" | |
35424 | else | |
35425 | echo "$as_me: failed program was:" >&5 | |
35426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35427 | ||
35428 | eval "$as_ac_var=no" | |
35429 | fi | |
ac1cb8d3 VS |
35430 | rm -f conftest.err conftest.$ac_objext \ |
35431 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35432 | fi |
35433 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35434 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35435 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35436 | cat >>confdefs.h <<_ACEOF | |
35437 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35438 | _ACEOF | |
35439 | break | |
35440 | fi | |
35441 | done | |
35442 | ||
35443 | ||
35444 | HAVE_SOME_SLEEP_FUNC=0 | |
35445 | if test "$USE_BEOS" = 1; then | |
35446 | cat >>confdefs.h <<\_ACEOF | |
35447 | #define HAVE_SLEEP 1 | |
35448 | _ACEOF | |
35449 | ||
35450 | HAVE_SOME_SLEEP_FUNC=1 | |
35451 | fi | |
35452 | ||
35453 | if test "$USE_DARWIN" = 1; then | |
35454 | cat >>confdefs.h <<\_ACEOF | |
35455 | #define HAVE_USLEEP 1 | |
35456 | _ACEOF | |
35457 | ||
35458 | HAVE_SOME_SLEEP_FUNC=1 | |
35459 | fi | |
35460 | ||
35461 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35462 | POSIX4_LINK= | |
35463 | ||
35464 | for ac_func in nanosleep | |
35465 | do | |
35466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35467 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35469 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35471 | else | |
35472 | cat >conftest.$ac_ext <<_ACEOF | |
35473 | /* confdefs.h. */ | |
35474 | _ACEOF | |
35475 | cat confdefs.h >>conftest.$ac_ext | |
35476 | cat >>conftest.$ac_ext <<_ACEOF | |
35477 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35478 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35480 | #define $ac_func innocuous_$ac_func | |
35481 | ||
a848cd7e SC |
35482 | /* System header to define __stub macros and hopefully few prototypes, |
35483 | which can conflict with char $ac_func (); below. | |
35484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35485 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35486 | |
a848cd7e SC |
35487 | #ifdef __STDC__ |
35488 | # include <limits.h> | |
35489 | #else | |
35490 | # include <assert.h> | |
35491 | #endif | |
ac1cb8d3 VS |
35492 | |
35493 | #undef $ac_func | |
35494 | ||
a848cd7e SC |
35495 | /* Override any gcc2 internal prototype to avoid an error. */ |
35496 | #ifdef __cplusplus | |
35497 | extern "C" | |
35498 | { | |
35499 | #endif | |
35500 | /* We use char because int might match the return type of a gcc2 | |
35501 | builtin and then its argument prototype would still apply. */ | |
35502 | char $ac_func (); | |
35503 | /* The GNU C library defines this for functions which it implements | |
35504 | to always fail with ENOSYS. Some functions are actually named | |
35505 | something starting with __ and the normal name is an alias. */ | |
35506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35507 | choke me | |
35508 | #else | |
35509 | char (*f) () = $ac_func; | |
35510 | #endif | |
35511 | #ifdef __cplusplus | |
35512 | } | |
35513 | #endif | |
35514 | ||
35515 | int | |
35516 | main () | |
35517 | { | |
35518 | return f != $ac_func; | |
35519 | ; | |
35520 | return 0; | |
35521 | } | |
35522 | _ACEOF | |
35523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35525 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35526 | ac_status=$? |
ac1cb8d3 VS |
35527 | grep -v '^ *+' conftest.er1 >conftest.err |
35528 | rm -f conftest.er1 | |
35529 | cat conftest.err >&5 | |
a848cd7e SC |
35530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35531 | (exit $ac_status); } && | |
3565d135 RR |
35532 | { ac_try='test -z "$ac_c_werror_flag" |
35533 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35535 | (eval $ac_try) 2>&5 | |
35536 | ac_status=$? | |
35537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35538 | (exit $ac_status); }; } && | |
35539 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35541 | (eval $ac_try) 2>&5 | |
35542 | ac_status=$? | |
35543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35544 | (exit $ac_status); }; }; then | |
35545 | eval "$as_ac_var=yes" | |
35546 | else | |
35547 | echo "$as_me: failed program was:" >&5 | |
35548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35549 | ||
35550 | eval "$as_ac_var=no" | |
35551 | fi | |
ac1cb8d3 VS |
35552 | rm -f conftest.err conftest.$ac_objext \ |
35553 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35554 | fi |
35555 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35556 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35557 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35558 | cat >>confdefs.h <<_ACEOF | |
35559 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35560 | _ACEOF | |
35561 | cat >>confdefs.h <<\_ACEOF | |
35562 | #define HAVE_NANOSLEEP 1 | |
35563 | _ACEOF | |
35564 | ||
35565 | else | |
35566 | ||
35567 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
35568 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
35569 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
35570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35571 | else | |
35572 | ac_check_lib_save_LIBS=$LIBS | |
35573 | LIBS="-lposix4 $LIBS" | |
35574 | cat >conftest.$ac_ext <<_ACEOF | |
35575 | /* confdefs.h. */ | |
35576 | _ACEOF | |
35577 | cat confdefs.h >>conftest.$ac_ext | |
35578 | cat >>conftest.$ac_ext <<_ACEOF | |
35579 | /* end confdefs.h. */ | |
35580 | ||
35581 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35582 | #ifdef __cplusplus | |
35583 | extern "C" | |
35584 | #endif | |
35585 | /* We use char because int might match the return type of a gcc2 | |
35586 | builtin and then its argument prototype would still apply. */ | |
35587 | char nanosleep (); | |
35588 | int | |
35589 | main () | |
35590 | { | |
35591 | nanosleep (); | |
35592 | ; | |
35593 | return 0; | |
35594 | } | |
35595 | _ACEOF | |
35596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35598 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35599 | ac_status=$? |
ac1cb8d3 VS |
35600 | grep -v '^ *+' conftest.er1 >conftest.err |
35601 | rm -f conftest.er1 | |
35602 | cat conftest.err >&5 | |
a848cd7e SC |
35603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35604 | (exit $ac_status); } && | |
3565d135 RR |
35605 | { ac_try='test -z "$ac_c_werror_flag" |
35606 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35608 | (eval $ac_try) 2>&5 | |
35609 | ac_status=$? | |
35610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35611 | (exit $ac_status); }; } && | |
35612 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35614 | (eval $ac_try) 2>&5 | |
35615 | ac_status=$? | |
35616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35617 | (exit $ac_status); }; }; then | |
35618 | ac_cv_lib_posix4_nanosleep=yes | |
35619 | else | |
35620 | echo "$as_me: failed program was:" >&5 | |
35621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35622 | ||
35623 | ac_cv_lib_posix4_nanosleep=no | |
35624 | fi | |
ac1cb8d3 VS |
35625 | rm -f conftest.err conftest.$ac_objext \ |
35626 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35627 | LIBS=$ac_check_lib_save_LIBS |
35628 | fi | |
35629 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
35630 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
35631 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
35632 | ||
35633 | cat >>confdefs.h <<\_ACEOF | |
35634 | #define HAVE_NANOSLEEP 1 | |
35635 | _ACEOF | |
35636 | ||
35637 | POSIX4_LINK=" -lposix4" | |
35638 | ||
35639 | else | |
35640 | ||
35641 | ||
35642 | for ac_func in usleep | |
35643 | do | |
35644 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35645 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35646 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35647 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35649 | else | |
35650 | cat >conftest.$ac_ext <<_ACEOF | |
35651 | /* confdefs.h. */ | |
35652 | _ACEOF | |
35653 | cat confdefs.h >>conftest.$ac_ext | |
35654 | cat >>conftest.$ac_ext <<_ACEOF | |
35655 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35656 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35657 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35658 | #define $ac_func innocuous_$ac_func | |
35659 | ||
a848cd7e SC |
35660 | /* System header to define __stub macros and hopefully few prototypes, |
35661 | which can conflict with char $ac_func (); below. | |
35662 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35663 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35664 | |
a848cd7e SC |
35665 | #ifdef __STDC__ |
35666 | # include <limits.h> | |
35667 | #else | |
35668 | # include <assert.h> | |
35669 | #endif | |
ac1cb8d3 VS |
35670 | |
35671 | #undef $ac_func | |
35672 | ||
a848cd7e SC |
35673 | /* Override any gcc2 internal prototype to avoid an error. */ |
35674 | #ifdef __cplusplus | |
35675 | extern "C" | |
35676 | { | |
35677 | #endif | |
35678 | /* We use char because int might match the return type of a gcc2 | |
35679 | builtin and then its argument prototype would still apply. */ | |
35680 | char $ac_func (); | |
35681 | /* The GNU C library defines this for functions which it implements | |
35682 | to always fail with ENOSYS. Some functions are actually named | |
35683 | something starting with __ and the normal name is an alias. */ | |
35684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35685 | choke me | |
35686 | #else | |
35687 | char (*f) () = $ac_func; | |
35688 | #endif | |
35689 | #ifdef __cplusplus | |
35690 | } | |
35691 | #endif | |
35692 | ||
35693 | int | |
35694 | main () | |
35695 | { | |
35696 | return f != $ac_func; | |
35697 | ; | |
35698 | return 0; | |
35699 | } | |
35700 | _ACEOF | |
35701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35703 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35704 | ac_status=$? |
ac1cb8d3 VS |
35705 | grep -v '^ *+' conftest.er1 >conftest.err |
35706 | rm -f conftest.er1 | |
35707 | cat conftest.err >&5 | |
a848cd7e SC |
35708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35709 | (exit $ac_status); } && | |
3565d135 RR |
35710 | { ac_try='test -z "$ac_c_werror_flag" |
35711 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35713 | (eval $ac_try) 2>&5 | |
35714 | ac_status=$? | |
35715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35716 | (exit $ac_status); }; } && | |
35717 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35719 | (eval $ac_try) 2>&5 | |
35720 | ac_status=$? | |
35721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35722 | (exit $ac_status); }; }; then | |
35723 | eval "$as_ac_var=yes" | |
35724 | else | |
35725 | echo "$as_me: failed program was:" >&5 | |
35726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35727 | ||
35728 | eval "$as_ac_var=no" | |
35729 | fi | |
ac1cb8d3 VS |
35730 | rm -f conftest.err conftest.$ac_objext \ |
35731 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35732 | fi |
35733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35735 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35736 | cat >>confdefs.h <<_ACEOF | |
35737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35738 | _ACEOF | |
35739 | cat >>confdefs.h <<\_ACEOF | |
35740 | #define HAVE_USLEEP 1 | |
35741 | _ACEOF | |
35742 | ||
35743 | else | |
35744 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
35745 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
35746 | ||
35747 | fi | |
35748 | done | |
35749 | ||
35750 | ||
35751 | ||
35752 | fi | |
35753 | ||
35754 | ||
35755 | ||
35756 | fi | |
35757 | done | |
35758 | ||
35759 | fi | |
35760 | ||
35761 | ||
35762 | ||
35763 | for ac_func in uname gethostname | |
35764 | do | |
35765 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35766 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35767 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35768 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35770 | else | |
35771 | cat >conftest.$ac_ext <<_ACEOF | |
35772 | /* confdefs.h. */ | |
35773 | _ACEOF | |
35774 | cat confdefs.h >>conftest.$ac_ext | |
35775 | cat >>conftest.$ac_ext <<_ACEOF | |
35776 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35777 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35779 | #define $ac_func innocuous_$ac_func | |
35780 | ||
a848cd7e SC |
35781 | /* System header to define __stub macros and hopefully few prototypes, |
35782 | which can conflict with char $ac_func (); below. | |
35783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35784 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35785 | |
a848cd7e SC |
35786 | #ifdef __STDC__ |
35787 | # include <limits.h> | |
35788 | #else | |
35789 | # include <assert.h> | |
35790 | #endif | |
ac1cb8d3 VS |
35791 | |
35792 | #undef $ac_func | |
35793 | ||
a848cd7e SC |
35794 | /* Override any gcc2 internal prototype to avoid an error. */ |
35795 | #ifdef __cplusplus | |
35796 | extern "C" | |
35797 | { | |
35798 | #endif | |
35799 | /* We use char because int might match the return type of a gcc2 | |
35800 | builtin and then its argument prototype would still apply. */ | |
35801 | char $ac_func (); | |
35802 | /* The GNU C library defines this for functions which it implements | |
35803 | to always fail with ENOSYS. Some functions are actually named | |
35804 | something starting with __ and the normal name is an alias. */ | |
35805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35806 | choke me | |
35807 | #else | |
35808 | char (*f) () = $ac_func; | |
35809 | #endif | |
35810 | #ifdef __cplusplus | |
35811 | } | |
35812 | #endif | |
35813 | ||
35814 | int | |
35815 | main () | |
35816 | { | |
35817 | return f != $ac_func; | |
35818 | ; | |
35819 | return 0; | |
35820 | } | |
35821 | _ACEOF | |
35822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35824 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35825 | ac_status=$? |
ac1cb8d3 VS |
35826 | grep -v '^ *+' conftest.er1 >conftest.err |
35827 | rm -f conftest.er1 | |
35828 | cat conftest.err >&5 | |
a848cd7e SC |
35829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35830 | (exit $ac_status); } && | |
3565d135 RR |
35831 | { ac_try='test -z "$ac_c_werror_flag" |
35832 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35834 | (eval $ac_try) 2>&5 | |
35835 | ac_status=$? | |
35836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35837 | (exit $ac_status); }; } && | |
35838 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35840 | (eval $ac_try) 2>&5 | |
35841 | ac_status=$? | |
35842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35843 | (exit $ac_status); }; }; then | |
35844 | eval "$as_ac_var=yes" | |
35845 | else | |
35846 | echo "$as_me: failed program was:" >&5 | |
35847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35848 | ||
35849 | eval "$as_ac_var=no" | |
35850 | fi | |
ac1cb8d3 VS |
35851 | rm -f conftest.err conftest.$ac_objext \ |
35852 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35853 | fi |
35854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35855 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35856 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35857 | cat >>confdefs.h <<_ACEOF | |
35858 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35859 | _ACEOF | |
35860 | break | |
35861 | fi | |
35862 | done | |
35863 | ||
35864 | ||
35865 | ||
35866 | ||
35867 | ac_ext=cc | |
35868 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35869 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35870 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35871 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35872 | ||
35873 | ||
35874 | ||
35875 | for ac_func in strtok_r | |
35876 | do | |
35877 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35878 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35879 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35880 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35882 | else | |
35883 | cat >conftest.$ac_ext <<_ACEOF | |
35884 | /* confdefs.h. */ | |
35885 | _ACEOF | |
35886 | cat confdefs.h >>conftest.$ac_ext | |
35887 | cat >>conftest.$ac_ext <<_ACEOF | |
35888 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35889 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35890 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35891 | #define $ac_func innocuous_$ac_func | |
35892 | ||
a848cd7e SC |
35893 | /* System header to define __stub macros and hopefully few prototypes, |
35894 | which can conflict with char $ac_func (); below. | |
35895 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35896 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35897 | |
a848cd7e SC |
35898 | #ifdef __STDC__ |
35899 | # include <limits.h> | |
35900 | #else | |
35901 | # include <assert.h> | |
35902 | #endif | |
ac1cb8d3 VS |
35903 | |
35904 | #undef $ac_func | |
35905 | ||
a848cd7e SC |
35906 | /* Override any gcc2 internal prototype to avoid an error. */ |
35907 | #ifdef __cplusplus | |
35908 | extern "C" | |
35909 | { | |
35910 | #endif | |
35911 | /* We use char because int might match the return type of a gcc2 | |
35912 | builtin and then its argument prototype would still apply. */ | |
35913 | char $ac_func (); | |
35914 | /* The GNU C library defines this for functions which it implements | |
35915 | to always fail with ENOSYS. Some functions are actually named | |
35916 | something starting with __ and the normal name is an alias. */ | |
35917 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35918 | choke me | |
35919 | #else | |
35920 | char (*f) () = $ac_func; | |
35921 | #endif | |
35922 | #ifdef __cplusplus | |
35923 | } | |
35924 | #endif | |
35925 | ||
35926 | int | |
35927 | main () | |
35928 | { | |
35929 | return f != $ac_func; | |
35930 | ; | |
35931 | return 0; | |
35932 | } | |
35933 | _ACEOF | |
35934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35936 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35937 | ac_status=$? |
ac1cb8d3 VS |
35938 | grep -v '^ *+' conftest.er1 >conftest.err |
35939 | rm -f conftest.er1 | |
35940 | cat conftest.err >&5 | |
a848cd7e SC |
35941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35942 | (exit $ac_status); } && | |
3565d135 RR |
35943 | { ac_try='test -z "$ac_cxx_werror_flag" |
35944 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35946 | (eval $ac_try) 2>&5 | |
35947 | ac_status=$? | |
35948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35949 | (exit $ac_status); }; } && | |
35950 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35952 | (eval $ac_try) 2>&5 | |
35953 | ac_status=$? | |
35954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35955 | (exit $ac_status); }; }; then | |
35956 | eval "$as_ac_var=yes" | |
35957 | else | |
35958 | echo "$as_me: failed program was:" >&5 | |
35959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35960 | ||
35961 | eval "$as_ac_var=no" | |
35962 | fi | |
ac1cb8d3 VS |
35963 | rm -f conftest.err conftest.$ac_objext \ |
35964 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35965 | fi |
35966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35967 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35968 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35969 | cat >>confdefs.h <<_ACEOF | |
35970 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35971 | _ACEOF | |
35972 | ||
35973 | fi | |
35974 | done | |
35975 | ||
35976 | ||
35977 | ac_ext=c | |
35978 | ac_cpp='$CPP $CPPFLAGS' | |
35979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35982 | ||
35983 | ||
35984 | INET_LINK= | |
35985 | ||
35986 | for ac_func in inet_addr | |
35987 | do | |
35988 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35989 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35990 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35991 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35993 | else | |
35994 | cat >conftest.$ac_ext <<_ACEOF | |
35995 | /* confdefs.h. */ | |
35996 | _ACEOF | |
35997 | cat confdefs.h >>conftest.$ac_ext | |
35998 | cat >>conftest.$ac_ext <<_ACEOF | |
35999 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36000 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36001 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36002 | #define $ac_func innocuous_$ac_func | |
36003 | ||
a848cd7e SC |
36004 | /* System header to define __stub macros and hopefully few prototypes, |
36005 | which can conflict with char $ac_func (); below. | |
36006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36007 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36008 | |
a848cd7e SC |
36009 | #ifdef __STDC__ |
36010 | # include <limits.h> | |
36011 | #else | |
36012 | # include <assert.h> | |
36013 | #endif | |
ac1cb8d3 VS |
36014 | |
36015 | #undef $ac_func | |
36016 | ||
a848cd7e SC |
36017 | /* Override any gcc2 internal prototype to avoid an error. */ |
36018 | #ifdef __cplusplus | |
36019 | extern "C" | |
36020 | { | |
36021 | #endif | |
36022 | /* We use char because int might match the return type of a gcc2 | |
36023 | builtin and then its argument prototype would still apply. */ | |
36024 | char $ac_func (); | |
36025 | /* The GNU C library defines this for functions which it implements | |
36026 | to always fail with ENOSYS. Some functions are actually named | |
36027 | something starting with __ and the normal name is an alias. */ | |
36028 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36029 | choke me | |
36030 | #else | |
36031 | char (*f) () = $ac_func; | |
36032 | #endif | |
36033 | #ifdef __cplusplus | |
36034 | } | |
36035 | #endif | |
36036 | ||
36037 | int | |
36038 | main () | |
36039 | { | |
36040 | return f != $ac_func; | |
36041 | ; | |
36042 | return 0; | |
36043 | } | |
36044 | _ACEOF | |
36045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36047 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36048 | ac_status=$? |
ac1cb8d3 VS |
36049 | grep -v '^ *+' conftest.er1 >conftest.err |
36050 | rm -f conftest.er1 | |
36051 | cat conftest.err >&5 | |
a848cd7e SC |
36052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36053 | (exit $ac_status); } && | |
3565d135 RR |
36054 | { ac_try='test -z "$ac_c_werror_flag" |
36055 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36057 | (eval $ac_try) 2>&5 | |
36058 | ac_status=$? | |
36059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36060 | (exit $ac_status); }; } && | |
36061 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36063 | (eval $ac_try) 2>&5 | |
36064 | ac_status=$? | |
36065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36066 | (exit $ac_status); }; }; then | |
36067 | eval "$as_ac_var=yes" | |
36068 | else | |
36069 | echo "$as_me: failed program was:" >&5 | |
36070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36071 | ||
36072 | eval "$as_ac_var=no" | |
36073 | fi | |
ac1cb8d3 VS |
36074 | rm -f conftest.err conftest.$ac_objext \ |
36075 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36076 | fi |
36077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36078 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36079 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36080 | cat >>confdefs.h <<_ACEOF | |
36081 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36082 | _ACEOF | |
36083 | cat >>confdefs.h <<\_ACEOF | |
36084 | #define HAVE_INET_ADDR 1 | |
36085 | _ACEOF | |
36086 | ||
36087 | else | |
36088 | ||
36089 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
36090 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
36091 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
36092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36093 | else | |
36094 | ac_check_lib_save_LIBS=$LIBS | |
36095 | LIBS="-lnsl $LIBS" | |
36096 | cat >conftest.$ac_ext <<_ACEOF | |
36097 | /* confdefs.h. */ | |
36098 | _ACEOF | |
36099 | cat confdefs.h >>conftest.$ac_ext | |
36100 | cat >>conftest.$ac_ext <<_ACEOF | |
36101 | /* end confdefs.h. */ | |
36102 | ||
36103 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36104 | #ifdef __cplusplus | |
36105 | extern "C" | |
36106 | #endif | |
36107 | /* We use char because int might match the return type of a gcc2 | |
36108 | builtin and then its argument prototype would still apply. */ | |
36109 | char inet_addr (); | |
36110 | int | |
36111 | main () | |
36112 | { | |
36113 | inet_addr (); | |
36114 | ; | |
36115 | return 0; | |
36116 | } | |
36117 | _ACEOF | |
36118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36120 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36121 | ac_status=$? |
ac1cb8d3 VS |
36122 | grep -v '^ *+' conftest.er1 >conftest.err |
36123 | rm -f conftest.er1 | |
36124 | cat conftest.err >&5 | |
a848cd7e SC |
36125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36126 | (exit $ac_status); } && | |
3565d135 RR |
36127 | { ac_try='test -z "$ac_c_werror_flag" |
36128 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36130 | (eval $ac_try) 2>&5 | |
36131 | ac_status=$? | |
36132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36133 | (exit $ac_status); }; } && | |
36134 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36136 | (eval $ac_try) 2>&5 | |
36137 | ac_status=$? | |
36138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36139 | (exit $ac_status); }; }; then | |
36140 | ac_cv_lib_nsl_inet_addr=yes | |
36141 | else | |
36142 | echo "$as_me: failed program was:" >&5 | |
36143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36144 | ||
36145 | ac_cv_lib_nsl_inet_addr=no | |
36146 | fi | |
ac1cb8d3 VS |
36147 | rm -f conftest.err conftest.$ac_objext \ |
36148 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36149 | LIBS=$ac_check_lib_save_LIBS |
36150 | fi | |
36151 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
36152 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
36153 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
36154 | INET_LINK="nsl" | |
36155 | else | |
36156 | ||
36157 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
36158 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
36159 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
36160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36161 | else | |
36162 | ac_check_lib_save_LIBS=$LIBS | |
36163 | LIBS="-lresolv $LIBS" | |
36164 | cat >conftest.$ac_ext <<_ACEOF | |
36165 | /* confdefs.h. */ | |
36166 | _ACEOF | |
36167 | cat confdefs.h >>conftest.$ac_ext | |
36168 | cat >>conftest.$ac_ext <<_ACEOF | |
36169 | /* end confdefs.h. */ | |
36170 | ||
36171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36172 | #ifdef __cplusplus | |
36173 | extern "C" | |
36174 | #endif | |
36175 | /* We use char because int might match the return type of a gcc2 | |
36176 | builtin and then its argument prototype would still apply. */ | |
36177 | char inet_addr (); | |
36178 | int | |
36179 | main () | |
36180 | { | |
36181 | inet_addr (); | |
36182 | ; | |
36183 | return 0; | |
36184 | } | |
36185 | _ACEOF | |
36186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36188 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36189 | ac_status=$? |
ac1cb8d3 VS |
36190 | grep -v '^ *+' conftest.er1 >conftest.err |
36191 | rm -f conftest.er1 | |
36192 | cat conftest.err >&5 | |
a848cd7e SC |
36193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36194 | (exit $ac_status); } && | |
3565d135 RR |
36195 | { ac_try='test -z "$ac_c_werror_flag" |
36196 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36198 | (eval $ac_try) 2>&5 | |
36199 | ac_status=$? | |
36200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36201 | (exit $ac_status); }; } && | |
36202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36204 | (eval $ac_try) 2>&5 | |
36205 | ac_status=$? | |
36206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36207 | (exit $ac_status); }; }; then | |
36208 | ac_cv_lib_resolv_inet_addr=yes | |
36209 | else | |
36210 | echo "$as_me: failed program was:" >&5 | |
36211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36212 | ||
36213 | ac_cv_lib_resolv_inet_addr=no | |
36214 | fi | |
ac1cb8d3 VS |
36215 | rm -f conftest.err conftest.$ac_objext \ |
36216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36217 | LIBS=$ac_check_lib_save_LIBS |
36218 | fi | |
36219 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
36220 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
36221 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
36222 | INET_LINK="resolv" | |
36223 | else | |
36224 | ||
36225 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
36226 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
36227 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
36228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36229 | else | |
36230 | ac_check_lib_save_LIBS=$LIBS | |
36231 | LIBS="-lsocket $LIBS" | |
36232 | cat >conftest.$ac_ext <<_ACEOF | |
36233 | /* confdefs.h. */ | |
36234 | _ACEOF | |
36235 | cat confdefs.h >>conftest.$ac_ext | |
36236 | cat >>conftest.$ac_ext <<_ACEOF | |
36237 | /* end confdefs.h. */ | |
36238 | ||
36239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36240 | #ifdef __cplusplus | |
36241 | extern "C" | |
36242 | #endif | |
36243 | /* We use char because int might match the return type of a gcc2 | |
36244 | builtin and then its argument prototype would still apply. */ | |
36245 | char inet_addr (); | |
36246 | int | |
36247 | main () | |
36248 | { | |
36249 | inet_addr (); | |
36250 | ; | |
36251 | return 0; | |
36252 | } | |
36253 | _ACEOF | |
36254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36256 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36257 | ac_status=$? |
ac1cb8d3 VS |
36258 | grep -v '^ *+' conftest.er1 >conftest.err |
36259 | rm -f conftest.er1 | |
36260 | cat conftest.err >&5 | |
a848cd7e SC |
36261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36262 | (exit $ac_status); } && | |
3565d135 RR |
36263 | { ac_try='test -z "$ac_c_werror_flag" |
36264 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36266 | (eval $ac_try) 2>&5 | |
36267 | ac_status=$? | |
36268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36269 | (exit $ac_status); }; } && | |
36270 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36272 | (eval $ac_try) 2>&5 | |
36273 | ac_status=$? | |
36274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36275 | (exit $ac_status); }; }; then | |
36276 | ac_cv_lib_socket_inet_addr=yes | |
36277 | else | |
36278 | echo "$as_me: failed program was:" >&5 | |
36279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36280 | ||
36281 | ac_cv_lib_socket_inet_addr=no | |
36282 | fi | |
ac1cb8d3 VS |
36283 | rm -f conftest.err conftest.$ac_objext \ |
36284 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36285 | LIBS=$ac_check_lib_save_LIBS |
36286 | fi | |
36287 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
36288 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
36289 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
36290 | INET_LINK="socket" | |
36291 | ||
36292 | fi | |
36293 | ||
36294 | ||
36295 | ||
36296 | fi | |
36297 | ||
36298 | ||
36299 | ||
36300 | fi | |
36301 | ||
36302 | ||
36303 | ||
36304 | fi | |
36305 | done | |
36306 | ||
36307 | ||
36308 | ||
36309 | for ac_func in inet_aton | |
36310 | do | |
36311 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36312 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36313 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36314 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36316 | else | |
36317 | cat >conftest.$ac_ext <<_ACEOF | |
36318 | /* confdefs.h. */ | |
36319 | _ACEOF | |
36320 | cat confdefs.h >>conftest.$ac_ext | |
36321 | cat >>conftest.$ac_ext <<_ACEOF | |
36322 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36323 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36324 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36325 | #define $ac_func innocuous_$ac_func | |
36326 | ||
a848cd7e SC |
36327 | /* System header to define __stub macros and hopefully few prototypes, |
36328 | which can conflict with char $ac_func (); below. | |
36329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36330 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36331 | |
a848cd7e SC |
36332 | #ifdef __STDC__ |
36333 | # include <limits.h> | |
36334 | #else | |
36335 | # include <assert.h> | |
36336 | #endif | |
ac1cb8d3 VS |
36337 | |
36338 | #undef $ac_func | |
36339 | ||
a848cd7e SC |
36340 | /* Override any gcc2 internal prototype to avoid an error. */ |
36341 | #ifdef __cplusplus | |
36342 | extern "C" | |
36343 | { | |
36344 | #endif | |
36345 | /* We use char because int might match the return type of a gcc2 | |
36346 | builtin and then its argument prototype would still apply. */ | |
36347 | char $ac_func (); | |
36348 | /* The GNU C library defines this for functions which it implements | |
36349 | to always fail with ENOSYS. Some functions are actually named | |
36350 | something starting with __ and the normal name is an alias. */ | |
36351 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36352 | choke me | |
36353 | #else | |
36354 | char (*f) () = $ac_func; | |
36355 | #endif | |
36356 | #ifdef __cplusplus | |
36357 | } | |
36358 | #endif | |
36359 | ||
36360 | int | |
36361 | main () | |
36362 | { | |
36363 | return f != $ac_func; | |
36364 | ; | |
36365 | return 0; | |
36366 | } | |
36367 | _ACEOF | |
36368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36370 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36371 | ac_status=$? |
ac1cb8d3 VS |
36372 | grep -v '^ *+' conftest.er1 >conftest.err |
36373 | rm -f conftest.er1 | |
36374 | cat conftest.err >&5 | |
a848cd7e SC |
36375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36376 | (exit $ac_status); } && | |
3565d135 RR |
36377 | { ac_try='test -z "$ac_c_werror_flag" |
36378 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36380 | (eval $ac_try) 2>&5 | |
36381 | ac_status=$? | |
36382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36383 | (exit $ac_status); }; } && | |
36384 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36386 | (eval $ac_try) 2>&5 | |
36387 | ac_status=$? | |
36388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36389 | (exit $ac_status); }; }; then | |
36390 | eval "$as_ac_var=yes" | |
36391 | else | |
36392 | echo "$as_me: failed program was:" >&5 | |
36393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36394 | ||
36395 | eval "$as_ac_var=no" | |
36396 | fi | |
ac1cb8d3 VS |
36397 | rm -f conftest.err conftest.$ac_objext \ |
36398 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36399 | fi |
36400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36401 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36402 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36403 | cat >>confdefs.h <<_ACEOF | |
36404 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36405 | _ACEOF | |
36406 | cat >>confdefs.h <<\_ACEOF | |
36407 | #define HAVE_INET_ATON 1 | |
36408 | _ACEOF | |
36409 | ||
36410 | else | |
36411 | ||
36412 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36413 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36414 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36415 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36417 | else | |
36418 | ac_check_lib_save_LIBS=$LIBS | |
36419 | LIBS="-l$INET_LINK $LIBS" | |
36420 | cat >conftest.$ac_ext <<_ACEOF | |
36421 | /* confdefs.h. */ | |
36422 | _ACEOF | |
36423 | cat confdefs.h >>conftest.$ac_ext | |
36424 | cat >>conftest.$ac_ext <<_ACEOF | |
36425 | /* end confdefs.h. */ | |
36426 | ||
36427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36428 | #ifdef __cplusplus | |
36429 | extern "C" | |
36430 | #endif | |
36431 | /* We use char because int might match the return type of a gcc2 | |
36432 | builtin and then its argument prototype would still apply. */ | |
36433 | char inet_aton (); | |
36434 | int | |
36435 | main () | |
36436 | { | |
36437 | inet_aton (); | |
36438 | ; | |
36439 | return 0; | |
36440 | } | |
36441 | _ACEOF | |
36442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36444 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36445 | ac_status=$? |
ac1cb8d3 VS |
36446 | grep -v '^ *+' conftest.er1 >conftest.err |
36447 | rm -f conftest.er1 | |
36448 | cat conftest.err >&5 | |
a848cd7e SC |
36449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36450 | (exit $ac_status); } && | |
3565d135 RR |
36451 | { ac_try='test -z "$ac_c_werror_flag" |
36452 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36454 | (eval $ac_try) 2>&5 | |
36455 | ac_status=$? | |
36456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36457 | (exit $ac_status); }; } && | |
36458 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36460 | (eval $ac_try) 2>&5 | |
36461 | ac_status=$? | |
36462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36463 | (exit $ac_status); }; }; then | |
36464 | eval "$as_ac_Lib=yes" | |
36465 | else | |
36466 | echo "$as_me: failed program was:" >&5 | |
36467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36468 | ||
36469 | eval "$as_ac_Lib=no" | |
36470 | fi | |
ac1cb8d3 VS |
36471 | rm -f conftest.err conftest.$ac_objext \ |
36472 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36473 | LIBS=$ac_check_lib_save_LIBS |
36474 | fi | |
36475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36476 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36477 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36478 | cat >>confdefs.h <<\_ACEOF | |
36479 | #define HAVE_INET_ATON 1 | |
36480 | _ACEOF | |
36481 | ||
36482 | fi | |
36483 | ||
36484 | ||
36485 | fi | |
36486 | done | |
36487 | ||
36488 | ||
36489 | if test "x$INET_LINK" != "x"; then | |
36490 | cat >>confdefs.h <<\_ACEOF | |
36491 | #define HAVE_INET_ADDR 1 | |
36492 | _ACEOF | |
36493 | ||
36494 | INET_LINK=" -l$INET_LINK" | |
36495 | fi | |
36496 | ||
36497 | fi | |
36498 | ||
36499 | ||
36500 | ||
36501 | EXTRALIBS_ESD= | |
36502 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36503 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36504 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36506 | else | |
36507 | ac_check_lib_save_LIBS=$LIBS | |
36508 | LIBS="-lesd $LIBS" | |
36509 | cat >conftest.$ac_ext <<_ACEOF | |
36510 | /* confdefs.h. */ | |
36511 | _ACEOF | |
36512 | cat confdefs.h >>conftest.$ac_ext | |
36513 | cat >>conftest.$ac_ext <<_ACEOF | |
36514 | /* end confdefs.h. */ | |
36515 | ||
36516 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36517 | #ifdef __cplusplus | |
36518 | extern "C" | |
36519 | #endif | |
36520 | /* We use char because int might match the return type of a gcc2 | |
36521 | builtin and then its argument prototype would still apply. */ | |
36522 | char esd_close (); | |
36523 | int | |
36524 | main () | |
36525 | { | |
36526 | esd_close (); | |
36527 | ; | |
36528 | return 0; | |
36529 | } | |
36530 | _ACEOF | |
36531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36533 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36534 | ac_status=$? |
ac1cb8d3 VS |
36535 | grep -v '^ *+' conftest.er1 >conftest.err |
36536 | rm -f conftest.er1 | |
36537 | cat conftest.err >&5 | |
a848cd7e SC |
36538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36539 | (exit $ac_status); } && | |
3565d135 RR |
36540 | { ac_try='test -z "$ac_c_werror_flag" |
36541 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36543 | (eval $ac_try) 2>&5 | |
36544 | ac_status=$? | |
36545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36546 | (exit $ac_status); }; } && | |
36547 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36549 | (eval $ac_try) 2>&5 | |
36550 | ac_status=$? | |
36551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36552 | (exit $ac_status); }; }; then | |
36553 | ac_cv_lib_esd_esd_close=yes | |
36554 | else | |
36555 | echo "$as_me: failed program was:" >&5 | |
36556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36557 | ||
36558 | ac_cv_lib_esd_esd_close=no | |
36559 | fi | |
ac1cb8d3 VS |
36560 | rm -f conftest.err conftest.$ac_objext \ |
36561 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36562 | LIBS=$ac_check_lib_save_LIBS |
36563 | fi | |
36564 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
36565 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
36566 | if test $ac_cv_lib_esd_esd_close = yes; then | |
36567 | ||
36568 | ||
36569 | for ac_header in esd.h | |
36570 | do | |
36571 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36572 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36573 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36574 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36577 | fi | |
36578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36579 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36580 | else | |
36581 | # Is the header compilable? | |
36582 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36583 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36584 | cat >conftest.$ac_ext <<_ACEOF | |
36585 | /* confdefs.h. */ | |
36586 | _ACEOF | |
36587 | cat confdefs.h >>conftest.$ac_ext | |
36588 | cat >>conftest.$ac_ext <<_ACEOF | |
36589 | /* end confdefs.h. */ | |
36590 | $ac_includes_default | |
36591 | #include <$ac_header> | |
36592 | _ACEOF | |
36593 | rm -f conftest.$ac_objext | |
36594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36595 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36596 | ac_status=$? |
ac1cb8d3 VS |
36597 | grep -v '^ *+' conftest.er1 >conftest.err |
36598 | rm -f conftest.er1 | |
36599 | cat conftest.err >&5 | |
a848cd7e SC |
36600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36601 | (exit $ac_status); } && | |
3565d135 RR |
36602 | { ac_try='test -z "$ac_c_werror_flag" |
36603 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36605 | (eval $ac_try) 2>&5 | |
36606 | ac_status=$? | |
36607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36608 | (exit $ac_status); }; } && | |
36609 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36611 | (eval $ac_try) 2>&5 | |
36612 | ac_status=$? | |
36613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36614 | (exit $ac_status); }; }; then | |
36615 | ac_header_compiler=yes | |
36616 | else | |
36617 | echo "$as_me: failed program was:" >&5 | |
36618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36619 | ||
36620 | ac_header_compiler=no | |
36621 | fi | |
ac1cb8d3 | 36622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36623 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36624 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36625 | ||
36626 | # Is the header present? | |
36627 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36628 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36629 | cat >conftest.$ac_ext <<_ACEOF | |
36630 | /* confdefs.h. */ | |
36631 | _ACEOF | |
36632 | cat confdefs.h >>conftest.$ac_ext | |
36633 | cat >>conftest.$ac_ext <<_ACEOF | |
36634 | /* end confdefs.h. */ | |
36635 | #include <$ac_header> | |
36636 | _ACEOF | |
36637 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36638 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36639 | ac_status=$? | |
36640 | grep -v '^ *+' conftest.er1 >conftest.err | |
36641 | rm -f conftest.er1 | |
36642 | cat conftest.err >&5 | |
36643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36644 | (exit $ac_status); } >/dev/null; then | |
36645 | if test -s conftest.err; then | |
36646 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36647 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36648 | else |
36649 | ac_cpp_err= | |
36650 | fi | |
36651 | else | |
36652 | ac_cpp_err=yes | |
36653 | fi | |
36654 | if test -z "$ac_cpp_err"; then | |
36655 | ac_header_preproc=yes | |
36656 | else | |
36657 | echo "$as_me: failed program was:" >&5 | |
36658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36659 | ||
36660 | ac_header_preproc=no | |
36661 | fi | |
36662 | rm -f conftest.err conftest.$ac_ext | |
36663 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36664 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36665 | ||
36666 | # So? What about this header? | |
ac1cb8d3 VS |
36667 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36668 | yes:no: ) | |
a848cd7e SC |
36669 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36670 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36671 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36672 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36673 | ac_header_preproc=yes | |
a848cd7e | 36674 | ;; |
ac1cb8d3 | 36675 | no:yes:* ) |
a848cd7e SC |
36676 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36677 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36678 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36679 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36680 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36681 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36682 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36683 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36685 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36686 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36687 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36688 | ( |
36689 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36690 | ## ----------------------------------------- ## |
36691 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36692 | ## ----------------------------------------- ## | |
a848cd7e SC |
36693 | _ASBOX |
36694 | ) | | |
36695 | sed "s/^/$as_me: WARNING: /" >&2 | |
36696 | ;; | |
36697 | esac | |
36698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36702 | else | |
ac1cb8d3 | 36703 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36704 | fi |
36705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36706 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36707 | ||
36708 | fi | |
36709 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36710 | cat >>confdefs.h <<_ACEOF | |
36711 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36712 | _ACEOF | |
36713 | ||
36714 | EXTRALIBS_ESD="-lesd" | |
36715 | ||
36716 | fi | |
36717 | ||
36718 | done | |
36719 | ||
36720 | ||
36721 | fi | |
36722 | ||
36723 | ||
36724 | ||
36725 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
36726 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
36727 | cat >conftest.$ac_ext <<_ACEOF | |
36728 | /* confdefs.h. */ | |
36729 | _ACEOF | |
36730 | cat confdefs.h >>conftest.$ac_ext | |
36731 | cat >>conftest.$ac_ext <<_ACEOF | |
36732 | /* end confdefs.h. */ | |
36733 | #ifdef __linux__ | |
36734 | #include <linux/cdrom.h> | |
36735 | #else | |
36736 | /* For Solaris */ | |
36737 | #include <sys/cdio.h> | |
36738 | #endif | |
36739 | ||
36740 | int | |
36741 | main () | |
36742 | { | |
36743 | struct cdrom_tocentry entry, old_entry; | |
36744 | ; | |
36745 | return 0; | |
36746 | } | |
36747 | _ACEOF | |
36748 | rm -f conftest.$ac_objext | |
36749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36750 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36751 | ac_status=$? |
ac1cb8d3 VS |
36752 | grep -v '^ *+' conftest.er1 >conftest.err |
36753 | rm -f conftest.er1 | |
36754 | cat conftest.err >&5 | |
a848cd7e SC |
36755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36756 | (exit $ac_status); } && | |
3565d135 RR |
36757 | { ac_try='test -z "$ac_c_werror_flag" |
36758 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36760 | (eval $ac_try) 2>&5 | |
36761 | ac_status=$? | |
36762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36763 | (exit $ac_status); }; } && | |
36764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36766 | (eval $ac_try) 2>&5 | |
36767 | ac_status=$? | |
36768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36769 | (exit $ac_status); }; }; then | |
36770 | echo "$as_me:$LINENO: result: yes" >&5 | |
36771 | echo "${ECHO_T}yes" >&6 | |
36772 | cat >>confdefs.h <<\_ACEOF | |
36773 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
36774 | _ACEOF | |
36775 | ||
36776 | else | |
36777 | echo "$as_me: failed program was:" >&5 | |
36778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36779 | ||
36780 | echo "$as_me:$LINENO: result: no" >&5 | |
36781 | echo "${ECHO_T}no" >&6 | |
36782 | fi | |
ac1cb8d3 | 36783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36784 | |
36785 | ||
36786 | cat >confcache <<\_ACEOF | |
36787 | # This file is a shell script that caches the results of configure | |
36788 | # tests run on this system so they can be shared between configure | |
36789 | # scripts and configure runs, see configure's option --config-cache. | |
36790 | # It is not useful on other systems. If it contains results you don't | |
36791 | # want to keep, you may remove or edit it. | |
36792 | # | |
36793 | # config.status only pays attention to the cache file if you give it | |
36794 | # the --recheck option to rerun configure. | |
36795 | # | |
36796 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36797 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36798 | # following values. | |
36799 | ||
36800 | _ACEOF | |
36801 | ||
36802 | # The following way of writing the cache mishandles newlines in values, | |
36803 | # but we know of no workaround that is simple, portable, and efficient. | |
36804 | # So, don't put newlines in cache variables' values. | |
36805 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36806 | # and sets the high bit in the cache file unless we assign to the vars. | |
36807 | { | |
36808 | (set) 2>&1 | | |
36809 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
36810 | *ac_space=\ *) | |
36811 | # `set' does not quote correctly, so add quotes (double-quote | |
36812 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
36813 | sed -n \ | |
ac1cb8d3 VS |
36814 | "s/'/'\\\\''/g; |
36815 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
36816 | ;; |
36817 | *) | |
36818 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36819 | sed -n \ | |
ac1cb8d3 | 36820 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
36821 | ;; |
36822 | esac; | |
36823 | } | | |
36824 | sed ' | |
36825 | t clear | |
36826 | : clear | |
36827 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36828 | t end | |
36829 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36830 | : end' >>confcache | |
36831 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
36832 | if test -w $cache_file; then | |
36833 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
36834 | cat confcache >$cache_file | |
36835 | else | |
36836 | echo "not updating unwritable cache $cache_file" | |
36837 | fi | |
36838 | fi | |
36839 | rm -f confcache | |
36840 | ||
36841 | ||
a848cd7e SC |
36842 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
36843 | ||
36844 | ||
36845 | THREADS_LINK= | |
36846 | THREADS_CFLAGS= | |
36847 | ||
36848 | if test "$wxUSE_THREADS" = "yes" ; then | |
36849 | if test "$USE_BEOS" = 1; then | |
36850 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
36851 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
36852 | wxUSE_THREADS="no" | |
36853 | fi | |
36854 | fi | |
36855 | ||
36856 | if test "$wxUSE_THREADS" = "yes" ; then | |
36857 | ||
36858 | ||
36859 | THREAD_OPTS="-pthread" | |
36860 | case "${host}" in | |
36861 | *-*-solaris2* | *-*-sunos4* ) | |
36862 | if test "x$GCC" = "xyes"; then | |
36863 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
36864 | else | |
36865 | THREAD_OPTS="-mt $THREAD_OPTS" | |
36866 | fi | |
36867 | ;; | |
36868 | *-*-freebsd*) | |
36869 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
36870 | ;; | |
36871 | *-*-darwin* | *-*-cygwin* ) | |
36872 | THREAD_OPTS="" | |
36873 | ;; | |
36874 | *-*-aix*) | |
36875 | THREAD_OPTS="pthreads" | |
36876 | ;; | |
36877 | *-hp-hpux* ) | |
00421666 MW |
36878 | if test "x$GCC" = "xyes"; then |
36879 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
36880 | THREAD_OPTS="" | |
36881 | else | |
0093c2fc | 36882 | THREAD_OPTS="-mt" |
a848cd7e SC |
36883 | fi |
36884 | ;; | |
36885 | ||
36886 | *-*-irix* ) | |
36887 | if test "x$GCC" = "xyes"; then | |
36888 | THREAD_OPTS="" | |
36889 | fi | |
36890 | ;; | |
36891 | ||
36892 | *-*-*UnixWare*) | |
36893 | if test "x$GCC" != "xyes"; then | |
36894 | THREAD_OPTS="-Ethread" | |
36895 | fi | |
36896 | ;; | |
36897 | esac | |
36898 | ||
36899 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
36900 | ||
36901 | THREADS_OK=no | |
36902 | for flag in $THREAD_OPTS; do | |
36903 | case $flag in | |
36904 | none) | |
36905 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
36906 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
36907 | ;; | |
36908 | ||
36909 | -*) | |
36910 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
36911 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
36912 | THREADS_CFLAGS="$flag" | |
36913 | ;; | |
36914 | ||
36915 | *) | |
36916 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
36917 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
36918 | THREADS_LINK="-l$flag" | |
36919 | ;; | |
36920 | esac | |
36921 | ||
36922 | save_LIBS="$LIBS" | |
36923 | save_CFLAGS="$CFLAGS" | |
36924 | LIBS="$THREADS_LINK $LIBS" | |
36925 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
36926 | ||
36927 | cat >conftest.$ac_ext <<_ACEOF | |
36928 | /* confdefs.h. */ | |
36929 | _ACEOF | |
36930 | cat confdefs.h >>conftest.$ac_ext | |
36931 | cat >>conftest.$ac_ext <<_ACEOF | |
36932 | /* end confdefs.h. */ | |
36933 | #include <pthread.h> | |
36934 | int | |
36935 | main () | |
36936 | { | |
36937 | pthread_create(0,0,0,0); | |
36938 | ; | |
36939 | return 0; | |
36940 | } | |
36941 | _ACEOF | |
36942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36944 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36945 | ac_status=$? |
ac1cb8d3 VS |
36946 | grep -v '^ *+' conftest.er1 >conftest.err |
36947 | rm -f conftest.er1 | |
36948 | cat conftest.err >&5 | |
a848cd7e SC |
36949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36950 | (exit $ac_status); } && | |
3565d135 RR |
36951 | { ac_try='test -z "$ac_c_werror_flag" |
36952 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36954 | (eval $ac_try) 2>&5 | |
36955 | ac_status=$? | |
36956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36957 | (exit $ac_status); }; } && | |
36958 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36960 | (eval $ac_try) 2>&5 | |
36961 | ac_status=$? | |
36962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36963 | (exit $ac_status); }; }; then | |
36964 | THREADS_OK=yes | |
36965 | else | |
36966 | echo "$as_me: failed program was:" >&5 | |
36967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36968 | ||
36969 | fi | |
ac1cb8d3 VS |
36970 | rm -f conftest.err conftest.$ac_objext \ |
36971 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36972 | |
36973 | LIBS="$save_LIBS" | |
36974 | CFLAGS="$save_CFLAGS" | |
36975 | ||
36976 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
36977 | echo "${ECHO_T}$THREADS_OK" >&6 | |
36978 | if test "x$THREADS_OK" = "xyes"; then | |
36979 | break; | |
36980 | fi | |
36981 | ||
36982 | THREADS_LINK="" | |
36983 | THREADS_CFLAGS="" | |
36984 | done | |
36985 | ||
36986 | if test "x$THREADS_OK" != "xyes"; then | |
36987 | wxUSE_THREADS=no | |
36988 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
36989 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
36990 | else | |
36991 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
36992 | LIBS="$THREADS_LINK $LIBS" | |
36993 | ||
36994 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
36995 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
36996 | flag=no | |
36997 | case "${host}" in | |
36998 | *-aix*) | |
36999 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
37000 | flag="-D_THREAD_SAFE" | |
37001 | ;; | |
37002 | *-freebsd*) | |
37003 | flag="-D_THREAD_SAFE" | |
37004 | ;; | |
37005 | *-hp-hpux* ) | |
37006 | flag="-D_REENTRANT" | |
37007 | if test "x$GCC" != "xyes"; then | |
37008 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
37009 | fi | |
37010 | ;; | |
37011 | *solaris* | alpha*-osf*) | |
37012 | flag="-D_REENTRANT" | |
37013 | ;; | |
37014 | esac | |
37015 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
37016 | echo "${ECHO_T}${flag}" >&6 | |
37017 | if test "x$flag" != xno; then | |
37018 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
37019 | fi | |
37020 | ||
5ff751d6 | 37021 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS" |
a848cd7e SC |
37022 | fi |
37023 | fi | |
37024 | ||
37025 | if test "$wxUSE_THREADS" = "yes" ; then | |
37026 | ||
37027 | for ac_func in thr_setconcurrency | |
37028 | do | |
37029 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37030 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37031 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37032 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37034 | else | |
37035 | cat >conftest.$ac_ext <<_ACEOF | |
37036 | /* confdefs.h. */ | |
37037 | _ACEOF | |
37038 | cat confdefs.h >>conftest.$ac_ext | |
37039 | cat >>conftest.$ac_ext <<_ACEOF | |
37040 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37041 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37042 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37043 | #define $ac_func innocuous_$ac_func | |
37044 | ||
a848cd7e SC |
37045 | /* System header to define __stub macros and hopefully few prototypes, |
37046 | which can conflict with char $ac_func (); below. | |
37047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37048 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37049 | |
a848cd7e SC |
37050 | #ifdef __STDC__ |
37051 | # include <limits.h> | |
37052 | #else | |
37053 | # include <assert.h> | |
37054 | #endif | |
ac1cb8d3 VS |
37055 | |
37056 | #undef $ac_func | |
37057 | ||
a848cd7e SC |
37058 | /* Override any gcc2 internal prototype to avoid an error. */ |
37059 | #ifdef __cplusplus | |
37060 | extern "C" | |
37061 | { | |
37062 | #endif | |
37063 | /* We use char because int might match the return type of a gcc2 | |
37064 | builtin and then its argument prototype would still apply. */ | |
37065 | char $ac_func (); | |
37066 | /* The GNU C library defines this for functions which it implements | |
37067 | to always fail with ENOSYS. Some functions are actually named | |
37068 | something starting with __ and the normal name is an alias. */ | |
37069 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37070 | choke me | |
37071 | #else | |
37072 | char (*f) () = $ac_func; | |
37073 | #endif | |
37074 | #ifdef __cplusplus | |
37075 | } | |
37076 | #endif | |
37077 | ||
37078 | int | |
37079 | main () | |
37080 | { | |
37081 | return f != $ac_func; | |
37082 | ; | |
37083 | return 0; | |
37084 | } | |
37085 | _ACEOF | |
37086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37089 | ac_status=$? |
ac1cb8d3 VS |
37090 | grep -v '^ *+' conftest.er1 >conftest.err |
37091 | rm -f conftest.er1 | |
37092 | cat conftest.err >&5 | |
a848cd7e SC |
37093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37094 | (exit $ac_status); } && | |
3565d135 RR |
37095 | { ac_try='test -z "$ac_c_werror_flag" |
37096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37098 | (eval $ac_try) 2>&5 | |
37099 | ac_status=$? | |
37100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37101 | (exit $ac_status); }; } && | |
37102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37104 | (eval $ac_try) 2>&5 | |
37105 | ac_status=$? | |
37106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37107 | (exit $ac_status); }; }; then | |
37108 | eval "$as_ac_var=yes" | |
37109 | else | |
37110 | echo "$as_me: failed program was:" >&5 | |
37111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37112 | ||
37113 | eval "$as_ac_var=no" | |
37114 | fi | |
ac1cb8d3 VS |
37115 | rm -f conftest.err conftest.$ac_objext \ |
37116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37117 | fi |
37118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37120 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37121 | cat >>confdefs.h <<_ACEOF | |
37122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37123 | _ACEOF | |
37124 | ||
37125 | fi | |
37126 | done | |
37127 | ||
37128 | ||
6ebeb4c7 VZ |
37129 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
37130 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
37131 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
37132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37133 | else | |
37134 | ||
37135 | cat >conftest.$ac_ext <<_ACEOF | |
37136 | /* confdefs.h. */ | |
37137 | _ACEOF | |
37138 | cat confdefs.h >>conftest.$ac_ext | |
37139 | cat >>conftest.$ac_ext <<_ACEOF | |
37140 | /* end confdefs.h. */ | |
37141 | #include <pthread.h> | |
37142 | void ThreadCleanupFunc(void *p); | |
37143 | ||
37144 | int | |
37145 | main () | |
37146 | { | |
37147 | ||
37148 | void *p; | |
37149 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
37150 | pthread_cleanup_pop(0); | |
37151 | ||
37152 | ; | |
37153 | return 0; | |
37154 | } | |
37155 | _ACEOF | |
37156 | rm -f conftest.$ac_objext | |
37157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37158 | (eval $ac_compile) 2>conftest.er1 | |
37159 | ac_status=$? | |
37160 | grep -v '^ *+' conftest.er1 >conftest.err | |
37161 | rm -f conftest.er1 | |
37162 | cat conftest.err >&5 | |
37163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37164 | (exit $ac_status); } && | |
3565d135 RR |
37165 | { ac_try='test -z "$ac_c_werror_flag" |
37166 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
37167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37168 | (eval $ac_try) 2>&5 | |
37169 | ac_status=$? | |
37170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37171 | (exit $ac_status); }; } && | |
37172 | { ac_try='test -s conftest.$ac_objext' | |
37173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37174 | (eval $ac_try) 2>&5 | |
37175 | ac_status=$? | |
37176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37177 | (exit $ac_status); }; }; then | |
37178 | ||
37179 | wx_cv_func_pthread_cleanup=yes | |
37180 | ||
37181 | else | |
37182 | echo "$as_me: failed program was:" >&5 | |
37183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37184 | ||
37185 | ||
37186 | wx_cv_func_pthread_cleanup=no | |
37187 | ||
37188 | ||
37189 | fi | |
37190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37191 | ||
37192 | fi | |
37193 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
37194 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
37195 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
37196 | cat >>confdefs.h <<\_ACEOF | |
37197 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
37198 | _ACEOF | |
37199 | ||
37200 | fi | |
37201 | ||
a848cd7e SC |
37202 | |
37203 | for ac_header in sched.h | |
37204 | do | |
37205 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37207 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37211 | fi | |
37212 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37213 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37214 | else | |
37215 | # Is the header compilable? | |
37216 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37217 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37218 | cat >conftest.$ac_ext <<_ACEOF | |
37219 | /* confdefs.h. */ | |
37220 | _ACEOF | |
37221 | cat confdefs.h >>conftest.$ac_ext | |
37222 | cat >>conftest.$ac_ext <<_ACEOF | |
37223 | /* end confdefs.h. */ | |
37224 | $ac_includes_default | |
37225 | #include <$ac_header> | |
37226 | _ACEOF | |
37227 | rm -f conftest.$ac_objext | |
37228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37229 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37230 | ac_status=$? |
ac1cb8d3 VS |
37231 | grep -v '^ *+' conftest.er1 >conftest.err |
37232 | rm -f conftest.er1 | |
37233 | cat conftest.err >&5 | |
a848cd7e SC |
37234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37235 | (exit $ac_status); } && | |
3565d135 RR |
37236 | { ac_try='test -z "$ac_c_werror_flag" |
37237 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37239 | (eval $ac_try) 2>&5 | |
37240 | ac_status=$? | |
37241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37242 | (exit $ac_status); }; } && | |
37243 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37245 | (eval $ac_try) 2>&5 | |
37246 | ac_status=$? | |
37247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37248 | (exit $ac_status); }; }; then | |
37249 | ac_header_compiler=yes | |
37250 | else | |
37251 | echo "$as_me: failed program was:" >&5 | |
37252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37253 | ||
37254 | ac_header_compiler=no | |
37255 | fi | |
ac1cb8d3 | 37256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37257 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37258 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37259 | ||
37260 | # Is the header present? | |
37261 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37262 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37263 | cat >conftest.$ac_ext <<_ACEOF | |
37264 | /* confdefs.h. */ | |
37265 | _ACEOF | |
37266 | cat confdefs.h >>conftest.$ac_ext | |
37267 | cat >>conftest.$ac_ext <<_ACEOF | |
37268 | /* end confdefs.h. */ | |
37269 | #include <$ac_header> | |
37270 | _ACEOF | |
37271 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37272 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37273 | ac_status=$? | |
37274 | grep -v '^ *+' conftest.er1 >conftest.err | |
37275 | rm -f conftest.er1 | |
37276 | cat conftest.err >&5 | |
37277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37278 | (exit $ac_status); } >/dev/null; then | |
37279 | if test -s conftest.err; then | |
37280 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37281 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37282 | else |
37283 | ac_cpp_err= | |
37284 | fi | |
37285 | else | |
37286 | ac_cpp_err=yes | |
37287 | fi | |
37288 | if test -z "$ac_cpp_err"; then | |
37289 | ac_header_preproc=yes | |
37290 | else | |
37291 | echo "$as_me: failed program was:" >&5 | |
37292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37293 | ||
37294 | ac_header_preproc=no | |
37295 | fi | |
37296 | rm -f conftest.err conftest.$ac_ext | |
37297 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37298 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37299 | ||
37300 | # So? What about this header? | |
ac1cb8d3 VS |
37301 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37302 | yes:no: ) | |
a848cd7e SC |
37303 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37304 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37305 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37306 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37307 | ac_header_preproc=yes | |
a848cd7e | 37308 | ;; |
ac1cb8d3 | 37309 | no:yes:* ) |
a848cd7e SC |
37310 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37311 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37312 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37313 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37314 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37315 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37316 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37317 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37318 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37319 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37320 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37321 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37322 | ( |
37323 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37324 | ## ----------------------------------------- ## |
37325 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37326 | ## ----------------------------------------- ## | |
a848cd7e SC |
37327 | _ASBOX |
37328 | ) | | |
37329 | sed "s/^/$as_me: WARNING: /" >&2 | |
37330 | ;; | |
37331 | esac | |
37332 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37333 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37334 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37336 | else | |
ac1cb8d3 | 37337 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37338 | fi |
37339 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37340 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37341 | ||
37342 | fi | |
37343 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37344 | cat >>confdefs.h <<_ACEOF | |
37345 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37346 | _ACEOF | |
37347 | ||
37348 | fi | |
37349 | ||
37350 | done | |
37351 | ||
37352 | if test "$ac_cv_header_sched_h" = "yes"; then | |
37353 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
37354 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
37355 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
37356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37357 | else | |
37358 | cat >conftest.$ac_ext <<_ACEOF | |
37359 | /* confdefs.h. */ | |
37360 | _ACEOF | |
37361 | cat confdefs.h >>conftest.$ac_ext | |
37362 | cat >>conftest.$ac_ext <<_ACEOF | |
37363 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37364 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
37365 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37366 | #define sched_yield innocuous_sched_yield | |
37367 | ||
a848cd7e SC |
37368 | /* System header to define __stub macros and hopefully few prototypes, |
37369 | which can conflict with char sched_yield (); below. | |
37370 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37371 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37372 | |
a848cd7e SC |
37373 | #ifdef __STDC__ |
37374 | # include <limits.h> | |
37375 | #else | |
37376 | # include <assert.h> | |
37377 | #endif | |
ac1cb8d3 VS |
37378 | |
37379 | #undef sched_yield | |
37380 | ||
a848cd7e SC |
37381 | /* Override any gcc2 internal prototype to avoid an error. */ |
37382 | #ifdef __cplusplus | |
37383 | extern "C" | |
37384 | { | |
37385 | #endif | |
37386 | /* We use char because int might match the return type of a gcc2 | |
37387 | builtin and then its argument prototype would still apply. */ | |
37388 | char sched_yield (); | |
37389 | /* The GNU C library defines this for functions which it implements | |
37390 | to always fail with ENOSYS. Some functions are actually named | |
37391 | something starting with __ and the normal name is an alias. */ | |
37392 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
37393 | choke me | |
37394 | #else | |
37395 | char (*f) () = sched_yield; | |
37396 | #endif | |
37397 | #ifdef __cplusplus | |
37398 | } | |
37399 | #endif | |
37400 | ||
37401 | int | |
37402 | main () | |
37403 | { | |
37404 | return f != sched_yield; | |
37405 | ; | |
37406 | return 0; | |
37407 | } | |
37408 | _ACEOF | |
37409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37411 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37412 | ac_status=$? |
ac1cb8d3 VS |
37413 | grep -v '^ *+' conftest.er1 >conftest.err |
37414 | rm -f conftest.er1 | |
37415 | cat conftest.err >&5 | |
a848cd7e SC |
37416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37417 | (exit $ac_status); } && | |
3565d135 RR |
37418 | { ac_try='test -z "$ac_c_werror_flag" |
37419 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37421 | (eval $ac_try) 2>&5 | |
37422 | ac_status=$? | |
37423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37424 | (exit $ac_status); }; } && | |
37425 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37427 | (eval $ac_try) 2>&5 | |
37428 | ac_status=$? | |
37429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37430 | (exit $ac_status); }; }; then | |
37431 | ac_cv_func_sched_yield=yes | |
37432 | else | |
37433 | echo "$as_me: failed program was:" >&5 | |
37434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37435 | ||
37436 | ac_cv_func_sched_yield=no | |
37437 | fi | |
ac1cb8d3 VS |
37438 | rm -f conftest.err conftest.$ac_objext \ |
37439 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37440 | fi |
37441 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37442 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37443 | if test $ac_cv_func_sched_yield = yes; then | |
37444 | cat >>confdefs.h <<\_ACEOF | |
37445 | #define HAVE_SCHED_YIELD 1 | |
37446 | _ACEOF | |
37447 | ||
37448 | else | |
37449 | ||
37450 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37451 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37452 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37454 | else | |
37455 | ac_check_lib_save_LIBS=$LIBS | |
37456 | LIBS="-lposix4 $LIBS" | |
37457 | cat >conftest.$ac_ext <<_ACEOF | |
37458 | /* confdefs.h. */ | |
37459 | _ACEOF | |
37460 | cat confdefs.h >>conftest.$ac_ext | |
37461 | cat >>conftest.$ac_ext <<_ACEOF | |
37462 | /* end confdefs.h. */ | |
37463 | ||
37464 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37465 | #ifdef __cplusplus | |
37466 | extern "C" | |
37467 | #endif | |
37468 | /* We use char because int might match the return type of a gcc2 | |
37469 | builtin and then its argument prototype would still apply. */ | |
37470 | char sched_yield (); | |
37471 | int | |
37472 | main () | |
37473 | { | |
37474 | sched_yield (); | |
37475 | ; | |
37476 | return 0; | |
37477 | } | |
37478 | _ACEOF | |
37479 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37481 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37482 | ac_status=$? |
ac1cb8d3 VS |
37483 | grep -v '^ *+' conftest.er1 >conftest.err |
37484 | rm -f conftest.er1 | |
37485 | cat conftest.err >&5 | |
a848cd7e SC |
37486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37487 | (exit $ac_status); } && | |
3565d135 RR |
37488 | { ac_try='test -z "$ac_c_werror_flag" |
37489 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37491 | (eval $ac_try) 2>&5 | |
37492 | ac_status=$? | |
37493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37494 | (exit $ac_status); }; } && | |
37495 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37497 | (eval $ac_try) 2>&5 | |
37498 | ac_status=$? | |
37499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37500 | (exit $ac_status); }; }; then | |
37501 | ac_cv_lib_posix4_sched_yield=yes | |
37502 | else | |
37503 | echo "$as_me: failed program was:" >&5 | |
37504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37505 | ||
37506 | ac_cv_lib_posix4_sched_yield=no | |
37507 | fi | |
ac1cb8d3 VS |
37508 | rm -f conftest.err conftest.$ac_objext \ |
37509 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37510 | LIBS=$ac_check_lib_save_LIBS |
37511 | fi | |
37512 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37513 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37514 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37515 | cat >>confdefs.h <<\_ACEOF | |
37516 | #define HAVE_SCHED_YIELD 1 | |
37517 | _ACEOF | |
37518 | POSIX4_LINK=" -lposix4" | |
37519 | else | |
37520 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37521 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37522 | ||
37523 | fi | |
37524 | ||
37525 | ||
37526 | ||
37527 | fi | |
37528 | ||
37529 | fi | |
37530 | ||
37531 | HAVE_PRIOR_FUNCS=0 | |
37532 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37533 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
37534 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
37535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37536 | else | |
37537 | cat >conftest.$ac_ext <<_ACEOF | |
37538 | /* confdefs.h. */ | |
37539 | _ACEOF | |
37540 | cat confdefs.h >>conftest.$ac_ext | |
37541 | cat >>conftest.$ac_ext <<_ACEOF | |
37542 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37543 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
37544 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37545 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
37546 | ||
a848cd7e SC |
37547 | /* System header to define __stub macros and hopefully few prototypes, |
37548 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
37549 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37550 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37551 | |
a848cd7e SC |
37552 | #ifdef __STDC__ |
37553 | # include <limits.h> | |
37554 | #else | |
37555 | # include <assert.h> | |
37556 | #endif | |
ac1cb8d3 VS |
37557 | |
37558 | #undef pthread_attr_getschedpolicy | |
37559 | ||
a848cd7e SC |
37560 | /* Override any gcc2 internal prototype to avoid an error. */ |
37561 | #ifdef __cplusplus | |
37562 | extern "C" | |
37563 | { | |
37564 | #endif | |
37565 | /* We use char because int might match the return type of a gcc2 | |
37566 | builtin and then its argument prototype would still apply. */ | |
37567 | char pthread_attr_getschedpolicy (); | |
37568 | /* The GNU C library defines this for functions which it implements | |
37569 | to always fail with ENOSYS. Some functions are actually named | |
37570 | something starting with __ and the normal name is an alias. */ | |
37571 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
37572 | choke me | |
37573 | #else | |
37574 | char (*f) () = pthread_attr_getschedpolicy; | |
37575 | #endif | |
37576 | #ifdef __cplusplus | |
37577 | } | |
37578 | #endif | |
37579 | ||
37580 | int | |
37581 | main () | |
37582 | { | |
37583 | return f != pthread_attr_getschedpolicy; | |
37584 | ; | |
37585 | return 0; | |
37586 | } | |
37587 | _ACEOF | |
37588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37590 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37591 | ac_status=$? |
ac1cb8d3 VS |
37592 | grep -v '^ *+' conftest.er1 >conftest.err |
37593 | rm -f conftest.er1 | |
37594 | cat conftest.err >&5 | |
a848cd7e SC |
37595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37596 | (exit $ac_status); } && | |
3565d135 RR |
37597 | { ac_try='test -z "$ac_c_werror_flag" |
37598 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37600 | (eval $ac_try) 2>&5 | |
37601 | ac_status=$? | |
37602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37603 | (exit $ac_status); }; } && | |
37604 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37606 | (eval $ac_try) 2>&5 | |
37607 | ac_status=$? | |
37608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37609 | (exit $ac_status); }; }; then | |
37610 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
37611 | else | |
37612 | echo "$as_me: failed program was:" >&5 | |
37613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37614 | ||
37615 | ac_cv_func_pthread_attr_getschedpolicy=no | |
37616 | fi | |
ac1cb8d3 VS |
37617 | rm -f conftest.err conftest.$ac_objext \ |
37618 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37619 | fi |
37620 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
37621 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
37622 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
37623 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
37624 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
37625 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
37626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37627 | else | |
37628 | cat >conftest.$ac_ext <<_ACEOF | |
37629 | /* confdefs.h. */ | |
37630 | _ACEOF | |
37631 | cat confdefs.h >>conftest.$ac_ext | |
37632 | cat >>conftest.$ac_ext <<_ACEOF | |
37633 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37634 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
37635 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37636 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
37637 | ||
a848cd7e SC |
37638 | /* System header to define __stub macros and hopefully few prototypes, |
37639 | which can conflict with char pthread_attr_setschedparam (); below. | |
37640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37641 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37642 | |
a848cd7e SC |
37643 | #ifdef __STDC__ |
37644 | # include <limits.h> | |
37645 | #else | |
37646 | # include <assert.h> | |
37647 | #endif | |
ac1cb8d3 VS |
37648 | |
37649 | #undef pthread_attr_setschedparam | |
37650 | ||
a848cd7e SC |
37651 | /* Override any gcc2 internal prototype to avoid an error. */ |
37652 | #ifdef __cplusplus | |
37653 | extern "C" | |
37654 | { | |
37655 | #endif | |
37656 | /* We use char because int might match the return type of a gcc2 | |
37657 | builtin and then its argument prototype would still apply. */ | |
37658 | char pthread_attr_setschedparam (); | |
37659 | /* The GNU C library defines this for functions which it implements | |
37660 | to always fail with ENOSYS. Some functions are actually named | |
37661 | something starting with __ and the normal name is an alias. */ | |
37662 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
37663 | choke me | |
37664 | #else | |
37665 | char (*f) () = pthread_attr_setschedparam; | |
37666 | #endif | |
37667 | #ifdef __cplusplus | |
37668 | } | |
37669 | #endif | |
37670 | ||
37671 | int | |
37672 | main () | |
37673 | { | |
37674 | return f != pthread_attr_setschedparam; | |
37675 | ; | |
37676 | return 0; | |
37677 | } | |
37678 | _ACEOF | |
37679 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37681 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37682 | ac_status=$? |
ac1cb8d3 VS |
37683 | grep -v '^ *+' conftest.er1 >conftest.err |
37684 | rm -f conftest.er1 | |
37685 | cat conftest.err >&5 | |
a848cd7e SC |
37686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37687 | (exit $ac_status); } && | |
3565d135 RR |
37688 | { ac_try='test -z "$ac_c_werror_flag" |
37689 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37691 | (eval $ac_try) 2>&5 | |
37692 | ac_status=$? | |
37693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37694 | (exit $ac_status); }; } && | |
37695 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37697 | (eval $ac_try) 2>&5 | |
37698 | ac_status=$? | |
37699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37700 | (exit $ac_status); }; }; then | |
37701 | ac_cv_func_pthread_attr_setschedparam=yes | |
37702 | else | |
37703 | echo "$as_me: failed program was:" >&5 | |
37704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37705 | ||
37706 | ac_cv_func_pthread_attr_setschedparam=no | |
37707 | fi | |
ac1cb8d3 VS |
37708 | rm -f conftest.err conftest.$ac_objext \ |
37709 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37710 | fi |
37711 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
37712 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
37713 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
37714 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
37715 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
37716 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
37717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37718 | else | |
37719 | cat >conftest.$ac_ext <<_ACEOF | |
37720 | /* confdefs.h. */ | |
37721 | _ACEOF | |
37722 | cat confdefs.h >>conftest.$ac_ext | |
37723 | cat >>conftest.$ac_ext <<_ACEOF | |
37724 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37725 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
37726 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37727 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
37728 | ||
a848cd7e SC |
37729 | /* System header to define __stub macros and hopefully few prototypes, |
37730 | which can conflict with char sched_get_priority_max (); below. | |
37731 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37732 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37733 | |
a848cd7e SC |
37734 | #ifdef __STDC__ |
37735 | # include <limits.h> | |
37736 | #else | |
37737 | # include <assert.h> | |
37738 | #endif | |
ac1cb8d3 VS |
37739 | |
37740 | #undef sched_get_priority_max | |
37741 | ||
a848cd7e SC |
37742 | /* Override any gcc2 internal prototype to avoid an error. */ |
37743 | #ifdef __cplusplus | |
37744 | extern "C" | |
37745 | { | |
37746 | #endif | |
37747 | /* We use char because int might match the return type of a gcc2 | |
37748 | builtin and then its argument prototype would still apply. */ | |
37749 | char sched_get_priority_max (); | |
37750 | /* The GNU C library defines this for functions which it implements | |
37751 | to always fail with ENOSYS. Some functions are actually named | |
37752 | something starting with __ and the normal name is an alias. */ | |
37753 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
37754 | choke me | |
37755 | #else | |
37756 | char (*f) () = sched_get_priority_max; | |
37757 | #endif | |
37758 | #ifdef __cplusplus | |
37759 | } | |
37760 | #endif | |
37761 | ||
37762 | int | |
37763 | main () | |
37764 | { | |
37765 | return f != sched_get_priority_max; | |
37766 | ; | |
37767 | return 0; | |
37768 | } | |
37769 | _ACEOF | |
37770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37772 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37773 | ac_status=$? |
ac1cb8d3 VS |
37774 | grep -v '^ *+' conftest.er1 >conftest.err |
37775 | rm -f conftest.er1 | |
37776 | cat conftest.err >&5 | |
a848cd7e SC |
37777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37778 | (exit $ac_status); } && | |
3565d135 RR |
37779 | { ac_try='test -z "$ac_c_werror_flag" |
37780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37782 | (eval $ac_try) 2>&5 | |
37783 | ac_status=$? | |
37784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37785 | (exit $ac_status); }; } && | |
37786 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37788 | (eval $ac_try) 2>&5 | |
37789 | ac_status=$? | |
37790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37791 | (exit $ac_status); }; }; then | |
37792 | ac_cv_func_sched_get_priority_max=yes | |
37793 | else | |
37794 | echo "$as_me: failed program was:" >&5 | |
37795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37796 | ||
37797 | ac_cv_func_sched_get_priority_max=no | |
37798 | fi | |
ac1cb8d3 VS |
37799 | rm -f conftest.err conftest.$ac_objext \ |
37800 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37801 | fi |
37802 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
37803 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
37804 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
37805 | HAVE_PRIOR_FUNCS=1 | |
37806 | else | |
37807 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
37808 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
37809 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
37810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37811 | else | |
37812 | ac_check_lib_save_LIBS=$LIBS | |
37813 | LIBS="-lposix4 $LIBS" | |
37814 | cat >conftest.$ac_ext <<_ACEOF | |
37815 | /* confdefs.h. */ | |
37816 | _ACEOF | |
37817 | cat confdefs.h >>conftest.$ac_ext | |
37818 | cat >>conftest.$ac_ext <<_ACEOF | |
37819 | /* end confdefs.h. */ | |
37820 | ||
37821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37822 | #ifdef __cplusplus | |
37823 | extern "C" | |
37824 | #endif | |
37825 | /* We use char because int might match the return type of a gcc2 | |
37826 | builtin and then its argument prototype would still apply. */ | |
37827 | char sched_get_priority_max (); | |
37828 | int | |
37829 | main () | |
37830 | { | |
37831 | sched_get_priority_max (); | |
37832 | ; | |
37833 | return 0; | |
37834 | } | |
37835 | _ACEOF | |
37836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37838 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37839 | ac_status=$? |
ac1cb8d3 VS |
37840 | grep -v '^ *+' conftest.er1 >conftest.err |
37841 | rm -f conftest.er1 | |
37842 | cat conftest.err >&5 | |
a848cd7e SC |
37843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37844 | (exit $ac_status); } && | |
3565d135 RR |
37845 | { ac_try='test -z "$ac_c_werror_flag" |
37846 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37848 | (eval $ac_try) 2>&5 | |
37849 | ac_status=$? | |
37850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37851 | (exit $ac_status); }; } && | |
37852 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37854 | (eval $ac_try) 2>&5 | |
37855 | ac_status=$? | |
37856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37857 | (exit $ac_status); }; }; then | |
37858 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
37859 | else | |
37860 | echo "$as_me: failed program was:" >&5 | |
37861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37862 | ||
37863 | ac_cv_lib_posix4_sched_get_priority_max=no | |
37864 | fi | |
ac1cb8d3 VS |
37865 | rm -f conftest.err conftest.$ac_objext \ |
37866 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37867 | LIBS=$ac_check_lib_save_LIBS |
37868 | fi | |
37869 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
37870 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
37871 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
37872 | ||
37873 | HAVE_PRIOR_FUNCS=1 | |
37874 | POSIX4_LINK=" -lposix4" | |
37875 | ||
37876 | fi | |
37877 | ||
37878 | ||
37879 | fi | |
37880 | ||
37881 | ||
37882 | fi | |
37883 | ||
37884 | ||
37885 | fi | |
37886 | ||
37887 | ||
37888 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
37889 | cat >>confdefs.h <<\_ACEOF | |
37890 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
37891 | _ACEOF | |
37892 | ||
37893 | else | |
37894 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
37895 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
37896 | fi | |
37897 | ||
37898 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
37899 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
37900 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
37901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37902 | else | |
37903 | cat >conftest.$ac_ext <<_ACEOF | |
37904 | /* confdefs.h. */ | |
37905 | _ACEOF | |
37906 | cat confdefs.h >>conftest.$ac_ext | |
37907 | cat >>conftest.$ac_ext <<_ACEOF | |
37908 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37909 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
37910 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37911 | #define pthread_cancel innocuous_pthread_cancel | |
37912 | ||
a848cd7e SC |
37913 | /* System header to define __stub macros and hopefully few prototypes, |
37914 | which can conflict with char pthread_cancel (); below. | |
37915 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37916 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37917 | |
a848cd7e SC |
37918 | #ifdef __STDC__ |
37919 | # include <limits.h> | |
37920 | #else | |
37921 | # include <assert.h> | |
37922 | #endif | |
ac1cb8d3 VS |
37923 | |
37924 | #undef pthread_cancel | |
37925 | ||
a848cd7e SC |
37926 | /* Override any gcc2 internal prototype to avoid an error. */ |
37927 | #ifdef __cplusplus | |
37928 | extern "C" | |
37929 | { | |
37930 | #endif | |
37931 | /* We use char because int might match the return type of a gcc2 | |
37932 | builtin and then its argument prototype would still apply. */ | |
37933 | char pthread_cancel (); | |
37934 | /* The GNU C library defines this for functions which it implements | |
37935 | to always fail with ENOSYS. Some functions are actually named | |
37936 | something starting with __ and the normal name is an alias. */ | |
37937 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
37938 | choke me | |
37939 | #else | |
37940 | char (*f) () = pthread_cancel; | |
37941 | #endif | |
37942 | #ifdef __cplusplus | |
37943 | } | |
37944 | #endif | |
37945 | ||
37946 | int | |
37947 | main () | |
37948 | { | |
37949 | return f != pthread_cancel; | |
37950 | ; | |
37951 | return 0; | |
37952 | } | |
37953 | _ACEOF | |
37954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37956 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37957 | ac_status=$? |
ac1cb8d3 VS |
37958 | grep -v '^ *+' conftest.er1 >conftest.err |
37959 | rm -f conftest.er1 | |
37960 | cat conftest.err >&5 | |
a848cd7e SC |
37961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37962 | (exit $ac_status); } && | |
3565d135 RR |
37963 | { ac_try='test -z "$ac_c_werror_flag" |
37964 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37966 | (eval $ac_try) 2>&5 | |
37967 | ac_status=$? | |
37968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37969 | (exit $ac_status); }; } && | |
37970 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37972 | (eval $ac_try) 2>&5 | |
37973 | ac_status=$? | |
37974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37975 | (exit $ac_status); }; }; then | |
37976 | ac_cv_func_pthread_cancel=yes | |
37977 | else | |
37978 | echo "$as_me: failed program was:" >&5 | |
37979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37980 | ||
37981 | ac_cv_func_pthread_cancel=no | |
37982 | fi | |
ac1cb8d3 VS |
37983 | rm -f conftest.err conftest.$ac_objext \ |
37984 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37985 | fi |
37986 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
37987 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
37988 | if test $ac_cv_func_pthread_cancel = yes; then | |
37989 | cat >>confdefs.h <<\_ACEOF | |
37990 | #define HAVE_PTHREAD_CANCEL 1 | |
37991 | _ACEOF | |
37992 | ||
37993 | else | |
37994 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
37995 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
37996 | fi | |
37997 | ||
37998 | ||
abc736fd MW |
37999 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
38000 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
38001 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
38002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38003 | else | |
38004 | cat >conftest.$ac_ext <<_ACEOF | |
38005 | /* confdefs.h. */ | |
38006 | _ACEOF | |
38007 | cat confdefs.h >>conftest.$ac_ext | |
38008 | cat >>conftest.$ac_ext <<_ACEOF | |
38009 | /* end confdefs.h. */ | |
38010 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
38011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38012 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
38013 | ||
38014 | /* System header to define __stub macros and hopefully few prototypes, | |
38015 | which can conflict with char pthread_attr_setstacksize (); below. | |
38016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38017 | <limits.h> exists even on freestanding compilers. */ | |
38018 | ||
38019 | #ifdef __STDC__ | |
38020 | # include <limits.h> | |
38021 | #else | |
38022 | # include <assert.h> | |
38023 | #endif | |
38024 | ||
38025 | #undef pthread_attr_setstacksize | |
38026 | ||
38027 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38028 | #ifdef __cplusplus | |
38029 | extern "C" | |
38030 | { | |
38031 | #endif | |
38032 | /* We use char because int might match the return type of a gcc2 | |
38033 | builtin and then its argument prototype would still apply. */ | |
38034 | char pthread_attr_setstacksize (); | |
38035 | /* The GNU C library defines this for functions which it implements | |
38036 | to always fail with ENOSYS. Some functions are actually named | |
38037 | something starting with __ and the normal name is an alias. */ | |
38038 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
38039 | choke me | |
38040 | #else | |
38041 | char (*f) () = pthread_attr_setstacksize; | |
38042 | #endif | |
38043 | #ifdef __cplusplus | |
38044 | } | |
38045 | #endif | |
38046 | ||
38047 | int | |
38048 | main () | |
38049 | { | |
38050 | return f != pthread_attr_setstacksize; | |
38051 | ; | |
38052 | return 0; | |
38053 | } | |
38054 | _ACEOF | |
38055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38057 | (eval $ac_link) 2>conftest.er1 | |
38058 | ac_status=$? | |
38059 | grep -v '^ *+' conftest.er1 >conftest.err | |
38060 | rm -f conftest.er1 | |
38061 | cat conftest.err >&5 | |
38062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38063 | (exit $ac_status); } && | |
3565d135 RR |
38064 | { ac_try='test -z "$ac_c_werror_flag" |
38065 | || test ! -s conftest.err' | |
abc736fd MW |
38066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38067 | (eval $ac_try) 2>&5 | |
38068 | ac_status=$? | |
38069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38070 | (exit $ac_status); }; } && | |
38071 | { ac_try='test -s conftest$ac_exeext' | |
38072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38073 | (eval $ac_try) 2>&5 | |
38074 | ac_status=$? | |
38075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38076 | (exit $ac_status); }; }; then | |
38077 | ac_cv_func_pthread_attr_setstacksize=yes | |
38078 | else | |
38079 | echo "$as_me: failed program was:" >&5 | |
38080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38081 | ||
38082 | ac_cv_func_pthread_attr_setstacksize=no | |
38083 | fi | |
38084 | rm -f conftest.err conftest.$ac_objext \ | |
38085 | conftest$ac_exeext conftest.$ac_ext | |
38086 | fi | |
38087 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
38088 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
38089 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
38090 | cat >>confdefs.h <<\_ACEOF | |
38091 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
38092 | _ACEOF | |
38093 | ||
38094 | fi | |
38095 | ||
a848cd7e SC |
38096 | |
38097 | ||
38098 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
38099 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
38100 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
38101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38102 | else | |
38103 | ||
38104 | cat >conftest.$ac_ext <<_ACEOF | |
38105 | /* confdefs.h. */ | |
38106 | _ACEOF | |
38107 | cat confdefs.h >>conftest.$ac_ext | |
38108 | cat >>conftest.$ac_ext <<_ACEOF | |
38109 | /* end confdefs.h. */ | |
38110 | #include <pthread.h> | |
38111 | int | |
38112 | main () | |
38113 | { | |
38114 | ||
38115 | pthread_mutexattr_t attr; | |
38116 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38117 | ||
38118 | ; | |
38119 | return 0; | |
38120 | } | |
38121 | _ACEOF | |
38122 | rm -f conftest.$ac_objext | |
38123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38124 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38125 | ac_status=$? |
ac1cb8d3 VS |
38126 | grep -v '^ *+' conftest.er1 >conftest.err |
38127 | rm -f conftest.er1 | |
38128 | cat conftest.err >&5 | |
a848cd7e SC |
38129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38130 | (exit $ac_status); } && | |
3565d135 RR |
38131 | { ac_try='test -z "$ac_c_werror_flag" |
38132 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38134 | (eval $ac_try) 2>&5 | |
38135 | ac_status=$? | |
38136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38137 | (exit $ac_status); }; } && | |
38138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38140 | (eval $ac_try) 2>&5 | |
38141 | ac_status=$? | |
38142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38143 | (exit $ac_status); }; }; then | |
123dca7d | 38144 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
38145 | else |
38146 | echo "$as_me: failed program was:" >&5 | |
38147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38148 | ||
123dca7d | 38149 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
38150 | |
38151 | fi | |
ac1cb8d3 | 38152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38153 | |
38154 | fi | |
38155 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
38156 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
38157 | ||
38158 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
38159 | cat >>confdefs.h <<\_ACEOF | |
38160 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
38161 | _ACEOF | |
38162 | ||
123dca7d VZ |
38163 | |
38164 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
38165 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
38166 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
38167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38168 | else | |
38169 | ||
38170 | cat >conftest.$ac_ext <<_ACEOF | |
38171 | /* confdefs.h. */ | |
38172 | _ACEOF | |
38173 | cat confdefs.h >>conftest.$ac_ext | |
38174 | cat >>conftest.$ac_ext <<_ACEOF | |
38175 | /* end confdefs.h. */ | |
38176 | #include <pthread.h> | |
38177 | int | |
38178 | main () | |
38179 | { | |
38180 | ||
38181 | pthread_mutexattr_t attr; | |
38182 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38183 | ||
38184 | ; | |
38185 | return 0; | |
38186 | } | |
38187 | _ACEOF | |
38188 | rm -f conftest.$ac_objext | |
38189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38190 | (eval $ac_compile) 2>conftest.er1 | |
38191 | ac_status=$? | |
38192 | grep -v '^ *+' conftest.er1 >conftest.err | |
38193 | rm -f conftest.er1 | |
38194 | cat conftest.err >&5 | |
38195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38196 | (exit $ac_status); } && | |
3565d135 RR |
38197 | { ac_try='test -z "$ac_c_werror_flag" |
38198 | || test ! -s conftest.err' | |
123dca7d VZ |
38199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38200 | (eval $ac_try) 2>&5 | |
38201 | ac_status=$? | |
38202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38203 | (exit $ac_status); }; } && | |
38204 | { ac_try='test -s conftest.$ac_objext' | |
38205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38206 | (eval $ac_try) 2>&5 | |
38207 | ac_status=$? | |
38208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38209 | (exit $ac_status); }; }; then | |
38210 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
38211 | else | |
38212 | echo "$as_me: failed program was:" >&5 | |
38213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38214 | ||
38215 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
38216 | ||
38217 | fi | |
38218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38219 | ||
38220 | fi | |
38221 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
38222 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
38223 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
38224 | cat >>confdefs.h <<\_ACEOF | |
38225 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
38226 | _ACEOF | |
38227 | ||
38228 | fi | |
a848cd7e SC |
38229 | else |
38230 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
38231 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
38232 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
38233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38234 | else | |
38235 | ||
38236 | cat >conftest.$ac_ext <<_ACEOF | |
38237 | /* confdefs.h. */ | |
38238 | _ACEOF | |
38239 | cat confdefs.h >>conftest.$ac_ext | |
38240 | cat >>conftest.$ac_ext <<_ACEOF | |
38241 | /* end confdefs.h. */ | |
38242 | #include <pthread.h> | |
38243 | int | |
38244 | main () | |
38245 | { | |
38246 | ||
38247 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
38248 | ||
38249 | ; | |
38250 | return 0; | |
38251 | } | |
38252 | _ACEOF | |
38253 | rm -f conftest.$ac_objext | |
38254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38255 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38256 | ac_status=$? |
ac1cb8d3 VS |
38257 | grep -v '^ *+' conftest.er1 >conftest.err |
38258 | rm -f conftest.er1 | |
38259 | cat conftest.err >&5 | |
a848cd7e SC |
38260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38261 | (exit $ac_status); } && | |
3565d135 RR |
38262 | { ac_try='test -z "$ac_c_werror_flag" |
38263 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38265 | (eval $ac_try) 2>&5 | |
38266 | ac_status=$? | |
38267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38268 | (exit $ac_status); }; } && | |
38269 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38271 | (eval $ac_try) 2>&5 | |
38272 | ac_status=$? | |
38273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38274 | (exit $ac_status); }; }; then | |
38275 | ||
38276 | wx_cv_type_pthread_rec_mutex_init=yes | |
38277 | ||
38278 | else | |
38279 | echo "$as_me: failed program was:" >&5 | |
38280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38281 | ||
38282 | ||
38283 | wx_cv_type_pthread_rec_mutex_init=no | |
38284 | ||
38285 | ||
38286 | fi | |
ac1cb8d3 | 38287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38288 | |
38289 | fi | |
38290 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
38291 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
38292 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
38293 | cat >>confdefs.h <<\_ACEOF | |
38294 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
38295 | _ACEOF | |
38296 | ||
38297 | else | |
38298 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
38299 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
38300 | fi | |
38301 | fi | |
38302 | fi | |
38303 | ||
38304 | else | |
38305 | if test "$wxUSE_THREADS" = "yes" ; then | |
38306 | case "${host}" in | |
38307 | *-*-mingw32* ) | |
38308 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
38309 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
38310 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
38311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38312 | else | |
38313 | ||
38314 | CFLAGS_OLD="$CFLAGS" | |
c92ad099 | 38315 | CFLAGS="-mthreads $CFLAGS" |
a848cd7e SC |
38316 | cat >conftest.$ac_ext <<_ACEOF |
38317 | /* confdefs.h. */ | |
38318 | _ACEOF | |
38319 | cat confdefs.h >>conftest.$ac_ext | |
38320 | cat >>conftest.$ac_ext <<_ACEOF | |
38321 | /* end confdefs.h. */ | |
38322 | ||
38323 | int | |
38324 | main () | |
38325 | { | |
38326 | ||
38327 | ; | |
38328 | return 0; | |
38329 | } | |
38330 | _ACEOF | |
38331 | rm -f conftest.$ac_objext | |
38332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38333 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38334 | ac_status=$? |
ac1cb8d3 VS |
38335 | grep -v '^ *+' conftest.er1 >conftest.err |
38336 | rm -f conftest.er1 | |
38337 | cat conftest.err >&5 | |
a848cd7e SC |
38338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38339 | (exit $ac_status); } && | |
3565d135 RR |
38340 | { ac_try='test -z "$ac_c_werror_flag" |
38341 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38343 | (eval $ac_try) 2>&5 | |
38344 | ac_status=$? | |
38345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38346 | (exit $ac_status); }; } && | |
38347 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38349 | (eval $ac_try) 2>&5 | |
38350 | ac_status=$? | |
38351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38352 | (exit $ac_status); }; }; then | |
38353 | wx_cv_cflags_mthread=yes | |
38354 | else | |
38355 | echo "$as_me: failed program was:" >&5 | |
38356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38357 | ||
38358 | wx_cv_cflags_mthread=no | |
38359 | ||
38360 | fi | |
ac1cb8d3 | 38361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38362 | |
38363 | ||
38364 | fi | |
38365 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
38366 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
38367 | ||
38368 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
5ff751d6 | 38369 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads" |
a848cd7e SC |
38370 | LDFLAGS="$LDFLAGS -mthreads" |
38371 | else | |
38372 | CFLAGS="$CFLAGS_OLD" | |
38373 | fi | |
38374 | ;; | |
38375 | *-pc-os2*emx ) | |
5ff751d6 VZ |
38376 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
38377 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
38378 | LDFLAGS="$LDFLAGS -Zmt" |
38379 | ;; | |
38380 | esac | |
38381 | fi | |
38382 | fi | |
38383 | ||
004ee6da RL |
38384 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
38385 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
38386 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
38387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
38388 | else | |
38389 | cat >conftest.$ac_ext <<_ACEOF | |
38390 | /* confdefs.h. */ | |
38391 | _ACEOF | |
38392 | cat confdefs.h >>conftest.$ac_ext | |
38393 | cat >>conftest.$ac_ext <<_ACEOF | |
38394 | /* end confdefs.h. */ | |
004ee6da | 38395 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 38396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 38397 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 38398 | |
a848cd7e | 38399 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 38400 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
38401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
38402 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38403 | |
a848cd7e SC |
38404 | #ifdef __STDC__ |
38405 | # include <limits.h> | |
38406 | #else | |
38407 | # include <assert.h> | |
38408 | #endif | |
ac1cb8d3 | 38409 | |
004ee6da | 38410 | #undef localtime_r |
ac1cb8d3 | 38411 | |
a848cd7e SC |
38412 | /* Override any gcc2 internal prototype to avoid an error. */ |
38413 | #ifdef __cplusplus | |
38414 | extern "C" | |
38415 | { | |
38416 | #endif | |
38417 | /* We use char because int might match the return type of a gcc2 | |
38418 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 38419 | char localtime_r (); |
a848cd7e SC |
38420 | /* The GNU C library defines this for functions which it implements |
38421 | to always fail with ENOSYS. Some functions are actually named | |
38422 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 38423 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
38424 | choke me |
38425 | #else | |
004ee6da | 38426 | char (*f) () = localtime_r; |
a848cd7e SC |
38427 | #endif |
38428 | #ifdef __cplusplus | |
38429 | } | |
38430 | #endif | |
38431 | ||
38432 | int | |
38433 | main () | |
38434 | { | |
004ee6da RL |
38435 | return f != localtime_r; |
38436 | ; | |
38437 | return 0; | |
38438 | } | |
38439 | _ACEOF | |
38440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38442 | (eval $ac_link) 2>conftest.er1 | |
38443 | ac_status=$? | |
38444 | grep -v '^ *+' conftest.er1 >conftest.err | |
38445 | rm -f conftest.er1 | |
38446 | cat conftest.err >&5 | |
38447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38448 | (exit $ac_status); } && | |
3565d135 RR |
38449 | { ac_try='test -z "$ac_c_werror_flag" |
38450 | || test ! -s conftest.err' | |
004ee6da RL |
38451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38452 | (eval $ac_try) 2>&5 | |
38453 | ac_status=$? | |
38454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38455 | (exit $ac_status); }; } && | |
38456 | { ac_try='test -s conftest$ac_exeext' | |
38457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38458 | (eval $ac_try) 2>&5 | |
38459 | ac_status=$? | |
38460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38461 | (exit $ac_status); }; }; then | |
38462 | ac_cv_func_localtime_r=yes | |
38463 | else | |
38464 | echo "$as_me: failed program was:" >&5 | |
38465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38466 | ||
38467 | ac_cv_func_localtime_r=no | |
38468 | fi | |
38469 | rm -f conftest.err conftest.$ac_objext \ | |
38470 | conftest$ac_exeext conftest.$ac_ext | |
38471 | fi | |
38472 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
38473 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
38474 | if test $ac_cv_func_localtime_r = yes; then | |
38475 | cat >>confdefs.h <<\_ACEOF | |
38476 | #define HAVE_LOCALTIME_R 1 | |
38477 | _ACEOF | |
38478 | ||
38479 | fi | |
38480 | ||
38481 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
38482 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
38483 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
38484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38485 | else | |
38486 | cat >conftest.$ac_ext <<_ACEOF | |
38487 | /* confdefs.h. */ | |
38488 | _ACEOF | |
38489 | cat confdefs.h >>conftest.$ac_ext | |
38490 | cat >>conftest.$ac_ext <<_ACEOF | |
38491 | /* end confdefs.h. */ | |
38492 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
38493 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38494 | #define gmtime_r innocuous_gmtime_r | |
38495 | ||
38496 | /* System header to define __stub macros and hopefully few prototypes, | |
38497 | which can conflict with char gmtime_r (); below. | |
38498 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38499 | <limits.h> exists even on freestanding compilers. */ | |
38500 | ||
38501 | #ifdef __STDC__ | |
38502 | # include <limits.h> | |
38503 | #else | |
38504 | # include <assert.h> | |
38505 | #endif | |
38506 | ||
38507 | #undef gmtime_r | |
38508 | ||
38509 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38510 | #ifdef __cplusplus | |
38511 | extern "C" | |
38512 | { | |
38513 | #endif | |
38514 | /* We use char because int might match the return type of a gcc2 | |
38515 | builtin and then its argument prototype would still apply. */ | |
38516 | char gmtime_r (); | |
38517 | /* The GNU C library defines this for functions which it implements | |
38518 | to always fail with ENOSYS. Some functions are actually named | |
38519 | something starting with __ and the normal name is an alias. */ | |
38520 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
38521 | choke me | |
38522 | #else | |
38523 | char (*f) () = gmtime_r; | |
38524 | #endif | |
38525 | #ifdef __cplusplus | |
38526 | } | |
38527 | #endif | |
38528 | ||
38529 | int | |
38530 | main () | |
38531 | { | |
38532 | return f != gmtime_r; | |
38533 | ; | |
38534 | return 0; | |
38535 | } | |
38536 | _ACEOF | |
38537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38539 | (eval $ac_link) 2>conftest.er1 | |
38540 | ac_status=$? | |
38541 | grep -v '^ *+' conftest.er1 >conftest.err | |
38542 | rm -f conftest.er1 | |
38543 | cat conftest.err >&5 | |
38544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38545 | (exit $ac_status); } && | |
3565d135 RR |
38546 | { ac_try='test -z "$ac_c_werror_flag" |
38547 | || test ! -s conftest.err' | |
004ee6da RL |
38548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38549 | (eval $ac_try) 2>&5 | |
38550 | ac_status=$? | |
38551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38552 | (exit $ac_status); }; } && | |
38553 | { ac_try='test -s conftest$ac_exeext' | |
38554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38555 | (eval $ac_try) 2>&5 | |
38556 | ac_status=$? | |
38557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38558 | (exit $ac_status); }; }; then | |
38559 | ac_cv_func_gmtime_r=yes | |
38560 | else | |
38561 | echo "$as_me: failed program was:" >&5 | |
38562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38563 | ||
38564 | ac_cv_func_gmtime_r=no | |
38565 | fi | |
38566 | rm -f conftest.err conftest.$ac_objext \ | |
38567 | conftest$ac_exeext conftest.$ac_ext | |
38568 | fi | |
38569 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
38570 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
38571 | if test $ac_cv_func_gmtime_r = yes; then | |
38572 | cat >>confdefs.h <<\_ACEOF | |
38573 | #define HAVE_GMTIME_R 1 | |
38574 | _ACEOF | |
38575 | ||
38576 | fi | |
38577 | ||
38578 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
38579 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
38580 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
38581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38582 | else | |
38583 | cat >conftest.$ac_ext <<_ACEOF | |
38584 | /* confdefs.h. */ | |
38585 | _ACEOF | |
38586 | cat confdefs.h >>conftest.$ac_ext | |
38587 | cat >>conftest.$ac_ext <<_ACEOF | |
38588 | /* end confdefs.h. */ | |
38589 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
38590 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38591 | #define readdir_r innocuous_readdir_r | |
38592 | ||
38593 | /* System header to define __stub macros and hopefully few prototypes, | |
38594 | which can conflict with char readdir_r (); below. | |
38595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38596 | <limits.h> exists even on freestanding compilers. */ | |
38597 | ||
38598 | #ifdef __STDC__ | |
38599 | # include <limits.h> | |
38600 | #else | |
38601 | # include <assert.h> | |
38602 | #endif | |
38603 | ||
38604 | #undef readdir_r | |
38605 | ||
38606 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38607 | #ifdef __cplusplus | |
38608 | extern "C" | |
38609 | { | |
38610 | #endif | |
38611 | /* We use char because int might match the return type of a gcc2 | |
38612 | builtin and then its argument prototype would still apply. */ | |
38613 | char readdir_r (); | |
38614 | /* The GNU C library defines this for functions which it implements | |
38615 | to always fail with ENOSYS. Some functions are actually named | |
38616 | something starting with __ and the normal name is an alias. */ | |
38617 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
38618 | choke me | |
38619 | #else | |
38620 | char (*f) () = readdir_r; | |
38621 | #endif | |
38622 | #ifdef __cplusplus | |
38623 | } | |
38624 | #endif | |
38625 | ||
38626 | int | |
38627 | main () | |
38628 | { | |
38629 | return f != readdir_r; | |
38630 | ; | |
38631 | return 0; | |
38632 | } | |
38633 | _ACEOF | |
38634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38636 | (eval $ac_link) 2>conftest.er1 | |
38637 | ac_status=$? | |
38638 | grep -v '^ *+' conftest.er1 >conftest.err | |
38639 | rm -f conftest.er1 | |
38640 | cat conftest.err >&5 | |
38641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38642 | (exit $ac_status); } && | |
3565d135 RR |
38643 | { ac_try='test -z "$ac_c_werror_flag" |
38644 | || test ! -s conftest.err' | |
004ee6da RL |
38645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38646 | (eval $ac_try) 2>&5 | |
38647 | ac_status=$? | |
38648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38649 | (exit $ac_status); }; } && | |
38650 | { ac_try='test -s conftest$ac_exeext' | |
38651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38652 | (eval $ac_try) 2>&5 | |
38653 | ac_status=$? | |
38654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38655 | (exit $ac_status); }; }; then | |
38656 | ac_cv_func_readdir_r=yes | |
38657 | else | |
38658 | echo "$as_me: failed program was:" >&5 | |
38659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38660 | ||
38661 | ac_cv_func_readdir_r=no | |
38662 | fi | |
38663 | rm -f conftest.err conftest.$ac_objext \ | |
38664 | conftest$ac_exeext conftest.$ac_ext | |
38665 | fi | |
38666 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
38667 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
38668 | if test $ac_cv_func_readdir_r = yes; then | |
38669 | cat >>confdefs.h <<\_ACEOF | |
38670 | #define HAVE_READDIR_R 1 | |
38671 | _ACEOF | |
38672 | ||
38673 | fi | |
38674 | ||
004ee6da | 38675 | |
004ee6da RL |
38676 | |
38677 | ||
38678 | ac_ext=c | |
38679 | ac_cpp='$CPP $CPPFLAGS' | |
38680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38683 | ||
38684 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
38685 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
38686 | ||
38687 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
38688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38689 | else | |
38690 | ||
38691 | ||
38692 | ################################################################ | |
38693 | ||
38694 | ac_cv_func_which_gethostbyname_r=unknown | |
38695 | ||
38696 | # | |
38697 | # ONE ARGUMENT (sanity check) | |
38698 | # | |
38699 | ||
38700 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
38701 | # a single argument. If it actually compiles, then we can assume that | |
38702 | # netdb.h is not declaring the function, and the compiler is thereby | |
38703 | # assuming an implicit prototype. In which case, we're out of luck. | |
38704 | # | |
38705 | cat >conftest.$ac_ext <<_ACEOF | |
38706 | /* confdefs.h. */ | |
38707 | _ACEOF | |
38708 | cat confdefs.h >>conftest.$ac_ext | |
38709 | cat >>conftest.$ac_ext <<_ACEOF | |
38710 | /* end confdefs.h. */ | |
38711 | #include <netdb.h> | |
38712 | int | |
38713 | main () | |
38714 | { | |
38715 | ||
38716 | char *name = "www.gnu.org"; | |
38717 | (void)gethostbyname_r(name) /* ; */ | |
38718 | ||
38719 | ; | |
38720 | return 0; | |
38721 | } | |
38722 | _ACEOF | |
38723 | rm -f conftest.$ac_objext | |
38724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38725 | (eval $ac_compile) 2>conftest.er1 | |
38726 | ac_status=$? | |
38727 | grep -v '^ *+' conftest.er1 >conftest.err | |
38728 | rm -f conftest.er1 | |
38729 | cat conftest.err >&5 | |
38730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38731 | (exit $ac_status); } && | |
3565d135 RR |
38732 | { ac_try='test -z "$ac_c_werror_flag" |
38733 | || test ! -s conftest.err' | |
004ee6da RL |
38734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38735 | (eval $ac_try) 2>&5 | |
38736 | ac_status=$? | |
38737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38738 | (exit $ac_status); }; } && | |
38739 | { ac_try='test -s conftest.$ac_objext' | |
38740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38741 | (eval $ac_try) 2>&5 | |
38742 | ac_status=$? | |
38743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38744 | (exit $ac_status); }; }; then | |
38745 | ac_cv_func_which_gethostbyname_r=no | |
38746 | else | |
38747 | echo "$as_me: failed program was:" >&5 | |
38748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38749 | ||
38750 | fi | |
38751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38752 | ||
38753 | # | |
38754 | # SIX ARGUMENTS | |
38755 | # (e.g. Linux) | |
38756 | # | |
38757 | ||
38758 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38759 | ||
38760 | cat >conftest.$ac_ext <<_ACEOF | |
38761 | /* confdefs.h. */ | |
38762 | _ACEOF | |
38763 | cat confdefs.h >>conftest.$ac_ext | |
38764 | cat >>conftest.$ac_ext <<_ACEOF | |
38765 | /* end confdefs.h. */ | |
38766 | #include <netdb.h> | |
38767 | int | |
38768 | main () | |
38769 | { | |
38770 | ||
38771 | char *name = "www.gnu.org"; | |
38772 | struct hostent ret, *retp; | |
38773 | char buf[1024]; | |
38774 | int buflen = 1024; | |
38775 | int my_h_errno; | |
38776 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
38777 | ||
38778 | ; | |
38779 | return 0; | |
38780 | } | |
38781 | _ACEOF | |
38782 | rm -f conftest.$ac_objext | |
38783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38784 | (eval $ac_compile) 2>conftest.er1 | |
38785 | ac_status=$? | |
38786 | grep -v '^ *+' conftest.er1 >conftest.err | |
38787 | rm -f conftest.er1 | |
38788 | cat conftest.err >&5 | |
38789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38790 | (exit $ac_status); } && | |
3565d135 RR |
38791 | { ac_try='test -z "$ac_c_werror_flag" |
38792 | || test ! -s conftest.err' | |
004ee6da RL |
38793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38794 | (eval $ac_try) 2>&5 | |
38795 | ac_status=$? | |
38796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38797 | (exit $ac_status); }; } && | |
38798 | { ac_try='test -s conftest.$ac_objext' | |
38799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38800 | (eval $ac_try) 2>&5 | |
38801 | ac_status=$? | |
38802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38803 | (exit $ac_status); }; }; then | |
38804 | ac_cv_func_which_gethostbyname_r=six | |
38805 | else | |
38806 | echo "$as_me: failed program was:" >&5 | |
38807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38808 | ||
38809 | fi | |
38810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38811 | ||
38812 | fi | |
38813 | ||
38814 | # | |
38815 | # FIVE ARGUMENTS | |
38816 | # (e.g. Solaris) | |
38817 | # | |
38818 | ||
38819 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38820 | ||
38821 | cat >conftest.$ac_ext <<_ACEOF | |
38822 | /* confdefs.h. */ | |
38823 | _ACEOF | |
38824 | cat confdefs.h >>conftest.$ac_ext | |
38825 | cat >>conftest.$ac_ext <<_ACEOF | |
38826 | /* end confdefs.h. */ | |
38827 | #include <netdb.h> | |
38828 | int | |
38829 | main () | |
38830 | { | |
38831 | ||
38832 | char *name = "www.gnu.org"; | |
38833 | struct hostent ret; | |
38834 | char buf[1024]; | |
38835 | int buflen = 1024; | |
38836 | int my_h_errno; | |
38837 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
38838 | ||
38839 | ; | |
38840 | return 0; | |
38841 | } | |
38842 | _ACEOF | |
38843 | rm -f conftest.$ac_objext | |
38844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38845 | (eval $ac_compile) 2>conftest.er1 | |
38846 | ac_status=$? | |
38847 | grep -v '^ *+' conftest.er1 >conftest.err | |
38848 | rm -f conftest.er1 | |
38849 | cat conftest.err >&5 | |
38850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38851 | (exit $ac_status); } && | |
3565d135 RR |
38852 | { ac_try='test -z "$ac_c_werror_flag" |
38853 | || test ! -s conftest.err' | |
004ee6da RL |
38854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38855 | (eval $ac_try) 2>&5 | |
38856 | ac_status=$? | |
38857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38858 | (exit $ac_status); }; } && | |
38859 | { ac_try='test -s conftest.$ac_objext' | |
38860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38861 | (eval $ac_try) 2>&5 | |
38862 | ac_status=$? | |
38863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38864 | (exit $ac_status); }; }; then | |
38865 | ac_cv_func_which_gethostbyname_r=five | |
38866 | else | |
38867 | echo "$as_me: failed program was:" >&5 | |
38868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38869 | ||
38870 | fi | |
38871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38872 | ||
38873 | fi | |
38874 | ||
38875 | # | |
38876 | # THREE ARGUMENTS | |
38877 | # (e.g. AIX, HP-UX, Tru64) | |
38878 | # | |
38879 | ||
38880 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38881 | ||
38882 | cat >conftest.$ac_ext <<_ACEOF | |
38883 | /* confdefs.h. */ | |
38884 | _ACEOF | |
38885 | cat confdefs.h >>conftest.$ac_ext | |
38886 | cat >>conftest.$ac_ext <<_ACEOF | |
38887 | /* end confdefs.h. */ | |
38888 | #include <netdb.h> | |
38889 | int | |
38890 | main () | |
38891 | { | |
38892 | ||
38893 | char *name = "www.gnu.org"; | |
38894 | struct hostent ret; | |
38895 | struct hostent_data data; | |
38896 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
38897 | ||
38898 | ; | |
38899 | return 0; | |
38900 | } | |
38901 | _ACEOF | |
38902 | rm -f conftest.$ac_objext | |
38903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38904 | (eval $ac_compile) 2>conftest.er1 | |
38905 | ac_status=$? | |
38906 | grep -v '^ *+' conftest.er1 >conftest.err | |
38907 | rm -f conftest.er1 | |
38908 | cat conftest.err >&5 | |
38909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38910 | (exit $ac_status); } && | |
3565d135 RR |
38911 | { ac_try='test -z "$ac_c_werror_flag" |
38912 | || test ! -s conftest.err' | |
004ee6da RL |
38913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38914 | (eval $ac_try) 2>&5 | |
38915 | ac_status=$? | |
38916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38917 | (exit $ac_status); }; } && | |
38918 | { ac_try='test -s conftest.$ac_objext' | |
38919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38920 | (eval $ac_try) 2>&5 | |
38921 | ac_status=$? | |
38922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38923 | (exit $ac_status); }; }; then | |
38924 | ac_cv_func_which_gethostbyname_r=three | |
38925 | else | |
38926 | echo "$as_me: failed program was:" >&5 | |
38927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38928 | ||
38929 | fi | |
38930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38931 | ||
38932 | fi | |
38933 | ||
38934 | ################################################################ | |
38935 | ||
38936 | ||
38937 | fi | |
38938 | ||
38939 | case "$ac_cv_func_which_gethostbyname_r" in | |
38940 | three) | |
38941 | echo "$as_me:$LINENO: result: three" >&5 | |
38942 | echo "${ECHO_T}three" >&6 | |
38943 | cat >>confdefs.h <<\_ACEOF | |
38944 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
38945 | _ACEOF | |
38946 | ||
38947 | ;; | |
38948 | ||
38949 | five) | |
38950 | echo "$as_me:$LINENO: result: five" >&5 | |
38951 | echo "${ECHO_T}five" >&6 | |
38952 | cat >>confdefs.h <<\_ACEOF | |
38953 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
38954 | _ACEOF | |
38955 | ||
38956 | ;; | |
38957 | ||
38958 | six) | |
38959 | echo "$as_me:$LINENO: result: six" >&5 | |
38960 | echo "${ECHO_T}six" >&6 | |
38961 | cat >>confdefs.h <<\_ACEOF | |
38962 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
38963 | _ACEOF | |
38964 | ||
38965 | ;; | |
38966 | ||
38967 | no) | |
38968 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
38969 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
38970 | ;; | |
38971 | ||
38972 | unknown) | |
38973 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
38974 | echo "${ECHO_T}can't tell" >&6 | |
38975 | ;; | |
38976 | ||
38977 | *) | |
38978 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
38979 | echo "$as_me: error: internal error" >&2;} | |
38980 | { (exit 1); exit 1; }; } | |
38981 | ;; | |
38982 | esac | |
38983 | ||
38984 | ac_ext=c | |
38985 | ac_cpp='$CPP $CPPFLAGS' | |
38986 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38987 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38988 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38989 | ||
38990 | ||
38991 | ||
38992 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
38993 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
38994 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
38995 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
38996 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
38997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38998 | else | |
38999 | cat >conftest.$ac_ext <<_ACEOF | |
39000 | /* confdefs.h. */ | |
39001 | _ACEOF | |
39002 | cat confdefs.h >>conftest.$ac_ext | |
39003 | cat >>conftest.$ac_ext <<_ACEOF | |
39004 | /* end confdefs.h. */ | |
39005 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
39006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39007 | #define gethostbyname innocuous_gethostbyname | |
39008 | ||
39009 | /* System header to define __stub macros and hopefully few prototypes, | |
39010 | which can conflict with char gethostbyname (); below. | |
39011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39012 | <limits.h> exists even on freestanding compilers. */ | |
39013 | ||
39014 | #ifdef __STDC__ | |
39015 | # include <limits.h> | |
39016 | #else | |
39017 | # include <assert.h> | |
39018 | #endif | |
39019 | ||
39020 | #undef gethostbyname | |
39021 | ||
39022 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39023 | #ifdef __cplusplus | |
39024 | extern "C" | |
39025 | { | |
39026 | #endif | |
39027 | /* We use char because int might match the return type of a gcc2 | |
39028 | builtin and then its argument prototype would still apply. */ | |
39029 | char gethostbyname (); | |
39030 | /* The GNU C library defines this for functions which it implements | |
39031 | to always fail with ENOSYS. Some functions are actually named | |
39032 | something starting with __ and the normal name is an alias. */ | |
39033 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
39034 | choke me | |
39035 | #else | |
39036 | char (*f) () = gethostbyname; | |
39037 | #endif | |
39038 | #ifdef __cplusplus | |
39039 | } | |
39040 | #endif | |
39041 | ||
39042 | int | |
39043 | main () | |
39044 | { | |
39045 | return f != gethostbyname; | |
39046 | ; | |
39047 | return 0; | |
39048 | } | |
39049 | _ACEOF | |
39050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39052 | (eval $ac_link) 2>conftest.er1 | |
39053 | ac_status=$? | |
39054 | grep -v '^ *+' conftest.er1 >conftest.err | |
39055 | rm -f conftest.er1 | |
39056 | cat conftest.err >&5 | |
39057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39058 | (exit $ac_status); } && | |
3565d135 RR |
39059 | { ac_try='test -z "$ac_c_werror_flag" |
39060 | || test ! -s conftest.err' | |
004ee6da RL |
39061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39062 | (eval $ac_try) 2>&5 | |
39063 | ac_status=$? | |
39064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39065 | (exit $ac_status); }; } && | |
39066 | { ac_try='test -s conftest$ac_exeext' | |
39067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39068 | (eval $ac_try) 2>&5 | |
39069 | ac_status=$? | |
39070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39071 | (exit $ac_status); }; }; then | |
39072 | ac_cv_func_gethostbyname=yes | |
39073 | else | |
39074 | echo "$as_me: failed program was:" >&5 | |
39075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39076 | ||
39077 | ac_cv_func_gethostbyname=no | |
39078 | fi | |
39079 | rm -f conftest.err conftest.$ac_objext \ | |
39080 | conftest$ac_exeext conftest.$ac_ext | |
39081 | fi | |
39082 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
39083 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
39084 | if test $ac_cv_func_gethostbyname = yes; then | |
39085 | cat >>confdefs.h <<\_ACEOF | |
39086 | #define HAVE_GETHOSTBYNAME 1 | |
39087 | _ACEOF | |
39088 | ||
39089 | fi | |
39090 | ||
39091 | fi | |
39092 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
39093 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
39094 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
39095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39096 | else | |
39097 | cat >conftest.$ac_ext <<_ACEOF | |
39098 | /* confdefs.h. */ | |
39099 | _ACEOF | |
39100 | cat confdefs.h >>conftest.$ac_ext | |
39101 | cat >>conftest.$ac_ext <<_ACEOF | |
39102 | /* end confdefs.h. */ | |
39103 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
39104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39105 | #define getservbyname_r innocuous_getservbyname_r | |
39106 | ||
39107 | /* System header to define __stub macros and hopefully few prototypes, | |
39108 | which can conflict with char getservbyname_r (); below. | |
39109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39110 | <limits.h> exists even on freestanding compilers. */ | |
39111 | ||
39112 | #ifdef __STDC__ | |
39113 | # include <limits.h> | |
39114 | #else | |
39115 | # include <assert.h> | |
39116 | #endif | |
39117 | ||
39118 | #undef getservbyname_r | |
39119 | ||
39120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39121 | #ifdef __cplusplus | |
39122 | extern "C" | |
39123 | { | |
39124 | #endif | |
39125 | /* We use char because int might match the return type of a gcc2 | |
39126 | builtin and then its argument prototype would still apply. */ | |
39127 | char getservbyname_r (); | |
39128 | /* The GNU C library defines this for functions which it implements | |
39129 | to always fail with ENOSYS. Some functions are actually named | |
39130 | something starting with __ and the normal name is an alias. */ | |
39131 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
39132 | choke me | |
39133 | #else | |
39134 | char (*f) () = getservbyname_r; | |
39135 | #endif | |
39136 | #ifdef __cplusplus | |
39137 | } | |
39138 | #endif | |
39139 | ||
39140 | int | |
39141 | main () | |
39142 | { | |
39143 | return f != getservbyname_r; | |
39144 | ; | |
39145 | return 0; | |
39146 | } | |
39147 | _ACEOF | |
39148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39150 | (eval $ac_link) 2>conftest.er1 | |
39151 | ac_status=$? | |
39152 | grep -v '^ *+' conftest.er1 >conftest.err | |
39153 | rm -f conftest.er1 | |
39154 | cat conftest.err >&5 | |
39155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39156 | (exit $ac_status); } && | |
3565d135 RR |
39157 | { ac_try='test -z "$ac_c_werror_flag" |
39158 | || test ! -s conftest.err' | |
004ee6da RL |
39159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39160 | (eval $ac_try) 2>&5 | |
39161 | ac_status=$? | |
39162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39163 | (exit $ac_status); }; } && | |
39164 | { ac_try='test -s conftest$ac_exeext' | |
39165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39166 | (eval $ac_try) 2>&5 | |
39167 | ac_status=$? | |
39168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39169 | (exit $ac_status); }; }; then | |
39170 | ac_cv_func_getservbyname_r=yes | |
39171 | else | |
39172 | echo "$as_me: failed program was:" >&5 | |
39173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39174 | ||
39175 | ac_cv_func_getservbyname_r=no | |
39176 | fi | |
39177 | rm -f conftest.err conftest.$ac_objext \ | |
39178 | conftest$ac_exeext conftest.$ac_ext | |
39179 | fi | |
39180 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
39181 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
39182 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 39183 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39184 | /* confdefs.h. */ |
39185 | _ACEOF | |
39186 | cat confdefs.h >>conftest.$ac_ext | |
39187 | cat >>conftest.$ac_ext <<_ACEOF | |
39188 | /* end confdefs.h. */ | |
99879bbf | 39189 | #include <netdb.h> |
004ee6da RL |
39190 | int |
39191 | main () | |
39192 | { | |
39193 | ||
99879bbf MR |
39194 | char *name; |
39195 | char *proto; | |
39196 | struct servent *se; | |
39197 | struct servent_data data; | |
39198 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
39199 | |
39200 | ; | |
39201 | return 0; | |
39202 | } | |
39203 | _ACEOF | |
39204 | rm -f conftest.$ac_objext | |
39205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39206 | (eval $ac_compile) 2>conftest.er1 | |
39207 | ac_status=$? | |
39208 | grep -v '^ *+' conftest.er1 >conftest.err | |
39209 | rm -f conftest.er1 | |
39210 | cat conftest.err >&5 | |
39211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39212 | (exit $ac_status); } && | |
3565d135 RR |
39213 | { ac_try='test -z "$ac_c_werror_flag" |
39214 | || test ! -s conftest.err' | |
004ee6da RL |
39215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39216 | (eval $ac_try) 2>&5 | |
39217 | ac_status=$? | |
39218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39219 | (exit $ac_status); }; } && | |
39220 | { ac_try='test -s conftest.$ac_objext' | |
39221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39222 | (eval $ac_try) 2>&5 | |
39223 | ac_status=$? | |
39224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39225 | (exit $ac_status); }; }; then | |
39226 | ac_cv_func_which_getservbyname_r=four | |
39227 | else | |
39228 | echo "$as_me: failed program was:" >&5 | |
39229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39230 | ||
99879bbf | 39231 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39232 | /* confdefs.h. */ |
39233 | _ACEOF | |
39234 | cat confdefs.h >>conftest.$ac_ext | |
39235 | cat >>conftest.$ac_ext <<_ACEOF | |
39236 | /* end confdefs.h. */ | |
99879bbf | 39237 | #include <netdb.h> |
004ee6da RL |
39238 | int |
39239 | main () | |
39240 | { | |
39241 | ||
99879bbf MR |
39242 | char *name; |
39243 | char *proto; | |
39244 | struct servent *se, *res; | |
39245 | char buffer[2048]; | |
39246 | int buflen = 2048; | |
39247 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
39248 | |
39249 | ; | |
39250 | return 0; | |
39251 | } | |
39252 | _ACEOF | |
39253 | rm -f conftest.$ac_objext | |
39254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39255 | (eval $ac_compile) 2>conftest.er1 | |
39256 | ac_status=$? | |
39257 | grep -v '^ *+' conftest.er1 >conftest.err | |
39258 | rm -f conftest.er1 | |
39259 | cat conftest.err >&5 | |
39260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39261 | (exit $ac_status); } && | |
3565d135 RR |
39262 | { ac_try='test -z "$ac_c_werror_flag" |
39263 | || test ! -s conftest.err' | |
004ee6da RL |
39264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39265 | (eval $ac_try) 2>&5 | |
39266 | ac_status=$? | |
39267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39268 | (exit $ac_status); }; } && | |
39269 | { ac_try='test -s conftest.$ac_objext' | |
39270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39271 | (eval $ac_try) 2>&5 | |
39272 | ac_status=$? | |
39273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39274 | (exit $ac_status); }; }; then | |
39275 | ac_cv_func_which_getservbyname_r=six | |
39276 | else | |
39277 | echo "$as_me: failed program was:" >&5 | |
39278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39279 | ||
99879bbf | 39280 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39281 | /* confdefs.h. */ |
39282 | _ACEOF | |
39283 | cat confdefs.h >>conftest.$ac_ext | |
39284 | cat >>conftest.$ac_ext <<_ACEOF | |
39285 | /* end confdefs.h. */ | |
99879bbf | 39286 | #include <netdb.h> |
004ee6da RL |
39287 | int |
39288 | main () | |
39289 | { | |
39290 | ||
99879bbf MR |
39291 | char *name; |
39292 | char *proto; | |
39293 | struct servent *se; | |
39294 | char buffer[2048]; | |
39295 | int buflen = 2048; | |
39296 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
39297 | |
39298 | ; | |
39299 | return 0; | |
39300 | } | |
39301 | _ACEOF | |
39302 | rm -f conftest.$ac_objext | |
39303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39304 | (eval $ac_compile) 2>conftest.er1 | |
39305 | ac_status=$? | |
39306 | grep -v '^ *+' conftest.er1 >conftest.err | |
39307 | rm -f conftest.er1 | |
39308 | cat conftest.err >&5 | |
39309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39310 | (exit $ac_status); } && | |
3565d135 RR |
39311 | { ac_try='test -z "$ac_c_werror_flag" |
39312 | || test ! -s conftest.err' | |
004ee6da RL |
39313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39314 | (eval $ac_try) 2>&5 | |
39315 | ac_status=$? | |
39316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39317 | (exit $ac_status); }; } && | |
39318 | { ac_try='test -s conftest.$ac_objext' | |
39319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39320 | (eval $ac_try) 2>&5 | |
39321 | ac_status=$? | |
39322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39323 | (exit $ac_status); }; }; then | |
39324 | ac_cv_func_which_getservbyname_r=five | |
39325 | else | |
39326 | echo "$as_me: failed program was:" >&5 | |
39327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39328 | ||
39329 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 39330 | |
004ee6da RL |
39331 | fi |
39332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
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 | |
004ee6da RL |
39339 | else |
39340 | ac_cv_func_which_getservbyname_r=no | |
39341 | fi | |
39342 | ||
004ee6da RL |
39343 | |
39344 | if test $ac_cv_func_which_getservbyname_r = six; then | |
39345 | cat >>confdefs.h <<\_ACEOF | |
39346 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
39347 | _ACEOF | |
39348 | ||
39349 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
39350 | cat >>confdefs.h <<\_ACEOF | |
39351 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
39352 | _ACEOF | |
39353 | ||
39354 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
39355 | cat >>confdefs.h <<\_ACEOF | |
39356 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
39357 | _ACEOF | |
39358 | ||
004ee6da RL |
39359 | fi |
39360 | ||
39361 | ||
39362 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
39363 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
39364 | ||
39365 | for ac_func in getservbyname | |
39366 | do | |
39367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39368 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39370 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39372 | else | |
39373 | cat >conftest.$ac_ext <<_ACEOF | |
39374 | /* confdefs.h. */ | |
39375 | _ACEOF | |
39376 | cat confdefs.h >>conftest.$ac_ext | |
39377 | cat >>conftest.$ac_ext <<_ACEOF | |
39378 | /* end confdefs.h. */ | |
39379 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39380 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39381 | #define $ac_func innocuous_$ac_func | |
39382 | ||
39383 | /* System header to define __stub macros and hopefully few prototypes, | |
39384 | which can conflict with char $ac_func (); below. | |
39385 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39386 | <limits.h> exists even on freestanding compilers. */ | |
39387 | ||
39388 | #ifdef __STDC__ | |
39389 | # include <limits.h> | |
39390 | #else | |
39391 | # include <assert.h> | |
39392 | #endif | |
39393 | ||
39394 | #undef $ac_func | |
39395 | ||
39396 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39397 | #ifdef __cplusplus | |
39398 | extern "C" | |
39399 | { | |
39400 | #endif | |
39401 | /* We use char because int might match the return type of a gcc2 | |
39402 | builtin and then its argument prototype would still apply. */ | |
39403 | char $ac_func (); | |
39404 | /* The GNU C library defines this for functions which it implements | |
39405 | to always fail with ENOSYS. Some functions are actually named | |
39406 | something starting with __ and the normal name is an alias. */ | |
39407 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39408 | choke me | |
39409 | #else | |
39410 | char (*f) () = $ac_func; | |
39411 | #endif | |
39412 | #ifdef __cplusplus | |
39413 | } | |
39414 | #endif | |
39415 | ||
39416 | int | |
39417 | main () | |
39418 | { | |
39419 | return f != $ac_func; | |
39420 | ; | |
39421 | return 0; | |
39422 | } | |
39423 | _ACEOF | |
39424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39426 | (eval $ac_link) 2>conftest.er1 | |
39427 | ac_status=$? | |
39428 | grep -v '^ *+' conftest.er1 >conftest.err | |
39429 | rm -f conftest.er1 | |
39430 | cat conftest.err >&5 | |
39431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39432 | (exit $ac_status); } && | |
3565d135 RR |
39433 | { ac_try='test -z "$ac_c_werror_flag" |
39434 | || test ! -s conftest.err' | |
004ee6da RL |
39435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39436 | (eval $ac_try) 2>&5 | |
39437 | ac_status=$? | |
39438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39439 | (exit $ac_status); }; } && | |
39440 | { ac_try='test -s conftest$ac_exeext' | |
39441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39442 | (eval $ac_try) 2>&5 | |
39443 | ac_status=$? | |
39444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39445 | (exit $ac_status); }; }; then | |
39446 | eval "$as_ac_var=yes" | |
39447 | else | |
39448 | echo "$as_me: failed program was:" >&5 | |
39449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39450 | ||
39451 | eval "$as_ac_var=no" | |
39452 | fi | |
39453 | rm -f conftest.err conftest.$ac_objext \ | |
39454 | conftest$ac_exeext conftest.$ac_ext | |
39455 | fi | |
39456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39457 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39458 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39459 | cat >>confdefs.h <<_ACEOF | |
39460 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39461 | _ACEOF | |
39462 | cat >>confdefs.h <<\_ACEOF | |
39463 | #define HAVE_GETSERVBYNAME 1 | |
39464 | _ACEOF | |
39465 | ||
39466 | fi | |
39467 | done | |
39468 | ||
39469 | fi | |
39470 | ||
004ee6da RL |
39471 | if test "$wxUSE_THREADS" = "yes"; then |
39472 | cat >>confdefs.h <<\_ACEOF | |
39473 | #define wxUSE_THREADS 1 | |
39474 | _ACEOF | |
39475 | ||
39476 | ||
39477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
39478 | else | |
39479 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
39480 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
39481 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
39482 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
39483 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
39484 | echo "$as_me:$LINENO: result: yes" >&5 | |
39485 | echo "${ECHO_T}yes" >&6 | |
39486 | else | |
39487 | echo "$as_me:$LINENO: result: no" >&5 | |
39488 | echo "${ECHO_T}no" >&6 | |
39489 | fi | |
39490 | fi | |
39491 | fi | |
39492 | ||
39493 | if test "$WXGTK20" = 1 ; then | |
39494 | cat >>confdefs.h <<_ACEOF | |
39495 | #define __WXGTK20__ $WXGTK20 | |
39496 | _ACEOF | |
39497 | ||
39498 | WXGTK12=1 | |
39499 | fi | |
39500 | ||
39501 | if test "$WXGTK12" = 1 ; then | |
39502 | cat >>confdefs.h <<_ACEOF | |
39503 | #define __WXGTK12__ $WXGTK12 | |
39504 | _ACEOF | |
39505 | ||
39506 | fi | |
39507 | ||
39508 | if test "$WXGTK127" = 1 ; then | |
39509 | cat >>confdefs.h <<_ACEOF | |
39510 | #define __WXGTK127__ $WXGTK127 | |
39511 | _ACEOF | |
39512 | ||
39513 | fi | |
39514 | ||
39515 | if test "$WXGPE" = 1 ; then | |
39516 | cat >>confdefs.h <<_ACEOF | |
39517 | #define __WXGPE__ $WXGPE | |
39518 | _ACEOF | |
39519 | ||
39520 | fi | |
39521 | ||
39522 | DEBUG_CFLAGS= | |
39523 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
39524 | DEBUG_CFLAGS="-g" | |
39525 | wxUSE_OPTIMISE=no | |
39526 | fi | |
39527 | ||
39528 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
39529 | wxUSE_DEBUG_INFO=yes | |
39530 | if test "$GCC" = yes; then | |
39531 | DEBUG_CFLAGS="-ggdb" | |
39532 | fi | |
39533 | fi | |
39534 | ||
39535 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
39536 | cat >>confdefs.h <<\_ACEOF | |
39537 | #define WXDEBUG 1 | |
39538 | _ACEOF | |
39539 | ||
39540 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
39541 | else | |
39542 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
39543 | if test "x$wxGTK_VERSION" = "x1" ; then |
39544 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
39545 | fi | |
004ee6da RL |
39546 | fi |
39547 | fi | |
39548 | ||
39549 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
39550 | cat >>confdefs.h <<\_ACEOF | |
39551 | #define wxUSE_MEMORY_TRACING 1 | |
39552 | _ACEOF | |
39553 | ||
39554 | cat >>confdefs.h <<\_ACEOF | |
39555 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
39556 | _ACEOF | |
39557 | ||
39558 | cat >>confdefs.h <<\_ACEOF | |
39559 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
39560 | _ACEOF | |
39561 | ||
39562 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
39563 | fi | |
39564 | ||
39565 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
39566 | DMALLOC_LIBS="-ldmallocthcxx" | |
39567 | fi | |
39568 | ||
39569 | PROFILE_FLAGS= | |
39570 | if test "$wxUSE_PROFILE" = "yes" ; then | |
39571 | PROFILE_FLAGS=" -pg" | |
39572 | fi | |
39573 | ||
39574 | if test "$GCC" = "yes" ; then | |
39575 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
39576 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
39577 | fi | |
39578 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
39579 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
39580 | fi | |
39581 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
39582 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
39583 | fi | |
39584 | ||
39585 | case "${host}" in | |
39586 | powerpc*-*-aix* ) | |
39587 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
39588 | ;; | |
39589 | *-hppa* ) | |
39590 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
39591 | ;; | |
39592 | esac | |
39593 | fi | |
39594 | ||
39595 | OPTIMISE_CFLAGS= | |
39596 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
39597 | if test "$GCC" = yes ; then | |
39598 | OPTIMISE_CFLAGS="-O0" | |
39599 | fi | |
39600 | else | |
39601 | if test "$GCC" = yes ; then | |
39602 | OPTIMISE_CFLAGS="-O2" | |
39603 | else | |
39604 | OPTIMISE_CFLAGS="-O" | |
39605 | fi | |
39606 | fi | |
39607 | ||
39608 | ||
39609 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
39610 | cat >>confdefs.h <<\_ACEOF | |
39611 | #define WXWIN_COMPATIBILITY_2_4 1 | |
39612 | _ACEOF | |
39613 | ||
39614 | ||
39615 | WXWIN_COMPATIBILITY_2_6="yes" | |
39616 | fi | |
39617 | ||
39618 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
39619 | cat >>confdefs.h <<\_ACEOF | |
39620 | #define WXWIN_COMPATIBILITY_2_6 1 | |
39621 | _ACEOF | |
39622 | ||
39623 | fi | |
39624 | ||
39625 | ||
39626 | if test "$wxUSE_GUI" = "yes"; then | |
39627 | cat >>confdefs.h <<\_ACEOF | |
39628 | #define wxUSE_GUI 1 | |
39629 | _ACEOF | |
39630 | ||
39631 | ||
39632 | fi | |
39633 | ||
39634 | ||
39635 | if test "$wxUSE_UNIX" = "yes"; then | |
39636 | cat >>confdefs.h <<\_ACEOF | |
39637 | #define wxUSE_UNIX 1 | |
39638 | _ACEOF | |
39639 | ||
39640 | fi | |
39641 | ||
39642 | ||
39643 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
39644 | ||
39645 | HAVE_DL_FUNCS=0 | |
39646 | HAVE_SHL_FUNCS=0 | |
39647 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
39648 | if test "$USE_DARWIN" = 1; then | |
39649 | HAVE_DL_FUNCS=1 | |
39650 | elif test "$USE_DOS" = 1; then | |
39651 | HAVE_DL_FUNCS=0 | |
39652 | else | |
39653 | ||
39654 | for ac_func in dlopen | |
39655 | do | |
39656 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39657 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39658 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39659 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39661 | else | |
39662 | cat >conftest.$ac_ext <<_ACEOF | |
39663 | /* confdefs.h. */ | |
39664 | _ACEOF | |
39665 | cat confdefs.h >>conftest.$ac_ext | |
39666 | cat >>conftest.$ac_ext <<_ACEOF | |
39667 | /* end confdefs.h. */ | |
39668 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39669 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39670 | #define $ac_func innocuous_$ac_func | |
39671 | ||
39672 | /* System header to define __stub macros and hopefully few prototypes, | |
39673 | which can conflict with char $ac_func (); below. | |
39674 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39675 | <limits.h> exists even on freestanding compilers. */ | |
39676 | ||
39677 | #ifdef __STDC__ | |
39678 | # include <limits.h> | |
39679 | #else | |
39680 | # include <assert.h> | |
39681 | #endif | |
39682 | ||
39683 | #undef $ac_func | |
39684 | ||
39685 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39686 | #ifdef __cplusplus | |
39687 | extern "C" | |
39688 | { | |
39689 | #endif | |
39690 | /* We use char because int might match the return type of a gcc2 | |
39691 | builtin and then its argument prototype would still apply. */ | |
39692 | char $ac_func (); | |
39693 | /* The GNU C library defines this for functions which it implements | |
39694 | to always fail with ENOSYS. Some functions are actually named | |
39695 | something starting with __ and the normal name is an alias. */ | |
39696 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39697 | choke me | |
39698 | #else | |
39699 | char (*f) () = $ac_func; | |
39700 | #endif | |
39701 | #ifdef __cplusplus | |
39702 | } | |
39703 | #endif | |
39704 | ||
39705 | int | |
39706 | main () | |
39707 | { | |
39708 | return f != $ac_func; | |
a848cd7e SC |
39709 | ; |
39710 | return 0; | |
39711 | } | |
39712 | _ACEOF | |
39713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39715 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39716 | ac_status=$? |
ac1cb8d3 VS |
39717 | grep -v '^ *+' conftest.er1 >conftest.err |
39718 | rm -f conftest.er1 | |
39719 | cat conftest.err >&5 | |
a848cd7e SC |
39720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39721 | (exit $ac_status); } && | |
3565d135 RR |
39722 | { ac_try='test -z "$ac_c_werror_flag" |
39723 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39725 | (eval $ac_try) 2>&5 | |
39726 | ac_status=$? | |
39727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39728 | (exit $ac_status); }; } && | |
39729 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39731 | (eval $ac_try) 2>&5 | |
39732 | ac_status=$? | |
39733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39734 | (exit $ac_status); }; }; then | |
39735 | eval "$as_ac_var=yes" | |
39736 | else | |
39737 | echo "$as_me: failed program was:" >&5 | |
39738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39739 | ||
39740 | eval "$as_ac_var=no" | |
39741 | fi | |
ac1cb8d3 VS |
39742 | rm -f conftest.err conftest.$ac_objext \ |
39743 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39744 | fi |
39745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39746 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39747 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39748 | cat >>confdefs.h <<_ACEOF | |
39749 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39750 | _ACEOF | |
39751 | ||
39752 | cat >>confdefs.h <<\_ACEOF | |
39753 | #define HAVE_DLOPEN 1 | |
39754 | _ACEOF | |
39755 | ||
39756 | HAVE_DL_FUNCS=1 | |
39757 | ||
39758 | else | |
39759 | ||
39760 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
39761 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
39762 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
39763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39764 | else | |
39765 | ac_check_lib_save_LIBS=$LIBS | |
39766 | LIBS="-ldl $LIBS" | |
39767 | cat >conftest.$ac_ext <<_ACEOF | |
39768 | /* confdefs.h. */ | |
39769 | _ACEOF | |
39770 | cat confdefs.h >>conftest.$ac_ext | |
39771 | cat >>conftest.$ac_ext <<_ACEOF | |
39772 | /* end confdefs.h. */ | |
39773 | ||
39774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39775 | #ifdef __cplusplus | |
39776 | extern "C" | |
39777 | #endif | |
39778 | /* We use char because int might match the return type of a gcc2 | |
39779 | builtin and then its argument prototype would still apply. */ | |
39780 | char dlopen (); | |
39781 | int | |
39782 | main () | |
39783 | { | |
39784 | dlopen (); | |
39785 | ; | |
39786 | return 0; | |
39787 | } | |
39788 | _ACEOF | |
39789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39791 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39792 | ac_status=$? |
ac1cb8d3 VS |
39793 | grep -v '^ *+' conftest.er1 >conftest.err |
39794 | rm -f conftest.er1 | |
39795 | cat conftest.err >&5 | |
a848cd7e SC |
39796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39797 | (exit $ac_status); } && | |
3565d135 RR |
39798 | { ac_try='test -z "$ac_c_werror_flag" |
39799 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39801 | (eval $ac_try) 2>&5 | |
39802 | ac_status=$? | |
39803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39804 | (exit $ac_status); }; } && | |
39805 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39807 | (eval $ac_try) 2>&5 | |
39808 | ac_status=$? | |
39809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39810 | (exit $ac_status); }; }; then | |
39811 | ac_cv_lib_dl_dlopen=yes | |
39812 | else | |
39813 | echo "$as_me: failed program was:" >&5 | |
39814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39815 | ||
39816 | ac_cv_lib_dl_dlopen=no | |
39817 | fi | |
ac1cb8d3 VS |
39818 | rm -f conftest.err conftest.$ac_objext \ |
39819 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39820 | LIBS=$ac_check_lib_save_LIBS |
39821 | fi | |
39822 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
39823 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
39824 | if test $ac_cv_lib_dl_dlopen = yes; then | |
39825 | ||
39826 | cat >>confdefs.h <<\_ACEOF | |
39827 | #define HAVE_DLOPEN 1 | |
39828 | _ACEOF | |
39829 | ||
39830 | HAVE_DL_FUNCS=1 | |
39831 | DL_LINK=" -ldl$DL_LINK" | |
39832 | ||
39833 | else | |
39834 | ||
39835 | ||
39836 | for ac_func in shl_load | |
39837 | do | |
39838 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39839 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39840 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39841 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39843 | else | |
39844 | cat >conftest.$ac_ext <<_ACEOF | |
39845 | /* confdefs.h. */ | |
39846 | _ACEOF | |
39847 | cat confdefs.h >>conftest.$ac_ext | |
39848 | cat >>conftest.$ac_ext <<_ACEOF | |
39849 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39850 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39852 | #define $ac_func innocuous_$ac_func | |
39853 | ||
a848cd7e SC |
39854 | /* System header to define __stub macros and hopefully few prototypes, |
39855 | which can conflict with char $ac_func (); below. | |
39856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39857 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39858 | |
a848cd7e SC |
39859 | #ifdef __STDC__ |
39860 | # include <limits.h> | |
39861 | #else | |
39862 | # include <assert.h> | |
39863 | #endif | |
ac1cb8d3 VS |
39864 | |
39865 | #undef $ac_func | |
39866 | ||
a848cd7e SC |
39867 | /* Override any gcc2 internal prototype to avoid an error. */ |
39868 | #ifdef __cplusplus | |
39869 | extern "C" | |
39870 | { | |
39871 | #endif | |
39872 | /* We use char because int might match the return type of a gcc2 | |
39873 | builtin and then its argument prototype would still apply. */ | |
39874 | char $ac_func (); | |
39875 | /* The GNU C library defines this for functions which it implements | |
39876 | to always fail with ENOSYS. Some functions are actually named | |
39877 | something starting with __ and the normal name is an alias. */ | |
39878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39879 | choke me | |
39880 | #else | |
39881 | char (*f) () = $ac_func; | |
39882 | #endif | |
39883 | #ifdef __cplusplus | |
39884 | } | |
39885 | #endif | |
39886 | ||
39887 | int | |
39888 | main () | |
39889 | { | |
39890 | return f != $ac_func; | |
39891 | ; | |
39892 | return 0; | |
39893 | } | |
39894 | _ACEOF | |
39895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39897 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39898 | ac_status=$? |
ac1cb8d3 VS |
39899 | grep -v '^ *+' conftest.er1 >conftest.err |
39900 | rm -f conftest.er1 | |
39901 | cat conftest.err >&5 | |
a848cd7e SC |
39902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39903 | (exit $ac_status); } && | |
3565d135 RR |
39904 | { ac_try='test -z "$ac_c_werror_flag" |
39905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39907 | (eval $ac_try) 2>&5 | |
39908 | ac_status=$? | |
39909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39910 | (exit $ac_status); }; } && | |
39911 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39913 | (eval $ac_try) 2>&5 | |
39914 | ac_status=$? | |
39915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39916 | (exit $ac_status); }; }; then | |
39917 | eval "$as_ac_var=yes" | |
39918 | else | |
39919 | echo "$as_me: failed program was:" >&5 | |
39920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39921 | ||
39922 | eval "$as_ac_var=no" | |
39923 | fi | |
ac1cb8d3 VS |
39924 | rm -f conftest.err conftest.$ac_objext \ |
39925 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39926 | fi |
39927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39928 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39929 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39930 | cat >>confdefs.h <<_ACEOF | |
39931 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39932 | _ACEOF | |
39933 | ||
39934 | cat >>confdefs.h <<\_ACEOF | |
39935 | #define HAVE_SHL_LOAD 1 | |
39936 | _ACEOF | |
39937 | ||
39938 | HAVE_SHL_FUNCS=1 | |
39939 | ||
39940 | else | |
39941 | ||
39942 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
39943 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
39944 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
39945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39946 | else | |
39947 | ac_check_lib_save_LIBS=$LIBS | |
39948 | LIBS="-lshl_load $LIBS" | |
39949 | cat >conftest.$ac_ext <<_ACEOF | |
39950 | /* confdefs.h. */ | |
39951 | _ACEOF | |
39952 | cat confdefs.h >>conftest.$ac_ext | |
39953 | cat >>conftest.$ac_ext <<_ACEOF | |
39954 | /* end confdefs.h. */ | |
39955 | ||
39956 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39957 | #ifdef __cplusplus | |
39958 | extern "C" | |
39959 | #endif | |
39960 | /* We use char because int might match the return type of a gcc2 | |
39961 | builtin and then its argument prototype would still apply. */ | |
39962 | char dld (); | |
39963 | int | |
39964 | main () | |
39965 | { | |
39966 | dld (); | |
39967 | ; | |
39968 | return 0; | |
39969 | } | |
39970 | _ACEOF | |
39971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39973 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39974 | ac_status=$? |
ac1cb8d3 VS |
39975 | grep -v '^ *+' conftest.er1 >conftest.err |
39976 | rm -f conftest.er1 | |
39977 | cat conftest.err >&5 | |
a848cd7e SC |
39978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39979 | (exit $ac_status); } && | |
3565d135 RR |
39980 | { ac_try='test -z "$ac_c_werror_flag" |
39981 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39983 | (eval $ac_try) 2>&5 | |
39984 | ac_status=$? | |
39985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39986 | (exit $ac_status); }; } && | |
39987 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39989 | (eval $ac_try) 2>&5 | |
39990 | ac_status=$? | |
39991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39992 | (exit $ac_status); }; }; then | |
39993 | ac_cv_lib_shl_load_dld=yes | |
39994 | else | |
39995 | echo "$as_me: failed program was:" >&5 | |
39996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39997 | ||
39998 | ac_cv_lib_shl_load_dld=no | |
39999 | fi | |
ac1cb8d3 VS |
40000 | rm -f conftest.err conftest.$ac_objext \ |
40001 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40002 | LIBS=$ac_check_lib_save_LIBS |
40003 | fi | |
40004 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
40005 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
40006 | if test $ac_cv_lib_shl_load_dld = yes; then | |
40007 | ||
40008 | HAVE_SHL_FUNCS=1 | |
40009 | DL_LINK=" -ldld$DL_LINK" | |
40010 | ||
40011 | fi | |
40012 | ||
40013 | ||
40014 | fi | |
40015 | done | |
40016 | ||
40017 | ||
40018 | fi | |
40019 | ||
40020 | ||
40021 | fi | |
40022 | done | |
40023 | ||
40024 | ||
40025 | if test "$HAVE_DL_FUNCS" = 1; then | |
40026 | ||
40027 | for ac_func in dlerror | |
40028 | do | |
40029 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40030 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40031 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40032 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40034 | else | |
40035 | cat >conftest.$ac_ext <<_ACEOF | |
40036 | /* confdefs.h. */ | |
40037 | _ACEOF | |
40038 | cat confdefs.h >>conftest.$ac_ext | |
40039 | cat >>conftest.$ac_ext <<_ACEOF | |
40040 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40041 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40042 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40043 | #define $ac_func innocuous_$ac_func | |
40044 | ||
a848cd7e SC |
40045 | /* System header to define __stub macros and hopefully few prototypes, |
40046 | which can conflict with char $ac_func (); below. | |
40047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40048 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40049 | |
a848cd7e SC |
40050 | #ifdef __STDC__ |
40051 | # include <limits.h> | |
40052 | #else | |
40053 | # include <assert.h> | |
40054 | #endif | |
ac1cb8d3 VS |
40055 | |
40056 | #undef $ac_func | |
40057 | ||
a848cd7e SC |
40058 | /* Override any gcc2 internal prototype to avoid an error. */ |
40059 | #ifdef __cplusplus | |
40060 | extern "C" | |
40061 | { | |
40062 | #endif | |
40063 | /* We use char because int might match the return type of a gcc2 | |
40064 | builtin and then its argument prototype would still apply. */ | |
40065 | char $ac_func (); | |
40066 | /* The GNU C library defines this for functions which it implements | |
40067 | to always fail with ENOSYS. Some functions are actually named | |
40068 | something starting with __ and the normal name is an alias. */ | |
40069 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40070 | choke me | |
40071 | #else | |
40072 | char (*f) () = $ac_func; | |
40073 | #endif | |
40074 | #ifdef __cplusplus | |
40075 | } | |
40076 | #endif | |
40077 | ||
40078 | int | |
40079 | main () | |
40080 | { | |
40081 | return f != $ac_func; | |
40082 | ; | |
40083 | return 0; | |
40084 | } | |
40085 | _ACEOF | |
40086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40089 | ac_status=$? |
ac1cb8d3 VS |
40090 | grep -v '^ *+' conftest.er1 >conftest.err |
40091 | rm -f conftest.er1 | |
40092 | cat conftest.err >&5 | |
a848cd7e SC |
40093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40094 | (exit $ac_status); } && | |
3565d135 RR |
40095 | { ac_try='test -z "$ac_c_werror_flag" |
40096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40098 | (eval $ac_try) 2>&5 | |
40099 | ac_status=$? | |
40100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40101 | (exit $ac_status); }; } && | |
40102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40104 | (eval $ac_try) 2>&5 | |
40105 | ac_status=$? | |
40106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40107 | (exit $ac_status); }; }; then | |
40108 | eval "$as_ac_var=yes" | |
40109 | else | |
40110 | echo "$as_me: failed program was:" >&5 | |
40111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40112 | ||
40113 | eval "$as_ac_var=no" | |
40114 | fi | |
ac1cb8d3 VS |
40115 | rm -f conftest.err conftest.$ac_objext \ |
40116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40117 | fi |
40118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40120 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40121 | cat >>confdefs.h <<_ACEOF | |
40122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40123 | _ACEOF | |
40124 | cat >>confdefs.h <<\_ACEOF | |
40125 | #define HAVE_DLERROR 1 | |
40126 | _ACEOF | |
40127 | ||
40128 | else | |
40129 | ||
40130 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
40131 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
40132 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
40133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40134 | else | |
40135 | ac_check_lib_save_LIBS=$LIBS | |
40136 | LIBS="-ldl $LIBS" | |
40137 | cat >conftest.$ac_ext <<_ACEOF | |
40138 | /* confdefs.h. */ | |
40139 | _ACEOF | |
40140 | cat confdefs.h >>conftest.$ac_ext | |
40141 | cat >>conftest.$ac_ext <<_ACEOF | |
40142 | /* end confdefs.h. */ | |
40143 | ||
40144 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40145 | #ifdef __cplusplus | |
40146 | extern "C" | |
40147 | #endif | |
40148 | /* We use char because int might match the return type of a gcc2 | |
40149 | builtin and then its argument prototype would still apply. */ | |
40150 | char dlerror (); | |
40151 | int | |
40152 | main () | |
40153 | { | |
40154 | dlerror (); | |
40155 | ; | |
40156 | return 0; | |
40157 | } | |
40158 | _ACEOF | |
40159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40161 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40162 | ac_status=$? |
ac1cb8d3 VS |
40163 | grep -v '^ *+' conftest.er1 >conftest.err |
40164 | rm -f conftest.er1 | |
40165 | cat conftest.err >&5 | |
a848cd7e SC |
40166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40167 | (exit $ac_status); } && | |
3565d135 RR |
40168 | { ac_try='test -z "$ac_c_werror_flag" |
40169 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40171 | (eval $ac_try) 2>&5 | |
40172 | ac_status=$? | |
40173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40174 | (exit $ac_status); }; } && | |
40175 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40177 | (eval $ac_try) 2>&5 | |
40178 | ac_status=$? | |
40179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40180 | (exit $ac_status); }; }; then | |
40181 | ac_cv_lib_dl_dlerror=yes | |
40182 | else | |
40183 | echo "$as_me: failed program was:" >&5 | |
40184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40185 | ||
40186 | ac_cv_lib_dl_dlerror=no | |
40187 | fi | |
ac1cb8d3 VS |
40188 | rm -f conftest.err conftest.$ac_objext \ |
40189 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40190 | LIBS=$ac_check_lib_save_LIBS |
40191 | fi | |
40192 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
40193 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
40194 | if test $ac_cv_lib_dl_dlerror = yes; then | |
40195 | cat >>confdefs.h <<\_ACEOF | |
40196 | #define HAVE_DLERROR 1 | |
40197 | _ACEOF | |
40198 | ||
40199 | fi | |
40200 | ||
40201 | ||
40202 | ||
40203 | fi | |
40204 | done | |
40205 | ||
40206 | fi | |
40207 | fi | |
40208 | ||
40209 | if test "$HAVE_DL_FUNCS" = 0; then | |
40210 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 40211 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
40212 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
40213 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
40214 | wxUSE_DYNAMIC_LOADER=no | |
40215 | wxUSE_DYNLIB_CLASS=no | |
40216 | else | |
40217 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
40218 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
40219 | fi | |
40220 | fi | |
40221 | fi | |
40222 | fi | |
40223 | fi | |
40224 | ||
40225 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
40226 | cat >>confdefs.h <<\_ACEOF | |
40227 | #define wxUSE_DYNAMIC_LOADER 1 | |
40228 | _ACEOF | |
40229 | ||
40230 | fi | |
40231 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40232 | cat >>confdefs.h <<\_ACEOF | |
40233 | #define wxUSE_DYNLIB_CLASS 1 | |
40234 | _ACEOF | |
40235 | ||
40236 | fi | |
40237 | ||
40238 | ||
40239 | ||
40240 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40241 | if test "$wxUSE_SHARED" = "no" ; then | |
40242 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
40243 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
40244 | wxUSE_PLUGINS=no | |
40245 | fi | |
40246 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
40247 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
40248 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
40249 | wxUSE_PLUGINS=no | |
40250 | fi | |
40251 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
40252 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
40253 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
40254 | wxUSE_PLUGINS=no | |
40255 | fi | |
40256 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40257 | cat >>confdefs.h <<\_ACEOF | |
40258 | #define wxUSE_PLUGINS 1 | |
40259 | _ACEOF | |
40260 | ||
40261 | fi | |
40262 | fi | |
40263 | ||
40264 | ||
40265 | if test "$wxUSE_STL" = "yes"; then | |
40266 | cat >>confdefs.h <<\_ACEOF | |
40267 | #define wxUSE_STL 1 | |
40268 | _ACEOF | |
40269 | ||
40270 | fi | |
40271 | ||
40272 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
40273 | cat >>confdefs.h <<\_ACEOF | |
40274 | #define wxUSE_APPLE_IEEE 1 | |
40275 | _ACEOF | |
40276 | ||
40277 | fi | |
40278 | ||
40279 | if test "$wxUSE_TIMER" = "yes"; then | |
40280 | cat >>confdefs.h <<\_ACEOF | |
40281 | #define wxUSE_TIMER 1 | |
40282 | _ACEOF | |
40283 | ||
40284 | fi | |
40285 | ||
9c112555 | 40286 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
40287 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
40288 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
40289 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 40290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 40291 | else |
d12aef51 VZ |
40292 | |
40293 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40294 | /* confdefs.h. */ |
40295 | _ACEOF | |
40296 | cat confdefs.h >>conftest.$ac_ext | |
40297 | cat >>conftest.$ac_ext <<_ACEOF | |
40298 | /* end confdefs.h. */ | |
d12aef51 VZ |
40299 | |
40300 | #include <sys/soundcard.h> | |
40301 | ||
40302 | int | |
40303 | main () | |
40304 | { | |
40305 | ||
40306 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40307 | ||
40308 | ; | |
40309 | return 0; | |
40310 | } | |
a848cd7e | 40311 | _ACEOF |
d12aef51 VZ |
40312 | rm -f conftest.$ac_objext conftest$ac_exeext |
40313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40314 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 40315 | ac_status=$? |
ac1cb8d3 VS |
40316 | grep -v '^ *+' conftest.er1 >conftest.err |
40317 | rm -f conftest.er1 | |
40318 | cat conftest.err >&5 | |
a848cd7e SC |
40319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40320 | (exit $ac_status); } && | |
3565d135 RR |
40321 | { ac_try='test -z "$ac_c_werror_flag" |
40322 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40324 | (eval $ac_try) 2>&5 | |
40325 | ac_status=$? | |
40326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40327 | (exit $ac_status); }; } && | |
d12aef51 | 40328 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
40329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40330 | (eval $ac_try) 2>&5 | |
40331 | ac_status=$? | |
40332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40333 | (exit $ac_status); }; }; then | |
d12aef51 | 40334 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
40335 | else |
40336 | echo "$as_me: failed program was:" >&5 | |
40337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40338 | ||
a848cd7e | 40339 | |
d12aef51 VZ |
40340 | saveLibs="$LIBS" |
40341 | LIBS="$saveLibs -lossaudio" | |
40342 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40343 | /* confdefs.h. */ |
40344 | _ACEOF | |
40345 | cat confdefs.h >>conftest.$ac_ext | |
40346 | cat >>conftest.$ac_ext <<_ACEOF | |
40347 | /* end confdefs.h. */ | |
d12aef51 VZ |
40348 | |
40349 | #include <sys/soundcard.h> | |
40350 | ||
40351 | int | |
40352 | main () | |
40353 | { | |
40354 | ||
40355 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40356 | ||
40357 | ; | |
40358 | return 0; | |
40359 | } | |
a848cd7e | 40360 | _ACEOF |
d12aef51 VZ |
40361 | rm -f conftest.$ac_objext conftest$ac_exeext |
40362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40363 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
40364 | ac_status=$? |
40365 | grep -v '^ *+' conftest.er1 >conftest.err | |
40366 | rm -f conftest.er1 | |
40367 | cat conftest.err >&5 | |
40368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 40369 | (exit $ac_status); } && |
3565d135 RR |
40370 | { ac_try='test -z "$ac_c_werror_flag" |
40371 | || test ! -s conftest.err' | |
d12aef51 VZ |
40372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40373 | (eval $ac_try) 2>&5 | |
40374 | ac_status=$? | |
40375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40376 | (exit $ac_status); }; } && | |
40377 | { ac_try='test -s conftest$ac_exeext' | |
40378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40379 | (eval $ac_try) 2>&5 | |
40380 | ac_status=$? | |
40381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40382 | (exit $ac_status); }; }; then | |
40383 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
40384 | else |
40385 | echo "$as_me: failed program was:" >&5 | |
40386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40387 | ||
a848cd7e | 40388 | |
d12aef51 VZ |
40389 | LIBS="$saveLibs" |
40390 | ac_cv_header_sys_soundcard=no | |
40391 | ||
40392 | ||
a848cd7e | 40393 | fi |
d12aef51 VZ |
40394 | rm -f conftest.err conftest.$ac_objext \ |
40395 | conftest$ac_exeext conftest.$ac_ext | |
40396 | ||
a848cd7e SC |
40397 | |
40398 | fi | |
d12aef51 VZ |
40399 | rm -f conftest.err conftest.$ac_objext \ |
40400 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40401 | |
40402 | fi | |
d12aef51 VZ |
40403 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
40404 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 40405 | |
d12aef51 VZ |
40406 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
40407 | cat >>confdefs.h <<\_ACEOF | |
40408 | #define HAVE_SYS_SOUNDCARD_H 1 | |
40409 | _ACEOF | |
a848cd7e | 40410 | |
d12aef51 VZ |
40411 | else |
40412 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
40413 | fi | |
9c112555 MW |
40414 | fi |
40415 | WITH_PLUGIN_SDL=0 | |
40416 | if test "$wxUSE_SOUND" = "yes"; then | |
40417 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
40418 | if test "$wxUSE_LIBSDL" != "no"; then |
40419 | ||
40420 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
40421 | if test "${with_sdl_prefix+set}" = set; then | |
40422 | withval="$with_sdl_prefix" | |
40423 | sdl_prefix="$withval" | |
40424 | else | |
40425 | sdl_prefix="" | |
40426 | fi; | |
40427 | ||
40428 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
40429 | if test "${with_sdl_exec_prefix+set}" = set; then | |
40430 | withval="$with_sdl_exec_prefix" | |
40431 | sdl_exec_prefix="$withval" | |
40432 | else | |
40433 | sdl_exec_prefix="" | |
40434 | fi; | |
40435 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
40436 | if test "${enable_sdltest+set}" = set; then | |
40437 | enableval="$enable_sdltest" | |
40438 | ||
40439 | else | |
40440 | enable_sdltest=yes | |
40441 | fi; | |
40442 | ||
40443 | if test x$sdl_exec_prefix != x ; then | |
40444 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
40445 | if test x${SDL_CONFIG+set} != xset ; then | |
40446 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
40447 | fi | |
40448 | fi | |
40449 | if test x$sdl_prefix != x ; then | |
40450 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
40451 | if test x${SDL_CONFIG+set} != xset ; then | |
40452 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
40453 | fi | |
40454 | fi | |
40455 | ||
40456 | ||
40457 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
40458 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
40459 | set dummy sdl-config; ac_word=$2 | |
40460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40462 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
40463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40464 | else | |
40465 | case $SDL_CONFIG in | |
40466 | [\\/]* | ?:[\\/]*) | |
40467 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
40468 | ;; | |
40469 | *) | |
40470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40471 | for as_dir in $PATH | |
40472 | do | |
40473 | IFS=$as_save_IFS | |
40474 | test -z "$as_dir" && as_dir=. | |
40475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40476 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40477 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40479 | break 2 | |
40480 | fi | |
40481 | done | |
40482 | done | |
40483 | ||
40484 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
40485 | ;; | |
40486 | esac | |
40487 | fi | |
40488 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
40489 | ||
40490 | if test -n "$SDL_CONFIG"; then | |
40491 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
40492 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
40493 | else | |
40494 | echo "$as_me:$LINENO: result: no" >&5 | |
40495 | echo "${ECHO_T}no" >&6 | |
40496 | fi | |
40497 | ||
40498 | min_sdl_version=1.2.0 | |
40499 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
40500 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
40501 | no_sdl="" | |
40502 | if test "$SDL_CONFIG" = "no" ; then | |
40503 | no_sdl=yes | |
40504 | else | |
40505 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
40506 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
40507 | ||
40508 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
40509 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
40510 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
40511 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
40512 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
40513 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
40514 | if test "x$enable_sdltest" = "xyes" ; then | |
40515 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 40516 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
40517 | ac_save_LIBS="$LIBS" |
40518 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40519 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40520 | LIBS="$LIBS $SDL_LIBS" |
40521 | rm -f conf.sdltest | |
40522 | if test "$cross_compiling" = yes; then | |
40523 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
40524 | else | |
40525 | cat >conftest.$ac_ext <<_ACEOF | |
40526 | /* confdefs.h. */ | |
40527 | _ACEOF | |
40528 | cat confdefs.h >>conftest.$ac_ext | |
40529 | cat >>conftest.$ac_ext <<_ACEOF | |
40530 | /* end confdefs.h. */ | |
40531 | ||
40532 | #include <stdio.h> | |
40533 | #include <stdlib.h> | |
40534 | #include <string.h> | |
40535 | #include "SDL.h" | |
40536 | ||
40537 | char* | |
40538 | my_strdup (char *str) | |
40539 | { | |
40540 | char *new_str; | |
40541 | ||
40542 | if (str) | |
40543 | { | |
40544 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
40545 | strcpy (new_str, str); | |
40546 | } | |
40547 | else | |
40548 | new_str = NULL; | |
40549 | ||
40550 | return new_str; | |
40551 | } | |
40552 | ||
40553 | int main (int argc, char *argv[]) | |
40554 | { | |
40555 | int major, minor, micro; | |
40556 | char *tmp_version; | |
40557 | ||
40558 | /* This hangs on some systems (?) | |
40559 | system ("touch conf.sdltest"); | |
40560 | */ | |
40561 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
40562 | ||
40563 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
40564 | tmp_version = my_strdup("$min_sdl_version"); | |
40565 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
40566 | printf("%s, bad version string\n", "$min_sdl_version"); | |
40567 | exit(1); | |
40568 | } | |
40569 | ||
40570 | if (($sdl_major_version > major) || | |
40571 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
40572 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
40573 | { | |
40574 | return 0; | |
40575 | } | |
40576 | else | |
40577 | { | |
40578 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
40579 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
40580 | printf("*** best to upgrade to the required version.\n"); | |
40581 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
40582 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
40583 | printf("*** config.cache before re-running configure\n"); | |
40584 | return 1; | |
40585 | } | |
40586 | } | |
40587 | ||
40588 | ||
40589 | _ACEOF | |
40590 | rm -f conftest$ac_exeext | |
40591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40592 | (eval $ac_link) 2>&5 | |
40593 | ac_status=$? | |
40594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40595 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
40596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40597 | (eval $ac_try) 2>&5 | |
40598 | ac_status=$? | |
40599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40600 | (exit $ac_status); }; }; then | |
40601 | : | |
40602 | else | |
40603 | echo "$as_me: program exited with status $ac_status" >&5 | |
40604 | echo "$as_me: failed program was:" >&5 | |
40605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40606 | ||
40607 | ( exit $ac_status ) | |
40608 | no_sdl=yes | |
40609 | fi | |
ac1cb8d3 | 40610 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40611 | fi |
40612 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 40613 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40614 | LIBS="$ac_save_LIBS" |
40615 | fi | |
40616 | fi | |
40617 | if test "x$no_sdl" = x ; then | |
40618 | echo "$as_me:$LINENO: result: yes" >&5 | |
40619 | echo "${ECHO_T}yes" >&6 | |
40620 | ||
40621 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 40622 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
40623 | cat >>confdefs.h <<\_ACEOF |
40624 | #define wxUSE_LIBSDL 1 | |
40625 | _ACEOF | |
40626 | ||
40627 | ||
40628 | else | |
40629 | echo "$as_me:$LINENO: result: no" >&5 | |
40630 | echo "${ECHO_T}no" >&6 | |
40631 | if test "$SDL_CONFIG" = "no" ; then | |
40632 | echo "*** The sdl-config script installed by SDL could not be found" | |
40633 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
40634 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
40635 | echo "*** full path to sdl-config." | |
40636 | else | |
40637 | if test -f conf.sdltest ; then | |
40638 | : | |
40639 | else | |
40640 | echo "*** Could not run SDL test program, checking why..." | |
40641 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40642 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40643 | LIBS="$LIBS $SDL_LIBS" |
40644 | cat >conftest.$ac_ext <<_ACEOF | |
40645 | /* confdefs.h. */ | |
40646 | _ACEOF | |
40647 | cat confdefs.h >>conftest.$ac_ext | |
40648 | cat >>conftest.$ac_ext <<_ACEOF | |
40649 | /* end confdefs.h. */ | |
40650 | ||
40651 | #include <stdio.h> | |
40652 | #include "SDL.h" | |
40653 | ||
40654 | int main(int argc, char *argv[]) | |
40655 | { return 0; } | |
40656 | #undef main | |
40657 | #define main K_and_R_C_main | |
40658 | ||
40659 | int | |
40660 | main () | |
40661 | { | |
40662 | return 0; | |
40663 | ; | |
40664 | return 0; | |
40665 | } | |
40666 | _ACEOF | |
40667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40669 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40670 | ac_status=$? |
ac1cb8d3 VS |
40671 | grep -v '^ *+' conftest.er1 >conftest.err |
40672 | rm -f conftest.er1 | |
40673 | cat conftest.err >&5 | |
a848cd7e SC |
40674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40675 | (exit $ac_status); } && | |
3565d135 RR |
40676 | { ac_try='test -z "$ac_c_werror_flag" |
40677 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40679 | (eval $ac_try) 2>&5 | |
40680 | ac_status=$? | |
40681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40682 | (exit $ac_status); }; } && | |
40683 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40685 | (eval $ac_try) 2>&5 | |
40686 | ac_status=$? | |
40687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40688 | (exit $ac_status); }; }; then | |
40689 | echo "*** The test program compiled, but did not run. This usually means" | |
40690 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
40691 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
40692 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
40693 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
40694 | echo "*** is required on your system" | |
40695 | echo "***" | |
40696 | echo "*** If you have an old version installed, it is best to remove it, although" | |
40697 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
40698 | else | |
40699 | echo "$as_me: failed program was:" >&5 | |
40700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40701 | ||
40702 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
40703 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
40704 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
40705 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
40706 | fi | |
ac1cb8d3 VS |
40707 | rm -f conftest.err conftest.$ac_objext \ |
40708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 40709 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 40710 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40711 | LIBS="$ac_save_LIBS" |
40712 | fi | |
40713 | fi | |
40714 | SDL_CFLAGS="" | |
40715 | SDL_LIBS="" | |
40716 | wxUSE_LIBSDL="no" | |
40717 | fi | |
40718 | ||
40719 | ||
40720 | rm -f conf.sdltest | |
40721 | ||
40722 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
40723 | WITH_PLUGIN_SDL=1 | |
40724 | fi | |
40725 | fi | |
40726 | fi | |
40727 | ||
40728 | cat >>confdefs.h <<\_ACEOF | |
40729 | #define wxUSE_SOUND 1 | |
40730 | _ACEOF | |
40731 | ||
40732 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
40733 | fi | |
40734 | ||
d1c38808 VZ |
40735 | if test "$WXGTK20" = 1; then |
40736 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40737 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
40738 | ||
40739 | ||
40740 | succeeded=no | |
40741 | ||
40742 | if test -z "$PKG_CONFIG"; then | |
40743 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40744 | set dummy pkg-config; ac_word=$2 | |
40745 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40747 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40749 | else | |
40750 | case $PKG_CONFIG in | |
40751 | [\\/]* | ?:[\\/]*) | |
40752 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40753 | ;; | |
40754 | *) | |
40755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40756 | for as_dir in $PATH | |
40757 | do | |
40758 | IFS=$as_save_IFS | |
40759 | test -z "$as_dir" && as_dir=. | |
40760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40762 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40764 | break 2 | |
40765 | fi | |
40766 | done | |
40767 | done | |
40768 | ||
40769 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40770 | ;; | |
40771 | esac | |
40772 | fi | |
40773 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40774 | ||
40775 | if test -n "$PKG_CONFIG"; then | |
40776 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40777 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40778 | else | |
40779 | echo "$as_me:$LINENO: result: no" >&5 | |
40780 | echo "${ECHO_T}no" >&6 | |
40781 | fi | |
40782 | ||
40783 | fi | |
40784 | ||
40785 | if test "$PKG_CONFIG" = "no" ; then | |
40786 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40787 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40788 | echo "*** to the full path to pkg-config." | |
40789 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40790 | else | |
40791 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40792 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
40793 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
40794 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 40795 | |
ffa762ff | 40796 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
40797 | echo "$as_me:$LINENO: result: yes" >&5 |
40798 | echo "${ECHO_T}yes" >&6 | |
40799 | succeeded=yes | |
40800 | ||
40801 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
40802 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 40803 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40804 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
40805 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
40806 | ||
40807 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
40808 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 40809 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40810 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
40811 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
40812 | else | |
40813 | LIBGNOMEPRINTUI_CFLAGS="" | |
40814 | LIBGNOMEPRINTUI_LIBS="" | |
40815 | ## If we have a custom action on failure, don't print errors, but | |
40816 | ## do set a variable so people can do so. | |
ffa762ff | 40817 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40818 | |
40819 | fi | |
40820 | ||
40821 | ||
40822 | ||
40823 | else | |
40824 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40825 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40826 | fi | |
40827 | fi | |
40828 | ||
40829 | if test $succeeded = yes; then | |
40830 | ||
c92ad099 | 40831 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
40832 | cat >>confdefs.h <<\_ACEOF |
40833 | #define wxUSE_LIBGNOMEPRINT 1 | |
40834 | _ACEOF | |
40835 | ||
40836 | ||
40837 | else | |
40838 | ||
40839 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
40840 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
40841 | wxUSE_LIBGNOMEPRINT="no" | |
40842 | ||
40843 | ||
40844 | fi | |
40845 | ||
40846 | fi | |
40847 | fi | |
40848 | fi | |
40849 | ||
3565d135 RR |
40850 | if test "$WXGTK20" = 1; then |
40851 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
40852 | ||
40853 | succeeded=no | |
40854 | ||
40855 | if test -z "$PKG_CONFIG"; then | |
40856 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40857 | set dummy pkg-config; ac_word=$2 | |
40858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40860 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40862 | else | |
40863 | case $PKG_CONFIG in | |
40864 | [\\/]* | ?:[\\/]*) | |
40865 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40866 | ;; | |
40867 | *) | |
40868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40869 | for as_dir in $PATH | |
40870 | do | |
40871 | IFS=$as_save_IFS | |
40872 | test -z "$as_dir" && as_dir=. | |
40873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40874 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40875 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40877 | break 2 | |
40878 | fi | |
40879 | done | |
40880 | done | |
40881 | ||
40882 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40883 | ;; | |
40884 | esac | |
40885 | fi | |
40886 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40887 | ||
40888 | if test -n "$PKG_CONFIG"; then | |
40889 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40890 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40891 | else | |
40892 | echo "$as_me:$LINENO: result: no" >&5 | |
40893 | echo "${ECHO_T}no" >&6 | |
40894 | fi | |
40895 | ||
40896 | fi | |
40897 | ||
40898 | if test "$PKG_CONFIG" = "no" ; then | |
40899 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40900 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40901 | echo "*** to the full path to pkg-config." | |
40902 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40903 | else | |
40904 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40905 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
40906 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
40907 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
40908 | ||
40909 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
40910 | echo "$as_me:$LINENO: result: yes" >&5 | |
40911 | echo "${ECHO_T}yes" >&6 | |
40912 | succeeded=yes | |
40913 | ||
40914 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
40915 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
40916 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
40917 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
40918 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
40919 | ||
40920 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
40921 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
40922 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
40923 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
40924 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
40925 | else | |
40926 | HILDON_CFLAGS="" | |
40927 | HILDON_LIBS="" | |
40928 | ## If we have a custom action on failure, don't print errors, but | |
40929 | ## do set a variable so people can do so. | |
40930 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
40931 | ||
40932 | fi | |
40933 | ||
40934 | ||
40935 | ||
40936 | else | |
40937 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40938 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40939 | fi | |
40940 | fi | |
40941 | ||
40942 | if test $succeeded = yes; then | |
40943 | ||
40944 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
40945 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
40946 | cat >>confdefs.h <<\_ACEOF | |
40947 | #define wxUSE_LIBHILDON 1 | |
40948 | _ACEOF | |
40949 | ||
40950 | ||
40951 | else | |
40952 | ||
40953 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
40954 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
40955 | wxUSE_LIBHILDON="no" | |
40956 | ||
40957 | ||
40958 | fi | |
40959 | ||
40960 | fi | |
40961 | fi | |
d1c38808 | 40962 | |
a848cd7e SC |
40963 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
40964 | cat >>confdefs.h <<\_ACEOF | |
40965 | #define wxUSE_CMDLINE_PARSER 1 | |
40966 | _ACEOF | |
40967 | ||
40968 | fi | |
40969 | ||
40970 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
40971 | cat >>confdefs.h <<\_ACEOF | |
40972 | #define wxUSE_STOPWATCH 1 | |
40973 | _ACEOF | |
40974 | ||
40975 | fi | |
40976 | ||
40977 | if test "$wxUSE_DATETIME" = "yes"; then | |
40978 | cat >>confdefs.h <<\_ACEOF | |
40979 | #define wxUSE_DATETIME 1 | |
40980 | _ACEOF | |
40981 | ||
40982 | fi | |
40983 | ||
40984 | if test "$wxUSE_FILE" = "yes"; then | |
40985 | cat >>confdefs.h <<\_ACEOF | |
40986 | #define wxUSE_FILE 1 | |
40987 | _ACEOF | |
40988 | ||
40989 | fi | |
40990 | ||
40991 | if test "$wxUSE_FFILE" = "yes"; then | |
40992 | cat >>confdefs.h <<\_ACEOF | |
40993 | #define wxUSE_FFILE 1 | |
40994 | _ACEOF | |
40995 | ||
40996 | fi | |
40997 | ||
40998 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
40999 | cat >>confdefs.h <<\_ACEOF | |
41000 | #define wxUSE_FILESYSTEM 1 | |
41001 | _ACEOF | |
41002 | ||
41003 | fi | |
41004 | ||
41005 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
41006 | cat >>confdefs.h <<\_ACEOF | |
41007 | #define wxUSE_FS_ZIP 1 | |
41008 | _ACEOF | |
41009 | ||
41010 | fi | |
41011 | ||
9e8e867f | 41012 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 41013 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 41014 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
41015 | _ACEOF |
41016 | ||
41017 | fi | |
41018 | ||
41019 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 41020 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
41021 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
41022 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
41023 | elif test "$wxUSE_ZLIB" = "no"; then | |
41024 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
41025 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
41026 | else | |
41027 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41028 | #define wxUSE_ZIPSTREAM 1 |
41029 | _ACEOF | |
41030 | ||
81f90336 | 41031 | fi |
a848cd7e SC |
41032 | fi |
41033 | ||
a848cd7e | 41034 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
41035 | if test "$USE_UNIX" != 1; then |
41036 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
41037 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
41038 | wxUSE_ON_FATAL_EXCEPTION=no | |
41039 | else | |
41040 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41041 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
41042 | _ACEOF | |
41043 | ||
18228ab4 | 41044 | fi |
a848cd7e SC |
41045 | fi |
41046 | ||
eaff0f0d VZ |
41047 | if test "$wxUSE_STACKWALKER" = "yes"; then |
41048 | cat >>confdefs.h <<\_ACEOF | |
41049 | #define wxUSE_STACKWALKER 1 | |
41050 | _ACEOF | |
41051 | ||
41052 | fi | |
41053 | ||
36b6448c | 41054 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
41055 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
41056 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
41057 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
41058 | wxUSE_DEBUGREPORT=no |
41059 | else | |
41060 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
41061 | #define wxUSE_DEBUGREPORT 1 |
41062 | _ACEOF | |
41063 | ||
21dfc162 MW |
41064 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
41065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
41066 | fi | |
dfe0c803 | 41067 | fi |
36b6448c VZ |
41068 | fi |
41069 | ||
a848cd7e SC |
41070 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
41071 | cat >>confdefs.h <<\_ACEOF | |
41072 | #define wxUSE_SNGLINST_CHECKER 1 | |
41073 | _ACEOF | |
41074 | ||
41075 | fi | |
41076 | ||
41077 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
41078 | cat >>confdefs.h <<\_ACEOF | |
41079 | #define wxUSE_BUSYINFO 1 | |
41080 | _ACEOF | |
41081 | ||
41082 | fi | |
41083 | ||
41084 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
41085 | cat >>confdefs.h <<\_ACEOF | |
41086 | #define wxUSE_STD_IOSTREAM 1 | |
41087 | _ACEOF | |
41088 | ||
41089 | fi | |
41090 | ||
59746b65 MW |
41091 | if test "$wxUSE_STD_STRING" = "yes"; then |
41092 | cat >>confdefs.h <<\_ACEOF | |
41093 | #define wxUSE_STD_STRING 1 | |
41094 | _ACEOF | |
41095 | ||
41096 | fi | |
41097 | ||
07158944 VZ |
41098 | if test "$wxUSE_STDPATHS" = "yes"; then |
41099 | cat >>confdefs.h <<\_ACEOF | |
41100 | #define wxUSE_STDPATHS 1 | |
41101 | _ACEOF | |
41102 | ||
41103 | fi | |
41104 | ||
a848cd7e SC |
41105 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
41106 | cat >>confdefs.h <<\_ACEOF | |
41107 | #define wxUSE_TEXTBUFFER 1 | |
41108 | _ACEOF | |
41109 | ||
41110 | fi | |
41111 | ||
41112 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
41113 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
41114 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
41115 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
41116 | else | |
41117 | cat >>confdefs.h <<\_ACEOF | |
41118 | #define wxUSE_TEXTFILE 1 | |
41119 | _ACEOF | |
41120 | ||
41121 | fi | |
41122 | fi | |
41123 | ||
41124 | if test "$wxUSE_CONFIG" = "yes" ; then | |
41125 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
41126 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
41127 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
41128 | else | |
41129 | cat >>confdefs.h <<\_ACEOF | |
41130 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
41131 | _ACEOF |
41132 | ||
41133 | cat >>confdefs.h <<\_ACEOF | |
41134 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
41135 | _ACEOF |
41136 | ||
41137 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
41138 | fi | |
41139 | fi | |
41140 | ||
41141 | if test "$wxUSE_INTL" = "yes" ; then | |
41142 | if test "$wxUSE_FILE" != "yes"; then | |
41143 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
41144 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
41145 | else | |
41146 | cat >>confdefs.h <<\_ACEOF | |
41147 | #define wxUSE_INTL 1 | |
41148 | _ACEOF | |
41149 | ||
41150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
41151 | GUIDIST="$GUIDIST INTL_DIST" | |
41152 | fi | |
41153 | fi | |
41154 | ||
41155 | if test "$wxUSE_LOG" = "yes"; then | |
41156 | cat >>confdefs.h <<\_ACEOF | |
41157 | #define wxUSE_LOG 1 | |
41158 | _ACEOF | |
41159 | ||
41160 | ||
41161 | if test "$wxUSE_LOGGUI" = "yes"; then | |
41162 | cat >>confdefs.h <<\_ACEOF | |
41163 | #define wxUSE_LOGGUI 1 | |
41164 | _ACEOF | |
41165 | ||
41166 | fi | |
41167 | ||
41168 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
41169 | cat >>confdefs.h <<\_ACEOF | |
41170 | #define wxUSE_LOGWINDOW 1 | |
41171 | _ACEOF | |
41172 | ||
41173 | fi | |
41174 | ||
41175 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
41176 | cat >>confdefs.h <<\_ACEOF | |
41177 | #define wxUSE_LOG_DIALOG 1 | |
41178 | _ACEOF | |
41179 | ||
41180 | fi | |
0b78747f MW |
41181 | |
41182 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
41183 | fi |
41184 | ||
41185 | if test "$wxUSE_LONGLONG" = "yes"; then | |
41186 | cat >>confdefs.h <<\_ACEOF | |
41187 | #define wxUSE_LONGLONG 1 | |
41188 | _ACEOF | |
41189 | ||
41190 | fi | |
41191 | ||
41192 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
41193 | cat >>confdefs.h <<\_ACEOF | |
41194 | #define wxUSE_GEOMETRY 1 | |
41195 | _ACEOF | |
41196 | ||
41197 | fi | |
41198 | ||
a848cd7e SC |
41199 | if test "$wxUSE_STREAMS" = "yes" ; then |
41200 | cat >>confdefs.h <<\_ACEOF | |
41201 | #define wxUSE_STREAMS 1 | |
41202 | _ACEOF | |
41203 | ||
41204 | fi | |
41205 | ||
41206 | ||
41207 | if test "$wxUSE_DATETIME" = "yes"; then | |
41208 | ||
41209 | for ac_func in strptime | |
41210 | do | |
41211 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41212 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41213 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41214 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41216 | else | |
41217 | cat >conftest.$ac_ext <<_ACEOF | |
41218 | /* confdefs.h. */ | |
41219 | _ACEOF | |
41220 | cat confdefs.h >>conftest.$ac_ext | |
41221 | cat >>conftest.$ac_ext <<_ACEOF | |
41222 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41223 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41224 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41225 | #define $ac_func innocuous_$ac_func | |
41226 | ||
a848cd7e SC |
41227 | /* System header to define __stub macros and hopefully few prototypes, |
41228 | which can conflict with char $ac_func (); below. | |
41229 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41230 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41231 | |
a848cd7e SC |
41232 | #ifdef __STDC__ |
41233 | # include <limits.h> | |
41234 | #else | |
41235 | # include <assert.h> | |
41236 | #endif | |
ac1cb8d3 VS |
41237 | |
41238 | #undef $ac_func | |
41239 | ||
a848cd7e SC |
41240 | /* Override any gcc2 internal prototype to avoid an error. */ |
41241 | #ifdef __cplusplus | |
41242 | extern "C" | |
41243 | { | |
41244 | #endif | |
41245 | /* We use char because int might match the return type of a gcc2 | |
41246 | builtin and then its argument prototype would still apply. */ | |
41247 | char $ac_func (); | |
41248 | /* The GNU C library defines this for functions which it implements | |
41249 | to always fail with ENOSYS. Some functions are actually named | |
41250 | something starting with __ and the normal name is an alias. */ | |
41251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41252 | choke me | |
41253 | #else | |
41254 | char (*f) () = $ac_func; | |
41255 | #endif | |
41256 | #ifdef __cplusplus | |
41257 | } | |
41258 | #endif | |
41259 | ||
41260 | int | |
41261 | main () | |
41262 | { | |
41263 | return f != $ac_func; | |
41264 | ; | |
41265 | return 0; | |
41266 | } | |
41267 | _ACEOF | |
41268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41270 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41271 | ac_status=$? |
ac1cb8d3 VS |
41272 | grep -v '^ *+' conftest.er1 >conftest.err |
41273 | rm -f conftest.er1 | |
41274 | cat conftest.err >&5 | |
a848cd7e SC |
41275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41276 | (exit $ac_status); } && | |
3565d135 RR |
41277 | { ac_try='test -z "$ac_c_werror_flag" |
41278 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41280 | (eval $ac_try) 2>&5 | |
41281 | ac_status=$? | |
41282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41283 | (exit $ac_status); }; } && | |
41284 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41286 | (eval $ac_try) 2>&5 | |
41287 | ac_status=$? | |
41288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41289 | (exit $ac_status); }; }; then | |
41290 | eval "$as_ac_var=yes" | |
41291 | else | |
41292 | echo "$as_me: failed program was:" >&5 | |
41293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41294 | ||
41295 | eval "$as_ac_var=no" | |
41296 | fi | |
ac1cb8d3 VS |
41297 | rm -f conftest.err conftest.$ac_objext \ |
41298 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41299 | fi |
41300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41301 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41302 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41303 | cat >>confdefs.h <<_ACEOF | |
41304 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41305 | _ACEOF | |
41306 | ||
41307 | fi | |
41308 | done | |
41309 | ||
f536f005 VZ |
41310 | if test "$ac_cv_func_strptime" = "yes"; then |
41311 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
41312 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
41313 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
41314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41315 | else | |
41316 | ||
41317 | ||
41318 | ||
41319 | ac_ext=cc | |
41320 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41324 | ||
41325 | cat >conftest.$ac_ext <<_ACEOF | |
41326 | /* confdefs.h. */ | |
41327 | _ACEOF | |
41328 | cat confdefs.h >>conftest.$ac_ext | |
41329 | cat >>conftest.$ac_ext <<_ACEOF | |
41330 | /* end confdefs.h. */ | |
41331 | ||
41332 | #include <time.h> | |
41333 | ||
41334 | int | |
41335 | main () | |
41336 | { | |
41337 | ||
41338 | struct tm t; | |
41339 | strptime("foo", "bar", &t); | |
41340 | ||
41341 | ; | |
41342 | return 0; | |
41343 | } | |
41344 | _ACEOF | |
41345 | rm -f conftest.$ac_objext | |
41346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41347 | (eval $ac_compile) 2>conftest.er1 | |
41348 | ac_status=$? | |
41349 | grep -v '^ *+' conftest.er1 >conftest.err | |
41350 | rm -f conftest.er1 | |
41351 | cat conftest.err >&5 | |
41352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41353 | (exit $ac_status); } && | |
3565d135 RR |
41354 | { ac_try='test -z "$ac_cxx_werror_flag" |
41355 | || test ! -s conftest.err' | |
f536f005 VZ |
41356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41357 | (eval $ac_try) 2>&5 | |
41358 | ac_status=$? | |
41359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41360 | (exit $ac_status); }; } && | |
41361 | { ac_try='test -s conftest.$ac_objext' | |
41362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41363 | (eval $ac_try) 2>&5 | |
41364 | ac_status=$? | |
41365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41366 | (exit $ac_status); }; }; then | |
41367 | wx_cv_func_strptime_decl=yes | |
41368 | else | |
41369 | echo "$as_me: failed program was:" >&5 | |
41370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41371 | ||
41372 | wx_cv_func_strptime_decl=no | |
41373 | ||
41374 | fi | |
41375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41376 | ac_ext=c | |
41377 | ac_cpp='$CPP $CPPFLAGS' | |
41378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41381 | ||
41382 | ||
41383 | ||
41384 | fi | |
41385 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
41386 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
41387 | fi | |
41388 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
41389 | cat >>confdefs.h <<\_ACEOF | |
41390 | #define HAVE_STRPTIME_DECL 1 | |
41391 | _ACEOF | |
41392 | ||
41393 | fi | |
a848cd7e SC |
41394 | |
41395 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
41396 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
41397 | if test "${wx_cv_var_timezone+set}" = set; then | |
41398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41399 | else | |
41400 | ||
41401 | cat >conftest.$ac_ext <<_ACEOF | |
41402 | /* confdefs.h. */ | |
41403 | _ACEOF | |
41404 | cat confdefs.h >>conftest.$ac_ext | |
41405 | cat >>conftest.$ac_ext <<_ACEOF | |
41406 | /* end confdefs.h. */ | |
41407 | ||
41408 | #include <time.h> | |
41409 | ||
41410 | int | |
41411 | main () | |
41412 | { | |
41413 | ||
41414 | int tz; | |
41415 | tz = timezone; | |
41416 | ||
41417 | ; | |
41418 | return 0; | |
41419 | } | |
41420 | _ACEOF | |
41421 | rm -f conftest.$ac_objext | |
41422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41423 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41424 | ac_status=$? |
ac1cb8d3 VS |
41425 | grep -v '^ *+' conftest.er1 >conftest.err |
41426 | rm -f conftest.er1 | |
41427 | cat conftest.err >&5 | |
a848cd7e SC |
41428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41429 | (exit $ac_status); } && | |
3565d135 RR |
41430 | { ac_try='test -z "$ac_c_werror_flag" |
41431 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41433 | (eval $ac_try) 2>&5 | |
41434 | ac_status=$? | |
41435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41436 | (exit $ac_status); }; } && | |
41437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41439 | (eval $ac_try) 2>&5 | |
41440 | ac_status=$? | |
41441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41442 | (exit $ac_status); }; }; then | |
41443 | ||
41444 | wx_cv_var_timezone=timezone | |
41445 | ||
41446 | else | |
41447 | echo "$as_me: failed program was:" >&5 | |
41448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41449 | ||
41450 | ||
41451 | cat >conftest.$ac_ext <<_ACEOF | |
41452 | /* confdefs.h. */ | |
41453 | _ACEOF | |
41454 | cat confdefs.h >>conftest.$ac_ext | |
41455 | cat >>conftest.$ac_ext <<_ACEOF | |
41456 | /* end confdefs.h. */ | |
41457 | ||
41458 | #include <time.h> | |
41459 | ||
41460 | int | |
41461 | main () | |
41462 | { | |
41463 | ||
41464 | int tz; | |
41465 | tz = _timezone; | |
41466 | ||
41467 | ; | |
41468 | return 0; | |
41469 | } | |
41470 | _ACEOF | |
41471 | rm -f conftest.$ac_objext | |
41472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41473 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41474 | ac_status=$? |
ac1cb8d3 VS |
41475 | grep -v '^ *+' conftest.er1 >conftest.err |
41476 | rm -f conftest.er1 | |
41477 | cat conftest.err >&5 | |
a848cd7e SC |
41478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41479 | (exit $ac_status); } && | |
3565d135 RR |
41480 | { ac_try='test -z "$ac_c_werror_flag" |
41481 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41483 | (eval $ac_try) 2>&5 | |
41484 | ac_status=$? | |
41485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41486 | (exit $ac_status); }; } && | |
41487 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41489 | (eval $ac_try) 2>&5 | |
41490 | ac_status=$? | |
41491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41492 | (exit $ac_status); }; }; then | |
41493 | ||
41494 | wx_cv_var_timezone=_timezone | |
41495 | ||
41496 | else | |
41497 | echo "$as_me: failed program was:" >&5 | |
41498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41499 | ||
41500 | ||
41501 | cat >conftest.$ac_ext <<_ACEOF | |
41502 | /* confdefs.h. */ | |
41503 | _ACEOF | |
41504 | cat confdefs.h >>conftest.$ac_ext | |
41505 | cat >>conftest.$ac_ext <<_ACEOF | |
41506 | /* end confdefs.h. */ | |
41507 | ||
41508 | #include <time.h> | |
41509 | ||
41510 | int | |
41511 | main () | |
41512 | { | |
41513 | ||
41514 | int tz; | |
41515 | tz = __timezone; | |
41516 | ||
41517 | ; | |
41518 | return 0; | |
41519 | } | |
41520 | _ACEOF | |
41521 | rm -f conftest.$ac_objext | |
41522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41523 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41524 | ac_status=$? |
ac1cb8d3 VS |
41525 | grep -v '^ *+' conftest.er1 >conftest.err |
41526 | rm -f conftest.er1 | |
41527 | cat conftest.err >&5 | |
a848cd7e SC |
41528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41529 | (exit $ac_status); } && | |
3565d135 RR |
41530 | { ac_try='test -z "$ac_c_werror_flag" |
41531 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41533 | (eval $ac_try) 2>&5 | |
41534 | ac_status=$? | |
41535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41536 | (exit $ac_status); }; } && | |
41537 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41539 | (eval $ac_try) 2>&5 | |
41540 | ac_status=$? | |
41541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41542 | (exit $ac_status); }; }; then | |
41543 | ||
41544 | wx_cv_var_timezone=__timezone | |
41545 | ||
41546 | else | |
41547 | echo "$as_me: failed program was:" >&5 | |
41548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41549 | ||
41550 | ||
41551 | if test "$USE_DOS" = 0 ; then | |
41552 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
41553 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
41554 | fi | |
41555 | ||
41556 | ||
41557 | fi | |
ac1cb8d3 | 41558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41559 | |
41560 | ||
41561 | fi | |
ac1cb8d3 | 41562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41563 | |
41564 | ||
41565 | fi | |
ac1cb8d3 | 41566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41567 | |
41568 | ||
41569 | fi | |
41570 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
41571 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
41572 | ||
41573 | if test "x$wx_cv_var_timezone" != x ; then | |
41574 | cat >>confdefs.h <<_ACEOF | |
41575 | #define WX_TIMEZONE $wx_cv_var_timezone | |
41576 | _ACEOF | |
41577 | ||
41578 | fi | |
41579 | ||
41580 | ||
41581 | for ac_func in localtime | |
41582 | do | |
41583 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41584 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41585 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41586 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41588 | else | |
41589 | cat >conftest.$ac_ext <<_ACEOF | |
41590 | /* confdefs.h. */ | |
41591 | _ACEOF | |
41592 | cat confdefs.h >>conftest.$ac_ext | |
41593 | cat >>conftest.$ac_ext <<_ACEOF | |
41594 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41595 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41596 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41597 | #define $ac_func innocuous_$ac_func | |
41598 | ||
a848cd7e SC |
41599 | /* System header to define __stub macros and hopefully few prototypes, |
41600 | which can conflict with char $ac_func (); below. | |
41601 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41602 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41603 | |
a848cd7e SC |
41604 | #ifdef __STDC__ |
41605 | # include <limits.h> | |
41606 | #else | |
41607 | # include <assert.h> | |
41608 | #endif | |
ac1cb8d3 VS |
41609 | |
41610 | #undef $ac_func | |
41611 | ||
a848cd7e SC |
41612 | /* Override any gcc2 internal prototype to avoid an error. */ |
41613 | #ifdef __cplusplus | |
41614 | extern "C" | |
41615 | { | |
41616 | #endif | |
41617 | /* We use char because int might match the return type of a gcc2 | |
41618 | builtin and then its argument prototype would still apply. */ | |
41619 | char $ac_func (); | |
41620 | /* The GNU C library defines this for functions which it implements | |
41621 | to always fail with ENOSYS. Some functions are actually named | |
41622 | something starting with __ and the normal name is an alias. */ | |
41623 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41624 | choke me | |
41625 | #else | |
41626 | char (*f) () = $ac_func; | |
41627 | #endif | |
41628 | #ifdef __cplusplus | |
41629 | } | |
41630 | #endif | |
41631 | ||
41632 | int | |
41633 | main () | |
41634 | { | |
41635 | return f != $ac_func; | |
41636 | ; | |
41637 | return 0; | |
41638 | } | |
41639 | _ACEOF | |
41640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41642 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41643 | ac_status=$? |
ac1cb8d3 VS |
41644 | grep -v '^ *+' conftest.er1 >conftest.err |
41645 | rm -f conftest.er1 | |
41646 | cat conftest.err >&5 | |
a848cd7e SC |
41647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41648 | (exit $ac_status); } && | |
3565d135 RR |
41649 | { ac_try='test -z "$ac_c_werror_flag" |
41650 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41652 | (eval $ac_try) 2>&5 | |
41653 | ac_status=$? | |
41654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41655 | (exit $ac_status); }; } && | |
41656 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41658 | (eval $ac_try) 2>&5 | |
41659 | ac_status=$? | |
41660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41661 | (exit $ac_status); }; }; then | |
41662 | eval "$as_ac_var=yes" | |
41663 | else | |
41664 | echo "$as_me: failed program was:" >&5 | |
41665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41666 | ||
41667 | eval "$as_ac_var=no" | |
41668 | fi | |
ac1cb8d3 VS |
41669 | rm -f conftest.err conftest.$ac_objext \ |
41670 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41671 | fi |
41672 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41673 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41674 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41675 | cat >>confdefs.h <<_ACEOF | |
41676 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41677 | _ACEOF | |
41678 | ||
41679 | fi | |
41680 | done | |
41681 | ||
41682 | ||
41683 | if test "$ac_cv_func_localtime" = "yes"; then | |
41684 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
41685 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
41686 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
41687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41688 | else | |
41689 | ||
41690 | cat >conftest.$ac_ext <<_ACEOF | |
41691 | /* confdefs.h. */ | |
41692 | _ACEOF | |
41693 | cat confdefs.h >>conftest.$ac_ext | |
41694 | cat >>conftest.$ac_ext <<_ACEOF | |
41695 | /* end confdefs.h. */ | |
41696 | ||
41697 | #include <time.h> | |
41698 | ||
41699 | int | |
41700 | main () | |
41701 | { | |
41702 | ||
41703 | struct tm tm; | |
41704 | tm.tm_gmtoff++; | |
41705 | ||
41706 | ; | |
41707 | return 0; | |
41708 | } | |
41709 | _ACEOF | |
41710 | rm -f conftest.$ac_objext | |
41711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41712 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41713 | ac_status=$? |
ac1cb8d3 VS |
41714 | grep -v '^ *+' conftest.er1 >conftest.err |
41715 | rm -f conftest.er1 | |
41716 | cat conftest.err >&5 | |
a848cd7e SC |
41717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41718 | (exit $ac_status); } && | |
3565d135 RR |
41719 | { ac_try='test -z "$ac_c_werror_flag" |
41720 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41722 | (eval $ac_try) 2>&5 | |
41723 | ac_status=$? | |
41724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41725 | (exit $ac_status); }; } && | |
41726 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41728 | (eval $ac_try) 2>&5 | |
41729 | ac_status=$? | |
41730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41731 | (exit $ac_status); }; }; then | |
41732 | ||
41733 | wx_cv_struct_tm_has_gmtoff=yes | |
41734 | ||
41735 | else | |
41736 | echo "$as_me: failed program was:" >&5 | |
41737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41738 | ||
41739 | wx_cv_struct_tm_has_gmtoff=no | |
41740 | ||
41741 | fi | |
ac1cb8d3 | 41742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41743 | |
41744 | fi | |
41745 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
41746 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
41747 | fi | |
41748 | ||
41749 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
41750 | cat >>confdefs.h <<\_ACEOF | |
41751 | #define WX_GMTOFF_IN_TM 1 | |
41752 | _ACEOF | |
41753 | ||
41754 | fi | |
41755 | ||
41756 | ||
41757 | ||
41758 | for ac_func in gettimeofday ftime | |
41759 | do | |
41760 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41761 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41762 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41763 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41765 | else | |
41766 | cat >conftest.$ac_ext <<_ACEOF | |
41767 | /* confdefs.h. */ | |
41768 | _ACEOF | |
41769 | cat confdefs.h >>conftest.$ac_ext | |
41770 | cat >>conftest.$ac_ext <<_ACEOF | |
41771 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41772 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41774 | #define $ac_func innocuous_$ac_func | |
41775 | ||
a848cd7e SC |
41776 | /* System header to define __stub macros and hopefully few prototypes, |
41777 | which can conflict with char $ac_func (); below. | |
41778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41779 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41780 | |
a848cd7e SC |
41781 | #ifdef __STDC__ |
41782 | # include <limits.h> | |
41783 | #else | |
41784 | # include <assert.h> | |
41785 | #endif | |
ac1cb8d3 VS |
41786 | |
41787 | #undef $ac_func | |
41788 | ||
a848cd7e SC |
41789 | /* Override any gcc2 internal prototype to avoid an error. */ |
41790 | #ifdef __cplusplus | |
41791 | extern "C" | |
41792 | { | |
41793 | #endif | |
41794 | /* We use char because int might match the return type of a gcc2 | |
41795 | builtin and then its argument prototype would still apply. */ | |
41796 | char $ac_func (); | |
41797 | /* The GNU C library defines this for functions which it implements | |
41798 | to always fail with ENOSYS. Some functions are actually named | |
41799 | something starting with __ and the normal name is an alias. */ | |
41800 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41801 | choke me | |
41802 | #else | |
41803 | char (*f) () = $ac_func; | |
41804 | #endif | |
41805 | #ifdef __cplusplus | |
41806 | } | |
41807 | #endif | |
41808 | ||
41809 | int | |
41810 | main () | |
41811 | { | |
41812 | return f != $ac_func; | |
41813 | ; | |
41814 | return 0; | |
41815 | } | |
41816 | _ACEOF | |
41817 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41819 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41820 | ac_status=$? |
ac1cb8d3 VS |
41821 | grep -v '^ *+' conftest.er1 >conftest.err |
41822 | rm -f conftest.er1 | |
41823 | cat conftest.err >&5 | |
a848cd7e SC |
41824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41825 | (exit $ac_status); } && | |
3565d135 RR |
41826 | { ac_try='test -z "$ac_c_werror_flag" |
41827 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41829 | (eval $ac_try) 2>&5 | |
41830 | ac_status=$? | |
41831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41832 | (exit $ac_status); }; } && | |
41833 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41835 | (eval $ac_try) 2>&5 | |
41836 | ac_status=$? | |
41837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41838 | (exit $ac_status); }; }; then | |
41839 | eval "$as_ac_var=yes" | |
41840 | else | |
41841 | echo "$as_me: failed program was:" >&5 | |
41842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41843 | ||
41844 | eval "$as_ac_var=no" | |
41845 | fi | |
ac1cb8d3 VS |
41846 | rm -f conftest.err conftest.$ac_objext \ |
41847 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41848 | fi |
41849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41850 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41851 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41852 | cat >>confdefs.h <<_ACEOF | |
41853 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41854 | _ACEOF | |
41855 | break | |
41856 | fi | |
41857 | done | |
41858 | ||
41859 | ||
41860 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
41861 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
41862 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
41863 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
41864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41865 | else | |
41866 | ||
41867 | ||
41868 | ||
41869 | ac_ext=cc | |
41870 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41871 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41872 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41873 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41874 | ||
41875 | ||
41876 | cat >conftest.$ac_ext <<_ACEOF | |
41877 | /* confdefs.h. */ | |
41878 | _ACEOF | |
41879 | cat confdefs.h >>conftest.$ac_ext | |
41880 | cat >>conftest.$ac_ext <<_ACEOF | |
41881 | /* end confdefs.h. */ | |
41882 | ||
41883 | #include <sys/time.h> | |
41884 | #include <unistd.h> | |
41885 | ||
41886 | int | |
41887 | main () | |
41888 | { | |
41889 | ||
41890 | struct timeval tv; | |
41891 | gettimeofday(&tv, NULL); | |
41892 | ||
41893 | ; | |
41894 | return 0; | |
41895 | } | |
41896 | _ACEOF | |
41897 | rm -f conftest.$ac_objext | |
41898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41899 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41900 | ac_status=$? |
ac1cb8d3 VS |
41901 | grep -v '^ *+' conftest.er1 >conftest.err |
41902 | rm -f conftest.er1 | |
41903 | cat conftest.err >&5 | |
a848cd7e SC |
41904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41905 | (exit $ac_status); } && | |
3565d135 RR |
41906 | { ac_try='test -z "$ac_cxx_werror_flag" |
41907 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41909 | (eval $ac_try) 2>&5 | |
41910 | ac_status=$? | |
41911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41912 | (exit $ac_status); }; } && | |
41913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41915 | (eval $ac_try) 2>&5 | |
41916 | ac_status=$? | |
41917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41918 | (exit $ac_status); }; }; then | |
41919 | wx_cv_func_gettimeofday_has_2_args=yes | |
41920 | else | |
41921 | echo "$as_me: failed program was:" >&5 | |
41922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41923 | ||
41924 | cat >conftest.$ac_ext <<_ACEOF | |
41925 | /* confdefs.h. */ | |
41926 | _ACEOF | |
41927 | cat confdefs.h >>conftest.$ac_ext | |
41928 | cat >>conftest.$ac_ext <<_ACEOF | |
41929 | /* end confdefs.h. */ | |
41930 | ||
41931 | #include <sys/time.h> | |
41932 | #include <unistd.h> | |
41933 | ||
41934 | int | |
41935 | main () | |
41936 | { | |
41937 | ||
41938 | struct timeval tv; | |
41939 | gettimeofday(&tv); | |
41940 | ||
41941 | ; | |
41942 | return 0; | |
41943 | } | |
41944 | _ACEOF | |
41945 | rm -f conftest.$ac_objext | |
41946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41947 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41948 | ac_status=$? |
ac1cb8d3 VS |
41949 | grep -v '^ *+' conftest.er1 >conftest.err |
41950 | rm -f conftest.er1 | |
41951 | cat conftest.err >&5 | |
a848cd7e SC |
41952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41953 | (exit $ac_status); } && | |
3565d135 RR |
41954 | { ac_try='test -z "$ac_cxx_werror_flag" |
41955 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41957 | (eval $ac_try) 2>&5 | |
41958 | ac_status=$? | |
41959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41960 | (exit $ac_status); }; } && | |
41961 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41963 | (eval $ac_try) 2>&5 | |
41964 | ac_status=$? | |
41965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41966 | (exit $ac_status); }; }; then | |
41967 | wx_cv_func_gettimeofday_has_2_args=no | |
41968 | else | |
41969 | echo "$as_me: failed program was:" >&5 | |
41970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41971 | ||
41972 | ||
41973 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
41974 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
41975 | wx_cv_func_gettimeofday_has_2_args=unknown | |
41976 | ||
41977 | ||
41978 | fi | |
ac1cb8d3 | 41979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41980 | |
41981 | fi | |
ac1cb8d3 | 41982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41983 | ac_ext=c |
41984 | ac_cpp='$CPP $CPPFLAGS' | |
41985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41988 | ||
41989 | ||
41990 | fi | |
41991 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
41992 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
41993 | ||
41994 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
41995 | cat >>confdefs.h <<\_ACEOF | |
41996 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
41997 | _ACEOF | |
41998 | ||
41999 | fi | |
42000 | fi | |
42001 | ||
42002 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
42003 | fi | |
42004 | ||
42005 | ||
42006 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42007 | if test "$wxUSE_MGL" = "1"; then | |
42008 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
42009 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
42010 | wxUSE_SOCKETS="no" | |
42011 | fi | |
42012 | fi | |
42013 | ||
42014 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42015 | if test "$TOOLKIT" != "MSW"; then | |
42016 | echo "$as_me:$LINENO: checking for socket" >&5 | |
42017 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
42018 | if test "${ac_cv_func_socket+set}" = set; then | |
42019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42020 | else | |
42021 | cat >conftest.$ac_ext <<_ACEOF | |
42022 | /* confdefs.h. */ | |
42023 | _ACEOF | |
42024 | cat confdefs.h >>conftest.$ac_ext | |
42025 | cat >>conftest.$ac_ext <<_ACEOF | |
42026 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42027 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
42028 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42029 | #define socket innocuous_socket | |
42030 | ||
a848cd7e SC |
42031 | /* System header to define __stub macros and hopefully few prototypes, |
42032 | which can conflict with char socket (); below. | |
42033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42034 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42035 | |
a848cd7e SC |
42036 | #ifdef __STDC__ |
42037 | # include <limits.h> | |
42038 | #else | |
42039 | # include <assert.h> | |
42040 | #endif | |
ac1cb8d3 VS |
42041 | |
42042 | #undef socket | |
42043 | ||
a848cd7e SC |
42044 | /* Override any gcc2 internal prototype to avoid an error. */ |
42045 | #ifdef __cplusplus | |
42046 | extern "C" | |
42047 | { | |
42048 | #endif | |
42049 | /* We use char because int might match the return type of a gcc2 | |
42050 | builtin and then its argument prototype would still apply. */ | |
42051 | char socket (); | |
42052 | /* The GNU C library defines this for functions which it implements | |
42053 | to always fail with ENOSYS. Some functions are actually named | |
42054 | something starting with __ and the normal name is an alias. */ | |
42055 | #if defined (__stub_socket) || defined (__stub___socket) | |
42056 | choke me | |
42057 | #else | |
42058 | char (*f) () = socket; | |
42059 | #endif | |
42060 | #ifdef __cplusplus | |
42061 | } | |
42062 | #endif | |
42063 | ||
42064 | int | |
42065 | main () | |
42066 | { | |
42067 | return f != socket; | |
42068 | ; | |
42069 | return 0; | |
42070 | } | |
42071 | _ACEOF | |
42072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42074 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42075 | ac_status=$? |
ac1cb8d3 VS |
42076 | grep -v '^ *+' conftest.er1 >conftest.err |
42077 | rm -f conftest.er1 | |
42078 | cat conftest.err >&5 | |
a848cd7e SC |
42079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42080 | (exit $ac_status); } && | |
3565d135 RR |
42081 | { ac_try='test -z "$ac_c_werror_flag" |
42082 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42084 | (eval $ac_try) 2>&5 | |
42085 | ac_status=$? | |
42086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42087 | (exit $ac_status); }; } && | |
42088 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42090 | (eval $ac_try) 2>&5 | |
42091 | ac_status=$? | |
42092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42093 | (exit $ac_status); }; }; then | |
42094 | ac_cv_func_socket=yes | |
42095 | else | |
42096 | echo "$as_me: failed program was:" >&5 | |
42097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42098 | ||
42099 | ac_cv_func_socket=no | |
42100 | fi | |
ac1cb8d3 VS |
42101 | rm -f conftest.err conftest.$ac_objext \ |
42102 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42103 | fi |
42104 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
42105 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
42106 | if test $ac_cv_func_socket = yes; then | |
42107 | : | |
42108 | else | |
42109 | ||
42110 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
42111 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
42112 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
42113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42114 | else | |
42115 | ac_check_lib_save_LIBS=$LIBS | |
42116 | LIBS="-lsocket $LIBS" | |
42117 | cat >conftest.$ac_ext <<_ACEOF | |
42118 | /* confdefs.h. */ | |
42119 | _ACEOF | |
42120 | cat confdefs.h >>conftest.$ac_ext | |
42121 | cat >>conftest.$ac_ext <<_ACEOF | |
42122 | /* end confdefs.h. */ | |
42123 | ||
42124 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42125 | #ifdef __cplusplus | |
42126 | extern "C" | |
42127 | #endif | |
42128 | /* We use char because int might match the return type of a gcc2 | |
42129 | builtin and then its argument prototype would still apply. */ | |
42130 | char socket (); | |
42131 | int | |
42132 | main () | |
42133 | { | |
42134 | socket (); | |
42135 | ; | |
42136 | return 0; | |
42137 | } | |
42138 | _ACEOF | |
42139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42141 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42142 | ac_status=$? |
ac1cb8d3 VS |
42143 | grep -v '^ *+' conftest.er1 >conftest.err |
42144 | rm -f conftest.er1 | |
42145 | cat conftest.err >&5 | |
a848cd7e SC |
42146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42147 | (exit $ac_status); } && | |
3565d135 RR |
42148 | { ac_try='test -z "$ac_c_werror_flag" |
42149 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42151 | (eval $ac_try) 2>&5 | |
42152 | ac_status=$? | |
42153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42154 | (exit $ac_status); }; } && | |
42155 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42157 | (eval $ac_try) 2>&5 | |
42158 | ac_status=$? | |
42159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42160 | (exit $ac_status); }; }; then | |
42161 | ac_cv_lib_socket_socket=yes | |
42162 | else | |
42163 | echo "$as_me: failed program was:" >&5 | |
42164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42165 | ||
42166 | ac_cv_lib_socket_socket=no | |
42167 | fi | |
ac1cb8d3 VS |
42168 | rm -f conftest.err conftest.$ac_objext \ |
42169 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42170 | LIBS=$ac_check_lib_save_LIBS |
42171 | fi | |
42172 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
42173 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
42174 | if test $ac_cv_lib_socket_socket = yes; then | |
42175 | if test "$INET_LINK" != " -lsocket"; then | |
42176 | INET_LINK="$INET_LINK -lsocket" | |
42177 | fi | |
42178 | else | |
42179 | ||
42180 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
42181 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
42182 | wxUSE_SOCKETS=no | |
42183 | ||
42184 | ||
42185 | fi | |
42186 | ||
42187 | ||
42188 | ||
42189 | fi | |
42190 | ||
42191 | fi | |
42192 | fi | |
42193 | ||
42194 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42195 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
42196 | ac_ext=cc |
42197 | ac_cpp='$CXXCPP $CPPFLAGS' | |
42198 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42199 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42200 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
42201 | ||
42202 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
42203 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
42204 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
42205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42206 | else | |
42207 | ||
42208 | cat >conftest.$ac_ext <<_ACEOF | |
42209 | /* confdefs.h. */ | |
42210 | _ACEOF | |
42211 | cat confdefs.h >>conftest.$ac_ext | |
42212 | cat >>conftest.$ac_ext <<_ACEOF | |
42213 | /* end confdefs.h. */ | |
42214 | ||
42215 | #include <sys/types.h> | |
42216 | #include <sys/socket.h> | |
42217 | ||
42218 | int | |
42219 | main () | |
42220 | { | |
42221 | ||
42222 | socklen_t len; | |
42223 | getsockname(0, 0, &len); | |
42224 | ||
42225 | ; | |
42226 | return 0; | |
42227 | } | |
42228 | _ACEOF | |
42229 | rm -f conftest.$ac_objext | |
42230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42231 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42232 | ac_status=$? |
ac1cb8d3 VS |
42233 | grep -v '^ *+' conftest.er1 >conftest.err |
42234 | rm -f conftest.er1 | |
42235 | cat conftest.err >&5 | |
a848cd7e SC |
42236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42237 | (exit $ac_status); } && | |
3565d135 RR |
42238 | { ac_try='test -z "$ac_cxx_werror_flag" |
42239 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42241 | (eval $ac_try) 2>&5 | |
42242 | ac_status=$? | |
42243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42244 | (exit $ac_status); }; } && | |
42245 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42247 | (eval $ac_try) 2>&5 | |
42248 | ac_status=$? | |
42249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42250 | (exit $ac_status); }; }; then | |
42251 | wx_cv_type_getsockname3=socklen_t | |
42252 | else | |
42253 | echo "$as_me: failed program was:" >&5 | |
42254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42255 | ||
42256 | ||
6459a506 | 42257 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 42258 | if test "$GCC" = yes ; then |
c92ad099 | 42259 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
42260 | fi |
42261 | ||
42262 | cat >conftest.$ac_ext <<_ACEOF | |
42263 | /* confdefs.h. */ | |
42264 | _ACEOF | |
42265 | cat confdefs.h >>conftest.$ac_ext | |
42266 | cat >>conftest.$ac_ext <<_ACEOF | |
42267 | /* end confdefs.h. */ | |
42268 | ||
42269 | #include <sys/types.h> | |
42270 | #include <sys/socket.h> | |
42271 | ||
42272 | int | |
42273 | main () | |
42274 | { | |
42275 | ||
42276 | size_t len; | |
42277 | getsockname(0, 0, &len); | |
42278 | ||
42279 | ; | |
42280 | return 0; | |
42281 | } | |
42282 | _ACEOF | |
42283 | rm -f conftest.$ac_objext | |
42284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42286 | ac_status=$? |
ac1cb8d3 VS |
42287 | grep -v '^ *+' conftest.er1 >conftest.err |
42288 | rm -f conftest.er1 | |
42289 | cat conftest.err >&5 | |
a848cd7e SC |
42290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42291 | (exit $ac_status); } && | |
3565d135 RR |
42292 | { ac_try='test -z "$ac_cxx_werror_flag" |
42293 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42295 | (eval $ac_try) 2>&5 | |
42296 | ac_status=$? | |
42297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42298 | (exit $ac_status); }; } && | |
42299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42301 | (eval $ac_try) 2>&5 | |
42302 | ac_status=$? | |
42303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42304 | (exit $ac_status); }; }; then | |
42305 | wx_cv_type_getsockname3=size_t | |
42306 | else | |
42307 | echo "$as_me: failed program was:" >&5 | |
42308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42309 | ||
42310 | cat >conftest.$ac_ext <<_ACEOF | |
42311 | /* confdefs.h. */ | |
42312 | _ACEOF | |
42313 | cat confdefs.h >>conftest.$ac_ext | |
42314 | cat >>conftest.$ac_ext <<_ACEOF | |
42315 | /* end confdefs.h. */ | |
42316 | ||
42317 | #include <sys/types.h> | |
42318 | #include <sys/socket.h> | |
42319 | ||
42320 | int | |
42321 | main () | |
42322 | { | |
42323 | ||
42324 | int len; | |
42325 | getsockname(0, 0, &len); | |
42326 | ||
42327 | ; | |
42328 | return 0; | |
42329 | } | |
42330 | _ACEOF | |
42331 | rm -f conftest.$ac_objext | |
42332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42333 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42334 | ac_status=$? |
ac1cb8d3 VS |
42335 | grep -v '^ *+' conftest.er1 >conftest.err |
42336 | rm -f conftest.er1 | |
42337 | cat conftest.err >&5 | |
a848cd7e SC |
42338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42339 | (exit $ac_status); } && | |
3565d135 RR |
42340 | { ac_try='test -z "$ac_cxx_werror_flag" |
42341 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42343 | (eval $ac_try) 2>&5 | |
42344 | ac_status=$? | |
42345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42346 | (exit $ac_status); }; } && | |
42347 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42349 | (eval $ac_try) 2>&5 | |
42350 | ac_status=$? | |
42351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42352 | (exit $ac_status); }; }; then | |
42353 | wx_cv_type_getsockname3=int | |
42354 | else | |
42355 | echo "$as_me: failed program was:" >&5 | |
42356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42357 | ||
42358 | wx_cv_type_getsockname3=unknown | |
42359 | ||
42360 | fi | |
ac1cb8d3 | 42361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42362 | |
42363 | fi | |
ac1cb8d3 | 42364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42365 | |
6459a506 | 42366 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
42367 | |
42368 | ||
42369 | fi | |
ac1cb8d3 | 42370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42371 | |
42372 | fi | |
42373 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
42374 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
42375 | ||
42376 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
42377 | wxUSE_SOCKETS=no | |
42378 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42379 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42380 | else | |
42381 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 42382 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
42383 | _ACEOF |
42384 | ||
42385 | fi | |
42386 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
42387 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
42388 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
42389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42390 | else | |
42391 | ||
42392 | cat >conftest.$ac_ext <<_ACEOF | |
42393 | /* confdefs.h. */ | |
42394 | _ACEOF | |
42395 | cat confdefs.h >>conftest.$ac_ext | |
42396 | cat >>conftest.$ac_ext <<_ACEOF | |
42397 | /* end confdefs.h. */ | |
42398 | ||
42399 | #include <sys/types.h> | |
42400 | #include <sys/socket.h> | |
42401 | ||
42402 | int | |
42403 | main () | |
42404 | { | |
42405 | ||
42406 | socklen_t len; | |
42407 | getsockopt(0, 0, 0, 0, &len); | |
42408 | ||
42409 | ; | |
42410 | return 0; | |
42411 | } | |
42412 | _ACEOF | |
42413 | rm -f conftest.$ac_objext | |
42414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42415 | (eval $ac_compile) 2>conftest.er1 | |
42416 | ac_status=$? | |
42417 | grep -v '^ *+' conftest.er1 >conftest.err | |
42418 | rm -f conftest.er1 | |
42419 | cat conftest.err >&5 | |
42420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42421 | (exit $ac_status); } && | |
3565d135 RR |
42422 | { ac_try='test -z "$ac_cxx_werror_flag" |
42423 | || test ! -s conftest.err' | |
5b674b9d DE |
42424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42425 | (eval $ac_try) 2>&5 | |
42426 | ac_status=$? | |
42427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42428 | (exit $ac_status); }; } && | |
42429 | { ac_try='test -s conftest.$ac_objext' | |
42430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42431 | (eval $ac_try) 2>&5 | |
42432 | ac_status=$? | |
42433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42434 | (exit $ac_status); }; }; then | |
42435 | wx_cv_type_getsockopt5=socklen_t | |
42436 | else | |
42437 | echo "$as_me: failed program was:" >&5 | |
42438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42439 | ||
42440 | ||
6459a506 | 42441 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 42442 | if test "$GCC" = yes ; then |
c92ad099 | 42443 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
42444 | fi |
42445 | ||
42446 | cat >conftest.$ac_ext <<_ACEOF | |
42447 | /* confdefs.h. */ | |
42448 | _ACEOF | |
42449 | cat confdefs.h >>conftest.$ac_ext | |
42450 | cat >>conftest.$ac_ext <<_ACEOF | |
42451 | /* end confdefs.h. */ | |
42452 | ||
42453 | #include <sys/types.h> | |
42454 | #include <sys/socket.h> | |
42455 | ||
42456 | int | |
42457 | main () | |
42458 | { | |
42459 | ||
42460 | size_t len; | |
42461 | getsockopt(0, 0, 0, 0, &len); | |
42462 | ||
42463 | ; | |
42464 | return 0; | |
42465 | } | |
42466 | _ACEOF | |
42467 | rm -f conftest.$ac_objext | |
42468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42469 | (eval $ac_compile) 2>conftest.er1 | |
42470 | ac_status=$? | |
42471 | grep -v '^ *+' conftest.er1 >conftest.err | |
42472 | rm -f conftest.er1 | |
42473 | cat conftest.err >&5 | |
42474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42475 | (exit $ac_status); } && | |
3565d135 RR |
42476 | { ac_try='test -z "$ac_cxx_werror_flag" |
42477 | || test ! -s conftest.err' | |
5b674b9d DE |
42478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42479 | (eval $ac_try) 2>&5 | |
42480 | ac_status=$? | |
42481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42482 | (exit $ac_status); }; } && | |
42483 | { ac_try='test -s conftest.$ac_objext' | |
42484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42485 | (eval $ac_try) 2>&5 | |
42486 | ac_status=$? | |
42487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42488 | (exit $ac_status); }; }; then | |
42489 | wx_cv_type_getsockopt5=size_t | |
42490 | else | |
42491 | echo "$as_me: failed program was:" >&5 | |
42492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42493 | ||
42494 | cat >conftest.$ac_ext <<_ACEOF | |
42495 | /* confdefs.h. */ | |
42496 | _ACEOF | |
42497 | cat confdefs.h >>conftest.$ac_ext | |
42498 | cat >>conftest.$ac_ext <<_ACEOF | |
42499 | /* end confdefs.h. */ | |
42500 | ||
42501 | #include <sys/types.h> | |
42502 | #include <sys/socket.h> | |
42503 | ||
42504 | int | |
42505 | main () | |
42506 | { | |
42507 | ||
42508 | int len; | |
42509 | getsockopt(0, 0, 0, 0, &len); | |
42510 | ||
42511 | ; | |
42512 | return 0; | |
42513 | } | |
42514 | _ACEOF | |
42515 | rm -f conftest.$ac_objext | |
42516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42517 | (eval $ac_compile) 2>conftest.er1 | |
42518 | ac_status=$? | |
42519 | grep -v '^ *+' conftest.er1 >conftest.err | |
42520 | rm -f conftest.er1 | |
42521 | cat conftest.err >&5 | |
42522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42523 | (exit $ac_status); } && | |
3565d135 RR |
42524 | { ac_try='test -z "$ac_cxx_werror_flag" |
42525 | || test ! -s conftest.err' | |
5b674b9d DE |
42526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42527 | (eval $ac_try) 2>&5 | |
42528 | ac_status=$? | |
42529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42530 | (exit $ac_status); }; } && | |
42531 | { ac_try='test -s conftest.$ac_objext' | |
42532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42533 | (eval $ac_try) 2>&5 | |
42534 | ac_status=$? | |
42535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42536 | (exit $ac_status); }; }; then | |
42537 | wx_cv_type_getsockopt5=int | |
42538 | else | |
42539 | echo "$as_me: failed program was:" >&5 | |
42540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42541 | ||
42542 | wx_cv_type_getsockopt5=unknown | |
42543 | ||
42544 | fi | |
42545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42546 | ||
42547 | fi | |
42548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42549 | ||
6459a506 | 42550 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
42551 | |
42552 | ||
42553 | fi | |
42554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42555 | ||
42556 | fi | |
42557 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
42558 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
42559 | ||
42560 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
42561 | wxUSE_SOCKETS=no | |
42562 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42563 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42564 | else | |
42565 | cat >>confdefs.h <<_ACEOF | |
42566 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
42567 | _ACEOF |
42568 | ||
42569 | fi | |
4d4ff94c VZ |
42570 | ac_ext=c |
42571 | ac_cpp='$CPP $CPPFLAGS' | |
42572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42575 | ||
a848cd7e SC |
42576 | fi |
42577 | fi | |
42578 | ||
42579 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42580 | cat >>confdefs.h <<\_ACEOF | |
42581 | #define wxUSE_SOCKETS 1 | |
42582 | _ACEOF | |
42583 | ||
42584 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
42585 | fi | |
42586 | ||
42587 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42588 | if test "$wxUSE_SOCKETS" != "yes"; then | |
42589 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
42590 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
42591 | wxUSE_PROTOCOL=no | |
42592 | fi | |
42593 | fi | |
42594 | ||
42595 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42596 | cat >>confdefs.h <<\_ACEOF | |
42597 | #define wxUSE_PROTOCOL 1 | |
42598 | _ACEOF | |
42599 | ||
42600 | ||
42601 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
42602 | cat >>confdefs.h <<\_ACEOF | |
42603 | #define wxUSE_PROTOCOL_HTTP 1 | |
42604 | _ACEOF | |
42605 | ||
42606 | fi | |
42607 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
42608 | cat >>confdefs.h <<\_ACEOF | |
42609 | #define wxUSE_PROTOCOL_FTP 1 | |
42610 | _ACEOF | |
42611 | ||
42612 | fi | |
42613 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
42614 | cat >>confdefs.h <<\_ACEOF | |
42615 | #define wxUSE_PROTOCOL_FILE 1 | |
42616 | _ACEOF | |
42617 | ||
42618 | fi | |
42619 | else | |
42620 | if test "$wxUSE_FS_INET" = "yes"; then | |
42621 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
42622 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
42623 | wxUSE_FS_INET="no" | |
42624 | fi | |
42625 | fi | |
42626 | ||
42627 | if test "$wxUSE_URL" = "yes"; then | |
42628 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
42629 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
42630 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
42631 | wxUSE_URL=no | |
42632 | fi | |
42633 | if test "$wxUSE_URL" = "yes"; then | |
42634 | cat >>confdefs.h <<\_ACEOF | |
42635 | #define wxUSE_URL 1 | |
42636 | _ACEOF | |
42637 | ||
42638 | fi | |
42639 | fi | |
42640 | ||
42641 | if test "$wxUSE_FS_INET" = "yes"; then | |
42642 | cat >>confdefs.h <<\_ACEOF | |
42643 | #define wxUSE_FS_INET 1 | |
42644 | _ACEOF | |
42645 | ||
42646 | fi | |
42647 | ||
42648 | ||
ee45c548 MW |
42649 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
42650 | wxUSE_JOYSTICK=no | |
42651 | ||
42652 | if test "$TOOLKIT" = "MSW"; then | |
42653 | wxUSE_JOYSTICK=yes | |
42654 | ||
42655 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
42656 | if test "$USE_DARWIN" = 1; then | |
42657 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
42658 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
42659 | ac_ext=cc | |
42660 | ac_cpp='$CXXCPP $CPPFLAGS' | |
42661 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42662 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42663 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
42664 | ||
42665 | cat >conftest.$ac_ext <<_ACEOF | |
42666 | /* confdefs.h. */ | |
42667 | _ACEOF | |
42668 | cat confdefs.h >>conftest.$ac_ext | |
42669 | cat >>conftest.$ac_ext <<_ACEOF | |
42670 | /* end confdefs.h. */ | |
42671 | #include <IOKit/hid/IOHIDLib.h> | |
42672 | int | |
42673 | main () | |
42674 | { | |
42675 | IOHIDQueueInterface *qi = NULL; | |
42676 | IOHIDCallbackFunction cb = NULL; | |
42677 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
42678 | ; | |
42679 | return 0; | |
42680 | } | |
42681 | _ACEOF | |
42682 | rm -f conftest.$ac_objext | |
42683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42684 | (eval $ac_compile) 2>conftest.er1 | |
42685 | ac_status=$? | |
42686 | grep -v '^ *+' conftest.er1 >conftest.err | |
42687 | rm -f conftest.er1 | |
42688 | cat conftest.err >&5 | |
42689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42690 | (exit $ac_status); } && | |
3565d135 RR |
42691 | { ac_try='test -z "$ac_cxx_werror_flag" |
42692 | || test ! -s conftest.err' | |
ee45c548 MW |
42693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42694 | (eval $ac_try) 2>&5 | |
42695 | ac_status=$? | |
42696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42697 | (exit $ac_status); }; } && | |
42698 | { ac_try='test -s conftest.$ac_objext' | |
42699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42700 | (eval $ac_try) 2>&5 | |
42701 | ac_status=$? | |
42702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42703 | (exit $ac_status); }; }; then | |
42704 | wxUSE_JOYSTICK=yes | |
a848cd7e | 42705 | |
ee45c548 MW |
42706 | else |
42707 | echo "$as_me: failed program was:" >&5 | |
42708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42709 | ||
42710 | fi | |
42711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42712 | ac_ext=c | |
42713 | ac_cpp='$CPP $CPPFLAGS' | |
42714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42717 | ||
42718 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
42719 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
42720 | fi | |
42721 | ||
42722 | else | |
a848cd7e SC |
42723 | |
42724 | for ac_header in linux/joystick.h | |
42725 | do | |
42726 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42728 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42730 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42732 | fi | |
42733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42734 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42735 | else | |
42736 | # Is the header compilable? | |
42737 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
42738 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
42739 | cat >conftest.$ac_ext <<_ACEOF | |
42740 | /* confdefs.h. */ | |
42741 | _ACEOF | |
42742 | cat confdefs.h >>conftest.$ac_ext | |
42743 | cat >>conftest.$ac_ext <<_ACEOF | |
42744 | /* end confdefs.h. */ | |
42745 | $ac_includes_default | |
42746 | #include <$ac_header> | |
42747 | _ACEOF | |
42748 | rm -f conftest.$ac_objext | |
42749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42750 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42751 | ac_status=$? |
ac1cb8d3 VS |
42752 | grep -v '^ *+' conftest.er1 >conftest.err |
42753 | rm -f conftest.er1 | |
42754 | cat conftest.err >&5 | |
a848cd7e SC |
42755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42756 | (exit $ac_status); } && | |
3565d135 RR |
42757 | { ac_try='test -z "$ac_c_werror_flag" |
42758 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42760 | (eval $ac_try) 2>&5 | |
42761 | ac_status=$? | |
42762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42763 | (exit $ac_status); }; } && | |
42764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42766 | (eval $ac_try) 2>&5 | |
42767 | ac_status=$? | |
42768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42769 | (exit $ac_status); }; }; then | |
42770 | ac_header_compiler=yes | |
42771 | else | |
42772 | echo "$as_me: failed program was:" >&5 | |
42773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42774 | ||
42775 | ac_header_compiler=no | |
42776 | fi | |
ac1cb8d3 | 42777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42778 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
42779 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
42780 | ||
42781 | # Is the header present? | |
42782 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
42783 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
42784 | cat >conftest.$ac_ext <<_ACEOF | |
42785 | /* confdefs.h. */ | |
42786 | _ACEOF | |
42787 | cat confdefs.h >>conftest.$ac_ext | |
42788 | cat >>conftest.$ac_ext <<_ACEOF | |
42789 | /* end confdefs.h. */ | |
42790 | #include <$ac_header> | |
42791 | _ACEOF | |
42792 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
42793 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42794 | ac_status=$? | |
42795 | grep -v '^ *+' conftest.er1 >conftest.err | |
42796 | rm -f conftest.er1 | |
42797 | cat conftest.err >&5 | |
42798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42799 | (exit $ac_status); } >/dev/null; then | |
42800 | if test -s conftest.err; then | |
42801 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 42802 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
42803 | else |
42804 | ac_cpp_err= | |
42805 | fi | |
42806 | else | |
42807 | ac_cpp_err=yes | |
42808 | fi | |
42809 | if test -z "$ac_cpp_err"; then | |
42810 | ac_header_preproc=yes | |
42811 | else | |
42812 | echo "$as_me: failed program was:" >&5 | |
42813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42814 | ||
42815 | ac_header_preproc=no | |
42816 | fi | |
42817 | rm -f conftest.err conftest.$ac_ext | |
42818 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
42819 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
42820 | ||
42821 | # So? What about this header? | |
ac1cb8d3 VS |
42822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
42823 | yes:no: ) | |
a848cd7e SC |
42824 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
42825 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
42826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
42827 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
42828 | ac_header_preproc=yes | |
a848cd7e | 42829 | ;; |
ac1cb8d3 | 42830 | no:yes:* ) |
a848cd7e SC |
42831 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
42832 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
42833 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
42834 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
42835 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
42836 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
42837 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
42838 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
42839 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
42840 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
42841 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
42842 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
42843 | ( |
42844 | cat <<\_ASBOX | |
ac1cb8d3 VS |
42845 | ## ----------------------------------------- ## |
42846 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
42847 | ## ----------------------------------------- ## | |
a848cd7e SC |
42848 | _ASBOX |
42849 | ) | | |
42850 | sed "s/^/$as_me: WARNING: /" >&2 | |
42851 | ;; | |
42852 | esac | |
42853 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42855 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42857 | else | |
ac1cb8d3 | 42858 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
42859 | fi |
42860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42861 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42862 | ||
42863 | fi | |
42864 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
42865 | cat >>confdefs.h <<_ACEOF | |
42866 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
42867 | _ACEOF | |
ee45c548 | 42868 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
42869 | fi |
42870 | ||
42871 | done | |
42872 | ||
ee45c548 | 42873 | fi |
4cb1d3da | 42874 | |
ee45c548 MW |
42875 | if test "$wxUSE_JOYSTICK" = "yes"; then |
42876 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42877 | #define wxUSE_JOYSTICK 1 |
42878 | _ACEOF | |
42879 | ||
ee45c548 MW |
42880 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
42881 | else | |
42882 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
42883 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
42884 | fi |
42885 | fi | |
42886 | ||
42887 | ||
42888 | ||
42889 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
42890 | cat >>confdefs.h <<\_ACEOF | |
42891 | #define wxUSE_FONTMAP 1 | |
42892 | _ACEOF | |
42893 | ||
42894 | fi | |
42895 | ||
42896 | if test "$wxUSE_UNICODE" = "yes" ; then | |
42897 | cat >>confdefs.h <<\_ACEOF | |
42898 | #define wxUSE_UNICODE 1 | |
42899 | _ACEOF | |
42900 | ||
42901 | ||
42902 | if test "$USE_WIN32" != 1; then | |
42903 | wxUSE_UNICODE_MSLU=no | |
42904 | fi | |
42905 | ||
42906 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
42907 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
42908 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
42909 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
42910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42911 | else | |
42912 | ac_check_lib_save_LIBS=$LIBS | |
42913 | LIBS="-lunicows $LIBS" | |
42914 | cat >conftest.$ac_ext <<_ACEOF | |
42915 | /* confdefs.h. */ | |
42916 | _ACEOF | |
42917 | cat confdefs.h >>conftest.$ac_ext | |
42918 | cat >>conftest.$ac_ext <<_ACEOF | |
42919 | /* end confdefs.h. */ | |
42920 | ||
42921 | ||
42922 | int | |
42923 | main () | |
42924 | { | |
42925 | main (); | |
42926 | ; | |
42927 | return 0; | |
42928 | } | |
42929 | _ACEOF | |
42930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42932 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42933 | ac_status=$? |
ac1cb8d3 VS |
42934 | grep -v '^ *+' conftest.er1 >conftest.err |
42935 | rm -f conftest.er1 | |
42936 | cat conftest.err >&5 | |
a848cd7e SC |
42937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42938 | (exit $ac_status); } && | |
3565d135 RR |
42939 | { ac_try='test -z "$ac_c_werror_flag" |
42940 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42942 | (eval $ac_try) 2>&5 | |
42943 | ac_status=$? | |
42944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42945 | (exit $ac_status); }; } && | |
42946 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42948 | (eval $ac_try) 2>&5 | |
42949 | ac_status=$? | |
42950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42951 | (exit $ac_status); }; }; then | |
42952 | ac_cv_lib_unicows_main=yes | |
42953 | else | |
42954 | echo "$as_me: failed program was:" >&5 | |
42955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42956 | ||
42957 | ac_cv_lib_unicows_main=no | |
42958 | fi | |
ac1cb8d3 VS |
42959 | rm -f conftest.err conftest.$ac_objext \ |
42960 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42961 | LIBS=$ac_check_lib_save_LIBS |
42962 | fi | |
42963 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
42964 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
42965 | if test $ac_cv_lib_unicows_main = yes; then | |
42966 | ||
42967 | cat >>confdefs.h <<\_ACEOF | |
42968 | #define wxUSE_UNICODE_MSLU 1 | |
42969 | _ACEOF | |
42970 | ||
42971 | ||
42972 | else | |
42973 | ||
42974 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
42975 | Applications will only run on Windows NT/2000/XP!" >&5 | |
42976 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
42977 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
42978 | wxUSE_UNICODE_MSLU=no | |
42979 | ||
42980 | fi | |
42981 | ||
42982 | fi | |
42983 | fi | |
42984 | ||
42985 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
42986 | cat >>confdefs.h <<\_ACEOF | |
42987 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
42988 | _ACEOF | |
42989 | ||
42990 | fi | |
42991 | ||
42992 | ||
42993 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
42994 | cat >>confdefs.h <<\_ACEOF | |
42995 | #define wxUSE_POSTSCRIPT 1 | |
42996 | _ACEOF | |
42997 | ||
42998 | fi | |
42999 | ||
43000 | cat >>confdefs.h <<\_ACEOF | |
43001 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
43002 | _ACEOF | |
43003 | ||
43004 | ||
43005 | cat >>confdefs.h <<\_ACEOF | |
43006 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
43007 | _ACEOF | |
43008 | ||
43009 | ||
43010 | ||
43011 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
43012 | cat >>confdefs.h <<\_ACEOF | |
43013 | #define wxUSE_CONSTRAINTS 1 | |
43014 | _ACEOF | |
43015 | ||
43016 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
43017 | fi | |
43018 | ||
8a7b1113 VZ |
43019 | if test "$wxUSE_MDI" = "yes"; then |
43020 | cat >>confdefs.h <<\_ACEOF | |
43021 | #define wxUSE_MDI 1 | |
43022 | _ACEOF | |
43023 | ||
43024 | ||
43025 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43026 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43027 | #define wxUSE_MDI_ARCHITECTURE 1 |
43028 | _ACEOF | |
43029 | ||
8a7b1113 VZ |
43030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
43031 | fi | |
a848cd7e SC |
43032 | fi |
43033 | ||
43034 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
43035 | cat >>confdefs.h <<\_ACEOF | |
43036 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
43037 | _ACEOF | |
43038 | ||
43039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
43040 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43041 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
43042 | fi | |
43043 | fi | |
43044 | ||
43045 | if test "$wxUSE_HELP" = "yes"; then | |
43046 | cat >>confdefs.h <<\_ACEOF | |
43047 | #define wxUSE_HELP 1 | |
43048 | _ACEOF | |
43049 | ||
43050 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
43051 | ||
43052 | if test "$wxUSE_MSW" = 1; then | |
43053 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
43054 | cat >>confdefs.h <<\_ACEOF | |
43055 | #define wxUSE_MS_HTML_HELP 1 | |
43056 | _ACEOF | |
43057 | ||
43058 | fi | |
43059 | fi | |
43060 | ||
43061 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
43062 | if test "$wxUSE_HTML" = "yes"; then | |
43063 | cat >>confdefs.h <<\_ACEOF | |
43064 | #define wxUSE_WXHTML_HELP 1 | |
43065 | _ACEOF | |
43066 | ||
43067 | else | |
43068 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
43069 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
43070 | wxUSE_WXHTML_HELP=no | |
43071 | fi | |
43072 | fi | |
43073 | fi | |
43074 | ||
43075 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
43076 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
43077 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
43078 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
43079 | else | |
43080 | cat >>confdefs.h <<\_ACEOF | |
43081 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
43082 | _ACEOF | |
43083 | ||
43084 | fi | |
43085 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
43086 | fi | |
43087 | ||
43088 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
43089 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
43090 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
43091 | { (exit 1); exit 1; }; } | |
43092 | fi | |
43093 | ||
43094 | ||
efdf6afe VZ |
43095 | if test "$wxUSE_METAFILE" = "yes"; then |
43096 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
43097 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
43098 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
43099 | wxUSE_METAFILE=no | |
43100 | fi | |
43101 | fi | |
43102 | ||
43103 | ||
a848cd7e SC |
43104 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
43105 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
43106 | -o "$wxUSE_OLE" = "yes" \ | |
43107 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
43108 | ||
43109 | for ac_header in ole2.h | |
43110 | do | |
43111 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43113 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43114 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43115 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43117 | fi | |
43118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43119 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43120 | else | |
43121 | # Is the header compilable? | |
43122 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43123 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43124 | cat >conftest.$ac_ext <<_ACEOF | |
43125 | /* confdefs.h. */ | |
43126 | _ACEOF | |
43127 | cat confdefs.h >>conftest.$ac_ext | |
43128 | cat >>conftest.$ac_ext <<_ACEOF | |
43129 | /* end confdefs.h. */ | |
43130 | $ac_includes_default | |
43131 | #include <$ac_header> | |
43132 | _ACEOF | |
43133 | rm -f conftest.$ac_objext | |
43134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43135 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43136 | ac_status=$? |
ac1cb8d3 VS |
43137 | grep -v '^ *+' conftest.er1 >conftest.err |
43138 | rm -f conftest.er1 | |
43139 | cat conftest.err >&5 | |
a848cd7e SC |
43140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43141 | (exit $ac_status); } && | |
3565d135 RR |
43142 | { ac_try='test -z "$ac_c_werror_flag" |
43143 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43145 | (eval $ac_try) 2>&5 | |
43146 | ac_status=$? | |
43147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43148 | (exit $ac_status); }; } && | |
43149 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43151 | (eval $ac_try) 2>&5 | |
43152 | ac_status=$? | |
43153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43154 | (exit $ac_status); }; }; then | |
43155 | ac_header_compiler=yes | |
43156 | else | |
43157 | echo "$as_me: failed program was:" >&5 | |
43158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43159 | ||
43160 | ac_header_compiler=no | |
43161 | fi | |
ac1cb8d3 | 43162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43163 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43164 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43165 | ||
43166 | # Is the header present? | |
43167 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43168 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43169 | cat >conftest.$ac_ext <<_ACEOF | |
43170 | /* confdefs.h. */ | |
43171 | _ACEOF | |
43172 | cat confdefs.h >>conftest.$ac_ext | |
43173 | cat >>conftest.$ac_ext <<_ACEOF | |
43174 | /* end confdefs.h. */ | |
43175 | #include <$ac_header> | |
43176 | _ACEOF | |
43177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43179 | ac_status=$? | |
43180 | grep -v '^ *+' conftest.er1 >conftest.err | |
43181 | rm -f conftest.er1 | |
43182 | cat conftest.err >&5 | |
43183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43184 | (exit $ac_status); } >/dev/null; then | |
43185 | if test -s conftest.err; then | |
43186 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 43187 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
43188 | else |
43189 | ac_cpp_err= | |
43190 | fi | |
43191 | else | |
43192 | ac_cpp_err=yes | |
43193 | fi | |
43194 | if test -z "$ac_cpp_err"; then | |
43195 | ac_header_preproc=yes | |
43196 | else | |
43197 | echo "$as_me: failed program was:" >&5 | |
43198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43199 | ||
43200 | ac_header_preproc=no | |
43201 | fi | |
43202 | rm -f conftest.err conftest.$ac_ext | |
43203 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43204 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43205 | ||
43206 | # So? What about this header? | |
ac1cb8d3 VS |
43207 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
43208 | yes:no: ) | |
a848cd7e SC |
43209 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43210 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43211 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43212 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43213 | ac_header_preproc=yes | |
a848cd7e | 43214 | ;; |
ac1cb8d3 | 43215 | no:yes:* ) |
a848cd7e SC |
43216 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43217 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43218 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43219 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43220 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43221 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43222 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43223 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43225 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43226 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43227 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43228 | ( |
43229 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43230 | ## ----------------------------------------- ## |
43231 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43232 | ## ----------------------------------------- ## | |
a848cd7e SC |
43233 | _ASBOX |
43234 | ) | | |
43235 | sed "s/^/$as_me: WARNING: /" >&2 | |
43236 | ;; | |
43237 | esac | |
43238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43239 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43240 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43242 | else | |
ac1cb8d3 | 43243 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43244 | fi |
43245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43246 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43247 | ||
43248 | fi | |
43249 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43250 | cat >>confdefs.h <<_ACEOF | |
43251 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43252 | _ACEOF | |
43253 | ||
43254 | fi | |
43255 | ||
43256 | done | |
43257 | ||
43258 | ||
43259 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
43260 | if test "$GCC" = yes ; then | |
43261 | ||
43262 | ||
43263 | ac_ext=cc | |
43264 | ac_cpp='$CXXCPP $CPPFLAGS' | |
43265 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
43266 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
43267 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
43268 | ||
43269 | ||
43270 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
43271 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
43272 | cat >conftest.$ac_ext <<_ACEOF | |
43273 | /* confdefs.h. */ | |
43274 | _ACEOF | |
43275 | cat confdefs.h >>conftest.$ac_ext | |
43276 | cat >>conftest.$ac_ext <<_ACEOF | |
43277 | /* end confdefs.h. */ | |
43278 | #include <windows.h> | |
43279 | #include <ole2.h> | |
43280 | int | |
43281 | main () | |
43282 | { | |
43283 | ||
43284 | ; | |
43285 | return 0; | |
43286 | } | |
43287 | _ACEOF | |
43288 | rm -f conftest.$ac_objext | |
43289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43290 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43291 | ac_status=$? |
ac1cb8d3 VS |
43292 | grep -v '^ *+' conftest.er1 >conftest.err |
43293 | rm -f conftest.er1 | |
43294 | cat conftest.err >&5 | |
a848cd7e SC |
43295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43296 | (exit $ac_status); } && | |
3565d135 RR |
43297 | { ac_try='test -z "$ac_cxx_werror_flag" |
43298 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43300 | (eval $ac_try) 2>&5 | |
43301 | ac_status=$? | |
43302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43303 | (exit $ac_status); }; } && | |
43304 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43306 | (eval $ac_try) 2>&5 | |
43307 | ac_status=$? | |
43308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43309 | (exit $ac_status); }; }; then | |
43310 | echo "$as_me:$LINENO: result: no" >&5 | |
43311 | echo "${ECHO_T}no" >&6 | |
43312 | else | |
43313 | echo "$as_me: failed program was:" >&5 | |
43314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43315 | ||
43316 | echo "$as_me:$LINENO: result: yes" >&5 | |
43317 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 43318 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 43319 | fi |
ac1cb8d3 | 43320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43321 | ac_ext=c |
43322 | ac_cpp='$CPP $CPPFLAGS' | |
43323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
43324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
43325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
43326 | ||
a848cd7e SC |
43327 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
43328 | if test "$wxUSE_OLE" = "yes" ; then | |
43329 | cat >>confdefs.h <<\_ACEOF | |
43330 | #define wxUSE_OLE 1 | |
43331 | _ACEOF | |
43332 | ||
0b78747f | 43333 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
43334 | fi |
43335 | fi | |
43336 | ||
43337 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
43338 | cat >>confdefs.h <<\_ACEOF | |
43339 | #define wxUSE_DATAOBJ 1 | |
43340 | _ACEOF | |
43341 | ||
43342 | fi | |
43343 | else | |
43344 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
43345 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
43346 | ||
43347 | wxUSE_CLIPBOARD=no | |
43348 | wxUSE_DRAG_AND_DROP=no | |
43349 | wxUSE_DATAOBJ=no | |
43350 | wxUSE_OLE=no | |
43351 | fi | |
43352 | ||
43353 | if test "$wxUSE_METAFILE" = "yes"; then | |
43354 | cat >>confdefs.h <<\_ACEOF | |
43355 | #define wxUSE_METAFILE 1 | |
43356 | _ACEOF | |
43357 | ||
43358 | ||
43359 | cat >>confdefs.h <<\_ACEOF | |
43360 | #define wxUSE_ENH_METAFILE 1 | |
43361 | _ACEOF | |
43362 | ||
43363 | fi | |
43364 | fi | |
43365 | ||
43366 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 43367 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
43368 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
43369 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 43370 | wxUSE_IPC=no |
a848cd7e SC |
43371 | fi |
43372 | ||
0b78747f MW |
43373 | if test "$wxUSE_IPC" = "yes"; then |
43374 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43375 | #define wxUSE_IPC 1 |
43376 | _ACEOF | |
43377 | ||
0b78747f MW |
43378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
43379 | fi | |
a848cd7e SC |
43380 | fi |
43381 | ||
eb730a0c | 43382 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
43383 | if test "$wxUSE_MGL" = 1; then |
43384 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
43385 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
43386 | wxUSE_DATAOBJ=no | |
43387 | else | |
43388 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
43389 | #define wxUSE_DATAOBJ 1 |
43390 | _ACEOF | |
43391 | ||
2113bc77 | 43392 | fi |
eb730a0c JS |
43393 | else |
43394 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
43395 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
43396 | wxUSE_CLIPBOARD=no | |
43397 | wxUSE_DRAG_AND_DROP=no | |
43398 | fi | |
43399 | ||
a848cd7e SC |
43400 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
43401 | if test "$wxUSE_MGL" = 1; then | |
43402 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
43403 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
43404 | wxUSE_CLIPBOARD=no | |
43405 | fi | |
43406 | ||
43407 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
43408 | cat >>confdefs.h <<\_ACEOF | |
43409 | #define wxUSE_CLIPBOARD 1 | |
43410 | _ACEOF | |
43411 | ||
a848cd7e SC |
43412 | fi |
43413 | fi | |
43414 | ||
43415 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
43416 | if test "$wxUSE_GTK" = 1; then | |
43417 | if test "$WXGTK12" != 1; then | |
43418 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
43419 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
43420 | wxUSE_DRAG_AND_DROP=no | |
43421 | fi | |
43422 | fi | |
43423 | ||
43424 | if test "$wxUSE_MOTIF" = 1; then | |
43425 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
43426 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
43427 | wxUSE_DRAG_AND_DROP=no | |
43428 | fi | |
43429 | ||
43430 | if test "$wxUSE_X11" = 1; then | |
43431 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
43432 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
43433 | wxUSE_DRAG_AND_DROP=no | |
43434 | fi | |
43435 | ||
43436 | if test "$wxUSE_MGL" = 1; then | |
43437 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
43438 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
43439 | wxUSE_DRAG_AND_DROP=no | |
43440 | fi | |
43441 | ||
43442 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
43443 | cat >>confdefs.h <<\_ACEOF | |
43444 | #define wxUSE_DRAG_AND_DROP 1 | |
43445 | _ACEOF | |
43446 | ||
43447 | fi | |
43448 | ||
43449 | fi | |
43450 | ||
43451 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
43452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
43453 | fi | |
43454 | ||
43455 | if test "$wxUSE_SPLINES" = "yes" ; then | |
43456 | cat >>confdefs.h <<\_ACEOF | |
43457 | #define wxUSE_SPLINES 1 | |
43458 | _ACEOF | |
43459 | ||
43460 | fi | |
43461 | ||
fbe2ca43 SN |
43462 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
43463 | cat >>confdefs.h <<\_ACEOF | |
43464 | #define wxUSE_MOUSEWHEEL 1 | |
43465 | _ACEOF | |
43466 | ||
43467 | fi | |
43468 | ||
a848cd7e SC |
43469 | |
43470 | USES_CONTROLS=0 | |
43471 | if test "$wxUSE_CONTROLS" = "yes"; then | |
43472 | USES_CONTROLS=1 | |
43473 | fi | |
43474 | ||
43475 | if test "$wxUSE_ACCEL" = "yes"; then | |
43476 | cat >>confdefs.h <<\_ACEOF | |
43477 | #define wxUSE_ACCEL 1 | |
43478 | _ACEOF | |
43479 | ||
43480 | USES_CONTROLS=1 | |
43481 | fi | |
43482 | ||
43483 | if test "$wxUSE_BUTTON" = "yes"; then | |
43484 | cat >>confdefs.h <<\_ACEOF | |
43485 | #define wxUSE_BUTTON 1 | |
43486 | _ACEOF | |
43487 | ||
43488 | USES_CONTROLS=1 | |
43489 | fi | |
43490 | ||
43491 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
43492 | cat >>confdefs.h <<\_ACEOF | |
43493 | #define wxUSE_BMPBUTTON 1 | |
43494 | _ACEOF | |
43495 | ||
43496 | USES_CONTROLS=1 | |
43497 | fi | |
43498 | ||
43499 | if test "$wxUSE_CALCTRL" = "yes"; then | |
43500 | cat >>confdefs.h <<\_ACEOF | |
43501 | #define wxUSE_CALENDARCTRL 1 | |
43502 | _ACEOF | |
43503 | ||
43504 | USES_CONTROLS=1 | |
43505 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
43506 | fi | |
43507 | ||
43508 | if test "$wxUSE_CARET" = "yes"; then | |
43509 | cat >>confdefs.h <<\_ACEOF | |
43510 | #define wxUSE_CARET 1 | |
43511 | _ACEOF | |
43512 | ||
43513 | USES_CONTROLS=1 | |
43514 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
43515 | fi | |
43516 | ||
43517 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
43518 | cat >>confdefs.h <<\_ACEOF | |
43519 | #define wxUSE_COMBOBOX 1 | |
43520 | _ACEOF | |
43521 | ||
43522 | USES_CONTROLS=1 | |
43523 | fi | |
43524 | ||
43525 | if test "$wxUSE_CHOICE" = "yes"; then | |
43526 | cat >>confdefs.h <<\_ACEOF | |
43527 | #define wxUSE_CHOICE 1 | |
43528 | _ACEOF | |
43529 | ||
43530 | USES_CONTROLS=1 | |
43531 | fi | |
43532 | ||
92bbdbcd WS |
43533 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
43534 | cat >>confdefs.h <<\_ACEOF | |
43535 | #define wxUSE_CHOICEBOOK 1 | |
43536 | _ACEOF | |
43537 | ||
43538 | USES_CONTROLS=1 | |
43539 | fi | |
43540 | ||
a848cd7e SC |
43541 | if test "$wxUSE_CHECKBOX" = "yes"; then |
43542 | cat >>confdefs.h <<\_ACEOF | |
43543 | #define wxUSE_CHECKBOX 1 | |
43544 | _ACEOF | |
43545 | ||
43546 | USES_CONTROLS=1 | |
43547 | fi | |
43548 | ||
43549 | if test "$wxUSE_CHECKLST" = "yes"; then | |
43550 | cat >>confdefs.h <<\_ACEOF | |
43551 | #define wxUSE_CHECKLISTBOX 1 | |
43552 | _ACEOF | |
43553 | ||
43554 | USES_CONTROLS=1 | |
43555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
43556 | fi | |
43557 | ||
da98e9be VZ |
43558 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
43559 | cat >>confdefs.h <<\_ACEOF | |
43560 | #define wxUSE_DATEPICKCTRL 1 | |
43561 | _ACEOF | |
43562 | ||
43563 | USES_CONTROLS=1 | |
43564 | fi | |
43565 | ||
a848cd7e SC |
43566 | if test "$wxUSE_DISPLAY" = "yes"; then |
43567 | cat >>confdefs.h <<\_ACEOF | |
43568 | #define wxUSE_DISPLAY 1 | |
43569 | _ACEOF | |
43570 | ||
0b78747f | 43571 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
43572 | fi |
43573 | ||
43574 | if test "$wxUSE_GAUGE" = "yes"; then | |
43575 | cat >>confdefs.h <<\_ACEOF | |
43576 | #define wxUSE_GAUGE 1 | |
43577 | _ACEOF | |
43578 | ||
43579 | USES_CONTROLS=1 | |
43580 | fi | |
43581 | ||
43582 | if test "$wxUSE_GRID" = "yes"; then | |
43583 | cat >>confdefs.h <<\_ACEOF | |
43584 | #define wxUSE_GRID 1 | |
43585 | _ACEOF | |
43586 | ||
43587 | USES_CONTROLS=1 | |
43588 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
43589 | fi | |
43590 | ||
20e34ecc RR |
43591 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
43592 | cat >>confdefs.h <<\_ACEOF | |
43593 | #define wxUSE_DATAVIEWCTRL 1 | |
43594 | _ACEOF | |
43595 | ||
43596 | USES_CONTROLS=1 | |
43597 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
43598 | fi | |
43599 | ||
a848cd7e SC |
43600 | if test "$wxUSE_IMAGLIST" = "yes"; then |
43601 | cat >>confdefs.h <<\_ACEOF | |
43602 | #define wxUSE_IMAGLIST 1 | |
43603 | _ACEOF | |
43604 | ||
43605 | fi | |
43606 | ||
43607 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
43608 | cat >>confdefs.h <<\_ACEOF | |
43609 | #define wxUSE_LISTBOOK 1 | |
43610 | _ACEOF | |
43611 | ||
43612 | USES_CONTROLS=1 | |
43613 | fi | |
43614 | ||
43615 | if test "$wxUSE_LISTBOX" = "yes"; then | |
43616 | cat >>confdefs.h <<\_ACEOF | |
43617 | #define wxUSE_LISTBOX 1 | |
43618 | _ACEOF | |
43619 | ||
43620 | USES_CONTROLS=1 | |
0b78747f | 43621 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
43622 | fi |
43623 | ||
43624 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
43625 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43626 | cat >>confdefs.h <<\_ACEOF | |
43627 | #define wxUSE_LISTCTRL 1 | |
43628 | _ACEOF | |
43629 | ||
43630 | USES_CONTROLS=1 | |
43631 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
43632 | else | |
43633 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
43634 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43635 | fi | |
43636 | fi | |
43637 | ||
43638 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
43639 | cat >>confdefs.h <<\_ACEOF | |
43640 | #define wxUSE_NOTEBOOK 1 | |
43641 | _ACEOF | |
43642 | ||
43643 | USES_CONTROLS=1 | |
43644 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
43645 | fi | |
43646 | ||
43647 | ||
43648 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
43649 | cat >>confdefs.h <<\_ACEOF | |
43650 | #define wxUSE_RADIOBOX 1 | |
43651 | _ACEOF | |
43652 | ||
43653 | USES_CONTROLS=1 | |
43654 | fi | |
43655 | ||
43656 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
43657 | cat >>confdefs.h <<\_ACEOF | |
43658 | #define wxUSE_RADIOBTN 1 | |
43659 | _ACEOF | |
43660 | ||
43661 | USES_CONTROLS=1 | |
43662 | fi | |
43663 | ||
43664 | if test "$wxUSE_SASH" = "yes"; then | |
43665 | cat >>confdefs.h <<\_ACEOF | |
43666 | #define wxUSE_SASH 1 | |
43667 | _ACEOF | |
43668 | ||
43669 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
43670 | fi | |
43671 | ||
43672 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
43673 | cat >>confdefs.h <<\_ACEOF | |
43674 | #define wxUSE_SCROLLBAR 1 | |
43675 | _ACEOF | |
43676 | ||
43677 | USES_CONTROLS=1 | |
43678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
43679 | fi | |
43680 | ||
43681 | if test "$wxUSE_SLIDER" = "yes"; then | |
43682 | cat >>confdefs.h <<\_ACEOF | |
43683 | #define wxUSE_SLIDER 1 | |
43684 | _ACEOF | |
43685 | ||
43686 | USES_CONTROLS=1 | |
43687 | fi | |
43688 | ||
43689 | if test "$wxUSE_SPINBTN" = "yes"; then | |
43690 | cat >>confdefs.h <<\_ACEOF | |
43691 | #define wxUSE_SPINBTN 1 | |
43692 | _ACEOF | |
43693 | ||
43694 | USES_CONTROLS=1 | |
43695 | fi | |
43696 | ||
43697 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
43698 | cat >>confdefs.h <<\_ACEOF | |
43699 | #define wxUSE_SPINCTRL 1 | |
43700 | _ACEOF | |
43701 | ||
43702 | USES_CONTROLS=1 | |
43703 | fi | |
43704 | ||
43705 | if test "$wxUSE_SPLITTER" = "yes"; then | |
43706 | cat >>confdefs.h <<\_ACEOF | |
43707 | #define wxUSE_SPLITTER 1 | |
43708 | _ACEOF | |
43709 | ||
43710 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
43711 | fi | |
43712 | ||
43713 | if test "$wxUSE_STATBMP" = "yes"; then | |
43714 | cat >>confdefs.h <<\_ACEOF | |
43715 | #define wxUSE_STATBMP 1 | |
43716 | _ACEOF | |
43717 | ||
43718 | USES_CONTROLS=1 | |
43719 | fi | |
43720 | ||
43721 | if test "$wxUSE_STATBOX" = "yes"; then | |
43722 | cat >>confdefs.h <<\_ACEOF | |
43723 | #define wxUSE_STATBOX 1 | |
43724 | _ACEOF | |
43725 | ||
43726 | USES_CONTROLS=1 | |
43727 | fi | |
43728 | ||
43729 | if test "$wxUSE_STATTEXT" = "yes"; then | |
43730 | cat >>confdefs.h <<\_ACEOF | |
43731 | #define wxUSE_STATTEXT 1 | |
43732 | _ACEOF | |
43733 | ||
43734 | USES_CONTROLS=1 | |
43735 | fi | |
43736 | ||
43737 | if test "$wxUSE_STATLINE" = "yes"; then | |
43738 | cat >>confdefs.h <<\_ACEOF | |
43739 | #define wxUSE_STATLINE 1 | |
43740 | _ACEOF | |
43741 | ||
43742 | USES_CONTROLS=1 | |
43743 | fi | |
43744 | ||
43745 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
43746 | cat >>confdefs.h <<\_ACEOF |
43747 | #define wxUSE_NATIVE_STATUSBAR 1 | |
43748 | _ACEOF | |
43749 | ||
a848cd7e SC |
43750 | cat >>confdefs.h <<\_ACEOF |
43751 | #define wxUSE_STATUSBAR 1 | |
43752 | _ACEOF | |
43753 | ||
43754 | USES_CONTROLS=1 | |
43755 | ||
43756 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
43757 | fi | |
43758 | ||
43759 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
43760 | cat >>confdefs.h <<\_ACEOF | |
43761 | #define wxUSE_TAB_DIALOG 1 | |
43762 | _ACEOF | |
43763 | ||
a848cd7e SC |
43764 | fi |
43765 | ||
43766 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
43767 | cat >>confdefs.h <<\_ACEOF | |
43768 | #define wxUSE_TEXTCTRL 1 | |
43769 | _ACEOF | |
43770 | ||
43771 | USES_CONTROLS=1 | |
43772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
43773 | fi | |
43774 | ||
43775 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43776 | if test "$wxUSE_COCOA" = 1 ; then | |
43777 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
43778 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
43779 | wxUSE_TOGGLEBTN=no | |
43780 | fi | |
43781 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43782 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
43783 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
43784 | wxUSE_TOGGLEBTN=no | |
43785 | fi | |
43786 | ||
43787 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43788 | cat >>confdefs.h <<\_ACEOF | |
43789 | #define wxUSE_TOGGLEBTN 1 | |
43790 | _ACEOF | |
43791 | ||
43792 | USES_CONTROLS=1 | |
43793 | fi | |
43794 | fi | |
43795 | ||
43796 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
43797 | cat >>confdefs.h <<\_ACEOF | |
43798 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
43799 | _ACEOF | |
43800 | ||
43801 | wxUSE_TOOLBAR="yes" | |
43802 | USES_CONTROLS=1 | |
43803 | fi | |
43804 | ||
43805 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
43806 | cat >>confdefs.h <<\_ACEOF | |
43807 | #define wxUSE_TOOLBAR 1 | |
43808 | _ACEOF | |
43809 | ||
43810 | USES_CONTROLS=1 | |
43811 | ||
43812 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
43813 | wxUSE_TOOLBAR_NATIVE="yes" | |
43814 | fi | |
43815 | ||
43816 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
43817 | cat >>confdefs.h <<\_ACEOF | |
43818 | #define wxUSE_TOOLBAR_NATIVE 1 | |
43819 | _ACEOF | |
43820 | ||
43821 | USES_CONTROLS=1 | |
43822 | fi | |
43823 | ||
43824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
43825 | fi | |
43826 | ||
43827 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
43828 | if test "$wxUSE_MOTIF" = 1; then | |
43829 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
43830 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
43831 | else | |
43832 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43833 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
43834 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
43835 | else | |
43836 | cat >>confdefs.h <<\_ACEOF | |
43837 | #define wxUSE_TOOLTIPS 1 | |
43838 | _ACEOF | |
43839 | ||
43840 | fi | |
43841 | fi | |
43842 | fi | |
43843 | ||
0093c2fc VZ |
43844 | if test "$wxUSE_TREEBOOK" = "yes"; then |
43845 | cat >>confdefs.h <<\_ACEOF | |
43846 | #define wxUSE_TREEBOOK 1 | |
43847 | _ACEOF | |
43848 | ||
43849 | USES_CONTROLS=1 | |
43850 | fi | |
43851 | ||
a848cd7e SC |
43852 | if test "$wxUSE_TREECTRL" = "yes"; then |
43853 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43854 | cat >>confdefs.h <<\_ACEOF | |
43855 | #define wxUSE_TREECTRL 1 | |
43856 | _ACEOF | |
43857 | ||
43858 | USES_CONTROLS=1 | |
43859 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
43860 | else | |
43861 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
43862 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43863 | fi | |
43864 | fi | |
43865 | ||
43866 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
43867 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
43868 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
43869 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
43870 | else | |
43871 | if test "$wxUSE_PM" = 1; then | |
43872 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
43873 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
43874 | else | |
43875 | cat >>confdefs.h <<\_ACEOF | |
43876 | #define wxUSE_POPUPWIN 1 | |
43877 | _ACEOF | |
43878 | ||
0b78747f | 43879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
43880 | |
43881 | USES_CONTROLS=1 | |
43882 | fi | |
43883 | fi | |
43884 | fi | |
43885 | ||
0dcd06dd | 43886 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
43887 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
43888 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
43889 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
43890 | else | |
43891 | cat >>confdefs.h <<\_ACEOF | |
43892 | #define wxUSE_DIALUP_MANAGER 1 | |
43893 | _ACEOF | |
43894 | ||
43895 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
43896 | fi | |
43897 | fi | |
43898 | ||
a848cd7e SC |
43899 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
43900 | if test "$wxUSE_PM" = 1; then | |
43901 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
43902 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
43903 | else | |
43904 | cat >>confdefs.h <<\_ACEOF | |
43905 | #define wxUSE_TIPWINDOW 1 | |
43906 | _ACEOF | |
43907 | ||
43908 | fi | |
43909 | fi | |
43910 | ||
43911 | if test "$USES_CONTROLS" = 1; then | |
43912 | cat >>confdefs.h <<\_ACEOF | |
43913 | #define wxUSE_CONTROLS 1 | |
43914 | _ACEOF | |
43915 | ||
43916 | fi | |
43917 | ||
43918 | ||
43919 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
43920 | cat >>confdefs.h <<\_ACEOF | |
43921 | #define wxUSE_ACCESSIBILITY 1 | |
43922 | _ACEOF | |
43923 | ||
43924 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
43925 | fi | |
43926 | ||
38b4a946 VZ |
43927 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
43928 | cat >>confdefs.h <<\_ACEOF | |
43929 | #define wxUSE_DC_CACHEING 1 | |
43930 | _ACEOF | |
43931 | ||
43932 | fi | |
43933 | ||
a848cd7e SC |
43934 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
43935 | cat >>confdefs.h <<\_ACEOF | |
43936 | #define wxUSE_DRAGIMAGE 1 | |
43937 | _ACEOF | |
43938 | ||
43939 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
43940 | fi | |
43941 | ||
43942 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
43943 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
43944 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
43945 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
43946 | else | |
43947 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43948 | #define wxUSE_EXCEPTIONS 1 |
43949 | _ACEOF | |
43950 | ||
07bea8f0 VS |
43951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
43952 | fi | |
a848cd7e SC |
43953 | fi |
43954 | ||
43955 | USE_HTML=0 | |
43956 | if test "$wxUSE_HTML" = "yes"; then | |
43957 | cat >>confdefs.h <<\_ACEOF | |
43958 | #define wxUSE_HTML 1 | |
43959 | _ACEOF | |
43960 | ||
43961 | USE_HTML=1 | |
43962 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
43963 | if test "$wxUSE_MAC" = 1; then |
43964 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
43965 | fi | |
a848cd7e | 43966 | fi |
646b6ec1 | 43967 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 43968 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 43969 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 43970 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
43971 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
43972 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
43973 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
43974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43975 | else | |
43976 | cat >conftest.$ac_ext <<_ACEOF | |
43977 | /* confdefs.h. */ | |
43978 | _ACEOF | |
43979 | cat confdefs.h >>conftest.$ac_ext | |
43980 | cat >>conftest.$ac_ext <<_ACEOF | |
43981 | /* end confdefs.h. */ | |
43982 | #include <Carbon/Carbon.h> | |
43983 | ||
43984 | #include <WebKit/HIWebView.h> | |
43985 | _ACEOF | |
43986 | rm -f conftest.$ac_objext | |
43987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43988 | (eval $ac_compile) 2>conftest.er1 | |
43989 | ac_status=$? | |
43990 | grep -v '^ *+' conftest.er1 >conftest.err | |
43991 | rm -f conftest.er1 | |
43992 | cat conftest.err >&5 | |
43993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43994 | (exit $ac_status); } && | |
3565d135 RR |
43995 | { ac_try='test -z "$ac_c_werror_flag" |
43996 | || test ! -s conftest.err' | |
07bea8f0 VS |
43997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43998 | (eval $ac_try) 2>&5 | |
43999 | ac_status=$? | |
44000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44001 | (exit $ac_status); }; } && | |
44002 | { ac_try='test -s conftest.$ac_objext' | |
44003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44004 | (eval $ac_try) 2>&5 | |
44005 | ac_status=$? | |
44006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44007 | (exit $ac_status); }; }; then | |
44008 | ac_cv_header_WebKit_HIWebView_h=yes | |
44009 | else | |
44010 | echo "$as_me: failed program was:" >&5 | |
44011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44012 | ||
44013 | ac_cv_header_WebKit_HIWebView_h=no | |
44014 | fi | |
44015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44016 | fi | |
44017 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
44018 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
44019 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
44020 | ||
44021 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
44022 | #define wxUSE_WEBKIT 1 |
44023 | _ACEOF | |
44024 | ||
07bea8f0 VS |
44025 | WEBKIT_LINK="-framework WebKit" |
44026 | ||
44027 | else | |
44028 | ||
44029 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
44030 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
44031 | wxUSE_WEBKIT=no | |
44032 | ||
646b6ec1 VS |
44033 | fi |
44034 | ||
07bea8f0 VS |
44035 | |
44036 | CPPFLAGS="$old_CPPFLAGS" | |
44037 | elif test "$wxUSE_COCOA" = 1; then | |
44038 | cat >>confdefs.h <<\_ACEOF | |
44039 | #define wxUSE_WEBKIT 1 | |
44040 | _ACEOF | |
44041 | ||
44042 | else | |
44043 | wxUSE_WEBKIT=no | |
44044 | fi | |
44045 | fi | |
44046 | ||
9a8f0513 VS |
44047 | USE_XRC=0 |
44048 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
44049 | if test "$wxUSE_XML" != "yes"; then |
44050 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
44051 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
44052 | wxUSE_XRC=no | |
44053 | else | |
44054 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
44055 | #define wxUSE_XRC 1 |
44056 | _ACEOF | |
44057 | ||
d2ebf0b7 VS |
44058 | USE_XRC=1 |
44059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
44060 | fi | |
9a8f0513 | 44061 | fi |
07bea8f0 | 44062 | |
a848cd7e SC |
44063 | if test "$wxUSE_MENUS" = "yes"; then |
44064 | cat >>confdefs.h <<\_ACEOF | |
44065 | #define wxUSE_MENUS 1 | |
44066 | _ACEOF | |
44067 | ||
44068 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
44069 | fi | |
44070 | ||
44071 | if test "$wxUSE_METAFILE" = "yes"; then | |
44072 | cat >>confdefs.h <<\_ACEOF | |
44073 | #define wxUSE_METAFILE 1 | |
44074 | _ACEOF | |
44075 | ||
44076 | fi | |
44077 | ||
44078 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
44079 | cat >>confdefs.h <<\_ACEOF | |
44080 | #define wxUSE_MIMETYPE 1 | |
44081 | _ACEOF | |
44082 | ||
44083 | fi | |
44084 | ||
44085 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
44086 | cat >>confdefs.h <<\_ACEOF | |
44087 | #define wxUSE_MINIFRAME 1 | |
44088 | _ACEOF | |
44089 | ||
44090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
44091 | fi | |
44092 | ||
44093 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
44094 | cat >>confdefs.h <<\_ACEOF | |
44095 | #define wxUSE_SYSTEM_OPTIONS 1 | |
44096 | _ACEOF | |
44097 | ||
44098 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 44099 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
44100 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
44101 | fi | |
44102 | fi | |
44103 | ||
44104 | ||
44105 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
44106 | cat >>confdefs.h <<\_ACEOF | |
44107 | #define wxUSE_VALIDATORS 1 | |
44108 | _ACEOF | |
44109 | ||
44110 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
44111 | fi | |
44112 | ||
44113 | if test "$wxUSE_PALETTE" = "yes" ; then | |
44114 | cat >>confdefs.h <<\_ACEOF | |
44115 | #define wxUSE_PALETTE 1 | |
44116 | _ACEOF | |
44117 | ||
44118 | fi | |
44119 | ||
44120 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
44121 | LIBS=" -lunicows $LIBS" | |
44122 | fi | |
44123 | ||
91dea314 MW |
44124 | USE_RICHTEXT=0 |
44125 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
44126 | cat >>confdefs.h <<\_ACEOF | |
44127 | #define wxUSE_RICHTEXT 1 | |
44128 | _ACEOF | |
44129 | ||
44130 | USE_RICHTEXT=1 | |
44131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
44132 | fi | |
44133 | ||
a848cd7e SC |
44134 | |
44135 | if test "$wxUSE_IMAGE" = "yes" ; then | |
44136 | cat >>confdefs.h <<\_ACEOF | |
44137 | #define wxUSE_IMAGE 1 | |
44138 | _ACEOF | |
44139 | ||
44140 | ||
44141 | if test "$wxUSE_GIF" = "yes" ; then | |
44142 | cat >>confdefs.h <<\_ACEOF | |
44143 | #define wxUSE_GIF 1 | |
44144 | _ACEOF | |
44145 | ||
44146 | fi | |
44147 | ||
44148 | if test "$wxUSE_PCX" = "yes" ; then | |
44149 | cat >>confdefs.h <<\_ACEOF | |
44150 | #define wxUSE_PCX 1 | |
44151 | _ACEOF | |
44152 | ||
44153 | fi | |
44154 | ||
44155 | if test "$wxUSE_IFF" = "yes" ; then | |
44156 | cat >>confdefs.h <<\_ACEOF | |
44157 | #define wxUSE_IFF 1 | |
44158 | _ACEOF | |
44159 | ||
44160 | fi | |
44161 | ||
44162 | if test "$wxUSE_PNM" = "yes" ; then | |
44163 | cat >>confdefs.h <<\_ACEOF | |
44164 | #define wxUSE_PNM 1 | |
44165 | _ACEOF | |
44166 | ||
44167 | fi | |
44168 | ||
44169 | if test "$wxUSE_XPM" = "yes" ; then | |
44170 | cat >>confdefs.h <<\_ACEOF | |
44171 | #define wxUSE_XPM 1 | |
44172 | _ACEOF | |
44173 | ||
44174 | fi | |
44175 | ||
44176 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
44177 | cat >>confdefs.h <<\_ACEOF | |
44178 | #define wxUSE_ICO_CUR 1 | |
44179 | _ACEOF | |
44180 | ||
44181 | fi | |
44182 | fi | |
44183 | ||
44184 | ||
44185 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
44186 | cat >>confdefs.h <<\_ACEOF | |
44187 | #define wxUSE_CHOICEDLG 1 | |
44188 | _ACEOF | |
44189 | ||
44190 | fi | |
44191 | ||
44192 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
44193 | cat >>confdefs.h <<\_ACEOF | |
44194 | #define wxUSE_COLOURDLG 1 | |
44195 | _ACEOF | |
44196 | ||
44197 | fi | |
44198 | ||
44199 | if test "$wxUSE_FILEDLG" = "yes"; then | |
44200 | cat >>confdefs.h <<\_ACEOF | |
44201 | #define wxUSE_FILEDLG 1 | |
44202 | _ACEOF | |
44203 | ||
44204 | fi | |
44205 | ||
44206 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
44207 | cat >>confdefs.h <<\_ACEOF | |
44208 | #define wxUSE_FINDREPLDLG 1 | |
44209 | _ACEOF | |
44210 | ||
44211 | fi | |
44212 | ||
44213 | if test "$wxUSE_FONTDLG" = "yes"; then | |
44214 | cat >>confdefs.h <<\_ACEOF | |
44215 | #define wxUSE_FONTDLG 1 | |
44216 | _ACEOF | |
44217 | ||
44218 | fi | |
44219 | ||
44220 | if test "$wxUSE_DIRDLG" = "yes"; then | |
44221 | if test "$wxUSE_TREECTRL" != "yes"; then | |
44222 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
44223 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
44224 | else | |
44225 | cat >>confdefs.h <<\_ACEOF | |
44226 | #define wxUSE_DIRDLG 1 | |
44227 | _ACEOF | |
44228 | ||
44229 | fi | |
44230 | fi | |
44231 | ||
44232 | if test "$wxUSE_MSGDLG" = "yes"; then | |
44233 | cat >>confdefs.h <<\_ACEOF | |
44234 | #define wxUSE_MSGDLG 1 | |
44235 | _ACEOF | |
44236 | ||
44237 | fi | |
44238 | ||
44239 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
44240 | cat >>confdefs.h <<\_ACEOF | |
44241 | #define wxUSE_NUMBERDLG 1 | |
44242 | _ACEOF | |
44243 | ||
44244 | fi | |
44245 | ||
44246 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
44247 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44248 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
44249 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
44250 | else | |
44251 | cat >>confdefs.h <<\_ACEOF | |
44252 | #define wxUSE_PROGRESSDLG 1 | |
44253 | _ACEOF | |
44254 | ||
44255 | fi | |
44256 | fi | |
44257 | ||
44258 | if test "$wxUSE_SPLASH" = "yes"; then | |
44259 | cat >>confdefs.h <<\_ACEOF | |
44260 | #define wxUSE_SPLASH 1 | |
44261 | _ACEOF | |
44262 | ||
2057db16 | 44263 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
44264 | fi |
44265 | ||
44266 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
44267 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44268 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
44269 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
44270 | else | |
44271 | cat >>confdefs.h <<\_ACEOF | |
44272 | #define wxUSE_STARTUP_TIPS 1 | |
44273 | _ACEOF | |
44274 | ||
44275 | fi | |
44276 | fi | |
44277 | ||
44278 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
44279 | cat >>confdefs.h <<\_ACEOF | |
44280 | #define wxUSE_TEXTDLG 1 | |
44281 | _ACEOF | |
44282 | ||
44283 | fi | |
44284 | ||
44285 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
44286 | cat >>confdefs.h <<\_ACEOF | |
44287 | #define wxUSE_WIZARDDLG 1 | |
44288 | _ACEOF | |
44289 | ||
44290 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
44291 | fi | |
44292 | ||
44293 | ||
ce756cb0 | 44294 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
44295 | if test "$wxUSE_GTK" = 1; then |
44296 | wxUSE_GSTREAMER="yes" | |
44297 | ||
ce756cb0 | 44298 | |
dae87f93 | 44299 | succeeded=no |
ce756cb0 | 44300 | |
dae87f93 RN |
44301 | if test -z "$PKG_CONFIG"; then |
44302 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44303 | set dummy pkg-config; ac_word=$2 | |
44304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44306 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
44307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44308 | else | |
44309 | case $PKG_CONFIG in | |
44310 | [\\/]* | ?:[\\/]*) | |
44311 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44312 | ;; | |
44313 | *) | |
44314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44315 | for as_dir in $PATH | |
44316 | do | |
44317 | IFS=$as_save_IFS | |
44318 | test -z "$as_dir" && as_dir=. | |
44319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44321 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
44322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44323 | break 2 | |
44324 | fi | |
44325 | done | |
44326 | done | |
44327 | ||
44328 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
44329 | ;; | |
44330 | esac | |
44331 | fi | |
44332 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
44333 | ||
44334 | if test -n "$PKG_CONFIG"; then | |
44335 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44336 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
44337 | else | |
44338 | echo "$as_me:$LINENO: result: no" >&5 | |
44339 | echo "${ECHO_T}no" >&6 | |
44340 | fi | |
44341 | ||
44342 | fi | |
44343 | ||
44344 | if test "$PKG_CONFIG" = "no" ; then | |
44345 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44346 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44347 | echo "*** to the full path to pkg-config." | |
44348 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44349 | else | |
44350 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44351 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
44352 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
44353 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
44354 | ||
44355 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
44356 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 44357 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44358 | succeeded=yes |
ce756cb0 | 44359 | |
dae87f93 RN |
44360 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
44361 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
44362 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
44363 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
44364 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
44365 | ||
44366 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
44367 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
44368 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
44369 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
44370 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
44371 | else | |
44372 | GSTREAMER_CFLAGS="" | |
44373 | GSTREAMER_LIBS="" | |
44374 | ## If we have a custom action on failure, don't print errors, but | |
44375 | ## do set a variable so people can do so. | |
44376 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 44377 | |
dae87f93 RN |
44378 | fi |
44379 | ||
44380 | ||
44381 | ||
44382 | else | |
44383 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44384 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44385 | fi | |
44386 | fi | |
44387 | ||
44388 | if test $succeeded = yes; then | |
44389 | ||
c92ad099 | 44390 | CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS" |
dae87f93 | 44391 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" |
ce756cb0 | 44392 | |
ce756cb0 | 44393 | else |
dae87f93 RN |
44394 | |
44395 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
44396 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
44397 | wxUSE_GSTREAMER="no" | |
44398 | ||
44399 | fi | |
44400 | ||
44401 | ||
44402 | ||
44403 | ||
44404 | ||
44405 | if test "x$GST_INSPECT" == "x"; then | |
44406 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
44407 | set dummy gst-inspect; ac_word=$2 | |
44408 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44410 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
44411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44412 | else | |
44413 | if test -n "$GST_INSPECT"; then | |
44414 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
44415 | else | |
44416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44417 | for as_dir in $PATH | |
44418 | do | |
44419 | IFS=$as_save_IFS | |
44420 | test -z "$as_dir" && as_dir=. | |
44421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44422 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44423 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
44424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44425 | break 2 | |
ce756cb0 | 44426 | fi |
dae87f93 RN |
44427 | done |
44428 | done | |
44429 | ||
44430 | fi | |
44431 | fi | |
44432 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
44433 | if test -n "$GST_INSPECT"; then | |
44434 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
44435 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
44436 | else | |
44437 | echo "$as_me:$LINENO: result: no" >&5 | |
44438 | echo "${ECHO_T}no" >&6 | |
44439 | fi | |
44440 | ||
44441 | fi | |
44442 | ||
44443 | if test "x$GST_INSPECT" != "x"; then | |
44444 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
44445 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
44446 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
44447 | echo "$as_me:$LINENO: result: found." >&5 | |
44448 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 44449 | |
ce756cb0 | 44450 | else |
dae87f93 RN |
44451 | echo "$as_me:$LINENO: result: not found." >&5 |
44452 | echo "${ECHO_T}not found." >&6 | |
44453 | ||
44454 | wxUSE_GSTREAMER="no" | |
44455 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
44456 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
44457 | ||
44458 | fi | |
44459 | fi | |
44460 | ||
44461 | ||
44462 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
44463 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
44464 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
44465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44466 | else | |
44467 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
44468 | /* confdefs.h. */ |
44469 | _ACEOF | |
44470 | cat confdefs.h >>conftest.$ac_ext | |
44471 | cat >>conftest.$ac_ext <<_ACEOF | |
44472 | /* end confdefs.h. */ | |
dae87f93 | 44473 | #include <gst/gst.h> |
ce756cb0 | 44474 | |
dae87f93 | 44475 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
44476 | _ACEOF |
44477 | rm -f conftest.$ac_objext | |
44478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44479 | (eval $ac_compile) 2>conftest.er1 | |
44480 | ac_status=$? | |
44481 | grep -v '^ *+' conftest.er1 >conftest.err | |
44482 | rm -f conftest.er1 | |
44483 | cat conftest.err >&5 | |
44484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44485 | (exit $ac_status); } && | |
3565d135 RR |
44486 | { ac_try='test -z "$ac_c_werror_flag" |
44487 | || test ! -s conftest.err' | |
ce756cb0 RN |
44488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44489 | (eval $ac_try) 2>&5 | |
44490 | ac_status=$? | |
44491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44492 | (exit $ac_status); }; } && | |
44493 | { ac_try='test -s conftest.$ac_objext' | |
44494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44495 | (eval $ac_try) 2>&5 | |
44496 | ac_status=$? | |
44497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44498 | (exit $ac_status); }; }; then | |
dae87f93 | 44499 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
44500 | else |
44501 | echo "$as_me: failed program was:" >&5 | |
44502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44503 | ||
dae87f93 | 44504 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
44505 | fi |
44506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
44507 | fi |
44508 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
44509 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
44510 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
44511 | : | |
44512 | else | |
ce756cb0 | 44513 | |
dae87f93 RN |
44514 | wxUSE_GSTREAMER="no" |
44515 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
44516 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 44517 | |
dae87f93 | 44518 | fi |
ce756cb0 | 44519 | |
dae87f93 RN |
44520 | |
44521 | ||
44522 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
44523 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
44524 | ||
0ad5d837 VZ |
44525 | ac_find_libraries= |
44526 | for ac_dir in $SEARCH_LIB; | |
ce756cb0 | 44527 | do |
3eca31dc | 44528 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
44529 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
44530 | ac_find_libraries=$ac_dir | |
44531 | break 2 | |
44532 | fi | |
44533 | done | |
44534 | done | |
44535 | ||
ce756cb0 | 44536 | |
dae87f93 RN |
44537 | if test "$ac_find_libraries" = "" ; then |
44538 | echo "$as_me:$LINENO: result: no" >&5 | |
44539 | echo "${ECHO_T}no" >&6 | |
44540 | wxUSE_GSTREAMER="no" | |
44541 | else | |
44542 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 44543 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44544 | fi |
ce756cb0 | 44545 | |
dae87f93 RN |
44546 | if test "$wxUSE_GSTREAMER" = "yes"; then |
44547 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
44548 | #define wxUSE_GSTREAMER 1 |
44549 | _ACEOF | |
44550 | ||
dae87f93 RN |
44551 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
44552 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
44553 | fi |
44554 | fi | |
44555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
44556 | cat >>confdefs.h <<\_ACEOF | |
44557 | #define wxUSE_MEDIACTRL 1 | |
44558 | _ACEOF | |
44559 | ||
44560 | fi | |
44561 | ||
44562 | ||
a848cd7e SC |
44563 | if test "$cross_compiling" = "yes"; then |
44564 | OSINFO="\"$host\"" | |
44565 | else | |
44566 | OSINFO=`uname -s -r -m` | |
44567 | OSINFO="\"$OSINFO\"" | |
44568 | fi | |
44569 | ||
44570 | cat >>confdefs.h <<_ACEOF | |
44571 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
44572 | _ACEOF | |
44573 | ||
44574 | ||
44575 | ||
44576 | if test "x$prefix" != "xNONE"; then | |
44577 | wxPREFIX=$prefix | |
44578 | else | |
44579 | wxPREFIX=$ac_default_prefix | |
44580 | fi | |
44581 | ||
44582 | cat >>confdefs.h <<_ACEOF | |
44583 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
44584 | _ACEOF | |
44585 | ||
44586 | ||
a848cd7e SC |
44587 | |
44588 | ||
44589 | CORE_BASE_LIBS="net base" | |
44590 | CORE_GUI_LIBS="adv core" | |
44591 | ||
44592 | if test "$wxUSE_XML" = "yes" ; then | |
44593 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
44594 | fi | |
44595 | if test "$wxUSE_ODBC" != "no" ; then | |
44596 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
44597 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
44598 | fi | |
44599 | if test "$wxUSE_HTML" = "yes" ; then | |
44600 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
44601 | fi | |
61639efb VZ |
44602 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
44603 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
44604 | fi | |
9a8f0513 VS |
44605 | if test "$wxUSE_XRC" = "yes" ; then |
44606 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
44607 | fi | |
a848cd7e SC |
44608 | |
44609 | if test "$wxUSE_GUI" != "yes"; then | |
44610 | CORE_GUI_LIBS="" | |
44611 | fi | |
44612 | ||
44613 | ||
44614 | ||
44615 | ||
44616 | ||
44617 | ||
44618 | ||
44619 | ||
44620 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 44621 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
44622 | if test "$USE_DARWIN" = 1; then |
44623 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44624 | else | |
44625 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
44626 | fi | |
07bea8f0 | 44627 | fi |
5dcf30a0 | 44628 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
44629 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
44630 | else | |
44631 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 44632 | fi |
a848cd7e SC |
44633 | fi |
44634 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 44635 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
44636 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
44637 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44638 | fi | |
a848cd7e | 44639 | fi |
19b27e78 MW |
44640 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
44641 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
44642 | fi | |
a848cd7e SC |
44643 | |
44644 | ||
44645 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
44646 | ||
44647 | have_cos=0 | |
44648 | have_floor=0 | |
44649 | ||
44650 | for ac_func in cos | |
44651 | do | |
44652 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44653 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44654 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44655 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44657 | else | |
44658 | cat >conftest.$ac_ext <<_ACEOF | |
44659 | /* confdefs.h. */ | |
44660 | _ACEOF | |
44661 | cat confdefs.h >>conftest.$ac_ext | |
44662 | cat >>conftest.$ac_ext <<_ACEOF | |
44663 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44664 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44665 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44666 | #define $ac_func innocuous_$ac_func | |
44667 | ||
a848cd7e SC |
44668 | /* System header to define __stub macros and hopefully few prototypes, |
44669 | which can conflict with char $ac_func (); below. | |
44670 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44671 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44672 | |
a848cd7e SC |
44673 | #ifdef __STDC__ |
44674 | # include <limits.h> | |
44675 | #else | |
44676 | # include <assert.h> | |
44677 | #endif | |
ac1cb8d3 VS |
44678 | |
44679 | #undef $ac_func | |
44680 | ||
a848cd7e SC |
44681 | /* Override any gcc2 internal prototype to avoid an error. */ |
44682 | #ifdef __cplusplus | |
44683 | extern "C" | |
44684 | { | |
44685 | #endif | |
44686 | /* We use char because int might match the return type of a gcc2 | |
44687 | builtin and then its argument prototype would still apply. */ | |
44688 | char $ac_func (); | |
44689 | /* The GNU C library defines this for functions which it implements | |
44690 | to always fail with ENOSYS. Some functions are actually named | |
44691 | something starting with __ and the normal name is an alias. */ | |
44692 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44693 | choke me | |
44694 | #else | |
44695 | char (*f) () = $ac_func; | |
44696 | #endif | |
44697 | #ifdef __cplusplus | |
44698 | } | |
44699 | #endif | |
44700 | ||
44701 | int | |
44702 | main () | |
44703 | { | |
44704 | return f != $ac_func; | |
44705 | ; | |
44706 | return 0; | |
44707 | } | |
44708 | _ACEOF | |
44709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44711 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44712 | ac_status=$? |
ac1cb8d3 VS |
44713 | grep -v '^ *+' conftest.er1 >conftest.err |
44714 | rm -f conftest.er1 | |
44715 | cat conftest.err >&5 | |
a848cd7e SC |
44716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44717 | (exit $ac_status); } && | |
3565d135 RR |
44718 | { ac_try='test -z "$ac_c_werror_flag" |
44719 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44721 | (eval $ac_try) 2>&5 | |
44722 | ac_status=$? | |
44723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44724 | (exit $ac_status); }; } && | |
44725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44727 | (eval $ac_try) 2>&5 | |
44728 | ac_status=$? | |
44729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44730 | (exit $ac_status); }; }; then | |
44731 | eval "$as_ac_var=yes" | |
44732 | else | |
44733 | echo "$as_me: failed program was:" >&5 | |
44734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44735 | ||
44736 | eval "$as_ac_var=no" | |
44737 | fi | |
ac1cb8d3 VS |
44738 | rm -f conftest.err conftest.$ac_objext \ |
44739 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44740 | fi |
44741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44742 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44743 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44744 | cat >>confdefs.h <<_ACEOF | |
44745 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44746 | _ACEOF | |
44747 | have_cos=1 | |
44748 | fi | |
44749 | done | |
44750 | ||
44751 | ||
44752 | for ac_func in floor | |
44753 | do | |
44754 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44755 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44756 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44757 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44759 | else | |
44760 | cat >conftest.$ac_ext <<_ACEOF | |
44761 | /* confdefs.h. */ | |
44762 | _ACEOF | |
44763 | cat confdefs.h >>conftest.$ac_ext | |
44764 | cat >>conftest.$ac_ext <<_ACEOF | |
44765 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44766 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44768 | #define $ac_func innocuous_$ac_func | |
44769 | ||
a848cd7e SC |
44770 | /* System header to define __stub macros and hopefully few prototypes, |
44771 | which can conflict with char $ac_func (); below. | |
44772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44773 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44774 | |
a848cd7e SC |
44775 | #ifdef __STDC__ |
44776 | # include <limits.h> | |
44777 | #else | |
44778 | # include <assert.h> | |
44779 | #endif | |
ac1cb8d3 VS |
44780 | |
44781 | #undef $ac_func | |
44782 | ||
a848cd7e SC |
44783 | /* Override any gcc2 internal prototype to avoid an error. */ |
44784 | #ifdef __cplusplus | |
44785 | extern "C" | |
44786 | { | |
44787 | #endif | |
44788 | /* We use char because int might match the return type of a gcc2 | |
44789 | builtin and then its argument prototype would still apply. */ | |
44790 | char $ac_func (); | |
44791 | /* The GNU C library defines this for functions which it implements | |
44792 | to always fail with ENOSYS. Some functions are actually named | |
44793 | something starting with __ and the normal name is an alias. */ | |
44794 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44795 | choke me | |
44796 | #else | |
44797 | char (*f) () = $ac_func; | |
44798 | #endif | |
44799 | #ifdef __cplusplus | |
44800 | } | |
44801 | #endif | |
44802 | ||
44803 | int | |
44804 | main () | |
44805 | { | |
44806 | return f != $ac_func; | |
44807 | ; | |
44808 | return 0; | |
44809 | } | |
44810 | _ACEOF | |
44811 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44813 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44814 | ac_status=$? |
ac1cb8d3 VS |
44815 | grep -v '^ *+' conftest.er1 >conftest.err |
44816 | rm -f conftest.er1 | |
44817 | cat conftest.err >&5 | |
a848cd7e SC |
44818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44819 | (exit $ac_status); } && | |
3565d135 RR |
44820 | { ac_try='test -z "$ac_c_werror_flag" |
44821 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44823 | (eval $ac_try) 2>&5 | |
44824 | ac_status=$? | |
44825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44826 | (exit $ac_status); }; } && | |
44827 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44829 | (eval $ac_try) 2>&5 | |
44830 | ac_status=$? | |
44831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44832 | (exit $ac_status); }; }; then | |
44833 | eval "$as_ac_var=yes" | |
44834 | else | |
44835 | echo "$as_me: failed program was:" >&5 | |
44836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44837 | ||
44838 | eval "$as_ac_var=no" | |
44839 | fi | |
ac1cb8d3 VS |
44840 | rm -f conftest.err conftest.$ac_objext \ |
44841 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44842 | fi |
44843 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44844 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44845 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44846 | cat >>confdefs.h <<_ACEOF | |
44847 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44848 | _ACEOF | |
44849 | have_floor=1 | |
44850 | fi | |
44851 | done | |
44852 | ||
44853 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
44854 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
44855 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
44856 | echo "$as_me:$LINENO: result: yes" >&5 | |
44857 | echo "${ECHO_T}yes" >&6 | |
44858 | else | |
44859 | echo "$as_me:$LINENO: result: no" >&5 | |
44860 | echo "${ECHO_T}no" >&6 | |
44861 | LIBS="$LIBS -lm" | |
44862 | # use different functions to avoid configure caching | |
44863 | have_sin=0 | |
44864 | have_ceil=0 | |
44865 | ||
44866 | for ac_func in sin | |
44867 | do | |
44868 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44869 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44870 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44871 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44873 | else | |
44874 | cat >conftest.$ac_ext <<_ACEOF | |
44875 | /* confdefs.h. */ | |
44876 | _ACEOF | |
44877 | cat confdefs.h >>conftest.$ac_ext | |
44878 | cat >>conftest.$ac_ext <<_ACEOF | |
44879 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44880 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44881 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44882 | #define $ac_func innocuous_$ac_func | |
44883 | ||
a848cd7e SC |
44884 | /* System header to define __stub macros and hopefully few prototypes, |
44885 | which can conflict with char $ac_func (); below. | |
44886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44887 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44888 | |
a848cd7e SC |
44889 | #ifdef __STDC__ |
44890 | # include <limits.h> | |
44891 | #else | |
44892 | # include <assert.h> | |
44893 | #endif | |
ac1cb8d3 VS |
44894 | |
44895 | #undef $ac_func | |
44896 | ||
a848cd7e SC |
44897 | /* Override any gcc2 internal prototype to avoid an error. */ |
44898 | #ifdef __cplusplus | |
44899 | extern "C" | |
44900 | { | |
44901 | #endif | |
44902 | /* We use char because int might match the return type of a gcc2 | |
44903 | builtin and then its argument prototype would still apply. */ | |
44904 | char $ac_func (); | |
44905 | /* The GNU C library defines this for functions which it implements | |
44906 | to always fail with ENOSYS. Some functions are actually named | |
44907 | something starting with __ and the normal name is an alias. */ | |
44908 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44909 | choke me | |
44910 | #else | |
44911 | char (*f) () = $ac_func; | |
44912 | #endif | |
44913 | #ifdef __cplusplus | |
44914 | } | |
44915 | #endif | |
44916 | ||
44917 | int | |
44918 | main () | |
44919 | { | |
44920 | return f != $ac_func; | |
44921 | ; | |
44922 | return 0; | |
44923 | } | |
44924 | _ACEOF | |
44925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44927 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44928 | ac_status=$? |
ac1cb8d3 VS |
44929 | grep -v '^ *+' conftest.er1 >conftest.err |
44930 | rm -f conftest.er1 | |
44931 | cat conftest.err >&5 | |
a848cd7e SC |
44932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44933 | (exit $ac_status); } && | |
3565d135 RR |
44934 | { ac_try='test -z "$ac_c_werror_flag" |
44935 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44937 | (eval $ac_try) 2>&5 | |
44938 | ac_status=$? | |
44939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44940 | (exit $ac_status); }; } && | |
44941 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44943 | (eval $ac_try) 2>&5 | |
44944 | ac_status=$? | |
44945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44946 | (exit $ac_status); }; }; then | |
44947 | eval "$as_ac_var=yes" | |
44948 | else | |
44949 | echo "$as_me: failed program was:" >&5 | |
44950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44951 | ||
44952 | eval "$as_ac_var=no" | |
44953 | fi | |
ac1cb8d3 VS |
44954 | rm -f conftest.err conftest.$ac_objext \ |
44955 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44956 | fi |
44957 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44958 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44959 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44960 | cat >>confdefs.h <<_ACEOF | |
44961 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44962 | _ACEOF | |
44963 | have_sin=1 | |
44964 | fi | |
44965 | done | |
44966 | ||
44967 | ||
44968 | for ac_func in ceil | |
44969 | do | |
44970 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44971 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44972 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44973 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44975 | else | |
44976 | cat >conftest.$ac_ext <<_ACEOF | |
44977 | /* confdefs.h. */ | |
44978 | _ACEOF | |
44979 | cat confdefs.h >>conftest.$ac_ext | |
44980 | cat >>conftest.$ac_ext <<_ACEOF | |
44981 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44982 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44983 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44984 | #define $ac_func innocuous_$ac_func | |
44985 | ||
a848cd7e SC |
44986 | /* System header to define __stub macros and hopefully few prototypes, |
44987 | which can conflict with char $ac_func (); below. | |
44988 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44989 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44990 | |
a848cd7e SC |
44991 | #ifdef __STDC__ |
44992 | # include <limits.h> | |
44993 | #else | |
44994 | # include <assert.h> | |
44995 | #endif | |
ac1cb8d3 VS |
44996 | |
44997 | #undef $ac_func | |
44998 | ||
a848cd7e SC |
44999 | /* Override any gcc2 internal prototype to avoid an error. */ |
45000 | #ifdef __cplusplus | |
45001 | extern "C" | |
45002 | { | |
45003 | #endif | |
45004 | /* We use char because int might match the return type of a gcc2 | |
45005 | builtin and then its argument prototype would still apply. */ | |
45006 | char $ac_func (); | |
45007 | /* The GNU C library defines this for functions which it implements | |
45008 | to always fail with ENOSYS. Some functions are actually named | |
45009 | something starting with __ and the normal name is an alias. */ | |
45010 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
45011 | choke me | |
45012 | #else | |
45013 | char (*f) () = $ac_func; | |
45014 | #endif | |
45015 | #ifdef __cplusplus | |
45016 | } | |
45017 | #endif | |
45018 | ||
45019 | int | |
45020 | main () | |
45021 | { | |
45022 | return f != $ac_func; | |
45023 | ; | |
45024 | return 0; | |
45025 | } | |
45026 | _ACEOF | |
45027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
45028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 45029 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 45030 | ac_status=$? |
ac1cb8d3 VS |
45031 | grep -v '^ *+' conftest.er1 >conftest.err |
45032 | rm -f conftest.er1 | |
45033 | cat conftest.err >&5 | |
a848cd7e SC |
45034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45035 | (exit $ac_status); } && | |
3565d135 RR |
45036 | { ac_try='test -z "$ac_c_werror_flag" |
45037 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
45038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45039 | (eval $ac_try) 2>&5 | |
45040 | ac_status=$? | |
45041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45042 | (exit $ac_status); }; } && | |
45043 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
45044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45045 | (eval $ac_try) 2>&5 | |
45046 | ac_status=$? | |
45047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45048 | (exit $ac_status); }; }; then | |
45049 | eval "$as_ac_var=yes" | |
45050 | else | |
45051 | echo "$as_me: failed program was:" >&5 | |
45052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45053 | ||
45054 | eval "$as_ac_var=no" | |
45055 | fi | |
ac1cb8d3 VS |
45056 | rm -f conftest.err conftest.$ac_objext \ |
45057 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
45058 | fi |
45059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
45060 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
45061 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45062 | cat >>confdefs.h <<_ACEOF | |
45063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
45064 | _ACEOF | |
45065 | have_ceil=1 | |
45066 | fi | |
45067 | done | |
45068 | ||
45069 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
45070 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
45071 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
45072 | echo "$as_me:$LINENO: result: yes" >&5 | |
45073 | echo "${ECHO_T}yes" >&6 | |
45074 | else | |
45075 | echo "$as_me:$LINENO: result: no" >&5 | |
45076 | echo "${ECHO_T}no" >&6 | |
45077 | # not sure we should warn the user, crash, etc. | |
45078 | fi | |
45079 | fi | |
45080 | ||
45081 | if test "$wxUSE_GUI" = "yes"; then | |
45082 | ||
45083 | ||
8bce5cda MW |
45084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
45085 | dynamic erase event exec font image minimal mobile \ | |
45086 | mobile/wxedit mobile/styles propsize render \ | |
45087 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
45088 | |
45089 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
45090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
45091 | fi | |
0b78747f | 45092 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
45093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
45094 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
45095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
45096 | fi | |
45097 | fi | |
45098 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
45099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 45100 | fi |
a848cd7e SC |
45101 | else |
45102 | SAMPLES_SUBDIRS="console" | |
45103 | fi | |
45104 | ||
45105 | ||
48f625bc | 45106 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
45107 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
45108 | elif test "$GCC" = yes ; then | |
45109 | CWARNINGS="-Wall -Wundef" | |
45110 | fi | |
45111 | ||
48f625bc | 45112 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 45113 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
45114 | elif test "$GXX" = yes ; then |
45115 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 45116 | fi |
a848cd7e | 45117 | |
a848cd7e | 45118 | |
5ff751d6 VZ |
45119 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
45120 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
45121 | ||
45122 | ||
c92ad099 | 45123 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 45124 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
45125 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
45126 | $CPPFLAGS ` | |
5ff751d6 | 45127 | |
8aeeb05c | 45128 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 45129 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 45130 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
45131 | |
45132 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
45133 | ||
a848cd7e | 45134 | |
95986553 DE |
45135 | if test "x$MWCC" = "xyes"; then |
45136 | ||
45137 | CC="$CC -cwd source -I-" | |
45138 | CXX="$CXX -cwd source -I-" | |
45139 | fi | |
45140 | ||
a848cd7e | 45141 | |
0c3c69fc | 45142 | LIBS=`echo $LIBS` |
a848cd7e SC |
45143 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
45144 | EXTRALIBS_XML="$EXPAT_LINK" | |
45145 | EXTRALIBS_HTML="$MSPACK_LINK" | |
45146 | EXTRALIBS_ODBC="$ODBC_LINK" | |
45147 | if test "$wxUSE_GUI" = "yes"; then | |
3565d135 | 45148 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
45149 | fi |
45150 | if test "$wxUSE_OPENGL" = "yes"; then | |
45151 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
45152 | fi | |
45153 | ||
8aeeb05c | 45154 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 45155 | |
5ff751d6 | 45156 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
45157 | |
45158 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 45159 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
45160 | fi |
45161 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 45162 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
45163 | fi |
45164 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 45165 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
45166 | fi |
45167 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 45168 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
45169 | fi |
45170 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 45171 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
45172 | fi |
45173 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 45174 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
45175 | fi |
45176 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 45177 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
45178 | fi |
45179 | ||
45180 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 45181 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
45182 | done |
45183 | ||
45184 | ||
45185 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
45186 | WXUNIV=1 | |
45187 | else | |
45188 | WXUNIV=0 | |
45189 | fi | |
45190 | ||
45191 | ||
45192 | ||
45193 | ||
45194 | ||
45195 | ||
45196 | ||
45197 | ||
45198 | ||
45199 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
45200 | MONOLITHIC=1 | |
45201 | else | |
45202 | MONOLITHIC=0 | |
45203 | fi | |
45204 | ||
45205 | if test $wxUSE_PLUGINS = "yes" ; then | |
45206 | USE_PLUGINS=1 | |
45207 | else | |
45208 | USE_PLUGINS=0 | |
45209 | fi | |
45210 | ||
45211 | if test $wxUSE_ODBC != "no" ; then | |
45212 | USE_ODBC=1 | |
45213 | else | |
45214 | USE_ODBC=0 | |
45215 | fi | |
45216 | ||
16358932 VZ |
45217 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45218 | USE_QA=1 | |
45219 | else | |
45220 | USE_QA=0 | |
45221 | fi | |
45222 | ||
a848cd7e SC |
45223 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
45224 | OFFICIAL_BUILD=1 | |
45225 | else | |
45226 | OFFICIAL_BUILD=0 | |
45227 | fi | |
45228 | ||
45229 | ||
45230 | ||
45231 | ||
45232 | ||
45233 | ||
45234 | ||
45235 | ||
45236 | ||
45237 | ||
45238 | ||
45239 | ||
45240 | ||
45241 | ||
45242 | ||
45243 | ||
45244 | ||
45245 | ||
45246 | ||
ceec2216 | 45247 | |
d1c38808 | 45248 | |
3565d135 | 45249 | |
a848cd7e SC |
45250 | |
45251 | ||
45252 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45253 | ||
45254 | ||
45255 | ||
45256 | ||
45257 | ||
45258 | ||
45259 | ||
45260 | ||
4d4ff94c VZ |
45261 | case "$TOOLKIT" in |
45262 | GTK) | |
45263 | TOOLKIT_USER="GTK+" | |
45264 | if test "$WXGTK20" = 1; then | |
45265 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
45266 | fi | |
9a8f0513 | 45267 | ;; |
4d4ff94c VZ |
45268 | |
45269 | *) | |
45270 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 45271 | ;; |
4d4ff94c | 45272 | esac |
a848cd7e | 45273 | |
fb00f58d JS |
45274 | if test "$wxUSE_WINE" = "yes"; then |
45275 | BAKEFILE_FORCE_PLATFORM=win32 | |
45276 | fi | |
45277 | ||
9a8f0513 | 45278 | |
1e9e8aba DE |
45279 | |
45280 | ||
a848cd7e SC |
45281 | if test "x$BAKEFILE_HOST" = "x"; then |
45282 | BAKEFILE_HOST="${host}" | |
45283 | fi | |
45284 | ||
45285 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45286 | ||
45287 | if test -n "$ac_tool_prefix"; then | |
45288 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45289 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45292 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45294 | else | |
45295 | if test -n "$RANLIB"; then | |
45296 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45297 | else | |
45298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45299 | for as_dir in $PATH | |
45300 | do | |
45301 | IFS=$as_save_IFS | |
45302 | test -z "$as_dir" && as_dir=. | |
45303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45305 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45307 | break 2 | |
45308 | fi | |
45309 | done | |
45310 | done | |
45311 | ||
45312 | fi | |
45313 | fi | |
45314 | RANLIB=$ac_cv_prog_RANLIB | |
45315 | if test -n "$RANLIB"; then | |
45316 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45317 | echo "${ECHO_T}$RANLIB" >&6 | |
45318 | else | |
45319 | echo "$as_me:$LINENO: result: no" >&5 | |
45320 | echo "${ECHO_T}no" >&6 | |
45321 | fi | |
45322 | ||
45323 | fi | |
45324 | if test -z "$ac_cv_prog_RANLIB"; then | |
45325 | ac_ct_RANLIB=$RANLIB | |
45326 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45327 | set dummy ranlib; ac_word=$2 | |
45328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45330 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45332 | else | |
45333 | if test -n "$ac_ct_RANLIB"; then | |
45334 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45335 | else | |
45336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45337 | for as_dir in $PATH | |
45338 | do | |
45339 | IFS=$as_save_IFS | |
45340 | test -z "$as_dir" && as_dir=. | |
45341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45343 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45345 | break 2 | |
45346 | fi | |
45347 | done | |
45348 | done | |
45349 | ||
45350 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45351 | fi | |
45352 | fi | |
45353 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45354 | if test -n "$ac_ct_RANLIB"; then | |
45355 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45356 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45357 | else | |
45358 | echo "$as_me:$LINENO: result: no" >&5 | |
45359 | echo "${ECHO_T}no" >&6 | |
45360 | fi | |
45361 | ||
45362 | RANLIB=$ac_ct_RANLIB | |
45363 | else | |
45364 | RANLIB="$ac_cv_prog_RANLIB" | |
45365 | fi | |
45366 | ||
45367 | # Find a good install program. We prefer a C program (faster), | |
45368 | # so one script is as good as another. But avoid the broken or | |
45369 | # incompatible versions: | |
45370 | # SysV /etc/install, /usr/sbin/install | |
45371 | # SunOS /usr/etc/install | |
45372 | # IRIX /sbin/install | |
45373 | # AIX /bin/install | |
45374 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45375 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45376 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45377 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45378 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45379 | # ./install, which can be erroneously created by make from ./install.sh. |
45380 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45381 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45382 | if test -z "$INSTALL"; then | |
45383 | if test "${ac_cv_path_install+set}" = set; then | |
45384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45385 | else | |
45386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45387 | for as_dir in $PATH | |
45388 | do | |
45389 | IFS=$as_save_IFS | |
45390 | test -z "$as_dir" && as_dir=. | |
45391 | # Account for people who put trailing slashes in PATH elements. | |
45392 | case $as_dir/ in | |
45393 | ./ | .// | /cC/* | \ | |
45394 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 45395 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
45396 | /usr/ucb/* ) ;; |
45397 | *) | |
45398 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
45399 | # Don't use installbsd from OSF since it installs stuff as root | |
45400 | # by default. | |
45401 | for ac_prog in ginstall scoinst install; do | |
45402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
45403 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
45404 | if test $ac_prog = install && | |
45405 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45406 | # AIX install. It has an incompatible calling convention. | |
45407 | : | |
45408 | elif test $ac_prog = install && | |
45409 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45410 | # program-specific install script used by HP pwplus--don't use. | |
45411 | : | |
45412 | else | |
45413 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
45414 | break 3 | |
45415 | fi | |
45416 | fi | |
a848cd7e SC |
45417 | done |
45418 | done | |
45419 | ;; | |
45420 | esac | |
45421 | done | |
45422 | ||
45423 | ||
45424 | fi | |
45425 | if test "${ac_cv_path_install+set}" = set; then | |
45426 | INSTALL=$ac_cv_path_install | |
45427 | else | |
45428 | # As a last resort, use the slow shell script. We don't cache a | |
45429 | # path for INSTALL within a source directory, because that will | |
45430 | # break other packages using the cache if that directory is | |
45431 | # removed, or if the path is relative. | |
45432 | INSTALL=$ac_install_sh | |
45433 | fi | |
45434 | fi | |
45435 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
45436 | echo "${ECHO_T}$INSTALL" >&6 | |
45437 | ||
45438 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
45439 | # It thinks the first close brace ends the variable substitution. | |
45440 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
45441 | ||
45442 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
45443 | ||
45444 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
45445 | ||
45446 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
45447 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
45448 | LN_S=$as_ln_s | |
45449 | if test "$LN_S" = "ln -s"; then | |
45450 | echo "$as_me:$LINENO: result: yes" >&5 | |
45451 | echo "${ECHO_T}yes" >&6 | |
45452 | else | |
45453 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
45454 | echo "${ECHO_T}no, using $LN_S" >&6 | |
45455 | fi | |
45456 | ||
45457 | ||
45458 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45459 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45460 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45461 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45463 | else | |
45464 | cat >conftest.make <<\_ACEOF | |
45465 | all: | |
45466 | @echo 'ac_maketemp="$(MAKE)"' | |
45467 | _ACEOF | |
45468 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45469 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45470 | if test -n "$ac_maketemp"; then | |
45471 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45472 | else | |
45473 | eval ac_cv_prog_make_${ac_make}_set=no | |
45474 | fi | |
45475 | rm -f conftest.make | |
45476 | fi | |
45477 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45478 | echo "$as_me:$LINENO: result: yes" >&5 | |
45479 | echo "${ECHO_T}yes" >&6 | |
45480 | SET_MAKE= | |
45481 | else | |
45482 | echo "$as_me:$LINENO: result: no" >&5 | |
45483 | echo "${ECHO_T}no" >&6 | |
45484 | SET_MAKE="MAKE=${MAKE-make}" | |
45485 | fi | |
45486 | ||
45487 | ||
45488 | ||
45489 | if test -n "$ac_tool_prefix"; then | |
45490 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
45491 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
45492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45494 | if test "${ac_cv_prog_AR+set}" = set; then | |
45495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45496 | else | |
45497 | if test -n "$AR"; then | |
45498 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
45499 | else | |
45500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45501 | for as_dir in $PATH | |
45502 | do | |
45503 | IFS=$as_save_IFS | |
45504 | test -z "$as_dir" && as_dir=. | |
45505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45507 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
45508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45509 | break 2 | |
45510 | fi | |
45511 | done | |
45512 | done | |
45513 | ||
45514 | fi | |
45515 | fi | |
45516 | AR=$ac_cv_prog_AR | |
45517 | if test -n "$AR"; then | |
45518 | echo "$as_me:$LINENO: result: $AR" >&5 | |
45519 | echo "${ECHO_T}$AR" >&6 | |
45520 | else | |
45521 | echo "$as_me:$LINENO: result: no" >&5 | |
45522 | echo "${ECHO_T}no" >&6 | |
45523 | fi | |
45524 | ||
45525 | fi | |
45526 | if test -z "$ac_cv_prog_AR"; then | |
45527 | ac_ct_AR=$AR | |
45528 | # Extract the first word of "ar", so it can be a program name with args. | |
45529 | set dummy ar; ac_word=$2 | |
45530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45532 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
45533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45534 | else | |
45535 | if test -n "$ac_ct_AR"; then | |
45536 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
45537 | else | |
45538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45539 | for as_dir in $PATH | |
45540 | do | |
45541 | IFS=$as_save_IFS | |
45542 | test -z "$as_dir" && as_dir=. | |
45543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45545 | ac_cv_prog_ac_ct_AR="ar" | |
45546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45547 | break 2 | |
45548 | fi | |
45549 | done | |
45550 | done | |
45551 | ||
45552 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
45553 | fi | |
45554 | fi | |
45555 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
45556 | if test -n "$ac_ct_AR"; then | |
45557 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
45558 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
45559 | else | |
45560 | echo "$as_me:$LINENO: result: no" >&5 | |
45561 | echo "${ECHO_T}no" >&6 | |
45562 | fi | |
45563 | ||
45564 | AR=$ac_ct_AR | |
45565 | else | |
45566 | AR="$ac_cv_prog_AR" | |
45567 | fi | |
45568 | ||
45569 | if test -n "$ac_tool_prefix"; then | |
45570 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
45571 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
45572 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45574 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
45575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45576 | else | |
45577 | if test -n "$STRIP"; then | |
45578 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
45579 | else | |
45580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45581 | for as_dir in $PATH | |
45582 | do | |
45583 | IFS=$as_save_IFS | |
45584 | test -z "$as_dir" && as_dir=. | |
45585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45586 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45587 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
45588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45589 | break 2 | |
45590 | fi | |
45591 | done | |
45592 | done | |
45593 | ||
45594 | fi | |
45595 | fi | |
45596 | STRIP=$ac_cv_prog_STRIP | |
45597 | if test -n "$STRIP"; then | |
45598 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
45599 | echo "${ECHO_T}$STRIP" >&6 | |
45600 | else | |
45601 | echo "$as_me:$LINENO: result: no" >&5 | |
45602 | echo "${ECHO_T}no" >&6 | |
45603 | fi | |
45604 | ||
45605 | fi | |
45606 | if test -z "$ac_cv_prog_STRIP"; then | |
45607 | ac_ct_STRIP=$STRIP | |
45608 | # Extract the first word of "strip", so it can be a program name with args. | |
45609 | set dummy strip; ac_word=$2 | |
45610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45612 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
45613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45614 | else | |
45615 | if test -n "$ac_ct_STRIP"; then | |
45616 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
45617 | else | |
45618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45619 | for as_dir in $PATH | |
45620 | do | |
45621 | IFS=$as_save_IFS | |
45622 | test -z "$as_dir" && as_dir=. | |
45623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45625 | ac_cv_prog_ac_ct_STRIP="strip" | |
45626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45627 | break 2 | |
45628 | fi | |
45629 | done | |
45630 | done | |
45631 | ||
45632 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
45633 | fi | |
45634 | fi | |
45635 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
45636 | if test -n "$ac_ct_STRIP"; then | |
45637 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
45638 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
45639 | else | |
45640 | echo "$as_me:$LINENO: result: no" >&5 | |
45641 | echo "${ECHO_T}no" >&6 | |
45642 | fi | |
45643 | ||
45644 | STRIP=$ac_ct_STRIP | |
45645 | else | |
45646 | STRIP="$ac_cv_prog_STRIP" | |
45647 | fi | |
45648 | ||
45649 | if test -n "$ac_tool_prefix"; then | |
45650 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
45651 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
45652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45654 | if test "${ac_cv_prog_NM+set}" = set; then | |
45655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45656 | else | |
45657 | if test -n "$NM"; then | |
45658 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
45659 | else | |
45660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45661 | for as_dir in $PATH | |
45662 | do | |
45663 | IFS=$as_save_IFS | |
45664 | test -z "$as_dir" && as_dir=. | |
45665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45667 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
45668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45669 | break 2 | |
45670 | fi | |
45671 | done | |
45672 | done | |
45673 | ||
45674 | fi | |
45675 | fi | |
45676 | NM=$ac_cv_prog_NM | |
45677 | if test -n "$NM"; then | |
45678 | echo "$as_me:$LINENO: result: $NM" >&5 | |
45679 | echo "${ECHO_T}$NM" >&6 | |
45680 | else | |
45681 | echo "$as_me:$LINENO: result: no" >&5 | |
45682 | echo "${ECHO_T}no" >&6 | |
45683 | fi | |
45684 | ||
45685 | fi | |
45686 | if test -z "$ac_cv_prog_NM"; then | |
45687 | ac_ct_NM=$NM | |
45688 | # Extract the first word of "nm", so it can be a program name with args. | |
45689 | set dummy nm; ac_word=$2 | |
45690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45692 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
45693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45694 | else | |
45695 | if test -n "$ac_ct_NM"; then | |
45696 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
45697 | else | |
45698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45699 | for as_dir in $PATH | |
45700 | do | |
45701 | IFS=$as_save_IFS | |
45702 | test -z "$as_dir" && as_dir=. | |
45703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45705 | ac_cv_prog_ac_ct_NM="nm" | |
45706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45707 | break 2 | |
45708 | fi | |
45709 | done | |
45710 | done | |
45711 | ||
45712 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
45713 | fi | |
45714 | fi | |
45715 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
45716 | if test -n "$ac_ct_NM"; then | |
45717 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
45718 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
45719 | else | |
45720 | echo "$as_me:$LINENO: result: no" >&5 | |
45721 | echo "${ECHO_T}no" >&6 | |
45722 | fi | |
45723 | ||
45724 | NM=$ac_ct_NM | |
45725 | else | |
45726 | NM="$ac_cv_prog_NM" | |
45727 | fi | |
45728 | ||
45729 | ||
45730 | case ${BAKEFILE_HOST} in | |
45731 | *-hp-hpux* ) | |
1e9e8aba | 45732 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
45733 | ;; |
45734 | *) INSTALL_DIR="$INSTALL -d" | |
45735 | ;; | |
45736 | esac | |
45737 | ||
45738 | ||
45739 | LDFLAGS_GUI= | |
45740 | case ${BAKEFILE_HOST} in | |
45741 | *-*-cygwin* | *-*-mingw32* ) | |
45742 | LDFLAGS_GUI="-mwindows" | |
45743 | esac | |
45744 | ||
45745 | ||
45746 | fi | |
45747 | ||
45748 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
45749 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
45750 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
45751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45752 | else | |
45753 | ||
45754 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
45755 | egrep -s GNU > /dev/null); then | |
45756 | bakefile_cv_prog_makeisgnu="yes" | |
45757 | else | |
45758 | bakefile_cv_prog_makeisgnu="no" | |
45759 | fi | |
45760 | ||
45761 | fi | |
45762 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
45763 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
45764 | ||
45765 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
45766 | IF_GNU_MAKE="" | |
45767 | else | |
45768 | IF_GNU_MAKE="#" | |
45769 | fi | |
45770 | ||
45771 | ||
45772 | ||
45773 | PLATFORM_UNIX=0 | |
45774 | PLATFORM_WIN32=0 | |
45775 | PLATFORM_MSDOS=0 | |
45776 | PLATFORM_MAC=0 | |
1e9e8aba | 45777 | PLATFORM_MACOS=0 |
a848cd7e SC |
45778 | PLATFORM_MACOSX=0 |
45779 | PLATFORM_OS2=0 | |
1e9e8aba | 45780 | PLATFORM_BEOS=0 |
a848cd7e SC |
45781 | |
45782 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
45783 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 45784 | *-*-mingw32* ) |
a848cd7e SC |
45785 | PLATFORM_WIN32=1 |
45786 | ;; | |
45787 | *-pc-msdosdjgpp ) | |
45788 | PLATFORM_MSDOS=1 | |
45789 | ;; | |
45790 | *-pc-os2_emx | *-pc-os2-emx ) | |
45791 | PLATFORM_OS2=1 | |
45792 | ;; | |
47bd5406 | 45793 | *-*-darwin* ) |
a848cd7e SC |
45794 | PLATFORM_MAC=1 |
45795 | PLATFORM_MACOSX=1 | |
45796 | ;; | |
1e9e8aba DE |
45797 | *-*-beos* ) |
45798 | PLATFORM_BEOS=1 | |
45799 | ;; | |
45800 | powerpc-apple-macos* ) | |
45801 | PLATFORM_MAC=1 | |
45802 | PLATFORM_MACOS=1 | |
45803 | ;; | |
a848cd7e SC |
45804 | * ) |
45805 | PLATFORM_UNIX=1 | |
45806 | ;; | |
45807 | esac | |
45808 | else | |
45809 | case "$BAKEFILE_FORCE_PLATFORM" in | |
45810 | win32 ) | |
45811 | PLATFORM_WIN32=1 | |
45812 | ;; | |
45813 | msdos ) | |
45814 | PLATFORM_MSDOS=1 | |
45815 | ;; | |
45816 | os2 ) | |
45817 | PLATFORM_OS2=1 | |
45818 | ;; | |
45819 | darwin ) | |
45820 | PLATFORM_MAC=1 | |
45821 | PLATFORM_MACOSX=1 | |
45822 | ;; | |
45823 | unix ) | |
45824 | PLATFORM_UNIX=1 | |
45825 | ;; | |
1e9e8aba DE |
45826 | beos ) |
45827 | PLATFORM_BEOS=1 | |
45828 | ;; | |
a848cd7e SC |
45829 | * ) |
45830 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
45831 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
45832 | { (exit 1); exit 1; }; } | |
45833 | ;; | |
45834 | esac | |
45835 | fi | |
45836 | ||
45837 | ||
45838 | ||
45839 | ||
45840 | ||
45841 | ||
45842 | ||
45843 | ||
45844 | ||
1e9e8aba DE |
45845 | |
45846 | ||
a848cd7e SC |
45847 | # Check whether --enable-omf or --disable-omf was given. |
45848 | if test "${enable_omf+set}" = set; then | |
45849 | enableval="$enable_omf" | |
45850 | bk_os2_use_omf="$enableval" | |
45851 | fi; | |
45852 | ||
45853 | case "${BAKEFILE_HOST}" in | |
45854 | *-*-darwin* ) | |
47bd5406 VZ |
45855 | if test "x$GCC" = "xyes"; then |
45856 | CFLAGS="$CFLAGS -fno-common" | |
45857 | CXXFLAGS="$CXXFLAGS -fno-common" | |
45858 | fi | |
45859 | if test "x$XLCC" = "xyes"; then | |
45860 | CFLAGS="$CFLAGS -qnocommon" | |
45861 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
45862 | fi | |
a848cd7e SC |
45863 | ;; |
45864 | ||
45865 | *-pc-os2_emx | *-pc-os2-emx ) | |
45866 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
45867 | AR=emxomfar | |
45868 | RANLIB=: | |
45869 | LDFLAGS="-Zomf $LDFLAGS" | |
45870 | CFLAGS="-Zomf $CFLAGS" | |
45871 | CXXFLAGS="-Zomf $CXXFLAGS" | |
45872 | OS2_LIBEXT="lib" | |
45873 | else | |
45874 | OS2_LIBEXT="a" | |
45875 | fi | |
45876 | ;; | |
1e9e8aba DE |
45877 | |
45878 | i*86-*-beos* ) | |
45879 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
45880 | ;; | |
a848cd7e SC |
45881 | esac |
45882 | ||
45883 | ||
45884 | SO_SUFFIX="so" | |
45885 | SO_SUFFIX_MODULE="so" | |
45886 | EXEEXT="" | |
45887 | LIBPREFIX="lib" | |
45888 | LIBEXT=".a" | |
45889 | DLLPREFIX="lib" | |
45890 | DLLPREFIX_MODULE="" | |
45891 | DLLIMP_SUFFIX="" | |
810b94f0 | 45892 | dlldir="$libdir" |
a848cd7e SC |
45893 | |
45894 | case "${BAKEFILE_HOST}" in | |
45895 | *-hp-hpux* ) | |
45896 | SO_SUFFIX="sl" | |
45897 | SO_SUFFIX_MODULE="sl" | |
45898 | ;; | |
45899 | *-*-aix* ) | |
45900 | SO_SUFFIX="a" | |
45901 | SO_SUFFIX_MODULE="a" | |
45902 | ;; | |
810b94f0 MW |
45903 | *-*-cygwin* ) |
45904 | SO_SUFFIX="dll" | |
45905 | SO_SUFFIX_MODULE="dll" | |
45906 | DLLIMP_SUFFIX="dll.a" | |
45907 | EXEEXT=".exe" | |
45908 | DLLPREFIX="cyg" | |
45909 | dlldir="$bindir" | |
45910 | ;; | |
45911 | *-*-mingw32* ) | |
a848cd7e SC |
45912 | SO_SUFFIX="dll" |
45913 | SO_SUFFIX_MODULE="dll" | |
45914 | DLLIMP_SUFFIX="dll.a" | |
45915 | EXEEXT=".exe" | |
45916 | DLLPREFIX="" | |
810b94f0 | 45917 | dlldir="$bindir" |
a848cd7e SC |
45918 | ;; |
45919 | *-pc-msdosdjgpp ) | |
45920 | EXEEXT=".exe" | |
45921 | DLLPREFIX="" | |
810b94f0 | 45922 | dlldir="$bindir" |
a848cd7e SC |
45923 | ;; |
45924 | *-pc-os2_emx | *-pc-os2-emx ) | |
45925 | SO_SUFFIX="dll" | |
45926 | SO_SUFFIX_MODULE="dll" | |
45927 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
45928 | EXEEXT=".exe" | |
45929 | DLLPREFIX="" | |
45930 | LIBPREFIX="" | |
45931 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 45932 | dlldir="$bindir" |
a848cd7e | 45933 | ;; |
47bd5406 | 45934 | *-*-darwin* ) |
a848cd7e SC |
45935 | SO_SUFFIX="dylib" |
45936 | SO_SUFFIX_MODULE="bundle" | |
45937 | ;; | |
45938 | esac | |
45939 | ||
45940 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
45941 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
45942 | fi | |
45943 | ||
45944 | ||
45945 | ||
45946 | ||
45947 | ||
45948 | ||
45949 | ||
45950 | ||
45951 | ||
45952 | ||
45953 | ||
810b94f0 | 45954 | |
1e9e8aba DE |
45955 | PIC_FLAG="" |
45956 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
45957 | PIC_FLAG="-fPIC" |
45958 | fi | |
45959 | ||
1e9e8aba DE |
45960 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
45961 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 45962 | WINDOWS_IMPLIB=0 |
1e9e8aba | 45963 | |
a848cd7e SC |
45964 | case "${BAKEFILE_HOST}" in |
45965 | *-hp-hpux* ) | |
1e9e8aba | 45966 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
45967 | LDFLAGS="$LDFLAGS -L/usr/lib" |
45968 | ||
45969 | SHARED_LD_CC="${CC} -b -o" | |
45970 | SHARED_LD_CXX="${CXX} -b -o" | |
45971 | PIC_FLAG="+Z" | |
45972 | fi | |
45973 | ;; | |
45974 | ||
45975 | *-*-linux* ) | |
45976 | if test "x$GCC" != "xyes"; then | |
45977 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
45978 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
45979 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
45980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45981 | else | |
45982 | ||
45983 | cat >conftest.$ac_ext <<_ACEOF | |
45984 | /* confdefs.h. */ | |
45985 | _ACEOF | |
45986 | cat confdefs.h >>conftest.$ac_ext | |
45987 | cat >>conftest.$ac_ext <<_ACEOF | |
45988 | /* end confdefs.h. */ | |
45989 | ||
45990 | int | |
45991 | main () | |
45992 | { | |
45993 | ||
45994 | #ifndef __INTEL_COMPILER | |
45995 | #error Not icc | |
45996 | #endif | |
45997 | ||
45998 | ; | |
45999 | return 0; | |
46000 | } | |
46001 | _ACEOF | |
46002 | rm -f conftest.$ac_objext | |
46003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46004 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46005 | ac_status=$? |
ac1cb8d3 VS |
46006 | grep -v '^ *+' conftest.er1 >conftest.err |
46007 | rm -f conftest.er1 | |
46008 | cat conftest.err >&5 | |
a848cd7e SC |
46009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46010 | (exit $ac_status); } && | |
3565d135 RR |
46011 | { ac_try='test -z "$ac_c_werror_flag" |
46012 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
46013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46014 | (eval $ac_try) 2>&5 | |
46015 | ac_status=$? | |
46016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46017 | (exit $ac_status); }; } && | |
46018 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46020 | (eval $ac_try) 2>&5 | |
46021 | ac_status=$? | |
46022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46023 | (exit $ac_status); }; }; then | |
46024 | bakefile_cv_prog_icc=yes | |
46025 | else | |
46026 | echo "$as_me: failed program was:" >&5 | |
46027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46028 | ||
46029 | bakefile_cv_prog_icc=no | |
46030 | ||
46031 | fi | |
ac1cb8d3 | 46032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
46033 | |
46034 | fi | |
46035 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
46036 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
46037 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
46038 | PIC_FLAG="-KPIC" | |
46039 | fi | |
46040 | fi | |
46041 | ;; | |
46042 | ||
46043 | *-*-solaris2* ) | |
46044 | if test "x$GCC" != xyes ; then | |
46045 | SHARED_LD_CC="${CC} -G -o" | |
46046 | SHARED_LD_CXX="${CXX} -G -o" | |
46047 | PIC_FLAG="-KPIC" | |
46048 | fi | |
46049 | ;; | |
46050 | ||
46051 | *-*-darwin* ) | |
46052 | ||
473276a9 VS |
46053 | D='$' |
46054 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
46055 | #!/bin/sh |
46056 | #----------------------------------------------------------------------------- | |
46057 | #-- Name: distrib/mac/shared-ld-sh | |
46058 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
46059 | #-- Author: Gilles Depeyrot | |
46060 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
46061 | #-- Licence: any use permitted | |
46062 | #----------------------------------------------------------------------------- | |
46063 | ||
46064 | verbose=0 | |
46065 | args="" | |
46066 | objects="" | |
46067 | linking_flag="-dynamiclib" | |
810b94f0 | 46068 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 46069 | |
473276a9 VS |
46070 | while test ${D}# -gt 0; do |
46071 | case ${D}1 in | |
a848cd7e SC |
46072 | |
46073 | -v) | |
46074 | verbose=1 | |
46075 | ;; | |
46076 | ||
46077 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
46078 | # collect these options and values | |
473276a9 | 46079 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
46080 | shift |
46081 | ;; | |
46082 | ||
810b94f0 MW |
46083 | -s|-Wl,*) |
46084 | # collect these load args | |
46085 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 46086 | ;; |
810b94f0 MW |
46087 | |
46088 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 46089 | # collect these options |
473276a9 | 46090 | args="${D}{args} ${D}1" |
a848cd7e SC |
46091 | ;; |
46092 | ||
46093 | -dynamiclib|-bundle) | |
473276a9 | 46094 | linking_flag="${D}1" |
a848cd7e SC |
46095 | ;; |
46096 | ||
46097 | -*) | |
473276a9 | 46098 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
46099 | exit 1 |
46100 | ;; | |
46101 | ||
46102 | *.o | *.a | *.dylib) | |
46103 | # collect object files | |
473276a9 | 46104 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
46105 | ;; |
46106 | ||
46107 | *) | |
473276a9 | 46108 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
46109 | exit 1 |
46110 | ;; | |
46111 | ||
46112 | esac | |
46113 | shift | |
46114 | done | |
46115 | ||
810b94f0 MW |
46116 | status=0 |
46117 | ||
a848cd7e SC |
46118 | # |
46119 | # Link one module containing all the others | |
46120 | # | |
473276a9 | 46121 | if test ${D}{verbose} = 1; then |
810b94f0 | 46122 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 46123 | fi |
810b94f0 | 46124 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 46125 | status=${D}? |
a848cd7e SC |
46126 | |
46127 | # | |
810b94f0 MW |
46128 | # Link the shared library from the single module created, but only if the |
46129 | # previous command didn't fail: | |
a848cd7e | 46130 | # |
810b94f0 MW |
46131 | if test ${D}{status} = 0; then |
46132 | if test ${D}{verbose} = 1; then | |
46133 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
46134 | fi | |
46135 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
46136 | status=${D}? | |
a848cd7e SC |
46137 | fi |
46138 | ||
46139 | # | |
46140 | # Remove intermediate module | |
46141 | # | |
473276a9 | 46142 | rm -f master.${D}${D}.o |
a848cd7e | 46143 | |
810b94f0 | 46144 | exit ${D}status |
a848cd7e | 46145 | EOF |
473276a9 | 46146 | |
583d6b4b VZ |
46147 | chmod +x shared-ld-sh |
46148 | ||
46149 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
46150 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
46151 | ||
46152 | ||
46153 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
46154 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
46155 | if test "${bakefile_cv_gcc31+set}" = set; then | |
46156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46157 | else | |
46158 | ||
46159 | cat >conftest.$ac_ext <<_ACEOF | |
46160 | /* confdefs.h. */ | |
46161 | _ACEOF | |
46162 | cat confdefs.h >>conftest.$ac_ext | |
46163 | cat >>conftest.$ac_ext <<_ACEOF | |
46164 | /* end confdefs.h. */ | |
46165 | ||
46166 | int | |
46167 | main () | |
46168 | { | |
46169 | ||
46170 | #if (__GNUC__ < 3) || \ | |
46171 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
46172 | #error old gcc | |
46173 | #endif | |
a848cd7e | 46174 | |
583d6b4b VZ |
46175 | ; |
46176 | return 0; | |
46177 | } | |
46178 | _ACEOF | |
46179 | rm -f conftest.$ac_objext | |
46180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
46181 | (eval $ac_compile) 2>conftest.er1 | |
46182 | ac_status=$? | |
46183 | grep -v '^ *+' conftest.er1 >conftest.err | |
46184 | rm -f conftest.er1 | |
46185 | cat conftest.err >&5 | |
46186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46187 | (exit $ac_status); } && | |
3565d135 RR |
46188 | { ac_try='test -z "$ac_c_werror_flag" |
46189 | || test ! -s conftest.err' | |
583d6b4b VZ |
46190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46191 | (eval $ac_try) 2>&5 | |
46192 | ac_status=$? | |
46193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46194 | (exit $ac_status); }; } && | |
46195 | { ac_try='test -s conftest.$ac_objext' | |
46196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46197 | (eval $ac_try) 2>&5 | |
46198 | ac_status=$? | |
46199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46200 | (exit $ac_status); }; }; then | |
46201 | ||
46202 | bakefile_cv_gcc31=yes | |
46203 | ||
46204 | else | |
46205 | echo "$as_me: failed program was:" >&5 | |
46206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46207 | ||
46208 | ||
46209 | bakefile_cv_gcc31=no | |
46210 | ||
46211 | ||
46212 | fi | |
46213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46214 | ||
46215 | fi | |
46216 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
46217 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
46218 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 46219 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 46220 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
46221 | else |
46222 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 46223 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46224 | fi |
46225 | ||
47bd5406 VZ |
46226 | if test "x$GCC" == "xyes"; then |
46227 | PIC_FLAG="-dynamic -fPIC" | |
46228 | fi | |
46229 | if test "x$XLCC" = "xyes"; then | |
46230 | PIC_FLAG="-dynamic -DPIC" | |
46231 | fi | |
a848cd7e SC |
46232 | ;; |
46233 | ||
46234 | *-*-aix* ) | |
f6b50c59 | 46235 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46236 | PIC_FLAG="" |
f6b50c59 | 46237 | |
583d6b4b VZ |
46238 | case "${BAKEFILE_HOST}" in |
46239 | *-*-aix5* ) | |
46240 | LD_EXPFULL="-Wl,-bexpfull" | |
46241 | ;; | |
46242 | esac | |
f6b50c59 | 46243 | |
583d6b4b VZ |
46244 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46245 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46246 | else | |
46247 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46248 | set dummy makeC++SharedLib; ac_word=$2 |
46249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46251 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46253 | else | |
46254 | if test -n "$AIX_CXX_LD"; then | |
46255 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46256 | else | |
46257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46258 | for as_dir in $PATH | |
46259 | do | |
46260 | IFS=$as_save_IFS | |
46261 | test -z "$as_dir" && as_dir=. | |
46262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46264 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46266 | break 2 | |
46267 | fi | |
46268 | done | |
46269 | done | |
46270 | ||
46271 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46272 | fi | |
46273 | fi | |
46274 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46275 | if test -n "$AIX_CXX_LD"; then | |
46276 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46277 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46278 | else | |
46279 | echo "$as_me:$LINENO: result: no" >&5 | |
46280 | echo "${ECHO_T}no" >&6 | |
46281 | fi | |
46282 | ||
f6b50c59 | 46283 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46284 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46285 | fi | |
46286 | ;; | |
46287 | ||
46288 | *-*-beos* ) | |
1e9e8aba DE |
46289 | SHARED_LD_CC="${LD} -nostart -o" |
46290 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46291 | ;; |
46292 | ||
46293 | *-*-irix* ) | |
46294 | if test "x$GCC" != "xyes"; then | |
46295 | PIC_FLAG="-KPIC" | |
46296 | fi | |
46297 | ;; | |
46298 | ||
46299 | *-*-cygwin* | *-*-mingw32* ) | |
46300 | PIC_FLAG="" | |
1e9e8aba DE |
46301 | SHARED_LD_CC="\$(CC) -shared -o" |
46302 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46303 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46304 | ;; |
46305 | ||
46306 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46307 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46308 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46309 | PIC_FLAG="" |
473276a9 VS |
46310 | |
46311 | D='$' | |
46312 | cat <<EOF >dllar.sh | |
46313 | #!/bin/sh | |
46314 | # | |
46315 | # dllar - a tool to build both a .dll and an .a file | |
46316 | # from a set of object (.o) files for EMX/OS2. | |
46317 | # | |
46318 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46319 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46320 | # | |
46321 | # This script will accept a set of files on the command line. | |
46322 | # All the public symbols from the .o files will be exported into | |
46323 | # a .DEF file, then linker will be run (through gcc) against them to | |
46324 | # build a shared library consisting of all given .o files. All libraries | |
46325 | # (.a) will be first decompressed into component .o files then act as | |
46326 | # described above. You can optionally give a description (-d "description") | |
46327 | # which will be put into .DLL. To see the list of accepted options (as well | |
46328 | # as command-line format) simply run this program without options. The .DLL | |
46329 | # is built to be imported by name (there is no guarantee that new versions | |
46330 | # of the library you build will have same ordinals for same symbols). | |
46331 | # | |
46332 | # dllar is free software; you can redistribute it and/or modify | |
46333 | # it under the terms of the GNU General Public License as published by | |
46334 | # the Free Software Foundation; either version 2, or (at your option) | |
46335 | # any later version. | |
46336 | # | |
46337 | # dllar is distributed in the hope that it will be useful, | |
46338 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46339 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46340 | # GNU General Public License for more details. | |
46341 | # | |
46342 | # You should have received a copy of the GNU General Public License | |
46343 | # along with dllar; see the file COPYING. If not, write to the Free | |
46344 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46345 | # 02111-1307, USA. | |
46346 | ||
46347 | # To successfuly run this program you will need: | |
46348 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46349 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46350 | # - gcc | |
46351 | # (used to build the .dll) | |
46352 | # - emxexp | |
46353 | # (used to create .def file from .o files) | |
46354 | # - emximp | |
46355 | # (used to create .a file from .def file) | |
46356 | # - GNU text utilites (cat, sort, uniq) | |
46357 | # used to process emxexp output | |
46358 | # - GNU file utilities (mv, rm) | |
46359 | # - GNU sed | |
46360 | # - lxlite (optional, see flag below) | |
46361 | # (used for general .dll cleanup) | |
46362 | # | |
46363 | ||
46364 | flag_USE_LXLITE=1; | |
46365 | ||
46366 | # | |
46367 | # helper functions | |
46368 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46369 | # second argument (suffix to remove) is given | |
46370 | basnam(){ | |
46371 | case ${D}# in | |
46372 | 1) | |
1e9e8aba | 46373 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46374 | ;; |
46375 | 2) | |
46376 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46377 | ;; | |
46378 | *) | |
46379 | echo "error in basnam ${D}*" | |
46380 | exit 8 | |
46381 | ;; | |
46382 | esac | |
46383 | } | |
46384 | ||
46385 | # Cleanup temporary files and output | |
46386 | CleanUp() { | |
46387 | cd ${D}curDir | |
46388 | for i in ${D}inputFiles ; do | |
46389 | case ${D}i in | |
46390 | *!) | |
46391 | rm -rf \`basnam ${D}i !\` | |
46392 | ;; | |
46393 | *) | |
46394 | ;; | |
46395 | esac | |
46396 | done | |
46397 | ||
46398 | # Kill result in case of failure as there is just to many stupid make/nmake | |
46399 | # things out there which doesn't do this. | |
1e9e8aba | 46400 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
46401 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
46402 | fi | |
46403 | } | |
46404 | ||
46405 | # Print usage and exit script with rc=1. | |
46406 | PrintHelp() { | |
b1d22ded DE |
46407 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
46408 | echo ' [-name-mangler-script script.sh]' | |
46409 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
46410 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
46411 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 46412 | echo ' [*.o] [*.a]' |
473276a9 VS |
46413 | echo '*> "output_file" should have no extension.' |
46414 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
46415 | echo ' The import library name is derived from this and is set to "name".a,' | |
46416 | echo ' unless overridden by -import' | |
46417 | echo '*> "importlib_name" should have no extension.' | |
46418 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
46419 | echo ' This name is used as the import library name and may be longer and' | |
46420 | echo ' more descriptive than the DLL name which has to follow the old ' | |
46421 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
46422 | echo '*> "script.sh may be given to override the output_file name by a' |
46423 | echo ' different name. It is mainly useful if the regular make process' | |
46424 | echo ' of some package does not take into account OS/2 restriction of' | |
46425 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
46426 | echo ' supposed to procude a shorter name as output. The script should' | |
46427 | echo ' expect to get importlib_name without extension and should produce' | |
46428 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
46429 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
46430 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
46431 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
46432 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
46433 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
46434 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
46435 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
46436 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 46437 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 46438 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 46439 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 46440 | echo ' C runtime DLLs.' |
b1d22ded | 46441 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
46442 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
46443 | echo ' unchanged to GCC at the end of command line.' | |
46444 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
46445 | echo ' the basename for DLL and import library will be set to library name,' | |
46446 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
46447 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
46448 | echo ' library will be renamed into gcc_s.a.' | |
46449 | echo '--------' | |
46450 | echo 'Example:' | |
46451 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
46452 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
46453 | CleanUp | |
46454 | exit 1 | |
46455 | } | |
46456 | ||
46457 | # Execute a command. | |
46458 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
46459 | # @Uses Whatever CleanUp() uses. | |
46460 | doCommand() { | |
46461 | echo "${D}*" | |
46462 | eval ${D}* | |
46463 | rcCmd=${D}? | |
46464 | ||
1e9e8aba | 46465 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
46466 | echo "command failed, exit code="${D}rcCmd |
46467 | CleanUp | |
46468 | exit ${D}rcCmd | |
46469 | fi | |
46470 | } | |
46471 | ||
46472 | # main routine | |
46473 | # setup globals | |
46474 | cmdLine=${D}* | |
46475 | outFile="" | |
46476 | outimpFile="" | |
46477 | inputFiles="" | |
b1d22ded | 46478 | renameScript="" |
473276a9 VS |
46479 | description="" |
46480 | CC=gcc.exe | |
46481 | CFLAGS="-s -Zcrtdll" | |
46482 | EXTRA_CFLAGS="" | |
46483 | EXPORT_BY_ORDINALS=0 | |
46484 | exclude_symbols="" | |
46485 | library_flags="" | |
46486 | curDir=\`pwd\` | |
46487 | curDirS=curDir | |
46488 | case ${D}curDirS in | |
46489 | */) | |
46490 | ;; | |
46491 | *) | |
46492 | curDirS=${D}{curDirS}"/" | |
46493 | ;; | |
46494 | esac | |
46495 | # Parse commandline | |
46496 | libsToLink=0 | |
b1d22ded | 46497 | omfLinking=0 |
1e9e8aba | 46498 | while [ ${D}1 ]; do |
473276a9 VS |
46499 | case ${D}1 in |
46500 | -ord*) | |
46501 | EXPORT_BY_ORDINALS=1; | |
46502 | ;; | |
46503 | -o*) | |
46504 | shift | |
46505 | outFile=${D}1 | |
46506 | ;; | |
46507 | -i*) | |
46508 | shift | |
46509 | outimpFile=${D}1 | |
46510 | ;; | |
b1d22ded DE |
46511 | -name-mangler-script) |
46512 | shift | |
46513 | renameScript=${D}1 | |
46514 | ;; | |
473276a9 VS |
46515 | -d*) |
46516 | shift | |
46517 | description=${D}1 | |
46518 | ;; | |
46519 | -f*) | |
46520 | shift | |
46521 | CFLAGS=${D}1 | |
46522 | ;; | |
46523 | -c*) | |
46524 | shift | |
46525 | CC=${D}1 | |
46526 | ;; | |
46527 | -h*) | |
46528 | PrintHelp | |
46529 | ;; | |
46530 | -ex*) | |
46531 | shift | |
46532 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
46533 | ;; | |
46534 | -libf*) | |
46535 | shift | |
46536 | library_flags=${D}{library_flags}${D}1" " | |
46537 | ;; | |
46538 | -nocrt*) | |
46539 | CFLAGS="-s" | |
46540 | ;; | |
46541 | -nolxl*) | |
46542 | flag_USE_LXLITE=0 | |
46543 | ;; | |
46544 | -* | /*) | |
46545 | case ${D}1 in | |
46546 | -L* | -l*) | |
46547 | libsToLink=1 | |
46548 | ;; | |
b1d22ded DE |
46549 | -Zomf) |
46550 | omfLinking=1 | |
46551 | ;; | |
473276a9 VS |
46552 | *) |
46553 | ;; | |
46554 | esac | |
46555 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
46556 | ;; | |
b1d22ded DE |
46557 | *.dll) |
46558 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
46559 | if [ ${D}omfLinking -eq 1 ]; then | |
46560 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
46561 | else | |
46562 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
46563 | fi | |
46564 | ;; | |
473276a9 VS |
46565 | *) |
46566 | found=0; | |
1e9e8aba | 46567 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
46568 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
46569 | else | |
46570 | for file in ${D}1 ; do | |
1e9e8aba | 46571 | if [ -f ${D}file ]; then |
473276a9 VS |
46572 | inputFiles="${D}{inputFiles} ${D}file" |
46573 | found=1 | |
46574 | fi | |
46575 | done | |
1e9e8aba | 46576 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
46577 | echo "ERROR: No file(s) found: "${D}1 |
46578 | exit 8 | |
46579 | fi | |
46580 | fi | |
46581 | ;; | |
46582 | esac | |
46583 | shift | |
46584 | done # iterate cmdline words | |
46585 | ||
46586 | # | |
1e9e8aba | 46587 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
46588 | echo "dllar: no input files" |
46589 | PrintHelp | |
46590 | fi | |
46591 | ||
46592 | # Now extract all .o files from .a files | |
46593 | newInputFiles="" | |
46594 | for file in ${D}inputFiles ; do | |
46595 | case ${D}file in | |
46596 | *.a | *.lib) | |
46597 | case ${D}file in | |
46598 | *.a) | |
46599 | suffix=".a" | |
46600 | AR="ar" | |
46601 | ;; | |
46602 | *.lib) | |
46603 | suffix=".lib" | |
46604 | AR="emxomfar" | |
46605 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
46606 | ;; | |
46607 | *) | |
46608 | ;; | |
46609 | esac | |
46610 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
46611 | mkdir ${D}dirname | |
1e9e8aba | 46612 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
46613 | echo "Failed to create subdirectory ./${D}dirname" |
46614 | CleanUp | |
46615 | exit 8; | |
46616 | fi | |
46617 | # Append '!' to indicate archive | |
46618 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
46619 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
46620 | cd ${D}curDir | |
46621 | found=0; | |
46622 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 46623 | if [ -f ${D}subfile ]; then |
473276a9 | 46624 | found=1 |
1e9e8aba | 46625 | if [ -s ${D}subfile ]; then |
473276a9 VS |
46626 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
46627 | newInputFiles="${D}newInputFiles ${D}subfile" | |
46628 | fi | |
46629 | fi | |
46630 | done | |
1e9e8aba DE |
46631 | if [ ${D}found -eq 0 ]; then |
46632 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
46633 | fi |
46634 | ;; | |
46635 | *) | |
46636 | newInputFiles="${D}{newInputFiles} ${D}file" | |
46637 | ;; | |
46638 | esac | |
46639 | done | |
46640 | inputFiles="${D}newInputFiles" | |
46641 | ||
46642 | # Output filename(s). | |
46643 | do_backup=0; | |
1e9e8aba | 46644 | if [ -z ${D}outFile ]; then |
473276a9 VS |
46645 | do_backup=1; |
46646 | set outFile ${D}inputFiles; outFile=${D}2 | |
46647 | fi | |
46648 | ||
46649 | # If it is an archive, remove the '!' and the '_%' suffixes | |
46650 | case ${D}outFile in | |
46651 | *_%!) | |
46652 | outFile=\`basnam ${D}outFile _%!\` | |
46653 | ;; | |
46654 | *) | |
46655 | ;; | |
46656 | esac | |
46657 | case ${D}outFile in | |
46658 | *.dll) | |
46659 | outFile=\`basnam ${D}outFile .dll\` | |
46660 | ;; | |
46661 | *.DLL) | |
46662 | outFile=\`basnam ${D}outFile .DLL\` | |
46663 | ;; | |
46664 | *.o) | |
46665 | outFile=\`basnam ${D}outFile .o\` | |
46666 | ;; | |
46667 | *.obj) | |
46668 | outFile=\`basnam ${D}outFile .obj\` | |
46669 | ;; | |
46670 | *.a) | |
46671 | outFile=\`basnam ${D}outFile .a\` | |
46672 | ;; | |
46673 | *.lib) | |
46674 | outFile=\`basnam ${D}outFile .lib\` | |
46675 | ;; | |
46676 | *) | |
46677 | ;; | |
46678 | esac | |
46679 | case ${D}outimpFile in | |
46680 | *.a) | |
46681 | outimpFile=\`basnam ${D}outimpFile .a\` | |
46682 | ;; | |
46683 | *.lib) | |
46684 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
46685 | ;; | |
46686 | *) | |
46687 | ;; | |
46688 | esac | |
1e9e8aba | 46689 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
46690 | outimpFile=${D}outFile |
46691 | fi | |
46692 | defFile="${D}{outFile}.def" | |
46693 | arcFile="${D}{outimpFile}.a" | |
46694 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
46695 | |
46696 | #create ${D}dllFile as something matching 8.3 restrictions, | |
46697 | if [ -z ${D}renameScript ] ; then | |
46698 | dllFile="${D}outFile" | |
46699 | else | |
46700 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
46701 | fi | |
473276a9 | 46702 | |
1e9e8aba DE |
46703 | if [ ${D}do_backup -ne 0 ] ; then |
46704 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
46705 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
46706 | fi | |
1e9e8aba | 46707 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
46708 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
46709 | fi | |
46710 | fi | |
46711 | ||
46712 | # Extract public symbols from all the object files. | |
46713 | tmpdefFile=${D}{defFile}_% | |
46714 | rm -f ${D}tmpdefFile | |
46715 | for file in ${D}inputFiles ; do | |
46716 | case ${D}file in | |
46717 | *!) | |
46718 | ;; | |
46719 | *) | |
46720 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
46721 | ;; | |
46722 | esac | |
46723 | done | |
46724 | ||
46725 | # Create the def file. | |
46726 | rm -f ${D}defFile | |
46727 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
46728 | dllFile="${D}{dllFile}.dll" |
46729 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 46730 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
46731 | fi |
46732 | echo "EXPORTS" >> ${D}defFile | |
46733 | ||
46734 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
46735 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
46736 | ||
46737 | # Checks if the export is ok or not. | |
46738 | for word in ${D}exclude_symbols; do | |
46739 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
46740 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
46741 | done | |
46742 | ||
46743 | ||
1e9e8aba DE |
46744 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
46745 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
46746 | sed ' |
46747 | N | |
46748 | : loop | |
1e9e8aba | 46749 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
46750 | t loop |
46751 | ' > ${D}{tmpdefFile}% | |
46752 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
46753 | else | |
46754 | rm -f ${D}{tmpdefFile}% | |
46755 | fi | |
46756 | cat ${D}tmpdefFile >> ${D}defFile | |
46757 | rm -f ${D}tmpdefFile | |
46758 | ||
46759 | # Do linking, create implib, and apply lxlite. | |
46760 | gccCmdl=""; | |
46761 | for file in ${D}inputFiles ; do | |
46762 | case ${D}file in | |
46763 | *!) | |
46764 | ;; | |
46765 | *) | |
46766 | gccCmdl="${D}gccCmdl ${D}file" | |
46767 | ;; | |
46768 | esac | |
46769 | done | |
46770 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
46771 | touch "${D}{outFile}.dll" | |
46772 | ||
46773 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 46774 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 46775 | add_flags=""; |
1e9e8aba | 46776 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
46777 | add_flags="-ynd" |
46778 | fi | |
46779 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
46780 | fi | |
46781 | doCommand "emxomf -s -l ${D}arcFile" | |
46782 | ||
46783 | # Successful exit. | |
46784 | CleanUp 1 | |
46785 | exit 0 | |
46786 | EOF | |
46787 | ||
46788 | chmod +x dllar.sh | |
a848cd7e SC |
46789 | ;; |
46790 | ||
1e9e8aba | 46791 | powerpc-apple-macos* | \ |
0ad5d837 | 46792 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
46793 | *-*-sunos4* | \ |
46794 | *-*-osf* | \ | |
46795 | *-*-dgux5* | \ | |
47a7e797 MW |
46796 | *-*-sysv5* | \ |
46797 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
46798 | ;; |
46799 | ||
46800 | *) | |
46801 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
46802 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
46803 | { (exit 1); exit 1; }; } | |
46804 | esac | |
46805 | ||
2057db16 VS |
46806 | if test "x$PIC_FLAG" != "x" ; then |
46807 | PIC_FLAG="$PIC_FLAG -DPIC" | |
46808 | fi | |
46809 | ||
a848cd7e SC |
46810 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
46811 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
46812 | fi | |
46813 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
46814 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
46815 | fi | |
46816 | ||
46817 | ||
46818 | ||
46819 | ||
46820 | ||
46821 | ||
46822 | ||
46823 | ||
810b94f0 | 46824 | |
a848cd7e SC |
46825 | USE_SOVERSION=0 |
46826 | USE_SOVERLINUX=0 | |
46827 | USE_SOVERSOLARIS=0 | |
810b94f0 | 46828 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
46829 | USE_SOSYMLINKS=0 |
46830 | USE_MACVERSION=0 | |
46831 | SONAME_FLAG= | |
46832 | ||
46833 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 46834 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
46835 | SONAME_FLAG="-Wl,-soname," |
46836 | USE_SOVERSION=1 | |
46837 | USE_SOVERLINUX=1 | |
46838 | USE_SOSYMLINKS=1 | |
46839 | ;; | |
46840 | ||
a848cd7e SC |
46841 | *-*-solaris2* ) |
46842 | SONAME_FLAG="-h " | |
46843 | USE_SOVERSION=1 | |
46844 | USE_SOVERSOLARIS=1 | |
46845 | USE_SOSYMLINKS=1 | |
46846 | ;; | |
46847 | ||
46848 | *-*-darwin* ) | |
46849 | USE_MACVERSION=1 | |
46850 | USE_SOVERSION=1 | |
46851 | USE_SOSYMLINKS=1 | |
46852 | ;; | |
810b94f0 MW |
46853 | |
46854 | *-*-cygwin* ) | |
46855 | USE_SOVERSION=1 | |
46856 | USE_SOVERCYGWIN=1 | |
46857 | ;; | |
a848cd7e SC |
46858 | esac |
46859 | ||
46860 | ||
46861 | ||
46862 | ||
46863 | ||
46864 | ||
46865 | ||
46866 | ||
46867 | ||
810b94f0 | 46868 | |
a848cd7e SC |
46869 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
46870 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
0ad5d837 | 46871 | DEPS_TRACKING=1 |
a848cd7e SC |
46872 | |
46873 | if test "x$GCC" = "xyes"; then | |
46874 | DEPSMODE=gcc | |
a848cd7e | 46875 | case "${BAKEFILE_HOST}" in |
47bd5406 | 46876 | *-*-darwin* ) |
0ad5d837 | 46877 | DEPSFLAG="-no-cpp-precomp -MMD" |
a848cd7e SC |
46878 | ;; |
46879 | * ) | |
0ad5d837 | 46880 | DEPSFLAG="-MMD" |
a848cd7e SC |
46881 | ;; |
46882 | esac | |
46883 | echo "$as_me:$LINENO: result: gcc" >&5 | |
46884 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 46885 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 46886 | DEPSMODE=mwcc |
0ad5d837 | 46887 | DEPSFLAG="-MM" |
b1d22ded DE |
46888 | echo "$as_me:$LINENO: result: mwcc" >&5 |
46889 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 | 46890 | elif test "x$SUNCC" = "xyes"; then |
0ad5d837 VZ |
46891 | DEPSMODE=unixcc |
46892 | DEPSFLAG="-xM1" | |
46893 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
46894 | echo "${ECHO_T}Sun cc" >&6 | |
46895 | elif test "x$SGICC" = "xyes"; then | |
46896 | DEPSMODE=unixcc | |
46897 | DEPSFLAG="-M" | |
46898 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
46899 | echo "${ECHO_T}SGI cc" >&6 | |
3006edc0 VZ |
46900 | elif test "x$HPCC" = "xyes"; then |
46901 | DEPSMODE=unixcc | |
46902 | DEPSFLAG="+make" | |
46903 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
46904 | echo "${ECHO_T}HP cc" >&6 | |
a1aa0349 VZ |
46905 | elif test "x$COMPAQCC" = "xyes"; then |
46906 | DEPSMODE=gcc | |
46907 | DEPSFLAG="-MD" | |
46908 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
46909 | echo "${ECHO_T}Compaq cc" >&6 | |
a848cd7e | 46910 | else |
3006edc0 | 46911 | DEPS_TRACKING=0 |
a848cd7e SC |
46912 | echo "$as_me:$LINENO: result: none" >&5 |
46913 | echo "${ECHO_T}none" >&6 | |
46914 | fi | |
46915 | ||
46916 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
46917 | |
46918 | D='$' | |
46919 | cat <<EOF >bk-deps | |
a848cd7e SC |
46920 | #!/bin/sh |
46921 | ||
46922 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
46923 | # script. It is used to track C/C++ files dependencies in portable way. | |
46924 | # | |
46925 | # Permission is given to use this file in any way. | |
46926 | ||
473276a9 | 46927 | DEPSMODE=${DEPSMODE} |
a848cd7e | 46928 | DEPSDIR=.deps |
0ad5d837 | 46929 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 46930 | |
473276a9 | 46931 | mkdir -p ${D}DEPSDIR |
a848cd7e | 46932 | |
473276a9 | 46933 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 46934 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
46935 | status=${D}? |
46936 | if test ${D}{status} != 0 ; then | |
46937 | exit ${D}{status} | |
a848cd7e SC |
46938 | fi |
46939 | # move created file to the location we want it in: | |
473276a9 VS |
46940 | while test ${D}# -gt 0; do |
46941 | case "${D}1" in | |
a848cd7e SC |
46942 | -o ) |
46943 | shift | |
473276a9 | 46944 | objfile=${D}1 |
a848cd7e SC |
46945 | ;; |
46946 | -* ) | |
46947 | ;; | |
46948 | * ) | |
473276a9 | 46949 | srcfile=${D}1 |
a848cd7e SC |
46950 | ;; |
46951 | esac | |
46952 | shift | |
46953 | done | |
1e9e8aba DE |
46954 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
46955 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
46956 | if test -f ${D}depfile ; then |
46957 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46958 | rm -f ${D}depfile | |
a848cd7e | 46959 | else |
a1aa0349 | 46960 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 46961 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
46962 | if test ! -f ${D}depfile ; then |
46963 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
46964 | depfile="${D}objfile.d" | |
46965 | fi | |
473276a9 VS |
46966 | if test -f ${D}depfile ; then |
46967 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46968 | rm -f ${D}depfile | |
a848cd7e SC |
46969 | fi |
46970 | fi | |
46971 | exit 0 | |
81f90336 | 46972 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 46973 | ${D}* || exit ${D}? |
81f90336 MW |
46974 | # Run mwcc again with -MM and redirect into the dep file we want |
46975 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
46976 | prevarg= | |
46977 | for arg in ${D}* ; do | |
46978 | if test "${D}prevarg" = "-o"; then | |
46979 | objfile=${D}arg | |
46980 | else | |
46981 | case "${D}arg" in | |
46982 | -* ) | |
46983 | ;; | |
46984 | * ) | |
46985 | srcfile=${D}arg | |
46986 | ;; | |
46987 | esac | |
46988 | fi | |
46989 | prevarg="${D}arg" | |
46990 | done | |
0ad5d837 | 46991 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 46992 | exit 0 |
0ad5d837 | 46993 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 46994 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
46995 | # Run compiler again with deps flag and redirect into the dep file. |
46996 | # It doesn't work if the '-o FILE' option is used, but without it the | |
46997 | # dependency file will contain the wrong name for the object. So it is | |
46998 | # removed from the command line, and the dep file is fixed with sed. | |
46999 | cmd="" | |
47000 | while test ${D}# -gt 0; do | |
47001 | case "${D}1" in | |
47002 | -o ) | |
47003 | shift | |
47004 | objfile=${D}1 | |
47005 | ;; | |
47006 | * ) | |
47007 | eval arg${D}#=\\${D}1 | |
47008 | cmd="${D}cmd \\${D}arg${D}#" | |
47009 | ;; | |
47010 | esac | |
47011 | shift | |
47012 | done | |
0ad5d837 | 47013 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 47014 | exit 0 |
a848cd7e | 47015 | else |
473276a9 VS |
47016 | ${D}* |
47017 | exit ${D}? | |
a848cd7e SC |
47018 | fi |
47019 | EOF | |
473276a9 | 47020 | |
a848cd7e SC |
47021 | chmod +x bk-deps |
47022 | fi | |
47023 | ||
47024 | ||
47025 | ||
47026 | ||
a848cd7e SC |
47027 | case ${BAKEFILE_HOST} in |
47028 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
47029 | if test -n "$ac_tool_prefix"; then |
47030 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
47031 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
47032 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47034 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
47035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47036 | else | |
47037 | if test -n "$WINDRES"; then | |
47038 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
47039 | else | |
47040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47041 | for as_dir in $PATH | |
47042 | do | |
47043 | IFS=$as_save_IFS | |
47044 | test -z "$as_dir" && as_dir=. | |
47045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47046 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47047 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
47048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47049 | break 2 | |
47050 | fi | |
47051 | done | |
47052 | done | |
47053 | ||
47054 | fi | |
47055 | fi | |
47056 | WINDRES=$ac_cv_prog_WINDRES | |
47057 | if test -n "$WINDRES"; then | |
47058 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
47059 | echo "${ECHO_T}$WINDRES" >&6 | |
47060 | else | |
47061 | echo "$as_me:$LINENO: result: no" >&5 | |
47062 | echo "${ECHO_T}no" >&6 | |
47063 | fi | |
47064 | ||
47065 | fi | |
47066 | if test -z "$ac_cv_prog_WINDRES"; then | |
47067 | ac_ct_WINDRES=$WINDRES | |
47068 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
47069 | set dummy windres; ac_word=$2 |
47070 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47072 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
47073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47074 | else | |
8ced02f6 DE |
47075 | if test -n "$ac_ct_WINDRES"; then |
47076 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
47077 | else |
47078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47079 | for as_dir in $PATH | |
47080 | do | |
47081 | IFS=$as_save_IFS | |
47082 | test -z "$as_dir" && as_dir=. | |
47083 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47084 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47085 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
47086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47087 | break 2 | |
47088 | fi | |
47089 | done | |
47090 | done | |
47091 | ||
a848cd7e SC |
47092 | fi |
47093 | fi | |
8ced02f6 DE |
47094 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
47095 | if test -n "$ac_ct_WINDRES"; then | |
47096 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
47097 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
47098 | else |
47099 | echo "$as_me:$LINENO: result: no" >&5 | |
47100 | echo "${ECHO_T}no" >&6 | |
47101 | fi | |
47102 | ||
8ced02f6 DE |
47103 | WINDRES=$ac_ct_WINDRES |
47104 | else | |
47105 | WINDRES="$ac_cv_prog_WINDRES" | |
47106 | fi | |
47107 | ||
a848cd7e SC |
47108 | ;; |
47109 | ||
1e9e8aba | 47110 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
47111 | # Extract the first word of "Rez", so it can be a program name with args. |
47112 | set dummy Rez; ac_word=$2 | |
47113 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47115 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
47116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47117 | else | |
8ced02f6 DE |
47118 | if test -n "$REZ"; then |
47119 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
47120 | else |
47121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47122 | for as_dir in $PATH | |
47123 | do | |
47124 | IFS=$as_save_IFS | |
47125 | test -z "$as_dir" && as_dir=. | |
47126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47127 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47128 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
47129 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47130 | break 2 | |
47131 | fi | |
47132 | done | |
47133 | done | |
47134 | ||
8ced02f6 | 47135 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
47136 | fi |
47137 | fi | |
8ced02f6 DE |
47138 | REZ=$ac_cv_prog_REZ |
47139 | if test -n "$REZ"; then | |
47140 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
47141 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
47142 | else |
47143 | echo "$as_me:$LINENO: result: no" >&5 | |
47144 | echo "${ECHO_T}no" >&6 | |
47145 | fi | |
47146 | ||
47147 | # Extract the first word of "SetFile", so it can be a program name with args. | |
47148 | set dummy SetFile; ac_word=$2 | |
47149 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47151 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
47152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47153 | else | |
47154 | if test -n "$SETFILE"; then | |
47155 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
47156 | else | |
47157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47158 | for as_dir in $PATH | |
47159 | do | |
47160 | IFS=$as_save_IFS | |
47161 | test -z "$as_dir" && as_dir=. | |
47162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47164 | ac_cv_prog_SETFILE="SetFile" | |
47165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47166 | break 2 | |
47167 | fi | |
47168 | done | |
47169 | done | |
47170 | ||
47171 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
47172 | fi | |
47173 | fi | |
47174 | SETFILE=$ac_cv_prog_SETFILE | |
47175 | if test -n "$SETFILE"; then | |
47176 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
47177 | echo "${ECHO_T}$SETFILE" >&6 | |
47178 | else | |
47179 | echo "$as_me:$LINENO: result: no" >&5 | |
47180 | echo "${ECHO_T}no" >&6 | |
47181 | fi | |
47182 | ||
47183 | ;; | |
47184 | esac | |
47185 | ||
47186 | ||
47187 | ||
47188 | ||
47189 | ||
8ced02f6 | 47190 | |
c9469659 | 47191 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 47192 | |
dcc1b6ad | 47193 | |
c9469659 | 47194 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 47195 | |
646b6ec1 | 47196 | |
74b84332 | 47197 | |
a848cd7e SC |
47198 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
47199 | if test "${enable_precomp_headers+set}" = set; then | |
47200 | enableval="$enable_precomp_headers" | |
47201 | bk_use_pch="$enableval" | |
47202 | fi; | |
47203 | ||
47204 | GCC_PCH=0 | |
47205 | ||
5c60e845 MW |
47206 | case ${BAKEFILE_HOST} in |
47207 | *-*-cygwin* ) | |
47208 | bk_use_pch="no" | |
47209 | ;; | |
47210 | esac | |
47211 | ||
a848cd7e SC |
47212 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47213 | if test "x$GCC" = "xyes"; then | |
47214 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47215 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47216 | cat >conftest.$ac_ext <<_ACEOF | |
47217 | /* confdefs.h. */ | |
47218 | _ACEOF | |
47219 | cat confdefs.h >>conftest.$ac_ext | |
47220 | cat >>conftest.$ac_ext <<_ACEOF | |
47221 | /* end confdefs.h. */ | |
47222 | ||
47223 | int | |
47224 | main () | |
47225 | { | |
47226 | ||
47227 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
47228 | #error "no pch support" | |
47229 | #endif | |
47230 | #if (__GNUC__ < 3) | |
47231 | #error "no pch support" | |
47232 | #endif | |
47233 | #if (__GNUC__ == 3) && \ | |
47234 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
47235 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
47236 | #error "no pch support" | |
47237 | #endif | |
47238 | ||
47239 | ; | |
47240 | return 0; | |
47241 | } | |
47242 | _ACEOF | |
47243 | rm -f conftest.$ac_objext | |
47244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47245 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47246 | ac_status=$? |
ac1cb8d3 VS |
47247 | grep -v '^ *+' conftest.er1 >conftest.err |
47248 | rm -f conftest.er1 | |
47249 | cat conftest.err >&5 | |
a848cd7e SC |
47250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47251 | (exit $ac_status); } && | |
3565d135 RR |
47252 | { ac_try='test -z "$ac_c_werror_flag" |
47253 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
47254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47255 | (eval $ac_try) 2>&5 | |
47256 | ac_status=$? | |
47257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47258 | (exit $ac_status); }; } && | |
47259 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47261 | (eval $ac_try) 2>&5 | |
47262 | ac_status=$? | |
47263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47264 | (exit $ac_status); }; }; then | |
47265 | ||
47266 | echo "$as_me:$LINENO: result: yes" >&5 | |
47267 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47268 | GCC_PCH=1 |
47269 | ||
47270 | else | |
47271 | echo "$as_me: failed program was:" >&5 | |
47272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47273 | ||
47274 | ||
47275 | echo "$as_me:$LINENO: result: no" >&5 | |
47276 | echo "${ECHO_T}no" >&6 | |
47277 | ||
47278 | fi | |
ac1cb8d3 | 47279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 47280 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
47281 | |
47282 | D='$' | |
47283 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47284 | #!/bin/sh |
47285 | ||
47286 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47287 | # script. It is used to generated precompiled headers. | |
47288 | # | |
47289 | # Permission is given to use this file in any way. | |
47290 | ||
1e9e8aba DE |
47291 | outfile="${D}{1}" |
47292 | header="${D}{2}" | |
a848cd7e SC |
47293 | shift |
47294 | shift | |
47295 | ||
47296 | compiler= | |
47297 | headerfile= | |
1e9e8aba DE |
47298 | while test ${D}{#} -gt 0; do |
47299 | case "${D}{1}" in | |
a848cd7e | 47300 | -I* ) |
1e9e8aba DE |
47301 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47302 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47303 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47304 | fi |
47305 | ;; | |
47306 | esac | |
1e9e8aba | 47307 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
47308 | shift |
47309 | done | |
47310 | ||
1e9e8aba DE |
47311 | if test "x${D}{headerfile}" = "x" ; then |
47312 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 47313 | else |
1e9e8aba DE |
47314 | if test -f ${D}{outfile} ; then |
47315 | rm -f ${D}{outfile} | |
a848cd7e | 47316 | else |
1e9e8aba | 47317 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 47318 | fi |
1e9e8aba | 47319 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
47320 | mkdir -p .deps |
47321 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
47322 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
47323 | exit ${D}{?} | |
a848cd7e SC |
47324 | fi |
47325 | EOF | |
1e9e8aba | 47326 | |
a848cd7e SC |
47327 | chmod +x bk-make-pch |
47328 | fi | |
47329 | fi | |
47330 | fi | |
47331 | ||
47332 | ||
47333 | ||
a848cd7e SC |
47334 | COND_BUILD_DEBUG="#" |
47335 | if test "x$BUILD" = "xdebug" ; then | |
47336 | COND_BUILD_DEBUG="" | |
47337 | fi | |
47338 | ||
47339 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
47340 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
47341 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
47342 | fi | |
47343 | ||
47344 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
47345 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47346 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
47347 | fi | |
47348 | ||
47349 | COND_BUILD_DEBUG_UNICODE_0="#" | |
47350 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
47351 | COND_BUILD_DEBUG_UNICODE_0="" | |
47352 | fi | |
47353 | ||
47354 | COND_BUILD_DEBUG_UNICODE_1="#" | |
47355 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
47356 | COND_BUILD_DEBUG_UNICODE_1="" | |
47357 | fi | |
47358 | ||
47359 | COND_BUILD_RELEASE="#" | |
47360 | if test "x$BUILD" = "xrelease" ; then | |
47361 | COND_BUILD_RELEASE="" | |
47362 | fi | |
47363 | ||
47364 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
47365 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47366 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
47367 | fi | |
47368 | ||
47369 | COND_BUILD_RELEASE_UNICODE_0="#" | |
47370 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
47371 | COND_BUILD_RELEASE_UNICODE_0="" | |
47372 | fi | |
47373 | ||
47374 | COND_BUILD_RELEASE_UNICODE_1="#" | |
47375 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
47376 | COND_BUILD_RELEASE_UNICODE_1="" | |
47377 | fi | |
47378 | ||
47379 | COND_DEBUG_FLAG_1="#" | |
47380 | if test "x$DEBUG_FLAG" = "x1" ; then | |
47381 | COND_DEBUG_FLAG_1="" | |
47382 | fi | |
47383 | ||
47384 | COND_DEBUG_INFO_0="#" | |
47385 | if test "x$DEBUG_INFO" = "x0" ; then | |
47386 | COND_DEBUG_INFO_0="" | |
47387 | fi | |
47388 | ||
47389 | COND_DEBUG_INFO_1="#" | |
47390 | if test "x$DEBUG_INFO" = "x1" ; then | |
47391 | COND_DEBUG_INFO_1="" | |
47392 | fi | |
47393 | ||
47394 | COND_DEPS_TRACKING_0="#" | |
47395 | if test "x$DEPS_TRACKING" = "x0" ; then | |
47396 | COND_DEPS_TRACKING_0="" | |
47397 | fi | |
47398 | ||
47399 | COND_DEPS_TRACKING_1="#" | |
47400 | if test "x$DEPS_TRACKING" = "x1" ; then | |
47401 | COND_DEPS_TRACKING_1="" | |
47402 | fi | |
47403 | ||
47404 | COND_GCC_PCH_1="#" | |
47405 | if test "x$GCC_PCH" = "x1" ; then | |
47406 | COND_GCC_PCH_1="" | |
47407 | fi | |
47408 | ||
47409 | COND_MONOLITHIC_0="#" | |
47410 | if test "x$MONOLITHIC" = "x0" ; then | |
47411 | COND_MONOLITHIC_0="" | |
47412 | fi | |
47413 | ||
47414 | COND_MONOLITHIC_0_SHARED_0="#" | |
47415 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
47416 | COND_MONOLITHIC_0_SHARED_0="" | |
47417 | fi | |
47418 | ||
47419 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
47420 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
47421 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
47422 | fi | |
47423 | ||
90970d69 DE |
47424 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
47425 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47426 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
47427 | fi | |
47428 | ||
a848cd7e SC |
47429 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
47430 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47431 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
47432 | fi | |
47433 | ||
6671c68b VZ |
47434 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
47435 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47436 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
47437 | fi | |
47438 | ||
a848cd7e SC |
47439 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
47440 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47441 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
47442 | fi | |
47443 | ||
ceec2216 RL |
47444 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
47445 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47446 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
47447 | fi | |
47448 | ||
a848cd7e SC |
47449 | COND_MONOLITHIC_0_SHARED_1="#" |
47450 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
47451 | COND_MONOLITHIC_0_SHARED_1="" | |
47452 | fi | |
47453 | ||
47454 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
47455 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47456 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
47457 | fi | |
47458 | ||
90970d69 DE |
47459 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
47460 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47461 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
47462 | fi | |
47463 | ||
a848cd7e SC |
47464 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
47465 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47466 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
47467 | fi | |
47468 | ||
6671c68b VZ |
47469 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
47470 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47471 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
47472 | fi | |
47473 | ||
a848cd7e SC |
47474 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
47475 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47476 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
47477 | fi | |
47478 | ||
ceec2216 RL |
47479 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
47480 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47481 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
47482 | fi | |
47483 | ||
a848cd7e SC |
47484 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
47485 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47486 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
47487 | fi | |
47488 | ||
47489 | COND_MONOLITHIC_1="#" | |
47490 | if test "x$MONOLITHIC" = "x1" ; then | |
47491 | COND_MONOLITHIC_1="" | |
47492 | fi | |
47493 | ||
47494 | COND_MONOLITHIC_1_SHARED_0="#" | |
47495 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
47496 | COND_MONOLITHIC_1_SHARED_0="" | |
47497 | fi | |
47498 | ||
47499 | COND_MONOLITHIC_1_SHARED_1="#" | |
47500 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
47501 | COND_MONOLITHIC_1_SHARED_1="" | |
47502 | fi | |
47503 | ||
47504 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
47505 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47506 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
47507 | fi | |
47508 | ||
47509 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
47510 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47511 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
47512 | fi | |
47513 | ||
eb730a0c JS |
47514 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
47515 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47516 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
47517 | fi | |
47518 | ||
a848cd7e SC |
47519 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
47520 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47521 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
47522 | fi | |
47523 | ||
47524 | COND_PLATFORM_MACOSX_1="#" | |
47525 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
47526 | COND_PLATFORM_MACOSX_1="" | |
47527 | fi | |
47528 | ||
a30f955f VS |
47529 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
47530 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
47531 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
47532 | fi | |
47533 | ||
a848cd7e SC |
47534 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
47535 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
47536 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
47537 | fi | |
47538 | ||
47539 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
47540 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
47541 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
47542 | fi | |
47543 | ||
47544 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
47545 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
47546 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
47547 | fi | |
47548 | ||
fc480dc1 DE |
47549 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
47550 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47551 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
47552 | fi | |
47553 | ||
1e9e8aba DE |
47554 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
47555 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47556 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47557 | fi | |
47558 | ||
ebee3cd0 VS |
47559 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
47560 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
47561 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
47562 | fi | |
47563 | ||
47564 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
47565 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
47566 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
47567 | fi | |
47568 | ||
a848cd7e SC |
47569 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
47570 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47571 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
47572 | fi | |
47573 | ||
47574 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
47575 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47576 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
47577 | fi | |
47578 | ||
b48a2016 DE |
47579 | COND_PLATFORM_MACOS_1="#" |
47580 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
47581 | COND_PLATFORM_MACOS_1="" | |
47582 | fi | |
47583 | ||
083508af MW |
47584 | COND_PLATFORM_MAC_1="#" |
47585 | if test "x$PLATFORM_MAC" = "x1" ; then | |
47586 | COND_PLATFORM_MAC_1="" | |
47587 | fi | |
47588 | ||
83d8eb47 MW |
47589 | COND_PLATFORM_MSDOS_1="#" |
47590 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
47591 | COND_PLATFORM_MSDOS_1="" | |
47592 | fi | |
47593 | ||
a848cd7e SC |
47594 | COND_PLATFORM_OS2_1="#" |
47595 | if test "x$PLATFORM_OS2" = "x1" ; then | |
47596 | COND_PLATFORM_OS2_1="" | |
47597 | fi | |
47598 | ||
47599 | COND_PLATFORM_UNIX_0="#" | |
47600 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
47601 | COND_PLATFORM_UNIX_0="" | |
47602 | fi | |
47603 | ||
47604 | COND_PLATFORM_UNIX_1="#" | |
47605 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
47606 | COND_PLATFORM_UNIX_1="" | |
47607 | fi | |
47608 | ||
47609 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
47610 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47611 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
47612 | fi | |
47613 | ||
47614 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
47615 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
47616 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
47617 | fi | |
47618 | ||
47619 | COND_PLATFORM_WIN32_0="#" | |
47620 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
47621 | COND_PLATFORM_WIN32_0="" | |
47622 | fi | |
47623 | ||
47624 | COND_PLATFORM_WIN32_1="#" | |
47625 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
47626 | COND_PLATFORM_WIN32_1="" | |
47627 | fi | |
47628 | ||
47629 | COND_SHARED_0="#" | |
47630 | if test "x$SHARED" = "x0" ; then | |
47631 | COND_SHARED_0="" | |
47632 | fi | |
47633 | ||
083508af MW |
47634 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
47635 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
47636 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
47637 | fi | |
47638 | ||
47639 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
47640 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47641 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
47642 | fi | |
47643 | ||
47644 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
47645 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
47646 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
47647 | fi | |
47648 | ||
a848cd7e SC |
47649 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
47650 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47651 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
47652 | fi | |
47653 | ||
47654 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47655 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47656 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47657 | fi | |
47658 | ||
47659 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47660 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47661 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47662 | fi | |
47663 | ||
47664 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47665 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47666 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47667 | fi | |
47668 | ||
083508af MW |
47669 | COND_SHARED_0_USE_XRC_1="#" |
47670 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47671 | COND_SHARED_0_USE_XRC_1="" | |
47672 | fi | |
47673 | ||
a848cd7e SC |
47674 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
47675 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47676 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
47677 | fi | |
47678 | ||
47679 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
47680 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47681 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
47682 | fi | |
47683 | ||
47684 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
47685 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47686 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
47687 | fi | |
47688 | ||
47689 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
47690 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47691 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
47692 | fi | |
47693 | ||
47694 | COND_SHARED_1="#" | |
47695 | if test "x$SHARED" = "x1" ; then | |
47696 | COND_SHARED_1="" | |
47697 | fi | |
47698 | ||
47699 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
47700 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47701 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
47702 | fi | |
47703 | ||
083508af MW |
47704 | COND_SHARED_1_USE_XRC_1="#" |
47705 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47706 | COND_SHARED_1_USE_XRC_1="" | |
47707 | fi | |
47708 | ||
a30f955f VS |
47709 | COND_TOOLKIT_="#" |
47710 | if test "x$TOOLKIT" = "x" ; then | |
47711 | COND_TOOLKIT_="" | |
47712 | fi | |
47713 | ||
a848cd7e SC |
47714 | COND_TOOLKIT_COCOA="#" |
47715 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
47716 | COND_TOOLKIT_COCOA="" | |
47717 | fi | |
47718 | ||
a49baeab DE |
47719 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
47720 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
47721 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
47722 | fi | |
47723 | ||
a848cd7e SC |
47724 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
47725 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47726 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
47727 | fi | |
47728 | ||
47729 | COND_TOOLKIT_GTK="#" | |
47730 | if test "x$TOOLKIT" = "xGTK" ; then | |
47731 | COND_TOOLKIT_GTK="" | |
47732 | fi | |
47733 | ||
d044deea MW |
47734 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
47735 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
47736 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
47737 | fi | |
47738 | ||
47739 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
47740 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
47741 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
47742 | fi | |
47743 | ||
47744 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
47745 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
47746 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
47747 | fi | |
47748 | ||
47749 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
47750 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47751 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
47752 | fi | |
47753 | ||
47754 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
47755 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
47756 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
47757 | fi | |
47758 | ||
47759 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
47760 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47761 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
47762 | fi | |
47763 | ||
a848cd7e SC |
47764 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
47765 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
47766 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
47767 | fi | |
47768 | ||
a848cd7e SC |
47769 | COND_TOOLKIT_MAC="#" |
47770 | if test "x$TOOLKIT" = "xMAC" ; then | |
47771 | COND_TOOLKIT_MAC="" | |
47772 | fi | |
47773 | ||
47774 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
47775 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47776 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
47777 | fi | |
47778 | ||
47779 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
47780 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47781 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47782 | fi | |
47783 | ||
47784 | COND_TOOLKIT_MGL="#" | |
47785 | if test "x$TOOLKIT" = "xMGL" ; then | |
47786 | COND_TOOLKIT_MGL="" | |
47787 | fi | |
47788 | ||
47789 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
47790 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
47791 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
47792 | fi | |
47793 | ||
47794 | COND_TOOLKIT_MOTIF="#" | |
47795 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
47796 | COND_TOOLKIT_MOTIF="" | |
47797 | fi | |
47798 | ||
47799 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
47800 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
47801 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
47802 | fi | |
47803 | ||
47804 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
47805 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47806 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
47807 | fi | |
47808 | ||
47809 | COND_TOOLKIT_MSW="#" | |
47810 | if test "x$TOOLKIT" = "xMSW" ; then | |
47811 | COND_TOOLKIT_MSW="" | |
47812 | fi | |
47813 | ||
47814 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
47815 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
47816 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
47817 | fi | |
47818 | ||
47819 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
47820 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47821 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
47822 | fi | |
47823 | ||
0ee4059d DE |
47824 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
47825 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47826 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
47827 | fi | |
47828 | ||
a848cd7e SC |
47829 | COND_TOOLKIT_PM="#" |
47830 | if test "x$TOOLKIT" = "xPM" ; then | |
47831 | COND_TOOLKIT_PM="" | |
47832 | fi | |
47833 | ||
47834 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
47835 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
47836 | COND_TOOLKIT_PM_USE_GUI_1="" | |
47837 | fi | |
47838 | ||
47839 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
47840 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47841 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
47842 | fi | |
47843 | ||
3fd9c298 DE |
47844 | COND_TOOLKIT_WINCE="#" |
47845 | if test "x$TOOLKIT" = "xWINCE" ; then | |
47846 | COND_TOOLKIT_WINCE="" | |
47847 | fi | |
47848 | ||
47849 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
47850 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
47851 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
47852 | fi | |
47853 | ||
47854 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
47855 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47856 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
47857 | fi | |
47858 | ||
0ee4059d DE |
47859 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
47860 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
47861 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
47862 | fi | |
47863 | ||
a848cd7e SC |
47864 | COND_TOOLKIT_X11="#" |
47865 | if test "x$TOOLKIT" = "xX11" ; then | |
47866 | COND_TOOLKIT_X11="" | |
47867 | fi | |
47868 | ||
47869 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
47870 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
47871 | COND_TOOLKIT_X11_USE_GUI_1="" | |
47872 | fi | |
47873 | ||
47874 | COND_UNICODE_1="#" | |
47875 | if test "x$UNICODE" = "x1" ; then | |
47876 | COND_UNICODE_1="" | |
47877 | fi | |
47878 | ||
47879 | COND_USE_EXCEPTIONS_0="#" | |
47880 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
47881 | COND_USE_EXCEPTIONS_0="" | |
47882 | fi | |
47883 | ||
47884 | COND_USE_EXCEPTIONS_1="#" | |
47885 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
47886 | COND_USE_EXCEPTIONS_1="" | |
47887 | fi | |
47888 | ||
47889 | COND_USE_GUI_0="#" | |
47890 | if test "x$USE_GUI" = "x0" ; then | |
47891 | COND_USE_GUI_0="" | |
47892 | fi | |
47893 | ||
47894 | COND_USE_GUI_1="#" | |
47895 | if test "x$USE_GUI" = "x1" ; then | |
47896 | COND_USE_GUI_1="" | |
47897 | fi | |
47898 | ||
47899 | COND_USE_GUI_1_WXUNIV_0="#" | |
47900 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47901 | COND_USE_GUI_1_WXUNIV_0="" | |
47902 | fi | |
47903 | ||
47904 | COND_USE_GUI_1_WXUNIV_1="#" | |
47905 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
47906 | COND_USE_GUI_1_WXUNIV_1="" | |
47907 | fi | |
47908 | ||
47909 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47910 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47911 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47912 | fi | |
47913 | ||
47914 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47915 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47916 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47917 | fi | |
47918 | ||
47919 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47920 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47921 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47922 | fi | |
47923 | ||
083508af MW |
47924 | COND_USE_ODBC_1="#" |
47925 | if test "x$USE_ODBC" = "x1" ; then | |
47926 | COND_USE_ODBC_1="" | |
47927 | fi | |
47928 | ||
47929 | COND_USE_OPENGL_1="#" | |
47930 | if test "x$USE_OPENGL" = "x1" ; then | |
47931 | COND_USE_OPENGL_1="" | |
47932 | fi | |
47933 | ||
a848cd7e SC |
47934 | COND_USE_PLUGINS_0="#" |
47935 | if test "x$USE_PLUGINS" = "x0" ; then | |
47936 | COND_USE_PLUGINS_0="" | |
47937 | fi | |
47938 | ||
0b78747f MW |
47939 | COND_USE_RTTI_0="#" |
47940 | if test "x$USE_RTTI" = "x0" ; then | |
47941 | COND_USE_RTTI_0="" | |
47942 | fi | |
47943 | ||
47944 | COND_USE_RTTI_1="#" | |
47945 | if test "x$USE_RTTI" = "x1" ; then | |
47946 | COND_USE_RTTI_1="" | |
47947 | fi | |
47948 | ||
a848cd7e SC |
47949 | COND_USE_SOSYMLINKS_1="#" |
47950 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
47951 | COND_USE_SOSYMLINKS_1="" | |
47952 | fi | |
47953 | ||
eb730a0c JS |
47954 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
47955 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47956 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
47957 | fi | |
47958 | ||
a848cd7e SC |
47959 | COND_USE_SOVERLINUX_1="#" |
47960 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
47961 | COND_USE_SOVERLINUX_1="" | |
47962 | fi | |
47963 | ||
47964 | COND_USE_SOVERSION_0="#" | |
47965 | if test "x$USE_SOVERSION" = "x0" ; then | |
47966 | COND_USE_SOVERSION_0="" | |
47967 | fi | |
47968 | ||
47969 | COND_USE_SOVERSOLARIS_1="#" | |
47970 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
47971 | COND_USE_SOVERSOLARIS_1="" | |
47972 | fi | |
47973 | ||
0b78747f MW |
47974 | COND_USE_THREADS_0="#" |
47975 | if test "x$USE_THREADS" = "x0" ; then | |
47976 | COND_USE_THREADS_0="" | |
47977 | fi | |
47978 | ||
47979 | COND_USE_THREADS_1="#" | |
47980 | if test "x$USE_THREADS" = "x1" ; then | |
47981 | COND_USE_THREADS_1="" | |
47982 | fi | |
47983 | ||
a13a7f89 RL |
47984 | COND_USE_XRC_1="#" |
47985 | if test "x$USE_XRC" = "x1" ; then | |
47986 | COND_USE_XRC_1="" | |
47987 | fi | |
47988 | ||
eb730a0c JS |
47989 | COND_WINDOWS_IMPLIB_1="#" |
47990 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
47991 | COND_WINDOWS_IMPLIB_1="" | |
47992 | fi | |
47993 | ||
a848cd7e SC |
47994 | COND_WITH_PLUGIN_SDL_1="#" |
47995 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
47996 | COND_WITH_PLUGIN_SDL_1="" | |
47997 | fi | |
47998 | ||
1e6eb025 VZ |
47999 | COND_WXUNIV_0="#" |
48000 | if test "x$WXUNIV" = "x0" ; then | |
48001 | COND_WXUNIV_0="" | |
48002 | fi | |
48003 | ||
a848cd7e SC |
48004 | COND_WXUNIV_1="#" |
48005 | if test "x$WXUNIV" = "x1" ; then | |
48006 | COND_WXUNIV_1="" | |
48007 | fi | |
48008 | ||
48009 | COND_WXUSE_EXPAT_BUILTIN="#" | |
48010 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48011 | COND_WXUSE_EXPAT_BUILTIN="" | |
48012 | fi | |
48013 | ||
48014 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
48015 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48016 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
48017 | fi | |
48018 | ||
48019 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
48020 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48021 | COND_WXUSE_LIBPNG_BUILTIN="" | |
48022 | fi | |
48023 | ||
48024 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
48025 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48026 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
48027 | fi | |
48028 | ||
48029 | COND_WXUSE_ODBC_BUILTIN="#" | |
48030 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48031 | COND_WXUSE_ODBC_BUILTIN="" | |
48032 | fi | |
48033 | ||
48034 | COND_WXUSE_REGEX_BUILTIN="#" | |
48035 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48036 | COND_WXUSE_REGEX_BUILTIN="" | |
48037 | fi | |
48038 | ||
48039 | COND_WXUSE_ZLIB_BUILTIN="#" | |
48040 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48041 | COND_WXUSE_ZLIB_BUILTIN="" | |
48042 | fi | |
48043 | ||
48044 | ||
48045 | ||
810b94f0 MW |
48046 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
48047 | { { 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 | |
48048 | 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;} | |
48049 | { (exit 1); exit 1; }; } | |
48050 | fi | |
48051 | ||
2057db16 VS |
48052 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
48053 | { { 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 | |
48054 | 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;} | |
48055 | { (exit 1); exit 1; }; } | |
48056 | fi | |
48057 | ||
a848cd7e | 48058 | |
ceec2216 RL |
48059 | if test "$wxUSE_SHARED" = "yes"; then |
48060 | ||
48061 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
48062 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
48063 | ||
5b674b9d DE |
48064 | case "${host}" in |
48065 | *-pc-os2_emx | *-pc-os2-emx ) | |
48066 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48067 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48068 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
48069 | cp -p ${srcdir}/src/os2/dllar.sh . | |
48070 | ;; | |
48071 | esac | |
ceec2216 RL |
48072 | else |
48073 | ||
48074 | EXE_LINKER="$CXX -o" | |
48075 | ||
48076 | fi | |
69120ee4 VZ |
48077 | if test "$wxUSE_OMF" = "yes"; then |
48078 | case "${host}" in | |
48079 | *-pc-os2_emx | *-pc-os2-emx ) | |
48080 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
48081 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48082 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48083 | ;; | |
48084 | esac | |
48085 | fi | |
a848cd7e | 48086 | |
c08ebc62 | 48087 | if test $GCC_PCH = 1 ; then |
254e8e29 | 48088 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 48089 | fi |
a848cd7e | 48090 | |
5ff751d6 | 48091 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
48092 | |
48093 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
48094 | ||
48095 | ||
48096 | ||
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 | ||
a848cd7e SC |
48136 | |
48137 | ||
48138 | ||
48139 | ||
48140 | ||
48141 | ||
48142 | ||
48143 | ||
48144 | ||
48145 | ||
48146 | ||
48147 | ||
a848cd7e SC |
48148 | |
48149 | ||
ddd14b14 | 48150 | |
370d2fd7 | 48151 | |
8ced02f6 | 48152 | |
a848cd7e SC |
48153 | |
48154 | ||
48155 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48156 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48157 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48158 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48160 | else | |
48161 | cat >conftest.make <<\_ACEOF | |
48162 | all: | |
48163 | @echo 'ac_maketemp="$(MAKE)"' | |
48164 | _ACEOF | |
48165 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48166 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48167 | if test -n "$ac_maketemp"; then | |
48168 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48169 | else | |
48170 | eval ac_cv_prog_make_${ac_make}_set=no | |
48171 | fi | |
48172 | rm -f conftest.make | |
48173 | fi | |
48174 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48175 | echo "$as_me:$LINENO: result: yes" >&5 | |
48176 | echo "${ECHO_T}yes" >&6 | |
48177 | SET_MAKE= | |
48178 | else | |
48179 | echo "$as_me:$LINENO: result: no" >&5 | |
48180 | echo "${ECHO_T}no" >&6 | |
48181 | SET_MAKE="MAKE=${MAKE-make}" | |
48182 | fi | |
48183 | ||
48184 | ||
a848cd7e | 48185 | |
ceec2216 RL |
48186 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48187 | ||
a848cd7e | 48188 | |
5c60e845 MW |
48189 | if test "$USE_WIN32" = 1; then |
48190 | ac_config_commands="$ac_config_commands | |
48191 | rcdefs.h | |
48192 | " | |
48193 | ||
48194 | fi | |
48195 | ||
ceec2216 | 48196 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48197 | |
a848cd7e | 48198 | |
ceec2216 | 48199 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48200 | |
ceec2216 RL |
48201 | |
48202 | ac_config_files="$ac_config_files version-script Makefile" | |
48203 | ||
48204 | ||
5c60e845 | 48205 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48206 | |
48207 | ||
9103d280 | 48208 | |
1c14217d | 48209 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48210 | if test "$wxUSE_GUI" = "yes"; then |
48211 | SUBDIRS="samples demos utils contrib" | |
48212 | else SUBDIRS="samples utils" | |
48213 | fi | |
48214 | ||
48215 | ||
48216 | ||
48217 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48218 | if test "${with_cppunit_prefix+set}" = set; then | |
48219 | withval="$with_cppunit_prefix" | |
48220 | cppunit_config_prefix="$withval" | |
48221 | else | |
48222 | cppunit_config_prefix="" | |
48223 | fi; | |
48224 | ||
48225 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48226 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48227 | withval="$with_cppunit_exec_prefix" | |
48228 | cppunit_config_exec_prefix="$withval" | |
48229 | else | |
48230 | cppunit_config_exec_prefix="" | |
48231 | fi; | |
48232 | ||
48233 | if test x$cppunit_config_exec_prefix != x ; then | |
48234 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
48235 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48236 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
48237 | fi | |
48238 | fi | |
48239 | if test x$cppunit_config_prefix != x ; then | |
48240 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
48241 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48242 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
48243 | fi | |
48244 | fi | |
48245 | ||
48246 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
48247 | set dummy cppunit-config; ac_word=$2 | |
48248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48250 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
48251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48252 | else | |
48253 | case $CPPUNIT_CONFIG in | |
48254 | [\\/]* | ?:[\\/]*) | |
48255 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
48256 | ;; | |
48257 | *) | |
48258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48259 | for as_dir in $PATH | |
48260 | do | |
48261 | IFS=$as_save_IFS | |
48262 | test -z "$as_dir" && as_dir=. | |
48263 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48264 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48265 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
48266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48267 | break 2 | |
48268 | fi | |
48269 | done | |
48270 | done | |
48271 | ||
48272 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
48273 | ;; | |
48274 | esac | |
48275 | fi | |
48276 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
48277 | ||
48278 | if test -n "$CPPUNIT_CONFIG"; then | |
48279 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
48280 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
48281 | else | |
48282 | echo "$as_me:$LINENO: result: no" >&5 | |
48283 | echo "${ECHO_T}no" >&6 | |
48284 | fi | |
48285 | ||
48286 | cppunit_version_min=1.8.0 | |
48287 | ||
48288 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
48289 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
48290 | no_cppunit="" | |
48291 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
48292 | no_cppunit=yes | |
48293 | else | |
48294 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
48295 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
48296 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
48297 | ||
48298 | cppunit_major_version=`echo $cppunit_version | \ | |
48299 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48300 | cppunit_minor_version=`echo $cppunit_version | \ | |
48301 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48302 | cppunit_micro_version=`echo $cppunit_version | \ | |
48303 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48304 | ||
48305 | cppunit_major_min=`echo $cppunit_version_min | \ | |
48306 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48307 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
48308 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48309 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
48310 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48311 | ||
48312 | cppunit_version_proper=`expr \ | |
48313 | $cppunit_major_version \> $cppunit_major_min \| \ | |
48314 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48315 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
48316 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48317 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
48318 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
48319 | ||
48320 | if test "$cppunit_version_proper" = "1" ; then | |
48321 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
48322 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
48323 | else | |
48324 | echo "$as_me:$LINENO: result: no" >&5 | |
48325 | echo "${ECHO_T}no" >&6 | |
48326 | no_cppunit=yes | |
48327 | fi | |
48328 | fi | |
48329 | ||
48330 | if test "x$no_cppunit" = x ; then | |
c2218763 | 48331 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
48332 | else |
48333 | CPPUNIT_CFLAGS="" | |
48334 | CPPUNIT_LIBS="" | |
c2218763 | 48335 | : |
a848cd7e SC |
48336 | fi |
48337 | ||
48338 | ||
48339 | ||
48340 | ||
48341 | ||
48342 | for subdir in `echo $SUBDIRS`; do | |
48343 | if test -d ${srcdir}/${subdir} ; then | |
48344 | if test "$wxUSE_GUI" = "yes"; then | |
48345 | if test ${subdir} = "samples"; then | |
48346 | makefiles="samples/Makefile.in $makefiles" | |
48347 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
48348 | if test -d $srcdir/samples/$sample; then | |
48349 | makefiles="samples/$sample/Makefile.in $makefiles" | |
48350 | fi | |
48351 | done | |
9c112555 MW |
48352 | else |
48353 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
48354 | eval "disabled=\$$disabled_var" | |
48355 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
48356 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
48357 | fi |
48358 | else if test ${subdir} = "samples"; then | |
48359 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
48360 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
48361 | makefiles="" |
48362 | for util in HelpGen tex2rtf ; do | |
48363 | if test -d $srcdir/utils/$util ; then | |
48364 | makefiles="utils/$util/Makefile.in \ | |
48365 | utils/$util/src/Makefile.in \ | |
48366 | $makefiles" | |
48367 | fi | |
48368 | done | |
a848cd7e SC |
48369 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
48370 | fi | |
48371 | fi | |
48372 | ||
48373 | for mkin in $makefiles ; do | |
48374 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
48375 | ac_config_files="$ac_config_files $mk" | |
48376 | ||
48377 | done | |
48378 | fi | |
48379 | done | |
1c14217d | 48380 | fi |
a848cd7e SC |
48381 | cat >confcache <<\_ACEOF |
48382 | # This file is a shell script that caches the results of configure | |
48383 | # tests run on this system so they can be shared between configure | |
48384 | # scripts and configure runs, see configure's option --config-cache. | |
48385 | # It is not useful on other systems. If it contains results you don't | |
48386 | # want to keep, you may remove or edit it. | |
48387 | # | |
48388 | # config.status only pays attention to the cache file if you give it | |
48389 | # the --recheck option to rerun configure. | |
48390 | # | |
48391 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
48392 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
48393 | # following values. | |
48394 | ||
48395 | _ACEOF | |
48396 | ||
48397 | # The following way of writing the cache mishandles newlines in values, | |
48398 | # but we know of no workaround that is simple, portable, and efficient. | |
48399 | # So, don't put newlines in cache variables' values. | |
48400 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
48401 | # and sets the high bit in the cache file unless we assign to the vars. | |
48402 | { | |
48403 | (set) 2>&1 | | |
48404 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
48405 | *ac_space=\ *) | |
48406 | # `set' does not quote correctly, so add quotes (double-quote | |
48407 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
48408 | sed -n \ | |
ac1cb8d3 VS |
48409 | "s/'/'\\\\''/g; |
48410 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
48411 | ;; |
48412 | *) | |
48413 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
48414 | sed -n \ | |
ac1cb8d3 | 48415 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
48416 | ;; |
48417 | esac; | |
48418 | } | | |
48419 | sed ' | |
48420 | t clear | |
48421 | : clear | |
48422 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
48423 | t end | |
48424 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
48425 | : end' >>confcache | |
48426 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
48427 | if test -w $cache_file; then | |
48428 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
48429 | cat confcache >$cache_file | |
48430 | else | |
48431 | echo "not updating unwritable cache $cache_file" | |
48432 | fi | |
48433 | fi | |
48434 | rm -f confcache | |
48435 | ||
48436 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
48437 | # Let make expand exec_prefix. | |
48438 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
48439 | ||
48440 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
48441 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
48442 | # trailing colons and then remove the whole line if VPATH becomes empty | |
48443 | # (actually we leave an empty line to preserve line numbers). | |
48444 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 48445 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
48446 | s/:*\$(srcdir):*/:/; |
48447 | s/:*\${srcdir}:*/:/; | |
48448 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 48449 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 48450 | s/:*$//; |
ac1cb8d3 | 48451 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
48452 | }' |
48453 | fi | |
48454 | ||
48455 | DEFS=-DHAVE_CONFIG_H | |
48456 | ||
48457 | ac_libobjs= | |
48458 | ac_ltlibobjs= | |
48459 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
48460 | # 1. Remove the extension, and $U if already installed. | |
48461 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 48462 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
48463 | # 2. Add them. |
48464 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
48465 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
48466 | done | |
48467 | LIBOBJS=$ac_libobjs | |
48468 | ||
48469 | LTLIBOBJS=$ac_ltlibobjs | |
48470 | ||
48471 | ||
48472 | ||
48473 | : ${CONFIG_STATUS=./config.status} | |
48474 | ac_clean_files_save=$ac_clean_files | |
48475 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
48476 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
48477 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
48478 | cat >$CONFIG_STATUS <<_ACEOF | |
48479 | #! $SHELL | |
48480 | # Generated by $as_me. | |
48481 | # Run this file to recreate the current configuration. | |
48482 | # Compiler output produced by configure, useful for debugging | |
48483 | # configure, is in config.log if it exists. | |
48484 | ||
48485 | debug=false | |
48486 | ac_cs_recheck=false | |
48487 | ac_cs_silent=false | |
48488 | SHELL=\${CONFIG_SHELL-$SHELL} | |
48489 | _ACEOF | |
48490 | ||
48491 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48492 | ## --------------------- ## | |
48493 | ## M4sh Initialization. ## | |
48494 | ## --------------------- ## | |
48495 | ||
48496 | # Be Bourne compatible | |
48497 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
48498 | emulate sh | |
48499 | NULLCMD=: | |
48500 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
48501 | # is contrary to our usage. Disable this feature. | |
48502 | alias -g '${1+"$@"}'='"$@"' | |
48503 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
48504 | set -o posix | |
48505 | fi | |
ac1cb8d3 | 48506 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
48507 | |
48508 | # Support unset when possible. | |
ac1cb8d3 | 48509 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
48510 | as_unset=unset |
48511 | else | |
48512 | as_unset=false | |
48513 | fi | |
48514 | ||
48515 | ||
48516 | # Work around bugs in pre-3.0 UWIN ksh. | |
48517 | $as_unset ENV MAIL MAILPATH | |
48518 | PS1='$ ' | |
48519 | PS2='> ' | |
48520 | PS4='+ ' | |
48521 | ||
48522 | # NLS nuisances. | |
48523 | for as_var in \ | |
48524 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
48525 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
48526 | LC_TELEPHONE LC_TIME | |
48527 | do | |
ac1cb8d3 | 48528 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48529 | eval $as_var=C; export $as_var |
48530 | else | |
48531 | $as_unset $as_var | |
48532 | fi | |
48533 | done | |
48534 | ||
48535 | # Required to use basename. | |
48536 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48537 | as_expr=expr | |
48538 | else | |
48539 | as_expr=false | |
48540 | fi | |
48541 | ||
48542 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
48543 | as_basename=basename | |
48544 | else | |
48545 | as_basename=false | |
48546 | fi | |
48547 | ||
48548 | ||
48549 | # Name of the executable. | |
48550 | as_me=`$as_basename "$0" || | |
48551 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
48552 | X"$0" : 'X\(//\)$' \| \ | |
48553 | X"$0" : 'X\(/\)$' \| \ | |
48554 | . : '\(.\)' 2>/dev/null || | |
48555 | echo X/"$0" | | |
48556 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
48557 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
48558 | /^X\/\(\/\).*/{ s//\1/; q; } | |
48559 | s/.*/./; q'` | |
48560 | ||
48561 | ||
48562 | # PATH needs CR, and LINENO needs CR and PATH. | |
48563 | # Avoid depending upon Character Ranges. | |
48564 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
48565 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
48566 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
48567 | as_cr_digits='0123456789' | |
48568 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
48569 | ||
48570 | # The user is always right. | |
48571 | if test "${PATH_SEPARATOR+set}" != set; then | |
48572 | echo "#! /bin/sh" >conf$$.sh | |
48573 | echo "exit 0" >>conf$$.sh | |
48574 | chmod +x conf$$.sh | |
48575 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48576 | PATH_SEPARATOR=';' | |
48577 | else | |
48578 | PATH_SEPARATOR=: | |
48579 | fi | |
48580 | rm -f conf$$.sh | |
48581 | fi | |
48582 | ||
48583 | ||
48584 | as_lineno_1=$LINENO | |
48585 | as_lineno_2=$LINENO | |
48586 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48587 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48588 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
48589 | # Find who we are. Look in the path if we contain no path at all | |
48590 | # relative or not. | |
48591 | case $0 in | |
48592 | *[\\/]* ) as_myself=$0 ;; | |
48593 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48594 | for as_dir in $PATH | |
48595 | do | |
48596 | IFS=$as_save_IFS | |
48597 | test -z "$as_dir" && as_dir=. | |
48598 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
48599 | done | |
48600 | ||
48601 | ;; | |
48602 | esac | |
48603 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
48604 | # in which case we are not to be found in the path. | |
48605 | if test "x$as_myself" = x; then | |
48606 | as_myself=$0 | |
48607 | fi | |
48608 | if test ! -f "$as_myself"; then | |
48609 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
48610 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
48611 | { (exit 1); exit 1; }; } | |
48612 | fi | |
48613 | case $CONFIG_SHELL in | |
48614 | '') | |
48615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48616 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
48617 | do | |
48618 | IFS=$as_save_IFS | |
48619 | test -z "$as_dir" && as_dir=. | |
48620 | for as_base in sh bash ksh sh5; do | |
48621 | case $as_dir in | |
48622 | /*) | |
48623 | if ("$as_dir/$as_base" -c ' | |
48624 | as_lineno_1=$LINENO | |
48625 | as_lineno_2=$LINENO | |
48626 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48627 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48628 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
48629 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
48630 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
48631 | CONFIG_SHELL=$as_dir/$as_base | |
48632 | export CONFIG_SHELL | |
48633 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
48634 | fi;; | |
48635 | esac | |
48636 | done | |
48637 | done | |
48638 | ;; | |
48639 | esac | |
48640 | ||
48641 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
48642 | # uniformly replaced by the line number. The first 'sed' inserts a | |
48643 | # line-number line before each line; the second 'sed' does the real | |
48644 | # work. The second script uses 'N' to pair each line-number line | |
48645 | # with the numbered line, and appends trailing '-' during | |
48646 | # substitution so that $LINENO is not a special case at line end. | |
48647 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
48648 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
48649 | sed '=' <$as_myself | | |
48650 | sed ' | |
48651 | N | |
48652 | s,$,-, | |
48653 | : loop | |
48654 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
48655 | t loop | |
48656 | s,-$,, | |
48657 | s,^['$as_cr_digits']*\n,, | |
48658 | ' >$as_me.lineno && | |
48659 | chmod +x $as_me.lineno || | |
48660 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
48661 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
48662 | { (exit 1); exit 1; }; } | |
48663 | ||
48664 | # Don't try to exec as it changes $[0], causing all sort of problems | |
48665 | # (the dirname of $[0] is not the place where we might find the | |
48666 | # original and so on. Autoconf is especially sensible to this). | |
48667 | . ./$as_me.lineno | |
48668 | # Exit status is that of the last command. | |
48669 | exit | |
48670 | } | |
48671 | ||
48672 | ||
48673 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
48674 | *c*,-n*) ECHO_N= ECHO_C=' | |
48675 | ' ECHO_T=' ' ;; | |
48676 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
48677 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
48678 | esac | |
48679 | ||
48680 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48681 | as_expr=expr | |
48682 | else | |
48683 | as_expr=false | |
48684 | fi | |
48685 | ||
48686 | rm -f conf$$ conf$$.exe conf$$.file | |
48687 | echo >conf$$.file | |
48688 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
48689 | # We could just check for DJGPP; but this test a) works b) is more generic | |
48690 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
48691 | if test -f conf$$.exe; then | |
48692 | # Don't use ln at all; we don't have any links | |
48693 | as_ln_s='cp -p' | |
48694 | else | |
48695 | as_ln_s='ln -s' | |
48696 | fi | |
48697 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
48698 | as_ln_s=ln | |
48699 | else | |
48700 | as_ln_s='cp -p' | |
48701 | fi | |
48702 | rm -f conf$$ conf$$.exe conf$$.file | |
48703 | ||
48704 | if mkdir -p . 2>/dev/null; then | |
48705 | as_mkdir_p=: | |
48706 | else | |
ac1cb8d3 | 48707 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
48708 | as_mkdir_p=false |
48709 | fi | |
48710 | ||
48711 | as_executable_p="test -f" | |
48712 | ||
48713 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 48714 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48715 | |
48716 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 48717 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48718 | |
48719 | ||
48720 | # IFS | |
48721 | # We need space, tab and new line, in precisely that order. | |
48722 | as_nl=' | |
48723 | ' | |
48724 | IFS=" $as_nl" | |
48725 | ||
48726 | # CDPATH. | |
48727 | $as_unset CDPATH | |
48728 | ||
48729 | exec 6>&1 | |
48730 | ||
48731 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
48732 | # report actual input values of CONFIG_FILES etc. instead of their | |
48733 | # values after options handling. Logging --version etc. is OK. | |
48734 | exec 5>>config.log | |
48735 | { | |
48736 | echo | |
48737 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
48738 | ## Running $as_me. ## | |
48739 | _ASBOX | |
48740 | } >&5 | |
48741 | cat >&5 <<_CSEOF | |
48742 | ||
dd8df4fc | 48743 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 48744 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
48745 | |
48746 | CONFIG_FILES = $CONFIG_FILES | |
48747 | CONFIG_HEADERS = $CONFIG_HEADERS | |
48748 | CONFIG_LINKS = $CONFIG_LINKS | |
48749 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
48750 | $ $0 $@ | |
48751 | ||
48752 | _CSEOF | |
48753 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
48754 | echo >&5 | |
48755 | _ACEOF | |
48756 | ||
48757 | # Files that config.status was made for. | |
48758 | if test -n "$ac_config_files"; then | |
48759 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
48760 | fi | |
48761 | ||
48762 | if test -n "$ac_config_headers"; then | |
48763 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
48764 | fi | |
48765 | ||
48766 | if test -n "$ac_config_links"; then | |
48767 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
48768 | fi | |
48769 | ||
48770 | if test -n "$ac_config_commands"; then | |
48771 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
48772 | fi | |
48773 | ||
48774 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48775 | ||
48776 | ac_cs_usage="\ | |
48777 | \`$as_me' instantiates files from templates according to the | |
48778 | current configuration. | |
48779 | ||
48780 | Usage: $0 [OPTIONS] [FILE]... | |
48781 | ||
48782 | -h, --help print this help, then exit | |
48783 | -V, --version print version number, then exit | |
48784 | -q, --quiet do not print progress messages | |
48785 | -d, --debug don't remove temporary files | |
48786 | --recheck update $as_me by reconfiguring in the same conditions | |
48787 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 48788 | instantiate the configuration file FILE |
a848cd7e | 48789 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 48790 | instantiate the configuration header FILE |
a848cd7e SC |
48791 | |
48792 | Configuration files: | |
48793 | $config_files | |
48794 | ||
48795 | Configuration headers: | |
48796 | $config_headers | |
48797 | ||
48798 | Configuration commands: | |
48799 | $config_commands | |
48800 | ||
48801 | Report bugs to <bug-autoconf@gnu.org>." | |
48802 | _ACEOF | |
48803 | ||
48804 | cat >>$CONFIG_STATUS <<_ACEOF | |
48805 | ac_cs_version="\\ | |
dd8df4fc | 48806 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 48807 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
48808 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
48809 | ||
ac1cb8d3 | 48810 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
48811 | This config.status script is free software; the Free Software Foundation |
48812 | gives unlimited permission to copy, distribute and modify it." | |
48813 | srcdir=$srcdir | |
48814 | INSTALL="$INSTALL" | |
48815 | _ACEOF | |
48816 | ||
48817 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48818 | # If no file are specified by the user, then we need to provide default | |
48819 | # value. By we need to know if files were specified by the user. | |
48820 | ac_need_defaults=: | |
48821 | while test $# != 0 | |
48822 | do | |
48823 | case $1 in | |
48824 | --*=*) | |
48825 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
48826 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
48827 | ac_shift=: | |
48828 | ;; | |
48829 | -*) | |
48830 | ac_option=$1 | |
48831 | ac_optarg=$2 | |
48832 | ac_shift=shift | |
48833 | ;; | |
48834 | *) # This is not an option, so the user has probably given explicit | |
48835 | # arguments. | |
48836 | ac_option=$1 | |
48837 | ac_need_defaults=false;; | |
48838 | esac | |
48839 | ||
48840 | case $ac_option in | |
48841 | # Handling of the options. | |
48842 | _ACEOF | |
48843 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48844 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
48845 | ac_cs_recheck=: ;; | |
48846 | --version | --vers* | -V ) | |
48847 | echo "$ac_cs_version"; exit 0 ;; | |
48848 | --he | --h) | |
48849 | # Conflict between --help and --header | |
48850 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
48851 | Try \`$0 --help' for more information." >&5 | |
48852 | echo "$as_me: error: ambiguous option: $1 | |
48853 | Try \`$0 --help' for more information." >&2;} | |
48854 | { (exit 1); exit 1; }; };; | |
48855 | --help | --hel | -h ) | |
48856 | echo "$ac_cs_usage"; exit 0 ;; | |
48857 | --debug | --d* | -d ) | |
48858 | debug=: ;; | |
48859 | --file | --fil | --fi | --f ) | |
48860 | $ac_shift | |
48861 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
48862 | ac_need_defaults=false;; | |
48863 | --header | --heade | --head | --hea ) | |
48864 | $ac_shift | |
48865 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
48866 | ac_need_defaults=false;; | |
48867 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
48868 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
48869 | ac_cs_silent=: ;; | |
48870 | ||
48871 | # This is an error. | |
48872 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
48873 | Try \`$0 --help' for more information." >&5 | |
48874 | echo "$as_me: error: unrecognized option: $1 | |
48875 | Try \`$0 --help' for more information." >&2;} | |
48876 | { (exit 1); exit 1; }; } ;; | |
48877 | ||
48878 | *) ac_config_targets="$ac_config_targets $1" ;; | |
48879 | ||
48880 | esac | |
48881 | shift | |
48882 | done | |
48883 | ||
48884 | ac_configure_extra_args= | |
48885 | ||
48886 | if $ac_cs_silent; then | |
48887 | exec 6>/dev/null | |
48888 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
48889 | fi | |
48890 | ||
48891 | _ACEOF | |
48892 | cat >>$CONFIG_STATUS <<_ACEOF | |
48893 | if \$ac_cs_recheck; then | |
48894 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
48895 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
48896 | fi | |
48897 | ||
48898 | _ACEOF | |
48899 | ||
48900 | cat >>$CONFIG_STATUS <<_ACEOF | |
48901 | # | |
48902 | # INIT-COMMANDS section. | |
48903 | # | |
48904 | ||
5c60e845 MW |
48905 | |
48906 | CPP="$CPP" | |
48907 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
48908 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
48909 | ||
48910 | ||
ceec2216 RL |
48911 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
48912 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48913 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48914 | LN_S="${LN_S}" | |
a848cd7e SC |
48915 | |
48916 | ||
48917 | _ACEOF | |
48918 | ||
48919 | ||
48920 | ||
48921 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48922 | for ac_config_target in $ac_config_targets | |
48923 | do | |
48924 | case "$ac_config_target" in | |
48925 | # Handling of arguments. | |
ceec2216 RL |
48926 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
48927 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
48928 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
48929 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
48930 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 48931 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
48932 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
48933 | "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 |
48934 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
48935 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
48936 | { (exit 1); exit 1; }; };; | |
48937 | esac | |
48938 | done | |
48939 | ||
48940 | # If the user did not use the arguments to specify the items to instantiate, | |
48941 | # then the envvar interface is used. Set only those that are not. | |
48942 | # We use the long form for the default assignment because of an extremely | |
48943 | # bizarre bug on SunOS 4.1.3. | |
48944 | if $ac_need_defaults; then | |
48945 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
48946 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
48947 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
48948 | fi | |
48949 | ||
48950 | # Have a temporary directory for convenience. Make it in the build tree | |
48951 | # simply because there is no reason to put it here, and in addition, | |
48952 | # creating and moving files from /tmp can sometimes cause problems. | |
48953 | # Create a temporary directory, and hook for its removal unless debugging. | |
48954 | $debug || | |
48955 | { | |
48956 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
48957 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
48958 | } | |
48959 | ||
48960 | # Create a (secure) tmp directory for tmp files. | |
48961 | ||
48962 | { | |
48963 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
48964 | test -n "$tmp" && test -d "$tmp" | |
48965 | } || | |
48966 | { | |
48967 | tmp=./confstat$$-$RANDOM | |
48968 | (umask 077 && mkdir $tmp) | |
48969 | } || | |
48970 | { | |
48971 | echo "$me: cannot create a temporary directory in ." >&2 | |
48972 | { (exit 1); exit 1; } | |
48973 | } | |
48974 | ||
48975 | _ACEOF | |
48976 | ||
48977 | cat >>$CONFIG_STATUS <<_ACEOF | |
48978 | ||
48979 | # | |
48980 | # CONFIG_FILES section. | |
48981 | # | |
48982 | ||
48983 | # No need to generate the scripts if there are no CONFIG_FILES. | |
48984 | # This happens for instance when ./config.status config.h | |
48985 | if test -n "\$CONFIG_FILES"; then | |
48986 | # Protect against being on the right side of a sed subst in config.status. | |
48987 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
48988 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
48989 | s,@SHELL@,$SHELL,;t t | |
48990 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
48991 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
48992 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
48993 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
48994 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
48995 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
48996 | s,@exec_prefix@,$exec_prefix,;t t | |
48997 | s,@prefix@,$prefix,;t t | |
48998 | s,@program_transform_name@,$program_transform_name,;t t | |
48999 | s,@bindir@,$bindir,;t t | |
49000 | s,@sbindir@,$sbindir,;t t | |
49001 | s,@libexecdir@,$libexecdir,;t t | |
49002 | s,@datadir@,$datadir,;t t | |
49003 | s,@sysconfdir@,$sysconfdir,;t t | |
49004 | s,@sharedstatedir@,$sharedstatedir,;t t | |
49005 | s,@localstatedir@,$localstatedir,;t t | |
49006 | s,@libdir@,$libdir,;t t | |
49007 | s,@includedir@,$includedir,;t t | |
49008 | s,@oldincludedir@,$oldincludedir,;t t | |
49009 | s,@infodir@,$infodir,;t t | |
49010 | s,@mandir@,$mandir,;t t | |
49011 | s,@build_alias@,$build_alias,;t t | |
49012 | s,@host_alias@,$host_alias,;t t | |
49013 | s,@target_alias@,$target_alias,;t t | |
49014 | s,@DEFS@,$DEFS,;t t | |
49015 | s,@ECHO_C@,$ECHO_C,;t t | |
49016 | s,@ECHO_N@,$ECHO_N,;t t | |
49017 | s,@ECHO_T@,$ECHO_T,;t t | |
49018 | s,@LIBS@,$LIBS,;t t | |
49019 | s,@build@,$build,;t t | |
49020 | s,@build_cpu@,$build_cpu,;t t | |
49021 | s,@build_vendor@,$build_vendor,;t t | |
49022 | s,@build_os@,$build_os,;t t | |
49023 | s,@host@,$host,;t t | |
49024 | s,@host_cpu@,$host_cpu,;t t | |
49025 | s,@host_vendor@,$host_vendor,;t t | |
49026 | s,@host_os@,$host_os,;t t | |
49027 | s,@target@,$target,;t t | |
49028 | s,@target_cpu@,$target_cpu,;t t | |
49029 | s,@target_vendor@,$target_vendor,;t t | |
49030 | s,@target_os@,$target_os,;t t | |
49031 | s,@CC@,$CC,;t t | |
49032 | s,@CFLAGS@,$CFLAGS,;t t | |
49033 | s,@LDFLAGS@,$LDFLAGS,;t t | |
49034 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
49035 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
49036 | s,@EXEEXT@,$EXEEXT,;t t | |
49037 | s,@OBJEXT@,$OBJEXT,;t t | |
49038 | s,@CPP@,$CPP,;t t | |
49039 | s,@EGREP@,$EGREP,;t t | |
49040 | s,@CXX@,$CXX,;t t | |
49041 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
49042 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
49043 | s,@RANLIB@,$RANLIB,;t t | |
49044 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
49045 | s,@AR@,$AR,;t t | |
8c80d384 | 49046 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
49047 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
49048 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
49049 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
49050 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 49051 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
49052 | s,@WINDRES@,$WINDRES,;t t |
49053 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
49054 | s,@DLLTOOL@,$DLLTOOL,;t t |
49055 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
49056 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
49057 | s,@LN_S@,$LN_S,;t t | |
bcaab0f9 | 49058 | s,@LNDIR@,$LNDIR,;t t |
a848cd7e SC |
49059 | s,@CXXCPP@,$CXXCPP,;t t |
49060 | s,@subdirs@,$subdirs,;t t | |
49061 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
49062 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
49063 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
49064 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
49065 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
49066 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
49067 | s,@X_LIBS@,$X_LIBS,;t t | |
49068 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
49069 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
49070 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
49071 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
49072 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
49073 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
49074 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 49075 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
49076 | s,@DEREZ@,$DEREZ,;t t |
49077 | s,@SETFILE@,$SETFILE,;t t | |
49078 | s,@LIBICONV@,$LIBICONV,;t t | |
49079 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
49080 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
49081 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
49082 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
49083 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
49084 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
3565d135 RR |
49085 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
49086 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
dae87f93 RN |
49087 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
49088 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
49089 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
49090 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
49091 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
49092 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
49093 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
49094 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
49095 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
49096 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
49097 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
49098 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
49099 | s,@VENDOR@,$VENDOR,;t t | |
49100 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
49101 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
49102 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
49103 | s,@WXUNIV@,$WXUNIV,;t t |
49104 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49105 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49106 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49107 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49108 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49109 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49110 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49111 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49112 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49113 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49114 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
3565d135 | 49115 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49116 | s,@UNICODE@,$UNICODE,;t t |
49117 | s,@BUILD@,$BUILD,;t t | |
49118 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49119 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49120 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49121 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49122 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49123 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49124 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49125 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49126 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49127 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49128 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49129 | s,@NM@,$NM,;t t |
49130 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49131 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49132 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49133 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49134 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49135 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49136 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49137 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49138 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49139 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49140 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49141 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49142 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49143 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49144 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49145 | s,@LIBEXT@,$LIBEXT,;t t | |
49146 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49147 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49148 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49149 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49150 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49151 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49152 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49153 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49154 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49155 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49156 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49157 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49158 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49159 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49160 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49161 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49162 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49163 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49164 | s,@GCC_PCH@,$GCC_PCH,;t t | |
49165 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
49166 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49167 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49168 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49169 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49170 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49171 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49172 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49173 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49174 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49175 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49176 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49177 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49178 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49179 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
49180 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
49181 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
49182 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 49183 | 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 | 49184 | 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 | 49185 | 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 | 49186 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 49187 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49188 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
49189 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 49190 | 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 | 49191 | 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 | 49192 | 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 | 49193 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 49194 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
49195 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49196 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49197 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49198 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49199 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49200 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49201 | 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 |
49202 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49203 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49204 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49205 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49206 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49207 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49208 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49209 | 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 |
49210 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49211 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49212 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49213 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49214 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49215 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 49216 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49217 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49218 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49219 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49220 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
49221 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
49222 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
49223 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
49224 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
49225 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
49226 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
49227 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
49228 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
49229 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49230 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49231 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 49232 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49233 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
49234 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
49235 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
49236 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
49237 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
49238 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 49239 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 49240 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 49241 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 49242 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
49243 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
49244 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
49245 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
49246 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
49247 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
49248 | 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 | |
49249 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
49250 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 49251 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
49252 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
49253 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
49254 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
49255 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
49256 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
49257 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
49258 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
49259 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
49260 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
49261 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
49262 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49263 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
49264 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
49265 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
49266 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
49267 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
49268 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
49269 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49270 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
49271 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
49272 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
49273 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
49274 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
49275 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
49276 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
49277 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
49278 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
49279 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
49280 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49281 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49282 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
49283 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
49284 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 49285 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
49286 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
49287 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 49288 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 49289 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
49290 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
49291 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
49292 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
49293 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
49294 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 49295 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 49296 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 49297 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 49298 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
49299 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
49300 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
49301 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
49302 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
49303 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
49304 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
49305 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
49306 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 49307 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
49308 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
49309 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
49310 | s,@USE_GUI@,$USE_GUI,;t t |
49311 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
49312 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
49313 | s,@TOOLKIT@,$TOOLKIT,;t t | |
49314 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 49315 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 49316 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 49317 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
49318 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
49319 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
49320 | s,@WX_VERSION@,$WX_VERSION,;t t | |
49321 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
49322 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
49323 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
49324 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
49325 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
49326 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
49327 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
49328 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
49329 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 49330 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 49331 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 49332 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
49333 | s,@DISTDIR@,$DISTDIR,;t t |
49334 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
49335 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
49336 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
49337 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
49338 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 49339 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
49340 | s,@RESFLAGS@,$RESFLAGS,;t t |
49341 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
49342 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
49343 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
49344 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 49345 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 49346 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 49347 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
49348 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
49349 | s,@LIBOBJS@,$LIBOBJS,;t t | |
49350 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
49351 | CEOF | |
49352 | ||
49353 | _ACEOF | |
49354 | ||
49355 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49356 | # Split the substitutions into bite-sized pieces for seds with | |
49357 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
49358 | ac_max_sed_lines=48 | |
49359 | ac_sed_frag=1 # Number of current file. | |
49360 | ac_beg=1 # First line for current file. | |
49361 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
49362 | ac_more_lines=: | |
49363 | ac_sed_cmds= | |
49364 | while $ac_more_lines; do | |
49365 | if test $ac_beg -gt 1; then | |
49366 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49367 | else | |
49368 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49369 | fi | |
49370 | if test ! -s $tmp/subs.frag; then | |
49371 | ac_more_lines=false | |
49372 | else | |
49373 | # The purpose of the label and of the branching condition is to | |
49374 | # speed up the sed processing (if there are no `@' at all, there | |
49375 | # is no need to browse any of the substitutions). | |
49376 | # These are the two extra sed commands mentioned above. | |
49377 | (echo ':t | |
49378 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
49379 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 49380 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 49381 | else |
ac1cb8d3 | 49382 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
49383 | fi |
49384 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
49385 | ac_beg=$ac_end | |
49386 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
49387 | fi | |
49388 | done | |
49389 | if test -z "$ac_sed_cmds"; then | |
49390 | ac_sed_cmds=cat | |
49391 | fi | |
49392 | fi # test -n "$CONFIG_FILES" | |
49393 | ||
49394 | _ACEOF | |
49395 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49396 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
49397 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49398 | case $ac_file in | |
49399 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49400 | cat >$tmp/stdin |
49401 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49402 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49403 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49404 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49405 | * ) ac_file_in=$ac_file.in ;; |
49406 | esac | |
49407 | ||
49408 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
49409 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49410 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49411 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49412 | X"$ac_file" : 'X\(//\)$' \| \ | |
49413 | X"$ac_file" : 'X\(/\)' \| \ | |
49414 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49415 | echo X"$ac_file" | |
49416 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49417 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49418 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49419 | /^X\(\/\).*/{ s//\1/; q; } | |
49420 | s/.*/./; q'` | |
49421 | { if $as_mkdir_p; then | |
49422 | mkdir -p "$ac_dir" | |
49423 | else | |
49424 | as_dir="$ac_dir" | |
49425 | as_dirs= | |
49426 | while test ! -d "$as_dir"; do | |
49427 | as_dirs="$as_dir $as_dirs" | |
49428 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49429 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49430 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49431 | X"$as_dir" : 'X\(//\)$' \| \ | |
49432 | X"$as_dir" : 'X\(/\)' \| \ | |
49433 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49434 | echo X"$as_dir" | |
49435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49436 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49437 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49438 | /^X\(\/\).*/{ s//\1/; q; } | |
49439 | s/.*/./; q'` | |
49440 | done | |
49441 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49442 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49443 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49444 | { (exit 1); exit 1; }; }; } | |
49445 | ||
49446 | ac_builddir=. | |
49447 | ||
49448 | if test "$ac_dir" != .; then | |
49449 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49450 | # A "../" for each directory in $ac_dir_suffix. | |
49451 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49452 | else | |
49453 | ac_dir_suffix= ac_top_builddir= | |
49454 | fi | |
49455 | ||
49456 | case $srcdir in | |
49457 | .) # No --srcdir option. We are building in place. | |
49458 | ac_srcdir=. | |
49459 | if test -z "$ac_top_builddir"; then | |
49460 | ac_top_srcdir=. | |
49461 | else | |
49462 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49463 | fi ;; | |
49464 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49465 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49466 | ac_top_srcdir=$srcdir ;; | |
49467 | *) # Relative path. | |
49468 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49469 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49470 | esac | |
ac1cb8d3 VS |
49471 | |
49472 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49473 | # the directories may not exist. | |
49474 | case `pwd` in | |
49475 | .) ac_abs_builddir="$ac_dir";; | |
49476 | *) | |
49477 | case "$ac_dir" in | |
49478 | .) ac_abs_builddir=`pwd`;; | |
49479 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49480 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49481 | esac;; | |
49482 | esac | |
49483 | case $ac_abs_builddir in | |
49484 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49485 | *) | |
49486 | case ${ac_top_builddir}. in | |
49487 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49488 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49489 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49490 | esac;; | |
49491 | esac | |
49492 | case $ac_abs_builddir in | |
49493 | .) ac_abs_srcdir=$ac_srcdir;; | |
49494 | *) | |
49495 | case $ac_srcdir in | |
49496 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49497 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49498 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49499 | esac;; | |
49500 | esac | |
49501 | case $ac_abs_builddir in | |
49502 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49503 | *) | |
49504 | case $ac_top_srcdir in | |
49505 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49506 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49507 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49508 | esac;; | |
49509 | esac | |
a848cd7e SC |
49510 | |
49511 | ||
49512 | case $INSTALL in | |
49513 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
49514 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
49515 | esac | |
49516 | ||
3565d135 RR |
49517 | if test x"$ac_file" != x-; then |
49518 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49519 | echo "$as_me: creating $ac_file" >&6;} | |
49520 | rm -f "$ac_file" | |
49521 | fi | |
a848cd7e SC |
49522 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
49523 | # use $as_me), people would be surprised to read: | |
49524 | # /* config.h. Generated by config.status. */ | |
49525 | if test x"$ac_file" = x-; then | |
49526 | configure_input= | |
49527 | else | |
49528 | configure_input="$ac_file. " | |
49529 | fi | |
49530 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 49531 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
49532 | |
49533 | # First look for the input files in the build tree, otherwise in the | |
49534 | # src tree. | |
49535 | ac_file_inputs=`IFS=: | |
49536 | for f in $ac_file_in; do | |
49537 | case $f in | |
49538 | -) echo $tmp/stdin ;; | |
49539 | [\\/$]*) | |
ac1cb8d3 VS |
49540 | # Absolute (can't be DOS-style, as IFS=:) |
49541 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49542 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49543 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49544 | echo "$f";; |
a848cd7e | 49545 | *) # Relative |
ac1cb8d3 VS |
49546 | if test -f "$f"; then |
49547 | # Build tree | |
49548 | echo "$f" | |
49549 | elif test -f "$srcdir/$f"; then | |
49550 | # Source tree | |
49551 | echo "$srcdir/$f" | |
49552 | else | |
49553 | # /dev/null tree | |
49554 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49555 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49556 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49557 | fi;; |
a848cd7e SC |
49558 | esac |
49559 | done` || { (exit 1); exit 1; } | |
49560 | _ACEOF | |
49561 | cat >>$CONFIG_STATUS <<_ACEOF | |
49562 | sed "$ac_vpsub | |
49563 | $extrasub | |
49564 | _ACEOF | |
49565 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49566 | :t | |
49567 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
49568 | s,@configure_input@,$configure_input,;t t | |
49569 | s,@srcdir@,$ac_srcdir,;t t | |
49570 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
49571 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
49572 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
49573 | s,@builddir@,$ac_builddir,;t t | |
49574 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
49575 | s,@top_builddir@,$ac_top_builddir,;t t | |
49576 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
49577 | s,@INSTALL@,$ac_INSTALL,;t t | |
49578 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
49579 | rm -f $tmp/stdin | |
49580 | if test x"$ac_file" != x-; then | |
49581 | mv $tmp/out $ac_file | |
49582 | else | |
49583 | cat $tmp/out | |
49584 | rm -f $tmp/out | |
49585 | fi | |
49586 | ||
ceec2216 RL |
49587 | # Run the commands associated with the file. |
49588 | case $ac_file in | |
49589 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
49590 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
49591 | esac | |
a848cd7e SC |
49592 | done |
49593 | _ACEOF | |
49594 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49595 | ||
49596 | # | |
49597 | # CONFIG_HEADER section. | |
49598 | # | |
49599 | ||
49600 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
49601 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
49602 | # | |
49603 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
49604 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
49605 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
49606 | ac_dC=' ' |
49607 | ac_dD=',;t' | |
49608 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 49609 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
49610 | ac_uB='$,\1#\2define\3' |
49611 | ac_uC=' ' | |
49612 | ac_uD=',;t' | |
49613 | ||
49614 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
49615 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49616 | case $ac_file in | |
49617 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49618 | cat >$tmp/stdin |
49619 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49620 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49621 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49622 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49623 | * ) ac_file_in=$ac_file.in ;; |
49624 | esac | |
49625 | ||
49626 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49627 | echo "$as_me: creating $ac_file" >&6;} | |
49628 | ||
49629 | # First look for the input files in the build tree, otherwise in the | |
49630 | # src tree. | |
49631 | ac_file_inputs=`IFS=: | |
49632 | for f in $ac_file_in; do | |
49633 | case $f in | |
49634 | -) echo $tmp/stdin ;; | |
49635 | [\\/$]*) | |
ac1cb8d3 VS |
49636 | # Absolute (can't be DOS-style, as IFS=:) |
49637 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49638 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49639 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
49640 | # Do quote $f, to prevent DOS paths from being IFS'd. |
49641 | echo "$f";; | |
a848cd7e | 49642 | *) # Relative |
ac1cb8d3 VS |
49643 | if test -f "$f"; then |
49644 | # Build tree | |
49645 | echo "$f" | |
49646 | elif test -f "$srcdir/$f"; then | |
49647 | # Source tree | |
49648 | echo "$srcdir/$f" | |
49649 | else | |
49650 | # /dev/null tree | |
49651 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49652 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49653 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49654 | fi;; |
a848cd7e SC |
49655 | esac |
49656 | done` || { (exit 1); exit 1; } | |
49657 | # Remove the trailing spaces. | |
ac1cb8d3 | 49658 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
49659 | |
49660 | _ACEOF | |
49661 | ||
49662 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
49663 | # `conftest.undefs', that substitutes the proper values into | |
49664 | # config.h.in to produce config.h. The first handles `#define' | |
49665 | # templates, and the second `#undef' templates. | |
49666 | # And first: Protect against being on the right side of a sed subst in | |
49667 | # config.status. Protect against being in an unquoted here document | |
49668 | # in config.status. | |
49669 | rm -f conftest.defines conftest.undefs | |
49670 | # Using a here document instead of a string reduces the quoting nightmare. | |
49671 | # Putting comments in sed scripts is not portable. | |
49672 | # | |
49673 | # `end' is used to avoid that the second main sed command (meant for | |
49674 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
49675 | # See the Autoconf documentation for `clear'. | |
49676 | cat >confdef2sed.sed <<\_ACEOF | |
49677 | s/[\\&,]/\\&/g | |
49678 | s,[\\$`],\\&,g | |
49679 | t clear | |
49680 | : clear | |
ac1cb8d3 | 49681 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 49682 | t end |
ac1cb8d3 | 49683 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
49684 | : end |
49685 | _ACEOF | |
49686 | # If some macros were called several times there might be several times | |
49687 | # the same #defines, which is useless. Nevertheless, we may not want to | |
49688 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
49689 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
49690 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
49691 | rm -f confdef2sed.sed | |
49692 | ||
49693 | # This sed command replaces #undef with comments. This is necessary, for | |
49694 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
49695 | # on some systems where configure will not decide to define it. | |
49696 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 49697 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
49698 | _ACEOF |
49699 | ||
49700 | # Break up conftest.defines because some shells have a limit on the size | |
49701 | # of here documents, and old seds have small limits too (100 cmds). | |
49702 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 49703 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
49704 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
49705 | echo ' :' >>$CONFIG_STATUS | |
49706 | rm -f conftest.tail | |
49707 | while grep . conftest.defines >/dev/null | |
49708 | do | |
49709 | # Write a limited-size here document to $tmp/defines.sed. | |
49710 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
49711 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 49712 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49713 | # Work around the forget-to-reset-the-flag bug. |
49714 | echo 't clr' >>$CONFIG_STATUS | |
49715 | echo ': clr' >>$CONFIG_STATUS | |
49716 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
49717 | echo 'CEOF | |
49718 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
49719 | rm -f $tmp/in | |
49720 | mv $tmp/out $tmp/in | |
49721 | ' >>$CONFIG_STATUS | |
49722 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
49723 | rm -f conftest.defines | |
49724 | mv conftest.tail conftest.defines | |
49725 | done | |
49726 | rm -f conftest.defines | |
49727 | echo ' fi # grep' >>$CONFIG_STATUS | |
49728 | echo >>$CONFIG_STATUS | |
49729 | ||
49730 | # Break up conftest.undefs because some shells have a limit on the size | |
49731 | # of here documents, and old seds have small limits too (100 cmds). | |
49732 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
49733 | rm -f conftest.tail | |
49734 | while grep . conftest.undefs >/dev/null | |
49735 | do | |
49736 | # Write a limited-size here document to $tmp/undefs.sed. | |
49737 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
49738 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 49739 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49740 | # Work around the forget-to-reset-the-flag bug. |
49741 | echo 't clr' >>$CONFIG_STATUS | |
49742 | echo ': clr' >>$CONFIG_STATUS | |
49743 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
49744 | echo 'CEOF | |
49745 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
49746 | rm -f $tmp/in | |
49747 | mv $tmp/out $tmp/in | |
49748 | ' >>$CONFIG_STATUS | |
49749 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
49750 | rm -f conftest.undefs | |
49751 | mv conftest.tail conftest.undefs | |
49752 | done | |
49753 | rm -f conftest.undefs | |
49754 | ||
49755 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49756 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
49757 | # use $as_me), people would be surprised to read: | |
49758 | # /* config.h. Generated by config.status. */ | |
49759 | if test x"$ac_file" = x-; then | |
49760 | echo "/* Generated by configure. */" >$tmp/config.h | |
49761 | else | |
49762 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
49763 | fi | |
49764 | cat $tmp/in >>$tmp/config.h | |
49765 | rm -f $tmp/in | |
49766 | if test x"$ac_file" != x-; then | |
49767 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
49768 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
49769 | echo "$as_me: $ac_file is unchanged" >&6;} | |
49770 | else | |
49771 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49772 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49773 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49774 | X"$ac_file" : 'X\(//\)$' \| \ | |
49775 | X"$ac_file" : 'X\(/\)' \| \ | |
49776 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49777 | echo X"$ac_file" | |
49778 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49779 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49780 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49781 | /^X\(\/\).*/{ s//\1/; q; } | |
49782 | s/.*/./; q'` | |
49783 | { if $as_mkdir_p; then | |
49784 | mkdir -p "$ac_dir" | |
49785 | else | |
49786 | as_dir="$ac_dir" | |
49787 | as_dirs= | |
49788 | while test ! -d "$as_dir"; do | |
49789 | as_dirs="$as_dir $as_dirs" | |
49790 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49791 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49792 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49793 | X"$as_dir" : 'X\(//\)$' \| \ | |
49794 | X"$as_dir" : 'X\(/\)' \| \ | |
49795 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49796 | echo X"$as_dir" | |
49797 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49798 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49799 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49800 | /^X\(\/\).*/{ s//\1/; q; } | |
49801 | s/.*/./; q'` | |
49802 | done | |
49803 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49804 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49805 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49806 | { (exit 1); exit 1; }; }; } | |
49807 | ||
49808 | rm -f $ac_file | |
49809 | mv $tmp/config.h $ac_file | |
49810 | fi | |
49811 | else | |
49812 | cat $tmp/config.h | |
49813 | rm -f $tmp/config.h | |
49814 | fi | |
49815 | done | |
49816 | _ACEOF | |
49817 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49818 | ||
49819 | # | |
49820 | # CONFIG_COMMANDS section. | |
49821 | # | |
49822 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
49823 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
49824 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49825 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
49826 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49827 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
49828 | X"$ac_dest" : 'X\(//\)$' \| \ | |
49829 | X"$ac_dest" : 'X\(/\)' \| \ | |
49830 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49831 | echo X"$ac_dest" | |
49832 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49833 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49834 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49835 | /^X\(\/\).*/{ s//\1/; q; } | |
49836 | s/.*/./; q'` | |
ac1cb8d3 VS |
49837 | { if $as_mkdir_p; then |
49838 | mkdir -p "$ac_dir" | |
49839 | else | |
49840 | as_dir="$ac_dir" | |
49841 | as_dirs= | |
49842 | while test ! -d "$as_dir"; do | |
49843 | as_dirs="$as_dir $as_dirs" | |
49844 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49845 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
49846 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
49847 | X"$as_dir" : 'X\(//\)$' \| \ | |
49848 | X"$as_dir" : 'X\(/\)' \| \ | |
49849 | . : '\(.\)' 2>/dev/null || | |
49850 | echo X"$as_dir" | | |
49851 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49852 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49853 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49854 | /^X\(\/\).*/{ s//\1/; q; } | |
49855 | s/.*/./; q'` | |
49856 | done | |
49857 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49858 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49859 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49860 | { (exit 1); exit 1; }; }; } | |
49861 | ||
a848cd7e SC |
49862 | ac_builddir=. |
49863 | ||
49864 | if test "$ac_dir" != .; then | |
49865 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49866 | # A "../" for each directory in $ac_dir_suffix. | |
49867 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49868 | else | |
49869 | ac_dir_suffix= ac_top_builddir= | |
49870 | fi | |
49871 | ||
49872 | case $srcdir in | |
49873 | .) # No --srcdir option. We are building in place. | |
49874 | ac_srcdir=. | |
49875 | if test -z "$ac_top_builddir"; then | |
49876 | ac_top_srcdir=. | |
49877 | else | |
49878 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49879 | fi ;; | |
49880 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49881 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49882 | ac_top_srcdir=$srcdir ;; | |
49883 | *) # Relative path. | |
49884 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49885 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49886 | esac | |
ac1cb8d3 VS |
49887 | |
49888 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49889 | # the directories may not exist. | |
49890 | case `pwd` in | |
49891 | .) ac_abs_builddir="$ac_dir";; | |
49892 | *) | |
49893 | case "$ac_dir" in | |
49894 | .) ac_abs_builddir=`pwd`;; | |
49895 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49896 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49897 | esac;; | |
49898 | esac | |
49899 | case $ac_abs_builddir in | |
49900 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49901 | *) | |
49902 | case ${ac_top_builddir}. in | |
49903 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49904 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49905 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49906 | esac;; | |
49907 | esac | |
49908 | case $ac_abs_builddir in | |
49909 | .) ac_abs_srcdir=$ac_srcdir;; | |
49910 | *) | |
49911 | case $ac_srcdir in | |
49912 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49913 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49914 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49915 | esac;; | |
49916 | esac | |
49917 | case $ac_abs_builddir in | |
49918 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49919 | *) | |
49920 | case $ac_top_srcdir in | |
49921 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49922 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49923 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49924 | esac;; | |
49925 | esac | |
a848cd7e SC |
49926 | |
49927 | ||
49928 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
49929 | echo "$as_me: executing $ac_dest commands" >&6;} | |
49930 | case $ac_dest in | |
5c60e845 MW |
49931 | rcdefs.h ) |
49932 | mkdir -p $outdir && | |
49933 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
49934 | ;; | |
ceec2216 RL |
49935 | wx-config ) rm -f wx-config |
49936 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
49937 | ;; | |
a848cd7e SC |
49938 | esac |
49939 | done | |
49940 | _ACEOF | |
49941 | ||
49942 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49943 | ||
49944 | { (exit 0); exit 0; } | |
49945 | _ACEOF | |
49946 | chmod +x $CONFIG_STATUS | |
49947 | ac_clean_files=$ac_clean_files_save | |
49948 | ||
49949 | ||
49950 | # configure is writing to config.log, and then calls config.status. | |
49951 | # config.status does its own redirection, appending to config.log. | |
49952 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
49953 | # by configure, so config.status won't be able to write to it; its | |
49954 | # output is simply discarded. So we exec the FD to /dev/null, | |
49955 | # effectively closing config.log, so it can be properly (re)opened and | |
49956 | # appended to by config.status. When coming back to configure, we | |
49957 | # need to make the FD available again. | |
49958 | if test "$no_create" != yes; then | |
49959 | ac_cs_success=: | |
49960 | ac_config_status_args= | |
49961 | test "$silent" = yes && | |
49962 | ac_config_status_args="$ac_config_status_args --quiet" | |
49963 | exec 5>/dev/null | |
49964 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
49965 | exec 5>>config.log | |
49966 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
49967 | # would make configure fail if this is the last instruction. | |
49968 | $ac_cs_success || { (exit 1); exit 1; } | |
49969 | fi | |
49970 | ||
49971 | # | |
49972 | # CONFIG_SUBDIRS section. | |
49973 | # | |
49974 | if test "$no_recursion" != yes; then | |
49975 | ||
49976 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
49977 | ac_sub_configure_args= | |
49978 | ac_prev= | |
49979 | for ac_arg in $ac_configure_args; do | |
49980 | if test -n "$ac_prev"; then | |
49981 | ac_prev= | |
49982 | continue | |
49983 | fi | |
49984 | case $ac_arg in | |
49985 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
49986 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
49987 | ac_prev=cache_file ;; | |
49988 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
49989 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
49990 | | --c=*) | |
49991 | ;; | |
49992 | --config-cache | -C) | |
49993 | ;; | |
49994 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
49995 | ac_prev=srcdir ;; | |
49996 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
49997 | ;; | |
49998 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
49999 | ac_prev=prefix ;; | |
50000 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
50001 | ;; | |
50002 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
50003 | esac | |
50004 | done | |
50005 | ||
50006 | # Always prepend --prefix to ensure using the same prefix | |
50007 | # in subdir configurations. | |
50008 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
50009 | ||
50010 | ac_popdir=`pwd` | |
50011 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
50012 | ||
50013 | # Do not complain, so a configure script can configure whichever | |
50014 | # parts of a large source tree are present. | |
50015 | test -d $srcdir/$ac_dir || continue | |
50016 | ||
50017 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
50018 | echo "$as_me: configuring in $ac_dir" >&6;} | |
50019 | { if $as_mkdir_p; then | |
50020 | mkdir -p "$ac_dir" | |
50021 | else | |
50022 | as_dir="$ac_dir" | |
50023 | as_dirs= | |
50024 | while test ! -d "$as_dir"; do | |
50025 | as_dirs="$as_dir $as_dirs" | |
50026 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50027 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50028 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50029 | X"$as_dir" : 'X\(//\)$' \| \ | |
50030 | X"$as_dir" : 'X\(/\)' \| \ | |
50031 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50032 | echo X"$as_dir" | |
50033 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50034 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50035 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50036 | /^X\(\/\).*/{ s//\1/; q; } | |
50037 | s/.*/./; q'` | |
50038 | done | |
50039 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50040 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50041 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50042 | { (exit 1); exit 1; }; }; } | |
50043 | ||
50044 | ac_builddir=. | |
50045 | ||
50046 | if test "$ac_dir" != .; then | |
50047 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50048 | # A "../" for each directory in $ac_dir_suffix. | |
50049 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50050 | else | |
50051 | ac_dir_suffix= ac_top_builddir= | |
50052 | fi | |
50053 | ||
50054 | case $srcdir in | |
50055 | .) # No --srcdir option. We are building in place. | |
50056 | ac_srcdir=. | |
50057 | if test -z "$ac_top_builddir"; then | |
50058 | ac_top_srcdir=. | |
50059 | else | |
50060 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50061 | fi ;; | |
50062 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50063 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50064 | ac_top_srcdir=$srcdir ;; | |
50065 | *) # Relative path. | |
50066 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50067 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50068 | esac | |
ac1cb8d3 VS |
50069 | |
50070 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50071 | # the directories may not exist. | |
50072 | case `pwd` in | |
50073 | .) ac_abs_builddir="$ac_dir";; | |
50074 | *) | |
50075 | case "$ac_dir" in | |
50076 | .) ac_abs_builddir=`pwd`;; | |
50077 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50078 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50079 | esac;; | |
50080 | esac | |
50081 | case $ac_abs_builddir in | |
50082 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50083 | *) | |
50084 | case ${ac_top_builddir}. in | |
50085 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50086 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50087 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50088 | esac;; | |
50089 | esac | |
50090 | case $ac_abs_builddir in | |
50091 | .) ac_abs_srcdir=$ac_srcdir;; | |
50092 | *) | |
50093 | case $ac_srcdir in | |
50094 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50095 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50096 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50097 | esac;; | |
50098 | esac | |
50099 | case $ac_abs_builddir in | |
50100 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50101 | *) | |
50102 | case $ac_top_srcdir in | |
50103 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50104 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50105 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50106 | esac;; | |
50107 | esac | |
a848cd7e SC |
50108 | |
50109 | ||
50110 | cd $ac_dir | |
50111 | ||
50112 | # Check for guested configure; otherwise get Cygnus style configure. | |
50113 | if test -f $ac_srcdir/configure.gnu; then | |
50114 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50115 | elif test -f $ac_srcdir/configure; then | |
50116 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50117 | elif test -f $ac_srcdir/configure.in; then | |
50118 | ac_sub_configure=$ac_configure | |
50119 | else | |
50120 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50121 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50122 | ac_sub_configure= | |
50123 | fi | |
50124 | ||
50125 | # The recursion is here. | |
50126 | if test -n "$ac_sub_configure"; then | |
50127 | # Make the cache file name correct relative to the subdirectory. | |
50128 | case $cache_file in | |
50129 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50130 | *) # Relative path. | |
ac1cb8d3 | 50131 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50132 | esac |
50133 | ||
50134 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50135 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50136 | # The eval makes quoting arguments work. | |
50137 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50138 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50139 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50140 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50141 | { (exit 1); exit 1; }; } | |
50142 | fi | |
50143 | ||
3565d135 | 50144 | cd $ac_popdir |
a848cd7e SC |
50145 | done |
50146 | fi | |
50147 | ||
50148 | ||
50149 | echo | |
77ffb593 | 50150 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50151 | echo "" |
4d4ff94c | 50152 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 50153 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50154 | |
77ffb593 JS |
50155 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50156 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50157 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50158 | |
77ffb593 | 50159 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50160 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50161 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50162 | |
77ffb593 | 50163 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50164 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50165 | echo " png ${wxUSE_LIBPNG-none}" | |
50166 | echo " regex ${wxUSE_REGEX}" | |
50167 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50168 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50169 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50170 | fi | |
50171 | echo " zlib ${wxUSE_ZLIB}" | |
50172 | echo " odbc ${wxUSE_ODBC}" | |
50173 | echo " expat ${wxUSE_EXPAT}" | |
50174 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50175 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50176 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
3565d135 | 50177 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50178 | |
50179 | echo "" | |
50180 |