]>
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" | |
8b6682b9 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
dd8df4fc | 797 | \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
dd8df4fc | 863 | short | recursive ) echo "Configuration of wxWidgets 2.7.0:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
f34ca037 | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
95768535 | 892 | --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working) |
dee1a63f MB |
893 | --enable-compat24 enable wxWidgets 2.4 compatibility |
894 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 895 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
896 | --enable-intl use internationalization system |
897 | --enable-config use wxConfig (and derived) classes | |
898 | --enable-protocols use wxProtocol and derived classes | |
899 | --enable-ftp use wxFTP (requires wxProtocol | |
900 | --enable-http use wxHTTP (requires wxProtocol | |
901 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
902 | --enable-sockets use socket/network classes | |
903 | --enable-ole use OLE classes (Win32 only) | |
904 | --enable-dataobj use data object classes | |
905 | --enable-ipc use interprocess communication (wxSocket etc.) | |
906 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 907 | --enable-arcstream use wxArchive streams |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 909 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
910 | --enable-cmdline use wxCmdLineParser class |
911 | --enable-datetime use wxDateTime class | |
36b6448c | 912 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
913 | --enable-dialupman use dialup network classes |
914 | --enable-dynlib use wxLibrary class for DLL loading | |
915 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
916 | --enable-exceptions build exception-safe library | |
917 | --enable-ffile use wxFFile class | |
918 | --enable-file use wxFile class | |
919 | --enable-filesystem use virtual file systems classes | |
920 | --enable-fontmap use font encodings conversion classes | |
921 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
922 | --enable-fs_zip use virtual ZIP filesystems | |
923 | --enable-geometry use geometry class | |
924 | --enable-log use logging system | |
925 | --enable-longlong use wxLongLong class | |
926 | --enable-mimetype use wxMimeTypesManager | |
927 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
928 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 929 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 930 | --enable-std_string use standard C++ string classes |
07158944 | 931 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 932 | --enable-stopwatch use wxStopWatch class |
07158944 | 933 | --enable-streams use wxStream etc classes |
a848cd7e SC |
934 | --enable-sysoptions use wxSystemOptions |
935 | --enable-textbuf use wxTextBuffer class | |
936 | --enable-textfile use wxTextFile class | |
937 | --enable-timer use wxTimer class | |
938 | --enable-unicode compile wxString with Unicode support | |
939 | --enable-sound use wxSound class | |
3b57de8b | 940 | --enable-mediactrl use wxMediaCtrl class |
f10e38c4 | 941 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix |
8b6682b9 | 942 | --enable-printfposparam use wxVsnprintf() which supports positional parameters |
81f90336 | 943 | --enable-zipstream use wxZip streams |
a848cd7e SC |
944 | --enable-url use wxURL class |
945 | --enable-protocol use wxProtocol class | |
946 | --enable-protocol-http HTTP support in wxProtocol | |
947 | --enable-protocol-ftp FTP support in wxProtocol | |
948 | --enable-protocol-file FILE support in wxProtocol | |
949 | --enable-threads use threads | |
950 | --enable-docview use document view architecture | |
951 | --enable-help use help subsystem | |
952 | --enable-mshtmlhelp use MS HTML Help (win32) | |
953 | --enable-html use wxHTML sub-library | |
954 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 955 | --enable-xrc use XRC resources sub-library |
3f60522a | 956 | --enable-aui use AUI docking library |
a848cd7e SC |
957 | --enable-constraints use layout-constraints system |
958 | --enable-printarch use printing architecture | |
959 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 960 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
961 | --enable-loggui use standard GUI logger |
962 | --enable-logwin use wxLogWindow | |
963 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 964 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 965 | --enable-richtext use wxRichTextCtrl |
a848cd7e SC |
966 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
967 | --enable-prologio not available; see contrib | |
968 | --enable-resources not available; see contrib | |
969 | --enable-clipboard use wxClipboard class | |
970 | --enable-dnd use Drag'n'Drop classes | |
971 | --enable-metafile use win32 metafiles | |
972 | --enable-controls use all usual controls | |
973 | --enable-accel use accelerators | |
974 | --enable-button use wxButton class | |
975 | --enable-bmpbutton use wxBitmapButton class | |
976 | --enable-calendar use wxCalendarCtrl class | |
977 | --enable-caret use wxCaret class | |
978 | --enable-checkbox use wxCheckBox class | |
979 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
980 | --enable-choice use wxChoice class | |
92bbdbcd | 981 | --enable-choicebook use wxChoicebook class |
e9263684 | 982 | --enable-colourpicker use wxColourPickerCtrl class |
a848cd7e | 983 | --enable-combobox use wxComboBox class |
a57d600f | 984 | --enable-comboctrl use wxComboCtrl class |
da98e9be | 985 | --enable-datepick use wxDatePickerCtrl class |
e9263684 | 986 | --enable-dirpicker use wxDirPickerCtrl class |
a848cd7e | 987 | --enable-display use wxDisplay class |
e9263684 VZ |
988 | --enable-filepicker use wxFilePickerCtrl class |
989 | --enable-fontpicker use wxFontPickerCtrl class | |
a848cd7e SC |
990 | --enable-gauge use wxGauge class |
991 | --enable-grid use wxGrid class | |
20e34ecc | 992 | --enable-dataviewctrl, use wxDataViewCtrl class |
6954625c | 993 | --enable-hyperlink use wxHyperlinkCtrl class |
a848cd7e SC |
994 | --enable-imaglist use wxImageList class |
995 | --enable-listbook use wxListbook class | |
996 | --enable-listbox use wxListBox class | |
997 | --enable-listctrl use wxListCtrl class | |
998 | --enable-notebook use wxNotebook class | |
a57d600f | 999 | --enable-odcombobox use wxOwnerDrawnComboBox class |
a848cd7e SC |
1000 | --enable-radiobox use wxRadioBox class |
1001 | --enable-radiobtn use wxRadioButton class | |
1002 | --enable-sash use wxSashWindow class | |
1003 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
1004 | --enable-slider use wxSlider class | |
1005 | --enable-spinbtn use wxSpinButton class | |
1006 | --enable-spinctrl use wxSpinCtrl class | |
1007 | --enable-splitter use wxSplitterWindow class | |
1008 | --enable-statbmp use wxStaticBitmap class | |
1009 | --enable-statbox use wxStaticBox class | |
1010 | --enable-statline use wxStaticLine class | |
1011 | --enable-stattext use wxStaticText class | |
1012 | --enable-statusbar use wxStatusBar class | |
1013 | --enable-tabdialog use wxTabControl class | |
1014 | --enable-textctrl use wxTextCtrl class | |
1015 | --enable-togglebtn use wxToggleButton class | |
1016 | --enable-toolbar use wxToolBar class | |
1017 | --enable-tbarnative use native wxToolBar class | |
1018 | --enable-tbarsmpl use wxToolBarSimple class | |
0093c2fc | 1019 | --enable-treebook use wxTreebook class |
5ec3bc43 | 1020 | --enable-toolbook use wxToolbook class |
a848cd7e SC |
1021 | --enable-treectrl use wxTreeCtrl class |
1022 | --enable-tipwindow use wxTipWindow class | |
1023 | --enable-popupwin use wxPopUpWindow class | |
1024 | --enable-commondlg use all common dialogs | |
1025 | --enable-choicedlg use wxChoiceDialog | |
1026 | --enable-coldlg use wxColourDialog | |
1027 | --enable-filedlg use wxFileDialog | |
1028 | --enable-finddlg use wxFindReplaceDialog | |
1029 | --enable-fontdlg use wxFontDialog | |
1030 | --enable-dirdlg use wxDirDialog | |
1031 | --enable-msgdlg use wxMessageDialog | |
1032 | --enable-numberdlg use wxNumberEntryDialog | |
1033 | --enable-splash use wxSplashScreen | |
1034 | --enable-textdlg use wxTextDialog | |
1035 | --enable-tipdlg use startup tips | |
1036 | --enable-progressdlg use wxProgressDialog | |
1037 | --enable-wizarddlg use wxWizard | |
1038 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1039 | --enable-miniframe use wxMiniFrame class | |
1040 | --enable-tooltips use wxToolTip class | |
1041 | --enable-splines use spline drawing code | |
fbe2ca43 | 1042 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1043 | --enable-validators use wxValidator and derived classes |
1044 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1045 | --enable-joystick use wxJoystick |
38b4a946 | 1046 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1047 | --enable-dragimage use wxDragImage |
1048 | --enable-accessibility enable accessibility support | |
38b4a946 | 1049 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1050 | --enable-palette use wxPalette class |
1051 | --enable-image use wxImage class | |
1052 | --enable-gif use gif images (GIF file format) | |
1053 | --enable-pcx use pcx images (PCX file format) | |
1054 | --enable-iff use iff images (IFF file format) | |
1055 | --enable-pnm use pnm images (PNM file format) | |
1056 | --enable-xpm use xpm images (XPM file format) | |
1057 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1058 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1059 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1060 | --disable-largefile omit support for large files | |
1061 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1062 | --disable-gtktest Do not try to compile and run a test GTK program | |
1063 | --disable-sdltest Do not try to compile and run a test SDL program | |
1064 | --enable-omf use OMF object format (OS/2) | |
f10e38c4 VZ |
1065 | --disable-dependency-tracking |
1066 | don't use dependency tracking even if the compiler | |
1067 | can | |
ebee3cd0 VS |
1068 | --disable-precomp-headers |
1069 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1070 | |
1071 | Optional Packages: | |
1072 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1073 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1074 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1075 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1076 | --with-motif use Motif/Lesstif |
1077 | --with-mac use Mac OS X | |
1078 | --with-cocoa use Cocoa | |
1079 | --with-wine use Wine | |
1080 | --with-msw use MS-Windows | |
1081 | --with-pm use OS/2 Presentation Manager | |
1082 | --with-mgl use SciTech MGL | |
1083 | --with-microwin use MicroWindows | |
1084 | --with-x11 use X11 | |
1085 | --with-libpng use libpng (PNG image format) | |
1086 | --with-libjpeg use libjpeg (JPEG file format) | |
1087 | --with-libtiff use libtiff (TIFF file format) | |
1088 | --with-libxpm use libxpm (XPM file format) | |
1089 | --with-libmspack use libmspack (CHM help files loading) | |
1090 | --with-sdl use SDL for audio on Unix | |
2b850ae1 RR |
1091 | --with-gnomeprint use GNOME print for printing under GNOME |
1092 | --with-gnomevfs use GNOME VFS for associating MIME types | |
3565d135 | 1093 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e SC |
1094 | --with-opengl use OpenGL (or Mesa) |
1095 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1096 | --with-regex enable support for wxRegEx class | |
1097 | --with-zlib use zlib for LZW compression | |
1098 | --with-odbc use the IODBC and wxODBC classes | |
1099 | --with-expat enable XML support using expat parser | |
ceec2216 | 1100 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1101 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1102 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1103 | --with-x use the X Window System | |
1104 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1105 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1106 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1107 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1108 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1109 | ||
1110 | Some influential environment variables: | |
dcc1b6ad VS |
1111 | CC C compiler command |
1112 | CFLAGS C compiler flags | |
1113 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1114 | nonstandard directory <lib dir> | |
1115 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1116 | headers in a nonstandard directory <include dir> | |
1117 | CPP C preprocessor | |
1118 | CXX C++ compiler command | |
1119 | CXXFLAGS C++ compiler flags | |
1120 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1121 | |
1122 | Use these variables to override the choices made by `configure' or to help | |
1123 | it to find libraries and programs with nonstandard names/locations. | |
1124 | ||
77ffb593 | 1125 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1126 | _ACEOF |
1127 | fi | |
1128 | ||
1129 | if test "$ac_init_help" = "recursive"; then | |
1130 | # If there are subdirs, report their specific --help. | |
1131 | ac_popdir=`pwd` | |
1132 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1133 | test -d $ac_dir || continue | |
1134 | ac_builddir=. | |
1135 | ||
1136 | if test "$ac_dir" != .; then | |
1137 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1138 | # A "../" for each directory in $ac_dir_suffix. | |
1139 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1140 | else | |
1141 | ac_dir_suffix= ac_top_builddir= | |
1142 | fi | |
1143 | ||
1144 | case $srcdir in | |
1145 | .) # No --srcdir option. We are building in place. | |
1146 | ac_srcdir=. | |
1147 | if test -z "$ac_top_builddir"; then | |
1148 | ac_top_srcdir=. | |
1149 | else | |
1150 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1151 | fi ;; | |
1152 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1153 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1154 | ac_top_srcdir=$srcdir ;; | |
1155 | *) # Relative path. | |
1156 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1157 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1158 | esac | |
ac1cb8d3 VS |
1159 | |
1160 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1161 | # the directories may not exist. | |
1162 | case `pwd` in | |
1163 | .) ac_abs_builddir="$ac_dir";; | |
1164 | *) | |
1165 | case "$ac_dir" in | |
1166 | .) ac_abs_builddir=`pwd`;; | |
1167 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1168 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1169 | esac;; | |
1170 | esac | |
1171 | case $ac_abs_builddir in | |
1172 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1173 | *) | |
1174 | case ${ac_top_builddir}. in | |
1175 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1176 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1177 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1178 | esac;; | |
1179 | esac | |
1180 | case $ac_abs_builddir in | |
1181 | .) ac_abs_srcdir=$ac_srcdir;; | |
1182 | *) | |
1183 | case $ac_srcdir in | |
1184 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1185 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1186 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1187 | esac;; | |
1188 | esac | |
1189 | case $ac_abs_builddir in | |
1190 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1191 | *) | |
1192 | case $ac_top_srcdir in | |
1193 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1194 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1195 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1196 | esac;; | |
1197 | esac | |
a848cd7e SC |
1198 | |
1199 | cd $ac_dir | |
1200 | # Check for guested configure; otherwise get Cygnus style configure. | |
1201 | if test -f $ac_srcdir/configure.gnu; then | |
1202 | echo | |
1203 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1204 | elif test -f $ac_srcdir/configure; then | |
1205 | echo | |
1206 | $SHELL $ac_srcdir/configure --help=recursive | |
1207 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1208 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1209 | echo |
1210 | $ac_configure --help | |
1211 | else | |
1212 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1213 | fi | |
c9a66001 | 1214 | cd "$ac_popdir" |
a848cd7e SC |
1215 | done |
1216 | fi | |
1217 | ||
1218 | test -n "$ac_init_help" && exit 0 | |
1219 | if $ac_init_version; then | |
1220 | cat <<\_ACEOF | |
dd8df4fc | 1221 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1222 | generated by GNU Autoconf 2.59 |
a848cd7e | 1223 | |
ac1cb8d3 | 1224 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1225 | This configure script is free software; the Free Software Foundation |
1226 | gives unlimited permission to copy, distribute and modify it. | |
1227 | _ACEOF | |
1228 | exit 0 | |
1229 | fi | |
1230 | exec 5>config.log | |
1231 | cat >&5 <<_ACEOF | |
1232 | This file contains any messages produced by compilers while | |
1233 | running configure, to aid debugging if configure makes a mistake. | |
1234 | ||
dd8df4fc | 1235 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1236 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1237 | |
1238 | $ $0 $@ | |
1239 | ||
1240 | _ACEOF | |
1241 | { | |
1242 | cat <<_ASUNAME | |
1243 | ## --------- ## | |
1244 | ## Platform. ## | |
1245 | ## --------- ## | |
1246 | ||
1247 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1248 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1249 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1250 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1251 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1252 | ||
1253 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1254 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1255 | ||
1256 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1257 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1258 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1259 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1260 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1261 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1262 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1263 | ||
1264 | _ASUNAME | |
1265 | ||
1266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1267 | for as_dir in $PATH | |
1268 | do | |
1269 | IFS=$as_save_IFS | |
1270 | test -z "$as_dir" && as_dir=. | |
1271 | echo "PATH: $as_dir" | |
1272 | done | |
1273 | ||
1274 | } >&5 | |
1275 | ||
1276 | cat >&5 <<_ACEOF | |
1277 | ||
1278 | ||
1279 | ## ----------- ## | |
1280 | ## Core tests. ## | |
1281 | ## ----------- ## | |
1282 | ||
1283 | _ACEOF | |
1284 | ||
1285 | ||
1286 | # Keep a trace of the command line. | |
1287 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1288 | # Strip out --silent because we don't want to record it for future runs. | |
1289 | # Also quote any args containing shell meta-characters. | |
1290 | # Make two passes to allow for proper duplicate-argument suppression. | |
1291 | ac_configure_args= | |
1292 | ac_configure_args0= | |
1293 | ac_configure_args1= | |
1294 | ac_sep= | |
1295 | ac_must_keep_next=false | |
1296 | for ac_pass in 1 2 | |
1297 | do | |
1298 | for ac_arg | |
1299 | do | |
1300 | case $ac_arg in | |
1301 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1302 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1303 | | -silent | --silent | --silen | --sile | --sil) | |
1304 | continue ;; | |
1305 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1306 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1307 | esac | |
1308 | case $ac_pass in | |
1309 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1310 | 2) | |
1311 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1312 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1313 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1314 | else |
ac1cb8d3 VS |
1315 | case $ac_arg in |
1316 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1317 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1318 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1319 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1320 | case "$ac_configure_args0 " in | |
1321 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1322 | esac | |
1323 | ;; | |
1324 | -* ) ac_must_keep_next=true ;; | |
1325 | esac | |
a848cd7e SC |
1326 | fi |
1327 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1328 | # Get rid of the leading space. | |
1329 | ac_sep=" " | |
1330 | ;; | |
1331 | esac | |
1332 | done | |
1333 | done | |
1334 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1335 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1336 | ||
1337 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1338 | # config.log. We remove comments because anyway the quotes in there | |
1339 | # would cause problems or look ugly. | |
1340 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1341 | # such as our DU 5.0 friend, will then `close' the trap. | |
1342 | trap 'exit_status=$? | |
1343 | # Save into config.log some information that might help in debugging. | |
1344 | { | |
1345 | echo | |
1346 | ||
1347 | cat <<\_ASBOX | |
1348 | ## ---------------- ## | |
1349 | ## Cache variables. ## | |
1350 | ## ---------------- ## | |
1351 | _ASBOX | |
1352 | echo | |
1353 | # The following way of writing the cache mishandles newlines in values, | |
1354 | { | |
1355 | (set) 2>&1 | | |
1356 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1357 | *ac_space=\ *) | |
1358 | sed -n \ | |
ac1cb8d3 VS |
1359 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1360 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1361 | ;; |
1362 | *) | |
1363 | sed -n \ | |
ac1cb8d3 | 1364 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1365 | ;; |
1366 | esac; | |
1367 | } | |
1368 | echo | |
1369 | ||
1370 | cat <<\_ASBOX | |
1371 | ## ----------------- ## | |
1372 | ## Output variables. ## | |
1373 | ## ----------------- ## | |
1374 | _ASBOX | |
1375 | echo | |
1376 | for ac_var in $ac_subst_vars | |
1377 | do | |
1378 | eval ac_val=$`echo $ac_var` | |
1379 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1380 | done | sort | |
1381 | echo | |
1382 | ||
1383 | if test -n "$ac_subst_files"; then | |
1384 | cat <<\_ASBOX | |
1385 | ## ------------- ## | |
1386 | ## Output files. ## | |
1387 | ## ------------- ## | |
1388 | _ASBOX | |
1389 | echo | |
1390 | for ac_var in $ac_subst_files | |
1391 | do | |
1392 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1393 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1394 | done | sort |
1395 | echo | |
1396 | fi | |
1397 | ||
1398 | if test -s confdefs.h; then | |
1399 | cat <<\_ASBOX | |
1400 | ## ----------- ## | |
1401 | ## confdefs.h. ## | |
1402 | ## ----------- ## | |
1403 | _ASBOX | |
1404 | echo | |
1405 | sed "/^$/d" confdefs.h | sort | |
1406 | echo | |
1407 | fi | |
1408 | test "$ac_signal" != 0 && | |
1409 | echo "$as_me: caught signal $ac_signal" | |
1410 | echo "$as_me: exit $exit_status" | |
1411 | } >&5 | |
ac1cb8d3 | 1412 | rm -f core *.core && |
a848cd7e SC |
1413 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1414 | exit $exit_status | |
1415 | ' 0 | |
1416 | for ac_signal in 1 2 13 15; do | |
1417 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1418 | done | |
1419 | ac_signal=0 | |
1420 | ||
1421 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1422 | rm -rf conftest* confdefs.h | |
1423 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1424 | echo >confdefs.h | |
1425 | ||
1426 | # Predefined preprocessor variables. | |
1427 | ||
1428 | cat >>confdefs.h <<_ACEOF | |
1429 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1430 | _ACEOF | |
1431 | ||
1432 | ||
1433 | cat >>confdefs.h <<_ACEOF | |
1434 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1435 | _ACEOF | |
1436 | ||
1437 | ||
1438 | cat >>confdefs.h <<_ACEOF | |
1439 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1440 | _ACEOF | |
1441 | ||
1442 | ||
1443 | cat >>confdefs.h <<_ACEOF | |
1444 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1445 | _ACEOF | |
1446 | ||
1447 | ||
1448 | cat >>confdefs.h <<_ACEOF | |
1449 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1450 | _ACEOF | |
1451 | ||
1452 | ||
1453 | # Let the site file select an alternate cache file if it wants to. | |
1454 | # Prefer explicitly selected file to automatically selected ones. | |
1455 | if test -z "$CONFIG_SITE"; then | |
1456 | if test "x$prefix" != xNONE; then | |
1457 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1458 | else | |
1459 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1460 | fi | |
1461 | fi | |
1462 | for ac_site_file in $CONFIG_SITE; do | |
1463 | if test -r "$ac_site_file"; then | |
1464 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1465 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1466 | sed 's/^/| /' "$ac_site_file" >&5 | |
1467 | . "$ac_site_file" | |
1468 | fi | |
1469 | done | |
1470 | ||
1471 | if test -r "$cache_file"; then | |
1472 | # Some versions of bash will fail to source /dev/null (special | |
1473 | # files actually), so we avoid doing that. | |
1474 | if test -f "$cache_file"; then | |
1475 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1476 | echo "$as_me: loading cache $cache_file" >&6;} | |
1477 | case $cache_file in | |
1478 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1479 | *) . ./$cache_file;; | |
1480 | esac | |
1481 | fi | |
1482 | else | |
1483 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1484 | echo "$as_me: creating cache $cache_file" >&6;} | |
1485 | >$cache_file | |
1486 | fi | |
1487 | ||
1488 | # Check that the precious variables saved in the cache have kept the same | |
1489 | # value. | |
1490 | ac_cache_corrupted=false | |
1491 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1492 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1493 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1494 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1495 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1496 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1497 | case $ac_old_set,$ac_new_set in | |
1498 | set,) | |
1499 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1500 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1501 | ac_cache_corrupted=: ;; | |
1502 | ,set) | |
1503 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1504 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1505 | ac_cache_corrupted=: ;; | |
1506 | ,);; | |
1507 | *) | |
1508 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1509 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1510 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1511 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1512 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1513 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1514 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1515 | ac_cache_corrupted=: |
a848cd7e SC |
1516 | fi;; |
1517 | esac | |
1518 | # Pass precious variables to config.status. | |
1519 | if test "$ac_new_set" = set; then | |
1520 | case $ac_new_val in | |
1521 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1522 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1523 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1524 | esac | |
1525 | case " $ac_configure_args " in | |
1526 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1527 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1528 | esac | |
1529 | fi | |
1530 | done | |
1531 | if $ac_cache_corrupted; then | |
1532 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1533 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1534 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1535 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1536 | { (exit 1); exit 1; }; } | |
1537 | fi | |
1538 | ||
1539 | ac_ext=c | |
1540 | ac_cpp='$CPP $CPPFLAGS' | |
1541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | ||
1562 | ||
1563 | ||
1564 | ||
1565 | ||
1566 | ||
1567 | ||
1568 | ||
1569 | ||
1570 | ||
1571 | ||
1572 | ||
1573 | ||
1574 | ac_aux_dir= | |
1575 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1576 | if test -f $ac_dir/install-sh; then | |
1577 | ac_aux_dir=$ac_dir | |
1578 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1579 | break | |
1580 | elif test -f $ac_dir/install.sh; then | |
1581 | ac_aux_dir=$ac_dir | |
1582 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1583 | break | |
1584 | elif test -f $ac_dir/shtool; then | |
1585 | ac_aux_dir=$ac_dir | |
1586 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1587 | break | |
1588 | fi | |
1589 | done | |
1590 | if test -z "$ac_aux_dir"; then | |
1591 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1592 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1593 | { (exit 1); exit 1; }; } | |
1594 | fi | |
1595 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1596 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1597 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1598 | ||
1599 | # Make sure we can run config.sub. | |
1600 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1601 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1602 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1603 | { (exit 1); exit 1; }; } | |
1604 | ||
1605 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1606 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1607 | if test "${ac_cv_build+set}" = set; then | |
1608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1609 | else | |
1610 | ac_cv_build_alias=$build_alias | |
1611 | test -z "$ac_cv_build_alias" && | |
1612 | ac_cv_build_alias=`$ac_config_guess` | |
1613 | test -z "$ac_cv_build_alias" && | |
1614 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1615 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1616 | { (exit 1); exit 1; }; } | |
1617 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1618 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1619 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1620 | { (exit 1); exit 1; }; } | |
1621 | ||
1622 | fi | |
1623 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1624 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1625 | build=$ac_cv_build | |
1626 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1627 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1628 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1629 | ||
1630 | ||
1631 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1632 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1633 | if test "${ac_cv_host+set}" = set; then | |
1634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1635 | else | |
1636 | ac_cv_host_alias=$host_alias | |
1637 | test -z "$ac_cv_host_alias" && | |
1638 | ac_cv_host_alias=$ac_cv_build_alias | |
1639 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1640 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1641 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1642 | { (exit 1); exit 1; }; } | |
1643 | ||
1644 | fi | |
1645 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1646 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1647 | host=$ac_cv_host | |
1648 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1649 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1650 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1651 | ||
1652 | ||
1653 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1654 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1655 | if test "${ac_cv_target+set}" = set; then | |
1656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1657 | else | |
1658 | ac_cv_target_alias=$target_alias | |
1659 | test "x$ac_cv_target_alias" = "x" && | |
1660 | ac_cv_target_alias=$ac_cv_host_alias | |
1661 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1662 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1663 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1664 | { (exit 1); exit 1; }; } | |
1665 | ||
1666 | fi | |
1667 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1668 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1669 | target=$ac_cv_target | |
1670 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1671 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1672 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1673 | ||
1674 | ||
1675 | # The aliases save the names the user supplied, while $host etc. | |
1676 | # will get canonicalized. | |
1677 | test -n "$target_alias" && | |
1678 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1679 | NONENONEs,x,x, && | |
1680 | program_prefix=${target_alias}- | |
1681 | ||
1682 | ||
1683 | ||
ceec2216 | 1684 | wx_major_version_number=2 |
dd8df4fc VZ |
1685 | wx_minor_version_number=7 |
1686 | wx_release_number=0 | |
1687 | wx_subrelease_number=0 | |
a848cd7e | 1688 | |
ceec2216 RL |
1689 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1690 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1691 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1692 | |
ceec2216 | 1693 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1694 | |
a848cd7e SC |
1695 | |
1696 | ||
1697 | ||
1698 | USE_UNIX=1 | |
1699 | USE_OS2=0 | |
1700 | USE_WIN32=0 | |
1701 | USE_DOS=0 | |
1702 | USE_BEOS=0 | |
1703 | USE_MAC=0 | |
1704 | ||
1705 | USE_AIX= | |
1706 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1707 | USE_GNU= USE_HPUX= | |
1708 | USE_LINUX= | |
1709 | USE_NETBSD= | |
1710 | USE_OPENBSD= | |
1711 | USE_OSF= USE_SGI= | |
1712 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1713 | USE_ULTRIX= | |
1714 | USE_UNIXWARE= | |
1715 | ||
1716 | USE_ALPHA= | |
1717 | ||
1718 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1719 | ||
1720 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1721 | ||
1722 | DEFAULT_wxUSE_COCOA=0 | |
1723 | DEFAULT_wxUSE_GTK=0 | |
1724 | DEFAULT_wxUSE_MAC=0 | |
1725 | DEFAULT_wxUSE_MGL=0 | |
1726 | DEFAULT_wxUSE_MICROWIN=0 | |
1727 | DEFAULT_wxUSE_MOTIF=0 | |
1728 | DEFAULT_wxUSE_MSW=0 | |
1729 | DEFAULT_wxUSE_PM=0 | |
1730 | DEFAULT_wxUSE_X11=0 | |
1731 | ||
1732 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1733 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1734 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1735 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1736 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1737 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1738 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1739 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1740 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1741 | ||
1742 | PROGRAM_EXT= | |
1743 | SO_SUFFIX=so | |
1744 | SAMPLES_RPATH_FLAG= | |
1745 | SAMPLES_RPATH_POSTLINK= | |
1746 | ||
a03b8b04 RD |
1747 | DEFAULT_STD_FLAG=yes |
1748 | ||
a848cd7e SC |
1749 | case "${host}" in |
1750 | *-hp-hpux* ) | |
1751 | USE_HPUX=1 | |
1752 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1753 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1754 | SO_SUFFIX=sl | |
1755 | cat >>confdefs.h <<\_ACEOF | |
1756 | #define __HPUX__ 1 | |
1757 | _ACEOF | |
1758 | ||
2eef8513 | 1759 | |
c92ad099 | 1760 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1761 | ;; |
1762 | *-*-linux* ) | |
1763 | USE_LINUX=1 | |
1764 | cat >>confdefs.h <<\_ACEOF | |
1765 | #define __LINUX__ 1 | |
1766 | _ACEOF | |
1767 | ||
1768 | TMP=`uname -m` | |
1769 | if test "x$TMP" = "xalpha"; then | |
1770 | USE_ALPHA=1 | |
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __ALPHA__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | fi | |
1776 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1777 | ;; | |
1778 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1779 | USE_GNU=1 | |
1780 | TMP=`uname -m` | |
1781 | if test "x$TMP" = "xalpha"; then | |
1782 | USE_ALPHA=1 | |
1783 | cat >>confdefs.h <<\_ACEOF | |
1784 | #define __ALPHA__ 1 | |
1785 | _ACEOF | |
1786 | ||
1787 | fi | |
1788 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1789 | ;; | |
1790 | *-*-irix5* | *-*-irix6* ) | |
1791 | USE_SGI=1 | |
1792 | USE_SVR4=1 | |
1793 | cat >>confdefs.h <<\_ACEOF | |
1794 | #define __SGI__ 1 | |
1795 | _ACEOF | |
1796 | ||
1797 | cat >>confdefs.h <<\_ACEOF | |
1798 | #define __SVR4__ 1 | |
1799 | _ACEOF | |
1800 | ||
1801 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1802 | ;; | |
1803 | *-*-solaris2* ) | |
1804 | USE_SUN=1 | |
1805 | USE_SOLARIS=1 | |
1806 | USE_SVR4=1 | |
1807 | cat >>confdefs.h <<\_ACEOF | |
1808 | #define __SUN__ 1 | |
1809 | _ACEOF | |
1810 | ||
1811 | cat >>confdefs.h <<\_ACEOF | |
1812 | #define __SOLARIS__ 1 | |
1813 | _ACEOF | |
1814 | ||
1815 | cat >>confdefs.h <<\_ACEOF | |
1816 | #define __SVR4__ 1 | |
1817 | _ACEOF | |
1818 | ||
1819 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1820 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1821 | ;; | |
1822 | *-*-sunos4* ) | |
1823 | USE_SUN=1 | |
1824 | USE_SUNOS=1 | |
1825 | USE_BSD=1 | |
1826 | cat >>confdefs.h <<\_ACEOF | |
1827 | #define __SUN__ 1 | |
1828 | _ACEOF | |
1829 | ||
1830 | cat >>confdefs.h <<\_ACEOF | |
1831 | #define __SUNOS__ 1 | |
1832 | _ACEOF | |
1833 | ||
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __BSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1839 | ;; | |
1840 | *-*-freebsd*) | |
1841 | USE_BSD=1 | |
1842 | USE_FREEBSD=1 | |
1843 | cat >>confdefs.h <<\_ACEOF | |
1844 | #define __FREEBSD__ 1 | |
1845 | _ACEOF | |
1846 | ||
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __BSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1852 | ;; | |
c9a66001 | 1853 | *-*-openbsd*|*-*-mirbsd*) |
a848cd7e SC |
1854 | USE_BSD=1 |
1855 | USE_OPENBSD=1 | |
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __OPENBSD__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __BSD__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1865 | ;; | |
1866 | *-*-netbsd*) | |
1867 | USE_BSD=1 | |
1868 | USE_NETBSD=1 | |
1869 | cat >>confdefs.h <<\_ACEOF | |
1870 | #define __NETBSD__ 1 | |
1871 | _ACEOF | |
1872 | ||
1873 | cat >>confdefs.h <<\_ACEOF | |
1874 | #define __BSD__ 1 | |
1875 | _ACEOF | |
1876 | ||
1877 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 1878 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 1879 | |
def7c04a | 1880 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
1881 | ;; |
1882 | *-*-osf* ) | |
1883 | USE_ALPHA=1 | |
1884 | USE_OSF=1 | |
1885 | cat >>confdefs.h <<\_ACEOF | |
1886 | #define __ALPHA__ 1 | |
1887 | _ACEOF | |
1888 | ||
1889 | cat >>confdefs.h <<\_ACEOF | |
1890 | #define __OSF__ 1 | |
1891 | _ACEOF | |
1892 | ||
1893 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1894 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1895 | ;; | |
1896 | *-*-dgux5* ) | |
1897 | USE_ALPHA=1 | |
1898 | USE_SVR4=1 | |
1899 | cat >>confdefs.h <<\_ACEOF | |
1900 | #define __ALPHA__ 1 | |
1901 | _ACEOF | |
1902 | ||
1903 | cat >>confdefs.h <<\_ACEOF | |
1904 | #define __SVR4__ 1 | |
1905 | _ACEOF | |
1906 | ||
1907 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1908 | ;; | |
1909 | *-*-sysv5* ) | |
1910 | USE_SYSV=1 | |
1911 | USE_SVR4=1 | |
1912 | cat >>confdefs.h <<\_ACEOF | |
1913 | #define __SYSV__ 1 | |
1914 | _ACEOF | |
1915 | ||
1916 | cat >>confdefs.h <<\_ACEOF | |
1917 | #define __SVR4__ 1 | |
1918 | _ACEOF | |
1919 | ||
1920 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1921 | ;; | |
1922 | *-*-aix* ) | |
1923 | USE_AIX=1 | |
1924 | USE_SYSV=1 | |
1925 | USE_SVR4=1 | |
1926 | SO_SUFFIX=a | |
1927 | cat >>confdefs.h <<\_ACEOF | |
1928 | #define __AIX__ 1 | |
1929 | _ACEOF | |
1930 | ||
1931 | cat >>confdefs.h <<\_ACEOF | |
1932 | #define __SYSV__ 1 | |
1933 | _ACEOF | |
1934 | ||
1935 | cat >>confdefs.h <<\_ACEOF | |
1936 | #define __SVR4__ 1 | |
1937 | _ACEOF | |
1938 | ||
1939 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1940 | ;; | |
1941 | ||
1942 | *-*-*UnixWare*) | |
1943 | USE_SYSV=1 | |
1944 | USE_SVR4=1 | |
1945 | USE_UNIXWARE=1 | |
1946 | cat >>confdefs.h <<\_ACEOF | |
1947 | #define __UNIXWARE__ 1 | |
1948 | _ACEOF | |
1949 | ||
1950 | ;; | |
1951 | ||
1952 | *-*-cygwin* | *-*-mingw32* ) | |
1953 | SO_SUFFIX=dll | |
1954 | PROGRAM_EXT=".exe" | |
a848cd7e | 1955 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1956 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1957 | ;; |
1958 | ||
1959 | *-pc-msdosdjgpp ) | |
1960 | USE_UNIX=0 | |
1961 | USE_DOS=1 | |
1962 | cat >>confdefs.h <<\_ACEOF | |
1963 | #define __DOS__ 1 | |
1964 | _ACEOF | |
1965 | ||
1966 | PROGRAM_EXT=".exe" | |
1967 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1968 | ;; |
1969 | ||
1970 | *-pc-os2_emx | *-pc-os2-emx ) | |
1971 | cat >>confdefs.h <<\_ACEOF | |
1972 | #define __EMX__ 1 | |
1973 | _ACEOF | |
1974 | ||
1975 | USE_OS2=1 | |
1976 | cat >>confdefs.h <<\_ACEOF | |
1977 | #define __OS2__ 1 | |
1978 | _ACEOF | |
1979 | ||
1980 | PROGRAM_EXT=".exe" | |
1981 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1982 | CXX=gcc | |
1983 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1984 | ac_executable_extensions=".exe" | |
1985 | export ac_executable_extensions | |
1986 | ac_save_IFS="$IFS" | |
1987 | IFS='\\' | |
1988 | ac_TEMP_PATH= | |
1989 | for ac_dir in $PATH; do | |
1990 | IFS=$ac_save_IFS | |
1991 | if test -z "$ac_TEMP_PATH"; then | |
1992 | ac_TEMP_PATH="$ac_dir" | |
1993 | else | |
1994 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1995 | fi | |
1996 | done | |
1997 | export PATH="$ac_TEMP_PATH" | |
1998 | unset ac_TEMP_PATH | |
a03b8b04 | 1999 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
2000 | ;; |
2001 | ||
cfda0ea8 | 2002 | *-*-darwin* ) |
a848cd7e SC |
2003 | USE_BSD=1 |
2004 | USE_DARWIN=1 | |
2005 | SO_SUFFIX=dylib | |
2006 | cat >>confdefs.h <<\_ACEOF | |
2007 | #define __BSD__ 1 | |
2008 | _ACEOF | |
2009 | ||
2010 | cat >>confdefs.h <<\_ACEOF | |
2011 | #define __DARWIN__ 1 | |
a848cd7e SC |
2012 | _ACEOF |
2013 | ||
2014 | cat >>confdefs.h <<\_ACEOF | |
2015 | #define TARGET_CARBON 1 | |
2016 | _ACEOF | |
2017 | ||
2018 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2019 | DEFAULT_STD_FLAG=no |
a848cd7e | 2020 | ;; |
1e9e8aba DE |
2021 | powerpc-apple-macos* ) |
2022 | USE_UNIX=0 | |
2023 | ac_cv_c_bigendian=yes | |
2024 | SO_SUFFIX=shlib | |
2025 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2026 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2027 | ;; |
a848cd7e SC |
2028 | |
2029 | *-*-beos* ) | |
2030 | USE_BEOS=1 | |
2031 | cat >>confdefs.h <<\_ACEOF | |
2032 | #define __BEOS__ 1 | |
2033 | _ACEOF | |
2034 | ||
2035 | ;; | |
2036 | ||
2037 | *) | |
c9a66001 VZ |
2038 | { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5 |
2039 | echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;} | |
2040 | { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5 | |
2041 | echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;} | |
a848cd7e SC |
2042 | esac |
2043 | ||
2044 | ||
2045 | ||
2046 | ||
2047 | wx_arg_cache_file="configarg.cache" | |
2048 | echo "loading argument cache $wx_arg_cache_file" | |
2049 | rm -f ${wx_arg_cache_file}.tmp | |
2050 | touch ${wx_arg_cache_file}.tmp | |
2051 | touch ${wx_arg_cache_file} | |
2052 | ||
2053 | ||
2054 | DEBUG_CONFIGURE=0 | |
2055 | if test $DEBUG_CONFIGURE = 1; then | |
2056 | DEFAULT_wxUSE_UNIVERSAL=no | |
2057 | DEFAULT_wxUSE_STL=no | |
2058 | ||
2059 | DEFAULT_wxUSE_NANOX=no | |
2060 | ||
2061 | DEFAULT_wxUSE_THREADS=yes | |
2062 | ||
2063 | DEFAULT_wxUSE_SHARED=yes | |
2064 | DEFAULT_wxUSE_OPTIMISE=no | |
2065 | DEFAULT_wxUSE_PROFILE=no | |
2066 | DEFAULT_wxUSE_NO_DEPS=no | |
2067 | DEFAULT_wxUSE_NO_RTTI=no | |
2068 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2069 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2070 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2071 | DEFAULT_wxUSE_PERMISSIVE=no |
2072 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2073 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2074 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2075 | DEFAULT_wxUSE_MEM_TRACING=no | |
2076 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2077 | DEFAULT_wxUSE_DMALLOC=no | |
2078 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2079 | ||
2080 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2081 | DEFAULT_wxUSE_LOG=yes | |
2082 | DEFAULT_wxUSE_LOGWINDOW=no | |
2083 | DEFAULT_wxUSE_LOGGUI=no | |
2084 | DEFAULT_wxUSE_LOGDIALOG=no | |
2085 | ||
2086 | DEFAULT_wxUSE_GUI=yes | |
2087 | DEFAULT_wxUSE_CONTROLS=no | |
2088 | ||
2089 | DEFAULT_wxUSE_REGEX=no | |
2090 | DEFAULT_wxUSE_XML=no | |
2091 | DEFAULT_wxUSE_EXPAT=no | |
2092 | DEFAULT_wxUSE_ZLIB=no | |
2093 | DEFAULT_wxUSE_LIBPNG=no | |
2094 | DEFAULT_wxUSE_LIBJPEG=no | |
2095 | DEFAULT_wxUSE_LIBTIFF=no | |
2096 | DEFAULT_wxUSE_LIBXPM=no | |
2097 | DEFAULT_wxUSE_LIBMSPACK=no | |
2098 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2099 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2100 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2101 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2102 | DEFAULT_wxUSE_ODBC=no |
2103 | DEFAULT_wxUSE_OPENGL=no | |
2104 | ||
2105 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2106 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2107 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2108 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2109 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2110 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2111 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2112 | DEFAULT_wxUSE_DATETIME=no | |
2113 | DEFAULT_wxUSE_TIMER=no | |
2114 | DEFAULT_wxUSE_STOPWATCH=no | |
2115 | DEFAULT_wxUSE_FILE=no | |
2116 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2117 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2118 | DEFAULT_wxUSE_TEXTBUFFER=no |
2119 | DEFAULT_wxUSE_TEXTFILE=no | |
2120 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2121 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2122 | DEFAULT_wxUSE_GSTREAMER8=no |
8b6682b9 | 2123 | DEFAULT_wxUSE_PRINTF_POS_PARAM=no |
a848cd7e SC |
2124 | DEFAULT_wxUSE_INTL=no |
2125 | DEFAULT_wxUSE_CONFIG=no | |
2126 | DEFAULT_wxUSE_FONTMAP=no | |
2127 | DEFAULT_wxUSE_STREAMS=no | |
2128 | DEFAULT_wxUSE_SOCKETS=no | |
2129 | DEFAULT_wxUSE_OLE=no | |
2130 | DEFAULT_wxUSE_DATAOBJ=no | |
2131 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2132 | DEFAULT_wxUSE_JOYSTICK=no | |
2133 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2134 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2135 | DEFAULT_wxUSE_LONGLONG=no | |
2136 | DEFAULT_wxUSE_GEOMETRY=no | |
2137 | ||
2138 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2139 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2140 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2141 | ||
2142 | DEFAULT_wxUSE_CLIPBOARD=no | |
2143 | DEFAULT_wxUSE_TOOLTIPS=no | |
2144 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2145 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2146 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2147 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2148 | |
8a7b1113 | 2149 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2150 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2151 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2152 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2153 | ||
2154 | DEFAULT_wxUSE_RESOURCES=no | |
2155 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2156 | DEFAULT_wxUSE_IPC=no | |
2157 | DEFAULT_wxUSE_HELP=no | |
2158 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2159 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2160 | DEFAULT_wxUSE_TREELAYOUT=no | |
2161 | DEFAULT_wxUSE_METAFILE=no | |
2162 | DEFAULT_wxUSE_MIMETYPE=no | |
2163 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2164 | DEFAULT_wxUSE_PROTOCOL=no | |
2165 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2166 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2167 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2168 | DEFAULT_wxUSE_URL=no | |
2169 | ||
2170 | DEFAULT_wxUSE_COMMONDLGS=no | |
2171 | DEFAULT_wxUSE_CHOICEDLG=no | |
2172 | DEFAULT_wxUSE_COLOURDLG=no | |
2173 | DEFAULT_wxUSE_DIRDLG=no | |
2174 | DEFAULT_wxUSE_FILEDLG=no | |
2175 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2176 | DEFAULT_wxUSE_FONTDLG=no | |
2177 | DEFAULT_wxUSE_MSGDLG=no | |
2178 | DEFAULT_wxUSE_NUMBERDLG=no | |
2179 | DEFAULT_wxUSE_TEXTDLG=no | |
2180 | DEFAULT_wxUSE_SPLASH=no | |
2181 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2182 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2183 | DEFAULT_wxUSE_WIZARDDLG=no | |
2184 | ||
2185 | DEFAULT_wxUSE_MENUS=no | |
2186 | DEFAULT_wxUSE_MINIFRAME=no | |
2187 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2188 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2189 | DEFAULT_wxUSE_XRC=no |
3f60522a | 2190 | DEFAULT_wxUSE_AUI=no |
646b6ec1 | 2191 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2192 | DEFAULT_wxUSE_FILESYSTEM=no |
2193 | DEFAULT_wxUSE_FS_INET=no | |
2194 | DEFAULT_wxUSE_FS_ZIP=no | |
2195 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2196 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2197 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2198 | DEFAULT_wxUSE_VALIDATORS=no |
2199 | ||
2200 | DEFAULT_wxUSE_ACCEL=no | |
2201 | DEFAULT_wxUSE_BUTTON=no | |
2202 | DEFAULT_wxUSE_BMPBUTTON=no | |
2203 | DEFAULT_wxUSE_CALCTRL=no | |
2204 | DEFAULT_wxUSE_CARET=no | |
2205 | DEFAULT_wxUSE_CHECKBOX=no | |
2206 | DEFAULT_wxUSE_CHECKLST=no | |
2207 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2208 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 | 2209 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
a848cd7e | 2210 | DEFAULT_wxUSE_COMBOBOX=no |
a57d600f | 2211 | DEFAULT_wxUSE_COMBOCTRL=no |
da98e9be | 2212 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e | 2213 | DEFAULT_wxUSE_DISPLAY=no |
e9263684 VZ |
2214 | DEFAULT_wxUSE_DIRPICKERCTRL=no |
2215 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
2216 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e SC |
2217 | DEFAULT_wxUSE_GAUGE=no |
2218 | DEFAULT_wxUSE_GRID=no | |
6954625c | 2219 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 2220 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2221 | DEFAULT_wxUSE_IMAGLIST=no |
2222 | DEFAULT_wxUSE_LISTBOOK=no | |
2223 | DEFAULT_wxUSE_LISTBOX=no | |
2224 | DEFAULT_wxUSE_LISTCTRL=no | |
2225 | DEFAULT_wxUSE_NOTEBOOK=no | |
a57d600f | 2226 | DEFAULT_wxUSE_ODCOMBOBOX=no |
a848cd7e SC |
2227 | DEFAULT_wxUSE_RADIOBOX=no |
2228 | DEFAULT_wxUSE_RADIOBTN=no | |
2229 | DEFAULT_wxUSE_SASH=no | |
2230 | DEFAULT_wxUSE_SCROLLBAR=no | |
2231 | DEFAULT_wxUSE_SLIDER=no | |
2232 | DEFAULT_wxUSE_SPINBTN=no | |
2233 | DEFAULT_wxUSE_SPINCTRL=no | |
2234 | DEFAULT_wxUSE_SPLITTER=no | |
2235 | DEFAULT_wxUSE_STATBMP=no | |
2236 | DEFAULT_wxUSE_STATBOX=no | |
2237 | DEFAULT_wxUSE_STATLINE=no | |
2238 | DEFAULT_wxUSE_STATTEXT=no | |
2239 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2240 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2241 | DEFAULT_wxUSE_TEXTCTRL=no |
2242 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2243 | DEFAULT_wxUSE_TOOLBAR=no | |
2244 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2245 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2246 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 2247 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
2248 | DEFAULT_wxUSE_TREECTRL=no |
2249 | DEFAULT_wxUSE_POPUPWIN=no | |
2250 | DEFAULT_wxUSE_TIPWINDOW=no | |
2251 | ||
2252 | DEFAULT_wxUSE_UNICODE=no | |
2253 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2254 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2255 | ||
2256 | DEFAULT_wxUSE_PALETTE=no | |
2257 | DEFAULT_wxUSE_IMAGE=no | |
2258 | DEFAULT_wxUSE_GIF=no | |
2259 | DEFAULT_wxUSE_PCX=no | |
2260 | DEFAULT_wxUSE_PNM=no | |
2261 | DEFAULT_wxUSE_IFF=no | |
2262 | DEFAULT_wxUSE_XPM=no | |
2263 | DEFAULT_wxUSE_ICO_CUR=no | |
2264 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2265 | ||
2266 | DEFAULT_wxUSE_MONOLITHIC=no | |
2267 | DEFAULT_wxUSE_PLUGINS=no | |
2268 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2269 | else | |
2270 | DEFAULT_wxUSE_UNIVERSAL=no | |
2271 | DEFAULT_wxUSE_STL=no | |
2272 | ||
2273 | DEFAULT_wxUSE_NANOX=no | |
2274 | ||
2275 | DEFAULT_wxUSE_THREADS=yes | |
2276 | ||
2277 | DEFAULT_wxUSE_SHARED=yes | |
2278 | DEFAULT_wxUSE_OPTIMISE=yes | |
2279 | DEFAULT_wxUSE_PROFILE=no | |
2280 | DEFAULT_wxUSE_NO_DEPS=no | |
2281 | DEFAULT_wxUSE_NO_RTTI=no | |
2282 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2283 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2284 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2285 | DEFAULT_wxUSE_PERMISSIVE=no |
2286 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2287 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2288 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2289 | DEFAULT_wxUSE_MEM_TRACING=no | |
2290 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2291 | DEFAULT_wxUSE_DMALLOC=no | |
2292 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2293 | ||
2294 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2295 | DEFAULT_wxUSE_LOG=yes | |
2296 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2297 | DEFAULT_wxUSE_LOGGUI=yes | |
2298 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2299 | ||
2300 | DEFAULT_wxUSE_GUI=yes | |
2301 | ||
2302 | DEFAULT_wxUSE_REGEX=yes | |
2303 | DEFAULT_wxUSE_XML=yes | |
2304 | DEFAULT_wxUSE_EXPAT=yes | |
2305 | DEFAULT_wxUSE_ZLIB=yes | |
2306 | DEFAULT_wxUSE_LIBPNG=yes | |
2307 | DEFAULT_wxUSE_LIBJPEG=yes | |
2308 | DEFAULT_wxUSE_LIBTIFF=yes | |
2309 | DEFAULT_wxUSE_LIBXPM=yes | |
2310 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2311 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2312 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2313 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2314 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2315 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2316 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2317 | |
2318 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2319 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2320 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2321 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2322 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2323 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2324 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2325 | DEFAULT_wxUSE_DATETIME=yes | |
2326 | DEFAULT_wxUSE_TIMER=yes | |
2327 | DEFAULT_wxUSE_STOPWATCH=yes | |
2328 | DEFAULT_wxUSE_FILE=yes | |
2329 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2330 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2331 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2332 | DEFAULT_wxUSE_TEXTFILE=yes | |
2333 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2334 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2335 | DEFAULT_wxUSE_GSTREAMER8=no |
8b6682b9 | 2336 | DEFAULT_wxUSE_PRINTF_POS_PARAM=yes |
a848cd7e SC |
2337 | DEFAULT_wxUSE_INTL=yes |
2338 | DEFAULT_wxUSE_CONFIG=yes | |
2339 | DEFAULT_wxUSE_FONTMAP=yes | |
2340 | DEFAULT_wxUSE_STREAMS=yes | |
2341 | DEFAULT_wxUSE_SOCKETS=yes | |
2342 | DEFAULT_wxUSE_OLE=yes | |
2343 | DEFAULT_wxUSE_DATAOBJ=yes | |
2344 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2345 | DEFAULT_wxUSE_JOYSTICK=yes | |
2346 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2347 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2348 | DEFAULT_wxUSE_LONGLONG=yes | |
2349 | DEFAULT_wxUSE_GEOMETRY=yes | |
2350 | ||
2351 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2352 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2353 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2354 | ||
2355 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2356 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2357 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2358 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2359 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2360 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2361 | |
8a7b1113 | 2362 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2363 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2364 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2365 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2366 | ||
2367 | DEFAULT_wxUSE_RESOURCES=no | |
2368 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2369 | DEFAULT_wxUSE_IPC=yes | |
2370 | DEFAULT_wxUSE_HELP=yes | |
2371 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2372 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2373 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2374 | DEFAULT_wxUSE_METAFILE=yes | |
2375 | DEFAULT_wxUSE_MIMETYPE=yes | |
2376 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2377 | DEFAULT_wxUSE_PROTOCOL=yes | |
2378 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2379 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2380 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2381 | DEFAULT_wxUSE_URL=yes | |
2382 | ||
2383 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2384 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2385 | DEFAULT_wxUSE_COLOURDLG=yes | |
2386 | DEFAULT_wxUSE_DIRDLG=yes | |
2387 | DEFAULT_wxUSE_FILEDLG=yes | |
2388 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2389 | DEFAULT_wxUSE_FONTDLG=yes | |
2390 | DEFAULT_wxUSE_MSGDLG=yes | |
2391 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2392 | DEFAULT_wxUSE_TEXTDLG=yes | |
2393 | DEFAULT_wxUSE_SPLASH=yes | |
2394 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2395 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2396 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2397 | ||
2398 | DEFAULT_wxUSE_MENUS=yes | |
2399 | DEFAULT_wxUSE_MINIFRAME=yes | |
2400 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2401 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2402 | DEFAULT_wxUSE_XRC=yes |
3f60522a | 2403 | DEFAULT_wxUSE_AUI=yes |
646b6ec1 | 2404 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2405 | DEFAULT_wxUSE_FILESYSTEM=yes |
2406 | DEFAULT_wxUSE_FS_INET=yes | |
2407 | DEFAULT_wxUSE_FS_ZIP=yes | |
2408 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2409 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2410 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2411 | DEFAULT_wxUSE_VALIDATORS=yes |
2412 | ||
2413 | DEFAULT_wxUSE_ACCEL=yes | |
2414 | DEFAULT_wxUSE_BUTTON=yes | |
2415 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2416 | DEFAULT_wxUSE_CALCTRL=yes | |
2417 | DEFAULT_wxUSE_CARET=yes | |
2418 | DEFAULT_wxUSE_CHECKBOX=yes | |
2419 | DEFAULT_wxUSE_CHECKLST=yes | |
2420 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2421 | DEFAULT_wxUSE_CHOICEBOOK=yes |
e9263684 | 2422 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
a848cd7e | 2423 | DEFAULT_wxUSE_COMBOBOX=yes |
a57d600f | 2424 | DEFAULT_wxUSE_COMBOCTRL=yes |
da98e9be | 2425 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e | 2426 | DEFAULT_wxUSE_DISPLAY=yes |
e9263684 VZ |
2427 | DEFAULT_wxUSE_DIRPICKERCTRL=yes |
2428 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
2429 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
2430 | DEFAULT_wxUSE_GAUGE=yes |
2431 | DEFAULT_wxUSE_GRID=yes | |
6954625c | 2432 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 2433 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2434 | DEFAULT_wxUSE_IMAGLIST=yes |
2435 | DEFAULT_wxUSE_LISTBOOK=yes | |
2436 | DEFAULT_wxUSE_LISTBOX=yes | |
2437 | DEFAULT_wxUSE_LISTCTRL=yes | |
2438 | DEFAULT_wxUSE_NOTEBOOK=yes | |
a57d600f | 2439 | DEFAULT_wxUSE_ODCOMBOBOX=yes |
a848cd7e SC |
2440 | DEFAULT_wxUSE_RADIOBOX=yes |
2441 | DEFAULT_wxUSE_RADIOBTN=yes | |
2442 | DEFAULT_wxUSE_SASH=yes | |
2443 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2444 | DEFAULT_wxUSE_SLIDER=yes | |
2445 | DEFAULT_wxUSE_SPINBTN=yes | |
2446 | DEFAULT_wxUSE_SPINCTRL=yes | |
2447 | DEFAULT_wxUSE_SPLITTER=yes | |
2448 | DEFAULT_wxUSE_STATBMP=yes | |
2449 | DEFAULT_wxUSE_STATBOX=yes | |
2450 | DEFAULT_wxUSE_STATLINE=yes | |
2451 | DEFAULT_wxUSE_STATTEXT=yes | |
2452 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2453 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2454 | DEFAULT_wxUSE_TEXTCTRL=yes |
2455 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2456 | DEFAULT_wxUSE_TOOLBAR=yes | |
2457 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2458 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2459 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 2460 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
2461 | DEFAULT_wxUSE_TREECTRL=yes |
2462 | DEFAULT_wxUSE_POPUPWIN=yes | |
2463 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2464 | ||
78de529b | 2465 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2466 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2467 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2468 | ||
2469 | DEFAULT_wxUSE_PALETTE=yes | |
2470 | DEFAULT_wxUSE_IMAGE=yes | |
2471 | DEFAULT_wxUSE_GIF=yes | |
2472 | DEFAULT_wxUSE_PCX=yes | |
2473 | DEFAULT_wxUSE_IFF=no | |
2474 | DEFAULT_wxUSE_PNM=yes | |
2475 | DEFAULT_wxUSE_XPM=yes | |
2476 | DEFAULT_wxUSE_ICO_CUR=yes | |
2477 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2478 | ||
2479 | DEFAULT_wxUSE_MONOLITHIC=no | |
2480 | DEFAULT_wxUSE_PLUGINS=no | |
2481 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2482 | |
f34ca037 | 2483 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2484 | fi |
2485 | ||
2486 | ||
2487 | ||
f34ca037 | 2488 | |
a848cd7e SC |
2489 | for toolkit in `echo $ALL_TOOLKITS`; do |
2490 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2491 | if test "x$LINE" != "x" ; then | |
2492 | has_toolkit_in_cache=1 | |
2493 | eval "DEFAULT_$LINE" | |
2494 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2495 | |
2496 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2497 | if test "x$LINE" != "x" ; then | |
2498 | eval "DEFAULT_$LINE" | |
2499 | fi | |
a848cd7e SC |
2500 | fi |
2501 | done | |
2502 | ||
2503 | ||
2504 | ||
2505 | enablestring= | |
2506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2507 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2508 | no_cache=0 | |
2509 | # Check whether --enable-gui or --disable-gui was given. | |
2510 | if test "${enable_gui+set}" = set; then | |
2511 | enableval="$enable_gui" | |
2512 | ||
2513 | if test "$enableval" = yes; then | |
2514 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2515 | else | |
2516 | ac_cv_use_gui='wxUSE_GUI=no' | |
2517 | fi | |
2518 | ||
2519 | else | |
2520 | ||
2521 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2522 | if test "x$LINE" != x ; then | |
2523 | eval "DEFAULT_$LINE" | |
2524 | else | |
2525 | no_cache=1 | |
2526 | fi | |
2527 | ||
2528 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2529 | ||
2530 | fi; | |
2531 | ||
2532 | eval "$ac_cv_use_gui" | |
2533 | if test "$no_cache" != 1; then | |
2534 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2535 | fi | |
2536 | ||
2537 | if test "$wxUSE_GUI" = yes; then | |
2538 | echo "$as_me:$LINENO: result: yes" >&5 | |
2539 | echo "${ECHO_T}yes" >&6 | |
2540 | else | |
2541 | echo "$as_me:$LINENO: result: no" >&5 | |
2542 | echo "${ECHO_T}no" >&6 | |
2543 | fi | |
2544 | ||
2545 | ||
2546 | enablestring= | |
2547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2548 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2549 | no_cache=0 | |
2550 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2551 | if test "${enable_monolithic+set}" = set; then | |
2552 | enableval="$enable_monolithic" | |
2553 | ||
2554 | if test "$enableval" = yes; then | |
2555 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2556 | else | |
2557 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2558 | fi | |
2559 | ||
2560 | else | |
2561 | ||
2562 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2563 | if test "x$LINE" != x ; then | |
2564 | eval "DEFAULT_$LINE" | |
2565 | else | |
2566 | no_cache=1 | |
2567 | fi | |
2568 | ||
2569 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2570 | ||
2571 | fi; | |
2572 | ||
2573 | eval "$ac_cv_use_monolithic" | |
2574 | if test "$no_cache" != 1; then | |
2575 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2576 | fi | |
2577 | ||
2578 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2579 | echo "$as_me:$LINENO: result: yes" >&5 | |
2580 | echo "${ECHO_T}yes" >&6 | |
2581 | else | |
2582 | echo "$as_me:$LINENO: result: no" >&5 | |
2583 | echo "${ECHO_T}no" >&6 | |
2584 | fi | |
2585 | ||
2586 | ||
2587 | enablestring= | |
2588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2589 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2590 | no_cache=0 | |
2591 | # Check whether --enable-plugins or --disable-plugins was given. | |
2592 | if test "${enable_plugins+set}" = set; then | |
2593 | enableval="$enable_plugins" | |
2594 | ||
2595 | if test "$enableval" = yes; then | |
2596 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2597 | else | |
2598 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2599 | fi | |
2600 | ||
2601 | else | |
2602 | ||
2603 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2604 | if test "x$LINE" != x ; then | |
2605 | eval "DEFAULT_$LINE" | |
2606 | else | |
2607 | no_cache=1 | |
2608 | fi | |
2609 | ||
2610 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2611 | ||
2612 | fi; | |
2613 | ||
2614 | eval "$ac_cv_use_plugins" | |
2615 | if test "$no_cache" != 1; then | |
2616 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2617 | fi | |
2618 | ||
2619 | if test "$wxUSE_PLUGINS" = yes; then | |
2620 | echo "$as_me:$LINENO: result: yes" >&5 | |
2621 | echo "${ECHO_T}yes" >&6 | |
2622 | else | |
2623 | echo "$as_me:$LINENO: result: no" >&5 | |
2624 | echo "${ECHO_T}no" >&6 | |
2625 | fi | |
2626 | ||
2627 | ||
1c14217d VZ |
2628 | withstring=without |
2629 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2630 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2631 | no_cache=0 | |
2632 | ||
2633 | # Check whether --with-subdirs or --without-subdirs was given. | |
2634 | if test "${with_subdirs+set}" = set; then | |
2635 | withval="$with_subdirs" | |
2636 | ||
2637 | if test "$withval" = yes; then | |
2638 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2639 | else | |
2640 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2641 | fi | |
2642 | ||
2643 | else | |
2644 | ||
2645 | LINE=`grep "wxWITH_SUBDIRS" ${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_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2653 | ||
2654 | fi; | |
2655 | ||
2656 | eval "$ac_cv_use_subdirs" | |
2657 | if test "$no_cache" != 1; then | |
2658 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2659 | fi | |
2660 | ||
2661 | if test "$wxWITH_SUBDIRS" = 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 | ||
a848cd7e SC |
2670 | if test "$wxUSE_GUI" = "yes"; then |
2671 | ||
2672 | ||
2673 | enablestring= | |
2674 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2675 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2676 | no_cache=0 | |
2677 | # Check whether --enable-universal or --disable-universal was given. | |
2678 | if test "${enable_universal+set}" = set; then | |
2679 | enableval="$enable_universal" | |
2680 | ||
2681 | if test "$enableval" = yes; then | |
2682 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2683 | else | |
2684 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2685 | fi | |
2686 | ||
2687 | else | |
2688 | ||
2689 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2690 | if test "x$LINE" != x ; then | |
2691 | eval "DEFAULT_$LINE" | |
2692 | else | |
2693 | no_cache=1 | |
2694 | fi | |
2695 | ||
2696 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2697 | ||
2698 | fi; | |
2699 | ||
2700 | eval "$ac_cv_use_universal" | |
2701 | if test "$no_cache" != 1; then | |
2702 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2703 | fi | |
2704 | ||
2705 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2706 | echo "$as_me:$LINENO: result: yes" >&5 | |
2707 | echo "${ECHO_T}yes" >&6 | |
2708 | else | |
2709 | echo "$as_me:$LINENO: result: no" >&5 | |
2710 | echo "${ECHO_T}no" >&6 | |
2711 | fi | |
2712 | ||
2713 | ||
2714 | # Check whether --with-gtk or --without-gtk was given. | |
2715 | if test "${with_gtk+set}" = set; then | |
2716 | withval="$with_gtk" | |
2717 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2718 | fi; | |
2719 | ||
2720 | # Check whether --with-motif or --without-motif was given. | |
2721 | if test "${with_motif+set}" = set; then | |
2722 | withval="$with_motif" | |
2723 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2724 | fi; | |
2725 | ||
2726 | # Check whether --with-mac or --without-mac was given. | |
2727 | if test "${with_mac+set}" = set; then | |
2728 | withval="$with_mac" | |
c228d3a4 | 2729 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2730 | fi; |
2731 | ||
2732 | # Check whether --with-cocoa or --without-cocoa was given. | |
2733 | if test "${with_cocoa+set}" = set; then | |
2734 | withval="$with_cocoa" | |
c228d3a4 | 2735 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2736 | fi; |
2737 | ||
2738 | # Check whether --with-wine or --without-wine was given. | |
2739 | if test "${with_wine+set}" = set; then | |
2740 | withval="$with_wine" | |
2741 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2742 | fi; | |
2743 | ||
2744 | # Check whether --with-msw or --without-msw was given. | |
2745 | if test "${with_msw+set}" = set; then | |
2746 | withval="$with_msw" | |
2747 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2748 | fi; | |
2749 | ||
2750 | # Check whether --with-pm or --without-pm was given. | |
2751 | if test "${with_pm+set}" = set; then | |
2752 | withval="$with_pm" | |
2753 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2754 | fi; | |
2755 | ||
2756 | # Check whether --with-mgl or --without-mgl was given. | |
2757 | if test "${with_mgl+set}" = set; then | |
2758 | withval="$with_mgl" | |
2759 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2760 | fi; | |
2761 | ||
2762 | # Check whether --with-microwin or --without-microwin was given. | |
2763 | if test "${with_microwin+set}" = set; then | |
2764 | withval="$with_microwin" | |
2765 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2766 | fi; | |
2767 | ||
2768 | # Check whether --with-x11 or --without-x11 was given. | |
2769 | if test "${with_x11+set}" = set; then | |
2770 | withval="$with_x11" | |
2771 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2772 | fi; | |
2773 | ||
2774 | enablestring= | |
2775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2776 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2777 | no_cache=0 | |
2778 | # Check whether --enable-nanox or --disable-nanox was given. | |
2779 | if test "${enable_nanox+set}" = set; then | |
2780 | enableval="$enable_nanox" | |
2781 | ||
2782 | if test "$enableval" = yes; then | |
2783 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2784 | else | |
2785 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2786 | fi | |
2787 | ||
2788 | else | |
2789 | ||
2790 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2791 | if test "x$LINE" != x ; then | |
2792 | eval "DEFAULT_$LINE" | |
2793 | else | |
2794 | no_cache=1 | |
2795 | fi | |
2796 | ||
2797 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2798 | ||
2799 | fi; | |
2800 | ||
2801 | eval "$ac_cv_use_nanox" | |
2802 | if test "$no_cache" != 1; then | |
2803 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2804 | fi | |
2805 | ||
2806 | if test "$wxUSE_NANOX" = yes; then | |
2807 | echo "$as_me:$LINENO: result: yes" >&5 | |
2808 | echo "${ECHO_T}yes" >&6 | |
2809 | else | |
2810 | echo "$as_me:$LINENO: result: no" >&5 | |
2811 | echo "${ECHO_T}no" >&6 | |
2812 | fi | |
2813 | ||
2814 | ||
f34ca037 MW |
2815 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2816 | if test "${enable_gtk2+set}" = set; then | |
2817 | enableval="$enable_gtk2" | |
2818 | wxUSE_GTK2="$enableval" | |
2819 | fi; | |
a848cd7e | 2820 | |
a848cd7e SC |
2821 | enablestring= |
2822 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2823 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2824 | no_cache=0 | |
2825 | # Check whether --enable-gpe or --disable-gpe was given. | |
2826 | if test "${enable_gpe+set}" = set; then | |
2827 | enableval="$enable_gpe" | |
2828 | ||
2829 | if test "$enableval" = yes; then | |
2830 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2831 | else | |
2832 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2833 | fi | |
2834 | ||
2835 | else | |
2836 | ||
2837 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2838 | if test "x$LINE" != x ; then | |
2839 | eval "DEFAULT_$LINE" | |
2840 | else | |
2841 | no_cache=1 | |
2842 | fi | |
2843 | ||
2844 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2845 | ||
2846 | fi; | |
2847 | ||
2848 | eval "$ac_cv_use_gpe" | |
2849 | if test "$no_cache" != 1; then | |
2850 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2851 | fi | |
2852 | ||
2853 | if test "$wxUSE_GPE" = yes; then | |
2854 | echo "$as_me:$LINENO: result: yes" >&5 | |
2855 | echo "${ECHO_T}yes" >&6 | |
2856 | else | |
2857 | echo "$as_me:$LINENO: result: no" >&5 | |
2858 | echo "${ECHO_T}no" >&6 | |
2859 | fi | |
2860 | ||
2861 | ||
2862 | ||
2863 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2864 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2865 | no_cache=0 | |
2866 | ||
2867 | # Check whether --with-libpng or --without-libpng was given. | |
2868 | if test "${with_libpng+set}" = set; then | |
2869 | withval="$with_libpng" | |
2870 | ||
2871 | if test "$withval" = yes; then | |
2872 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2873 | elif test "$withval" = no; then | |
2874 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2875 | elif test "$withval" = sys; then | |
2876 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2877 | elif test "$withval" = builtin; then | |
2878 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2879 | else | |
2880 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2881 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2882 | { (exit 1); exit 1; }; } | |
2883 | fi | |
2884 | ||
2885 | else | |
2886 | ||
2887 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2888 | if test "x$LINE" != x ; then | |
2889 | eval "DEFAULT_$LINE" | |
2890 | else | |
2891 | no_cache=1 | |
2892 | fi | |
2893 | ||
2894 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2895 | ||
2896 | fi; | |
2897 | ||
2898 | eval "$ac_cv_use_libpng" | |
2899 | if test "$no_cache" != 1; then | |
2900 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2901 | fi | |
2902 | ||
2903 | if test "$wxUSE_LIBPNG" = yes; then | |
2904 | echo "$as_me:$LINENO: result: yes" >&5 | |
2905 | echo "${ECHO_T}yes" >&6 | |
2906 | elif test "$wxUSE_LIBPNG" = no; then | |
2907 | echo "$as_me:$LINENO: result: no" >&5 | |
2908 | echo "${ECHO_T}no" >&6 | |
2909 | elif test "$wxUSE_LIBPNG" = sys; then | |
2910 | echo "$as_me:$LINENO: result: system version" >&5 | |
2911 | echo "${ECHO_T}system version" >&6 | |
2912 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2913 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2914 | echo "${ECHO_T}builtin version" >&6 | |
2915 | else | |
2916 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2917 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2918 | { (exit 1); exit 1; }; } | |
2919 | fi | |
2920 | ||
2921 | ||
2922 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2923 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2924 | no_cache=0 | |
2925 | ||
2926 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2927 | if test "${with_libjpeg+set}" = set; then | |
2928 | withval="$with_libjpeg" | |
2929 | ||
2930 | if test "$withval" = yes; then | |
2931 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2932 | elif test "$withval" = no; then | |
2933 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2934 | elif test "$withval" = sys; then | |
2935 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2936 | elif test "$withval" = builtin; then | |
2937 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2938 | else | |
2939 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2940 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2941 | { (exit 1); exit 1; }; } | |
2942 | fi | |
2943 | ||
2944 | else | |
2945 | ||
2946 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2947 | if test "x$LINE" != x ; then | |
2948 | eval "DEFAULT_$LINE" | |
2949 | else | |
2950 | no_cache=1 | |
2951 | fi | |
2952 | ||
2953 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2954 | ||
2955 | fi; | |
2956 | ||
2957 | eval "$ac_cv_use_libjpeg" | |
2958 | if test "$no_cache" != 1; then | |
2959 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2960 | fi | |
2961 | ||
2962 | if test "$wxUSE_LIBJPEG" = yes; then | |
2963 | echo "$as_me:$LINENO: result: yes" >&5 | |
2964 | echo "${ECHO_T}yes" >&6 | |
2965 | elif test "$wxUSE_LIBJPEG" = no; then | |
2966 | echo "$as_me:$LINENO: result: no" >&5 | |
2967 | echo "${ECHO_T}no" >&6 | |
2968 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2969 | echo "$as_me:$LINENO: result: system version" >&5 | |
2970 | echo "${ECHO_T}system version" >&6 | |
2971 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2972 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2973 | echo "${ECHO_T}builtin version" >&6 | |
2974 | else | |
2975 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2976 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2977 | { (exit 1); exit 1; }; } | |
2978 | fi | |
2979 | ||
2980 | ||
2981 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2982 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2983 | no_cache=0 | |
2984 | ||
2985 | # Check whether --with-libtiff or --without-libtiff was given. | |
2986 | if test "${with_libtiff+set}" = set; then | |
2987 | withval="$with_libtiff" | |
2988 | ||
2989 | if test "$withval" = yes; then | |
2990 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2991 | elif test "$withval" = no; then | |
2992 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2993 | elif test "$withval" = sys; then | |
2994 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2995 | elif test "$withval" = builtin; then | |
2996 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2997 | else | |
2998 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2999 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3000 | { (exit 1); exit 1; }; } | |
3001 | fi | |
3002 | ||
3003 | else | |
3004 | ||
3005 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
3006 | if test "x$LINE" != x ; then | |
3007 | eval "DEFAULT_$LINE" | |
3008 | else | |
3009 | no_cache=1 | |
3010 | fi | |
3011 | ||
3012 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
3013 | ||
3014 | fi; | |
3015 | ||
3016 | eval "$ac_cv_use_libtiff" | |
3017 | if test "$no_cache" != 1; then | |
3018 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
3019 | fi | |
3020 | ||
3021 | if test "$wxUSE_LIBTIFF" = yes; then | |
3022 | echo "$as_me:$LINENO: result: yes" >&5 | |
3023 | echo "${ECHO_T}yes" >&6 | |
3024 | elif test "$wxUSE_LIBTIFF" = no; then | |
3025 | echo "$as_me:$LINENO: result: no" >&5 | |
3026 | echo "${ECHO_T}no" >&6 | |
3027 | elif test "$wxUSE_LIBTIFF" = sys; then | |
3028 | echo "$as_me:$LINENO: result: system version" >&5 | |
3029 | echo "${ECHO_T}system version" >&6 | |
3030 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
3031 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3032 | echo "${ECHO_T}builtin version" >&6 | |
3033 | else | |
3034 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3035 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3036 | { (exit 1); exit 1; }; } | |
3037 | fi | |
3038 | ||
3039 | ||
3040 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3041 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3042 | no_cache=0 | |
3043 | ||
3044 | # Check whether --with-libxpm or --without-libxpm was given. | |
3045 | if test "${with_libxpm+set}" = set; then | |
3046 | withval="$with_libxpm" | |
3047 | ||
3048 | if test "$withval" = yes; then | |
3049 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3050 | elif test "$withval" = no; then | |
3051 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3052 | elif test "$withval" = sys; then | |
3053 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3054 | elif test "$withval" = builtin; then | |
3055 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3056 | else | |
3057 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3058 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3059 | { (exit 1); exit 1; }; } | |
3060 | fi | |
3061 | ||
3062 | else | |
3063 | ||
3064 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3065 | if test "x$LINE" != x ; then | |
3066 | eval "DEFAULT_$LINE" | |
3067 | else | |
3068 | no_cache=1 | |
3069 | fi | |
3070 | ||
3071 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3072 | ||
3073 | fi; | |
3074 | ||
3075 | eval "$ac_cv_use_libxpm" | |
3076 | if test "$no_cache" != 1; then | |
3077 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3078 | fi | |
3079 | ||
3080 | if test "$wxUSE_LIBXPM" = yes; then | |
3081 | echo "$as_me:$LINENO: result: yes" >&5 | |
3082 | echo "${ECHO_T}yes" >&6 | |
3083 | elif test "$wxUSE_LIBXPM" = no; then | |
3084 | echo "$as_me:$LINENO: result: no" >&5 | |
3085 | echo "${ECHO_T}no" >&6 | |
3086 | elif test "$wxUSE_LIBXPM" = sys; then | |
3087 | echo "$as_me:$LINENO: result: system version" >&5 | |
3088 | echo "${ECHO_T}system version" >&6 | |
3089 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3090 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3091 | echo "${ECHO_T}builtin version" >&6 | |
3092 | else | |
3093 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3094 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3095 | { (exit 1); exit 1; }; } | |
3096 | fi | |
3097 | ||
3098 | ||
1c14217d VZ |
3099 | withstring= |
3100 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3101 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3102 | no_cache=0 |
3103 | ||
3104 | # Check whether --with-libmspack or --without-libmspack was given. | |
3105 | if test "${with_libmspack+set}" = set; then | |
3106 | withval="$with_libmspack" | |
3107 | ||
3108 | if test "$withval" = yes; then | |
3109 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3110 | else | |
3111 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3112 | fi | |
3113 | ||
3114 | else | |
3115 | ||
3116 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3117 | if test "x$LINE" != x ; then | |
3118 | eval "DEFAULT_$LINE" | |
3119 | else | |
3120 | no_cache=1 | |
3121 | fi | |
3122 | ||
3123 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3124 | ||
3125 | fi; | |
3126 | ||
3127 | eval "$ac_cv_use_libmspack" | |
3128 | if test "$no_cache" != 1; then | |
3129 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3130 | fi | |
3131 | ||
3132 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3133 | echo "$as_me:$LINENO: result: yes" >&5 | |
3134 | echo "${ECHO_T}yes" >&6 | |
3135 | else | |
3136 | echo "$as_me:$LINENO: result: no" >&5 | |
3137 | echo "${ECHO_T}no" >&6 | |
3138 | fi | |
3139 | ||
3140 | ||
1c14217d VZ |
3141 | withstring= |
3142 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3143 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3144 | no_cache=0 |
3145 | ||
3146 | # Check whether --with-sdl or --without-sdl was given. | |
3147 | if test "${with_sdl+set}" = set; then | |
3148 | withval="$with_sdl" | |
3149 | ||
3150 | if test "$withval" = yes; then | |
3151 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3152 | else | |
3153 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3154 | fi | |
3155 | ||
3156 | else | |
3157 | ||
3158 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3159 | if test "x$LINE" != x ; then | |
3160 | eval "DEFAULT_$LINE" | |
3161 | else | |
3162 | no_cache=1 | |
3163 | fi | |
3164 | ||
3165 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3166 | ||
3167 | fi; | |
3168 | ||
3169 | eval "$ac_cv_use_sdl" | |
3170 | if test "$no_cache" != 1; then | |
3171 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3172 | fi | |
3173 | ||
3174 | if test "$wxUSE_LIBSDL" = yes; then | |
3175 | echo "$as_me:$LINENO: result: yes" >&5 | |
3176 | echo "${ECHO_T}yes" >&6 | |
3177 | else | |
3178 | echo "$as_me:$LINENO: result: no" >&5 | |
3179 | echo "${ECHO_T}no" >&6 | |
3180 | fi | |
3181 | ||
3182 | ||
1c14217d VZ |
3183 | withstring= |
3184 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3185 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3186 | no_cache=0 |
3187 | ||
3188 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3189 | if test "${with_gnomeprint+set}" = set; then | |
3190 | withval="$with_gnomeprint" | |
3191 | ||
3192 | if test "$withval" = yes; then | |
3193 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3194 | else | |
3195 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3196 | fi | |
3197 | ||
3198 | else | |
3199 | ||
3200 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3201 | if test "x$LINE" != x ; then | |
3202 | eval "DEFAULT_$LINE" | |
3203 | else | |
3204 | no_cache=1 | |
3205 | fi | |
3206 | ||
3207 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3208 | ||
3209 | fi; | |
3210 | ||
3211 | eval "$ac_cv_use_gnomeprint" | |
3212 | if test "$no_cache" != 1; then | |
3213 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3214 | fi | |
3215 | ||
3216 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3217 | echo "$as_me:$LINENO: result: yes" >&5 | |
3218 | echo "${ECHO_T}yes" >&6 | |
3219 | else | |
3220 | echo "$as_me:$LINENO: result: no" >&5 | |
3221 | echo "${ECHO_T}no" >&6 | |
3222 | fi | |
3223 | ||
3224 | ||
2b850ae1 RR |
3225 | withstring= |
3226 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5 | |
3227 | echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6 | |
3228 | no_cache=0 | |
3229 | ||
3230 | # Check whether --with-gnomevfs or --without-gnomevfs was given. | |
3231 | if test "${with_gnomevfs+set}" = set; then | |
3232 | withval="$with_gnomevfs" | |
3233 | ||
3234 | if test "$withval" = yes; then | |
3235 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' | |
3236 | else | |
3237 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' | |
3238 | fi | |
3239 | ||
3240 | else | |
3241 | ||
3242 | LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}` | |
3243 | if test "x$LINE" != x ; then | |
3244 | eval "DEFAULT_$LINE" | |
3245 | else | |
3246 | no_cache=1 | |
3247 | fi | |
3248 | ||
3249 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS | |
3250 | ||
3251 | fi; | |
3252 | ||
3253 | eval "$ac_cv_use_gnomevfs" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_LIBGNOMEVFS" = yes; then | |
3259 | echo "$as_me:$LINENO: result: yes" >&5 | |
3260 | echo "${ECHO_T}yes" >&6 | |
3261 | else | |
3262 | echo "$as_me:$LINENO: result: no" >&5 | |
3263 | echo "${ECHO_T}no" >&6 | |
3264 | fi | |
3265 | ||
3266 | ||
3565d135 RR |
3267 | withstring= |
3268 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3269 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3270 | no_cache=0 | |
3271 | ||
3272 | # Check whether --with-hildon or --without-hildon was given. | |
3273 | if test "${with_hildon+set}" = set; then | |
3274 | withval="$with_hildon" | |
3275 | ||
3276 | if test "$withval" = yes; then | |
3277 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3278 | else | |
3279 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3280 | fi | |
3281 | ||
3282 | else | |
3283 | ||
3284 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3285 | if test "x$LINE" != x ; then | |
3286 | eval "DEFAULT_$LINE" | |
3287 | else | |
3288 | no_cache=1 | |
3289 | fi | |
3290 | ||
3291 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3292 | ||
3293 | fi; | |
3294 | ||
3295 | eval "$ac_cv_use_hildon" | |
3296 | if test "$no_cache" != 1; then | |
3297 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3298 | fi | |
3299 | ||
3300 | if test "$wxUSE_LIBHILDON" = yes; then | |
3301 | echo "$as_me:$LINENO: result: yes" >&5 | |
3302 | echo "${ECHO_T}yes" >&6 | |
3303 | else | |
3304 | echo "$as_me:$LINENO: result: no" >&5 | |
3305 | echo "${ECHO_T}no" >&6 | |
3306 | fi | |
3307 | ||
3308 | ||
1c14217d VZ |
3309 | withstring= |
3310 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3311 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3312 | no_cache=0 |
3313 | ||
3314 | # Check whether --with-opengl or --without-opengl was given. | |
3315 | if test "${with_opengl+set}" = set; then | |
3316 | withval="$with_opengl" | |
3317 | ||
3318 | if test "$withval" = yes; then | |
3319 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3320 | else | |
3321 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3322 | fi | |
3323 | ||
3324 | else | |
3325 | ||
3326 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3327 | if test "x$LINE" != x ; then | |
3328 | eval "DEFAULT_$LINE" | |
3329 | else | |
3330 | no_cache=1 | |
3331 | fi | |
3332 | ||
3333 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3334 | ||
3335 | fi; | |
3336 | ||
3337 | eval "$ac_cv_use_opengl" | |
3338 | if test "$no_cache" != 1; then | |
3339 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3340 | fi | |
3341 | ||
3342 | if test "$wxUSE_OPENGL" = yes; then | |
3343 | echo "$as_me:$LINENO: result: yes" >&5 | |
3344 | echo "${ECHO_T}yes" >&6 | |
3345 | else | |
3346 | echo "$as_me:$LINENO: result: no" >&5 | |
3347 | echo "${ECHO_T}no" >&6 | |
3348 | fi | |
3349 | ||
3350 | ||
3351 | fi | |
3352 | ||
3353 | ||
1c14217d VZ |
3354 | withstring= |
3355 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3356 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3357 | no_cache=0 |
3358 | ||
3359 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3360 | if test "${with_dmalloc+set}" = set; then | |
3361 | withval="$with_dmalloc" | |
3362 | ||
3363 | if test "$withval" = yes; then | |
3364 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3365 | else | |
3366 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3367 | fi | |
3368 | ||
3369 | else | |
3370 | ||
3371 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3372 | if test "x$LINE" != x ; then | |
3373 | eval "DEFAULT_$LINE" | |
3374 | else | |
3375 | no_cache=1 | |
3376 | fi | |
3377 | ||
3378 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3379 | ||
3380 | fi; | |
3381 | ||
3382 | eval "$ac_cv_use_dmalloc" | |
3383 | if test "$no_cache" != 1; then | |
3384 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3385 | fi | |
3386 | ||
3387 | if test "$wxUSE_DMALLOC" = yes; then | |
3388 | echo "$as_me:$LINENO: result: yes" >&5 | |
3389 | echo "${ECHO_T}yes" >&6 | |
3390 | else | |
3391 | echo "$as_me:$LINENO: result: no" >&5 | |
3392 | echo "${ECHO_T}no" >&6 | |
3393 | fi | |
3394 | ||
3395 | ||
3396 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3397 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3398 | no_cache=0 | |
3399 | ||
3400 | # Check whether --with-regex or --without-regex was given. | |
3401 | if test "${with_regex+set}" = set; then | |
3402 | withval="$with_regex" | |
3403 | ||
3404 | if test "$withval" = yes; then | |
3405 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3406 | elif test "$withval" = no; then | |
3407 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3408 | elif test "$withval" = sys; then | |
3409 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3410 | elif test "$withval" = builtin; then | |
3411 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3412 | else | |
3413 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3414 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3415 | { (exit 1); exit 1; }; } | |
3416 | fi | |
3417 | ||
3418 | else | |
3419 | ||
3420 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3421 | if test "x$LINE" != x ; then | |
3422 | eval "DEFAULT_$LINE" | |
3423 | else | |
3424 | no_cache=1 | |
3425 | fi | |
3426 | ||
3427 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3428 | ||
3429 | fi; | |
3430 | ||
3431 | eval "$ac_cv_use_regex" | |
3432 | if test "$no_cache" != 1; then | |
3433 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3434 | fi | |
3435 | ||
3436 | if test "$wxUSE_REGEX" = yes; then | |
3437 | echo "$as_me:$LINENO: result: yes" >&5 | |
3438 | echo "${ECHO_T}yes" >&6 | |
3439 | elif test "$wxUSE_REGEX" = no; then | |
3440 | echo "$as_me:$LINENO: result: no" >&5 | |
3441 | echo "${ECHO_T}no" >&6 | |
3442 | elif test "$wxUSE_REGEX" = sys; then | |
3443 | echo "$as_me:$LINENO: result: system version" >&5 | |
3444 | echo "${ECHO_T}system version" >&6 | |
3445 | elif test "$wxUSE_REGEX" = builtin; then | |
3446 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3447 | echo "${ECHO_T}builtin version" >&6 | |
3448 | else | |
3449 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3450 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3451 | { (exit 1); exit 1; }; } | |
3452 | fi | |
3453 | ||
3454 | ||
3455 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3456 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3457 | no_cache=0 | |
3458 | ||
3459 | # Check whether --with-zlib or --without-zlib was given. | |
3460 | if test "${with_zlib+set}" = set; then | |
3461 | withval="$with_zlib" | |
3462 | ||
3463 | if test "$withval" = yes; then | |
3464 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3465 | elif test "$withval" = no; then | |
3466 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3467 | elif test "$withval" = sys; then | |
3468 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3469 | elif test "$withval" = builtin; then | |
3470 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3471 | else | |
3472 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3473 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3474 | { (exit 1); exit 1; }; } | |
3475 | fi | |
3476 | ||
3477 | else | |
3478 | ||
3479 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3480 | if test "x$LINE" != x ; then | |
3481 | eval "DEFAULT_$LINE" | |
3482 | else | |
3483 | no_cache=1 | |
3484 | fi | |
3485 | ||
3486 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3487 | ||
3488 | fi; | |
3489 | ||
3490 | eval "$ac_cv_use_zlib" | |
3491 | if test "$no_cache" != 1; then | |
3492 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3493 | fi | |
3494 | ||
3495 | if test "$wxUSE_ZLIB" = yes; then | |
3496 | echo "$as_me:$LINENO: result: yes" >&5 | |
3497 | echo "${ECHO_T}yes" >&6 | |
3498 | elif test "$wxUSE_ZLIB" = no; then | |
3499 | echo "$as_me:$LINENO: result: no" >&5 | |
3500 | echo "${ECHO_T}no" >&6 | |
3501 | elif test "$wxUSE_ZLIB" = sys; then | |
3502 | echo "$as_me:$LINENO: result: system version" >&5 | |
3503 | echo "${ECHO_T}system version" >&6 | |
3504 | elif test "$wxUSE_ZLIB" = builtin; then | |
3505 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3506 | echo "${ECHO_T}builtin version" >&6 | |
3507 | else | |
3508 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3509 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3510 | { (exit 1); exit 1; }; } | |
3511 | fi | |
3512 | ||
3513 | ||
3514 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3515 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3516 | no_cache=0 | |
3517 | ||
3518 | # Check whether --with-odbc or --without-odbc was given. | |
3519 | if test "${with_odbc+set}" = set; then | |
3520 | withval="$with_odbc" | |
3521 | ||
3522 | if test "$withval" = yes; then | |
3523 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3524 | elif test "$withval" = no; then | |
3525 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3526 | elif test "$withval" = sys; then | |
3527 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3528 | elif test "$withval" = builtin; then | |
3529 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3530 | else | |
3531 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3532 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3533 | { (exit 1); exit 1; }; } | |
3534 | fi | |
3535 | ||
3536 | else | |
3537 | ||
3538 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3539 | if test "x$LINE" != x ; then | |
3540 | eval "DEFAULT_$LINE" | |
3541 | else | |
3542 | no_cache=1 | |
3543 | fi | |
3544 | ||
3545 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3546 | ||
3547 | fi; | |
3548 | ||
3549 | eval "$ac_cv_use_odbc" | |
3550 | if test "$no_cache" != 1; then | |
3551 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3552 | fi | |
3553 | ||
3554 | if test "$wxUSE_ODBC" = yes; then | |
3555 | echo "$as_me:$LINENO: result: yes" >&5 | |
3556 | echo "${ECHO_T}yes" >&6 | |
3557 | elif test "$wxUSE_ODBC" = no; then | |
3558 | echo "$as_me:$LINENO: result: no" >&5 | |
3559 | echo "${ECHO_T}no" >&6 | |
3560 | elif test "$wxUSE_ODBC" = sys; then | |
3561 | echo "$as_me:$LINENO: result: system version" >&5 | |
3562 | echo "${ECHO_T}system version" >&6 | |
3563 | elif test "$wxUSE_ODBC" = builtin; then | |
3564 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3565 | echo "${ECHO_T}builtin version" >&6 | |
3566 | else | |
3567 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3568 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3569 | { (exit 1); exit 1; }; } | |
3570 | fi | |
3571 | ||
3572 | ||
3573 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3574 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3575 | no_cache=0 | |
3576 | ||
3577 | # Check whether --with-expat or --without-expat was given. | |
3578 | if test "${with_expat+set}" = set; then | |
3579 | withval="$with_expat" | |
3580 | ||
3581 | if test "$withval" = yes; then | |
3582 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3583 | elif test "$withval" = no; then | |
3584 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3585 | elif test "$withval" = sys; then | |
3586 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3587 | elif test "$withval" = builtin; then | |
3588 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3589 | else | |
3590 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3591 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3592 | { (exit 1); exit 1; }; } | |
3593 | fi | |
3594 | ||
3595 | else | |
3596 | ||
3597 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3598 | if test "x$LINE" != x ; then | |
3599 | eval "DEFAULT_$LINE" | |
3600 | else | |
3601 | no_cache=1 | |
3602 | fi | |
3603 | ||
3604 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3605 | ||
3606 | fi; | |
3607 | ||
3608 | eval "$ac_cv_use_expat" | |
3609 | if test "$no_cache" != 1; then | |
3610 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3611 | fi | |
3612 | ||
3613 | if test "$wxUSE_EXPAT" = yes; then | |
3614 | echo "$as_me:$LINENO: result: yes" >&5 | |
3615 | echo "${ECHO_T}yes" >&6 | |
3616 | elif test "$wxUSE_EXPAT" = no; then | |
3617 | echo "$as_me:$LINENO: result: no" >&5 | |
3618 | echo "${ECHO_T}no" >&6 | |
3619 | elif test "$wxUSE_EXPAT" = sys; then | |
3620 | echo "$as_me:$LINENO: result: system version" >&5 | |
3621 | echo "${ECHO_T}system version" >&6 | |
3622 | elif test "$wxUSE_EXPAT" = builtin; then | |
3623 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3624 | echo "${ECHO_T}builtin version" >&6 | |
3625 | else | |
3626 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3627 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3628 | { (exit 1); exit 1; }; } | |
3629 | fi | |
3630 | ||
3631 | ||
3632 | ||
3633 | ||
3634 | enablestring= | |
3635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3636 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3637 | no_cache=0 | |
3638 | # Check whether --enable-shared or --disable-shared was given. | |
3639 | if test "${enable_shared+set}" = set; then | |
3640 | enableval="$enable_shared" | |
3641 | ||
3642 | if test "$enableval" = yes; then | |
3643 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3644 | else | |
3645 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3646 | fi | |
3647 | ||
3648 | else | |
3649 | ||
3650 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3651 | if test "x$LINE" != x ; then | |
3652 | eval "DEFAULT_$LINE" | |
3653 | else | |
3654 | no_cache=1 | |
3655 | fi | |
3656 | ||
3657 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3658 | ||
3659 | fi; | |
3660 | ||
3661 | eval "$ac_cv_use_shared" | |
3662 | if test "$no_cache" != 1; then | |
3663 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3664 | fi | |
3665 | ||
3666 | if test "$wxUSE_SHARED" = yes; then | |
3667 | echo "$as_me:$LINENO: result: yes" >&5 | |
3668 | echo "${ECHO_T}yes" >&6 | |
3669 | else | |
3670 | echo "$as_me:$LINENO: result: no" >&5 | |
3671 | echo "${ECHO_T}no" >&6 | |
3672 | fi | |
3673 | ||
3674 | ||
3675 | enablestring= | |
3676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3677 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3678 | no_cache=0 | |
3679 | # Check whether --enable-optimise or --disable-optimise was given. | |
3680 | if test "${enable_optimise+set}" = set; then | |
3681 | enableval="$enable_optimise" | |
3682 | ||
3683 | if test "$enableval" = yes; then | |
3684 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3685 | else | |
3686 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3687 | fi | |
3688 | ||
3689 | else | |
3690 | ||
3691 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3692 | if test "x$LINE" != x ; then | |
3693 | eval "DEFAULT_$LINE" | |
3694 | else | |
3695 | no_cache=1 | |
3696 | fi | |
3697 | ||
3698 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3699 | ||
3700 | fi; | |
3701 | ||
3702 | eval "$ac_cv_use_optimise" | |
3703 | if test "$no_cache" != 1; then | |
3704 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3705 | fi | |
3706 | ||
3707 | if test "$wxUSE_OPTIMISE" = yes; then | |
3708 | echo "$as_me:$LINENO: result: yes" >&5 | |
3709 | echo "${ECHO_T}yes" >&6 | |
3710 | else | |
3711 | echo "$as_me:$LINENO: result: no" >&5 | |
3712 | echo "${ECHO_T}no" >&6 | |
3713 | fi | |
3714 | ||
3715 | ||
3716 | enablestring= | |
3717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3718 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3719 | no_cache=0 | |
3720 | # Check whether --enable-debug or --disable-debug was given. | |
3721 | if test "${enable_debug+set}" = set; then | |
3722 | enableval="$enable_debug" | |
3723 | ||
3724 | if test "$enableval" = yes; then | |
3725 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3726 | else | |
3727 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3728 | fi | |
3729 | ||
3730 | else | |
3731 | ||
3732 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3733 | if test "x$LINE" != x ; then | |
3734 | eval "DEFAULT_$LINE" | |
3735 | else | |
3736 | no_cache=1 | |
3737 | fi | |
3738 | ||
3739 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3740 | ||
3741 | fi; | |
3742 | ||
3743 | eval "$ac_cv_use_debug" | |
3744 | if test "$no_cache" != 1; then | |
3745 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3746 | fi | |
3747 | ||
3748 | if test "$wxUSE_DEBUG" = yes; then | |
3749 | echo "$as_me:$LINENO: result: yes" >&5 | |
3750 | echo "${ECHO_T}yes" >&6 | |
3751 | else | |
3752 | echo "$as_me:$LINENO: result: no" >&5 | |
3753 | echo "${ECHO_T}no" >&6 | |
3754 | fi | |
3755 | ||
3756 | ||
3757 | enablestring= | |
3758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3759 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3760 | no_cache=0 | |
3761 | # Check whether --enable-stl or --disable-stl was given. | |
3762 | if test "${enable_stl+set}" = set; then | |
3763 | enableval="$enable_stl" | |
3764 | ||
3765 | if test "$enableval" = yes; then | |
3766 | ac_cv_use_stl='wxUSE_STL=yes' | |
3767 | else | |
3768 | ac_cv_use_stl='wxUSE_STL=no' | |
3769 | fi | |
3770 | ||
3771 | else | |
3772 | ||
3773 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3774 | if test "x$LINE" != x ; then | |
3775 | eval "DEFAULT_$LINE" | |
3776 | else | |
3777 | no_cache=1 | |
3778 | fi | |
3779 | ||
3780 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3781 | ||
3782 | fi; | |
3783 | ||
3784 | eval "$ac_cv_use_stl" | |
3785 | if test "$no_cache" != 1; then | |
3786 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3787 | fi | |
3788 | ||
3789 | if test "$wxUSE_STL" = yes; then | |
3790 | echo "$as_me:$LINENO: result: yes" >&5 | |
3791 | echo "${ECHO_T}yes" >&6 | |
3792 | else | |
3793 | echo "$as_me:$LINENO: result: no" >&5 | |
3794 | echo "${ECHO_T}no" >&6 | |
3795 | fi | |
3796 | ||
3797 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3798 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3799 | |
3800 | enablestring= | |
3801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3802 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3803 | no_cache=0 | |
3804 | # Check whether --enable-omf or --disable-omf was given. | |
3805 | if test "${enable_omf+set}" = set; then | |
3806 | enableval="$enable_omf" | |
3807 | ||
3808 | if test "$enableval" = yes; then | |
3809 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3810 | else | |
3811 | ac_cv_use_omf='wxUSE_OMF=no' | |
3812 | fi | |
3813 | ||
3814 | else | |
3815 | ||
3816 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3817 | if test "x$LINE" != x ; then | |
3818 | eval "DEFAULT_$LINE" | |
3819 | else | |
3820 | no_cache=1 | |
3821 | fi | |
3822 | ||
3823 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3824 | ||
3825 | fi; | |
3826 | ||
3827 | eval "$ac_cv_use_omf" | |
3828 | if test "$no_cache" != 1; then | |
3829 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3830 | fi | |
3831 | ||
3832 | if test "$wxUSE_OMF" = yes; then | |
3833 | echo "$as_me:$LINENO: result: yes" >&5 | |
3834 | echo "${ECHO_T}yes" >&6 | |
3835 | else | |
3836 | echo "$as_me:$LINENO: result: no" >&5 | |
3837 | echo "${ECHO_T}no" >&6 | |
3838 | fi | |
3839 | ||
3840 | fi | |
3841 | ||
3842 | if test "$wxUSE_DEBUG" = "yes"; then | |
3843 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3844 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3845 | BUILD=debug | |
3846 | elif test "$wxUSE_DEBUG" = "no"; then | |
3847 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3848 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3849 | BUILD=release | |
3850 | fi | |
3851 | ||
3852 | ||
3853 | enablestring= | |
3854 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3855 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3856 | no_cache=0 | |
3857 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3858 | if test "${enable_debug_flag+set}" = set; then | |
3859 | enableval="$enable_debug_flag" | |
3860 | ||
3861 | if test "$enableval" = yes; then | |
3862 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3863 | else | |
3864 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3865 | fi | |
3866 | ||
3867 | else | |
3868 | ||
3869 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3870 | if test "x$LINE" != x ; then | |
3871 | eval "DEFAULT_$LINE" | |
3872 | else | |
3873 | no_cache=1 | |
3874 | fi | |
3875 | ||
3876 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3877 | ||
3878 | fi; | |
3879 | ||
3880 | eval "$ac_cv_use_debug_flag" | |
3881 | if test "$no_cache" != 1; then | |
3882 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3883 | fi | |
3884 | ||
3885 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3886 | echo "$as_me:$LINENO: result: yes" >&5 | |
3887 | echo "${ECHO_T}yes" >&6 | |
3888 | else | |
3889 | echo "$as_me:$LINENO: result: no" >&5 | |
3890 | echo "${ECHO_T}no" >&6 | |
3891 | fi | |
3892 | ||
3893 | ||
3894 | enablestring= | |
3895 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3896 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3897 | no_cache=0 | |
3898 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3899 | if test "${enable_debug_info+set}" = set; then | |
3900 | enableval="$enable_debug_info" | |
3901 | ||
3902 | if test "$enableval" = yes; then | |
3903 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3904 | else | |
3905 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3906 | fi | |
3907 | ||
3908 | else | |
3909 | ||
3910 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3911 | if test "x$LINE" != x ; then | |
3912 | eval "DEFAULT_$LINE" | |
3913 | else | |
3914 | no_cache=1 | |
3915 | fi | |
3916 | ||
3917 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3918 | ||
3919 | fi; | |
3920 | ||
3921 | eval "$ac_cv_use_debug_info" | |
3922 | if test "$no_cache" != 1; then | |
3923 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3924 | fi | |
3925 | ||
3926 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3927 | echo "$as_me:$LINENO: result: yes" >&5 | |
3928 | echo "${ECHO_T}yes" >&6 | |
3929 | else | |
3930 | echo "$as_me:$LINENO: result: no" >&5 | |
3931 | echo "${ECHO_T}no" >&6 | |
3932 | fi | |
3933 | ||
3934 | ||
3935 | enablestring= | |
3936 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3937 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3938 | no_cache=0 | |
3939 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3940 | if test "${enable_debug_gdb+set}" = set; then | |
3941 | enableval="$enable_debug_gdb" | |
3942 | ||
3943 | if test "$enableval" = yes; then | |
3944 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3945 | else | |
3946 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3947 | fi | |
3948 | ||
3949 | else | |
3950 | ||
3951 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3952 | if test "x$LINE" != x ; then | |
3953 | eval "DEFAULT_$LINE" | |
3954 | else | |
3955 | no_cache=1 | |
3956 | fi | |
3957 | ||
3958 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3959 | ||
3960 | fi; | |
3961 | ||
3962 | eval "$ac_cv_use_debug_gdb" | |
3963 | if test "$no_cache" != 1; then | |
3964 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3965 | fi | |
3966 | ||
3967 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3968 | echo "$as_me:$LINENO: result: yes" >&5 | |
3969 | echo "${ECHO_T}yes" >&6 | |
3970 | else | |
3971 | echo "$as_me:$LINENO: result: no" >&5 | |
3972 | echo "${ECHO_T}no" >&6 | |
3973 | fi | |
3974 | ||
3975 | ||
3976 | enablestring= | |
3977 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3978 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3979 | no_cache=0 | |
3980 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3981 | if test "${enable_debug_cntxt+set}" = set; then | |
3982 | enableval="$enable_debug_cntxt" | |
3983 | ||
3984 | if test "$enableval" = yes; then | |
3985 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3986 | else | |
3987 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3988 | fi | |
3989 | ||
3990 | else | |
3991 | ||
3992 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3993 | if test "x$LINE" != x ; then | |
3994 | eval "DEFAULT_$LINE" | |
3995 | else | |
3996 | no_cache=1 | |
3997 | fi | |
3998 | ||
3999 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
4000 | ||
4001 | fi; | |
4002 | ||
4003 | eval "$ac_cv_use_debug_cntxt" | |
4004 | if test "$no_cache" != 1; then | |
4005 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
4006 | fi | |
4007 | ||
4008 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
4009 | echo "$as_me:$LINENO: result: yes" >&5 | |
4010 | echo "${ECHO_T}yes" >&6 | |
4011 | else | |
4012 | echo "$as_me:$LINENO: result: no" >&5 | |
4013 | echo "${ECHO_T}no" >&6 | |
4014 | fi | |
4015 | ||
4016 | ||
4017 | enablestring= | |
4018 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
4019 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
4020 | no_cache=0 | |
4021 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
4022 | if test "${enable_mem_tracing+set}" = set; then | |
4023 | enableval="$enable_mem_tracing" | |
4024 | ||
4025 | if test "$enableval" = yes; then | |
4026 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
4027 | else | |
4028 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
4029 | fi | |
4030 | ||
4031 | else | |
4032 | ||
4033 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
4034 | if test "x$LINE" != x ; then | |
4035 | eval "DEFAULT_$LINE" | |
4036 | else | |
4037 | no_cache=1 | |
4038 | fi | |
4039 | ||
4040 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
4041 | ||
4042 | fi; | |
4043 | ||
4044 | eval "$ac_cv_use_mem_tracing" | |
4045 | if test "$no_cache" != 1; then | |
4046 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
4047 | fi | |
4048 | ||
4049 | if test "$wxUSE_MEM_TRACING" = yes; then | |
4050 | echo "$as_me:$LINENO: result: yes" >&5 | |
4051 | echo "${ECHO_T}yes" >&6 | |
4052 | else | |
4053 | echo "$as_me:$LINENO: result: no" >&5 | |
4054 | echo "${ECHO_T}no" >&6 | |
4055 | fi | |
4056 | ||
4057 | ||
4058 | enablestring= | |
4059 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
4060 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
4061 | no_cache=0 | |
4062 | # Check whether --enable-profile or --disable-profile was given. | |
4063 | if test "${enable_profile+set}" = set; then | |
4064 | enableval="$enable_profile" | |
4065 | ||
4066 | if test "$enableval" = yes; then | |
4067 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
4068 | else | |
4069 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
4070 | fi | |
4071 | ||
4072 | else | |
4073 | ||
4074 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
4075 | if test "x$LINE" != x ; then | |
4076 | eval "DEFAULT_$LINE" | |
4077 | else | |
4078 | no_cache=1 | |
4079 | fi | |
4080 | ||
4081 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
4082 | ||
4083 | fi; | |
4084 | ||
4085 | eval "$ac_cv_use_profile" | |
4086 | if test "$no_cache" != 1; then | |
4087 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4088 | fi | |
4089 | ||
4090 | if test "$wxUSE_PROFILE" = yes; then | |
4091 | echo "$as_me:$LINENO: result: yes" >&5 | |
4092 | echo "${ECHO_T}yes" >&6 | |
4093 | else | |
4094 | echo "$as_me:$LINENO: result: no" >&5 | |
4095 | echo "${ECHO_T}no" >&6 | |
4096 | fi | |
4097 | ||
4098 | ||
4099 | enablestring= | |
4100 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4101 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4102 | no_cache=0 | |
4103 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4104 | if test "${enable_no_rtti+set}" = set; then | |
4105 | enableval="$enable_no_rtti" | |
4106 | ||
4107 | if test "$enableval" = yes; then | |
4108 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4109 | else | |
4110 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4111 | fi | |
4112 | ||
4113 | else | |
4114 | ||
4115 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4116 | if test "x$LINE" != x ; then | |
4117 | eval "DEFAULT_$LINE" | |
4118 | else | |
4119 | no_cache=1 | |
4120 | fi | |
4121 | ||
4122 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4123 | ||
4124 | fi; | |
4125 | ||
4126 | eval "$ac_cv_use_no_rtti" | |
4127 | if test "$no_cache" != 1; then | |
4128 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4129 | fi | |
4130 | ||
4131 | if test "$wxUSE_NO_RTTI" = yes; then | |
4132 | echo "$as_me:$LINENO: result: yes" >&5 | |
4133 | echo "${ECHO_T}yes" >&6 | |
4134 | else | |
4135 | echo "$as_me:$LINENO: result: no" >&5 | |
4136 | echo "${ECHO_T}no" >&6 | |
4137 | fi | |
4138 | ||
4139 | ||
4140 | enablestring= | |
4141 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4142 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4143 | no_cache=0 | |
4144 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4145 | if test "${enable_no_exceptions+set}" = set; then | |
4146 | enableval="$enable_no_exceptions" | |
4147 | ||
4148 | if test "$enableval" = yes; then | |
4149 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4150 | else | |
4151 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4152 | fi | |
4153 | ||
4154 | else | |
4155 | ||
4156 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4157 | if test "x$LINE" != x ; then | |
4158 | eval "DEFAULT_$LINE" | |
4159 | else | |
4160 | no_cache=1 | |
4161 | fi | |
4162 | ||
4163 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4164 | ||
4165 | fi; | |
4166 | ||
4167 | eval "$ac_cv_use_no_exceptions" | |
4168 | if test "$no_cache" != 1; then | |
4169 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4170 | fi | |
4171 | ||
4172 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4173 | echo "$as_me:$LINENO: result: yes" >&5 | |
4174 | echo "${ECHO_T}yes" >&6 | |
4175 | else | |
4176 | echo "$as_me:$LINENO: result: no" >&5 | |
4177 | echo "${ECHO_T}no" >&6 | |
4178 | fi | |
4179 | ||
4180 | ||
4181 | enablestring= | |
4182 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4183 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4184 | no_cache=0 | |
4185 | # Check whether --enable-permissive or --disable-permissive was given. | |
4186 | if test "${enable_permissive+set}" = set; then | |
4187 | enableval="$enable_permissive" | |
4188 | ||
4189 | if test "$enableval" = yes; then | |
4190 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4191 | else | |
4192 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4193 | fi | |
4194 | ||
4195 | else | |
4196 | ||
4197 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4198 | if test "x$LINE" != x ; then | |
4199 | eval "DEFAULT_$LINE" | |
4200 | else | |
4201 | no_cache=1 | |
4202 | fi | |
4203 | ||
4204 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4205 | ||
4206 | fi; | |
4207 | ||
4208 | eval "$ac_cv_use_permissive" | |
4209 | if test "$no_cache" != 1; then | |
4210 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4211 | fi | |
4212 | ||
4213 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4214 | echo "$as_me:$LINENO: result: yes" >&5 | |
4215 | echo "${ECHO_T}yes" >&6 | |
4216 | else | |
4217 | echo "$as_me:$LINENO: result: no" >&5 | |
4218 | echo "${ECHO_T}no" >&6 | |
4219 | fi | |
4220 | ||
4221 | ||
4222 | enablestring= | |
4223 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4224 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4225 | no_cache=0 | |
4226 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4227 | if test "${enable_no_deps+set}" = set; then | |
4228 | enableval="$enable_no_deps" | |
4229 | ||
4230 | if test "$enableval" = yes; then | |
4231 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4232 | else | |
4233 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4234 | fi | |
4235 | ||
4236 | else | |
4237 | ||
4238 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4239 | if test "x$LINE" != x ; then | |
4240 | eval "DEFAULT_$LINE" | |
4241 | else | |
4242 | no_cache=1 | |
4243 | fi | |
4244 | ||
4245 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4246 | ||
4247 | fi; | |
4248 | ||
4249 | eval "$ac_cv_use_no_deps" | |
4250 | if test "$no_cache" != 1; then | |
4251 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4252 | fi | |
4253 | ||
4254 | if test "$wxUSE_NO_DEPS" = yes; then | |
4255 | echo "$as_me:$LINENO: result: yes" >&5 | |
4256 | echo "${ECHO_T}yes" >&6 | |
4257 | else | |
4258 | echo "$as_me:$LINENO: result: no" >&5 | |
4259 | echo "${ECHO_T}no" >&6 | |
4260 | fi | |
4261 | ||
4262 | ||
95768535 | 4263 | enablestring= |
7afc46ab KO |
4264 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 |
4265 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6 | |
4266 | no_cache=0 | |
4267 | # Check whether --enable-universal_binary or --disable-universal_binary was given. | |
4268 | if test "${enable_universal_binary+set}" = set; then | |
4269 | enableval="$enable_universal_binary" | |
4270 | ||
95768535 | 4271 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'" |
7afc46ab KO |
4272 | |
4273 | else | |
4274 | ||
4275 | LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}` | |
4276 | if test "x$LINE" != x ; then | |
4277 | eval "DEFAULT_$LINE" | |
95768535 | 4278 | wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY |
7afc46ab KO |
4279 | else |
4280 | no_cache=1 | |
95768535 | 4281 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no" |
7afc46ab KO |
4282 | fi |
4283 | ||
7afc46ab KO |
4284 | fi; |
4285 | ||
95768535 | 4286 | eval "$wx_cv_use_universal_binary" |
7afc46ab | 4287 | if test "$no_cache" != 1; then |
95768535 | 4288 | echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp |
7afc46ab KO |
4289 | fi |
4290 | ||
95768535 MW |
4291 | echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5 |
4292 | echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6 | |
7afc46ab KO |
4293 | |
4294 | ||
a848cd7e | 4295 | |
dee1a63f MB |
4296 | enablestring=enable |
4297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4298 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4299 | no_cache=0 |
dee1a63f MB |
4300 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4301 | if test "${enable_compat24+set}" = set; then | |
4302 | enableval="$enable_compat24" | |
a848cd7e SC |
4303 | |
4304 | if test "$enableval" = yes; then | |
dee1a63f | 4305 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4306 | else |
dee1a63f | 4307 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4308 | fi |
4309 | ||
4310 | else | |
4311 | ||
dee1a63f | 4312 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4313 | if test "x$LINE" != x ; then |
4314 | eval "DEFAULT_$LINE" | |
4315 | else | |
4316 | no_cache=1 | |
4317 | fi | |
4318 | ||
dee1a63f | 4319 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4320 | |
4321 | fi; | |
4322 | ||
dee1a63f | 4323 | eval "$ac_cv_use_compat24" |
a848cd7e | 4324 | if test "$no_cache" != 1; then |
dee1a63f | 4325 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4326 | fi |
4327 | ||
dee1a63f | 4328 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4329 | echo "$as_me:$LINENO: result: yes" >&5 |
4330 | echo "${ECHO_T}yes" >&6 | |
4331 | else | |
4332 | echo "$as_me:$LINENO: result: no" >&5 | |
4333 | echo "${ECHO_T}no" >&6 | |
4334 | fi | |
4335 | ||
4336 | ||
4337 | enablestring=disable | |
dee1a63f MB |
4338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4339 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4340 | no_cache=0 |
dee1a63f MB |
4341 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4342 | if test "${enable_compat26+set}" = set; then | |
4343 | enableval="$enable_compat26" | |
a848cd7e SC |
4344 | |
4345 | if test "$enableval" = yes; then | |
dee1a63f | 4346 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4347 | else |
dee1a63f | 4348 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4349 | fi |
4350 | ||
4351 | else | |
4352 | ||
dee1a63f | 4353 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4354 | if test "x$LINE" != x ; then |
4355 | eval "DEFAULT_$LINE" | |
4356 | else | |
4357 | no_cache=1 | |
4358 | fi | |
4359 | ||
dee1a63f | 4360 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4361 | |
4362 | fi; | |
4363 | ||
dee1a63f | 4364 | eval "$ac_cv_use_compat26" |
a848cd7e | 4365 | if test "$no_cache" != 1; then |
dee1a63f | 4366 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4367 | fi |
4368 | ||
dee1a63f | 4369 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4370 | echo "$as_me:$LINENO: result: yes" >&5 |
4371 | echo "${ECHO_T}yes" >&6 | |
4372 | else | |
4373 | echo "$as_me:$LINENO: result: no" >&5 | |
4374 | echo "${ECHO_T}no" >&6 | |
4375 | fi | |
4376 | ||
4377 | ||
ffa0583f RL |
4378 | |
4379 | enablestring= | |
4380 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4381 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4382 | no_cache=0 | |
4383 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4384 | if test "${enable_rpath+set}" = set; then |
4385 | enableval="$enable_rpath" | |
ffa0583f RL |
4386 | |
4387 | if test "$enableval" = yes; then | |
4388 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4389 | else | |
4390 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4391 | fi | |
4392 | ||
4393 | else | |
4394 | ||
4395 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4396 | if test "x$LINE" != x ; then | |
4397 | eval "DEFAULT_$LINE" | |
4398 | else | |
4399 | no_cache=1 | |
4400 | fi | |
4401 | ||
4402 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4403 | ||
a848cd7e SC |
4404 | fi; |
4405 | ||
ffa0583f RL |
4406 | eval "$ac_cv_use_rpath" |
4407 | if test "$no_cache" != 1; then | |
4408 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4409 | fi | |
4410 | ||
4411 | if test "$wxUSE_RPATH" = yes; then | |
4412 | echo "$as_me:$LINENO: result: yes" >&5 | |
4413 | echo "${ECHO_T}yes" >&6 | |
4414 | else | |
4415 | echo "$as_me:$LINENO: result: no" >&5 | |
4416 | echo "${ECHO_T}no" >&6 | |
4417 | fi | |
4418 | ||
a848cd7e SC |
4419 | |
4420 | ||
4421 | ||
4422 | ||
4423 | enablestring= | |
4424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4425 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4426 | no_cache=0 | |
4427 | # Check whether --enable-intl or --disable-intl was given. | |
4428 | if test "${enable_intl+set}" = set; then | |
4429 | enableval="$enable_intl" | |
4430 | ||
4431 | if test "$enableval" = yes; then | |
4432 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4433 | else | |
4434 | ac_cv_use_intl='wxUSE_INTL=no' | |
4435 | fi | |
4436 | ||
4437 | else | |
4438 | ||
4439 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4440 | if test "x$LINE" != x ; then | |
4441 | eval "DEFAULT_$LINE" | |
4442 | else | |
4443 | no_cache=1 | |
4444 | fi | |
4445 | ||
4446 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4447 | ||
4448 | fi; | |
4449 | ||
4450 | eval "$ac_cv_use_intl" | |
4451 | if test "$no_cache" != 1; then | |
4452 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4453 | fi | |
4454 | ||
4455 | if test "$wxUSE_INTL" = yes; then | |
4456 | echo "$as_me:$LINENO: result: yes" >&5 | |
4457 | echo "${ECHO_T}yes" >&6 | |
4458 | else | |
4459 | echo "$as_me:$LINENO: result: no" >&5 | |
4460 | echo "${ECHO_T}no" >&6 | |
4461 | fi | |
4462 | ||
4463 | ||
4464 | enablestring= | |
4465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4466 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4467 | no_cache=0 | |
4468 | # Check whether --enable-config or --disable-config was given. | |
4469 | if test "${enable_config+set}" = set; then | |
4470 | enableval="$enable_config" | |
4471 | ||
4472 | if test "$enableval" = yes; then | |
4473 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4474 | else | |
4475 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4476 | fi | |
4477 | ||
4478 | else | |
4479 | ||
4480 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4481 | if test "x$LINE" != x ; then | |
4482 | eval "DEFAULT_$LINE" | |
4483 | else | |
4484 | no_cache=1 | |
4485 | fi | |
4486 | ||
4487 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4488 | ||
4489 | fi; | |
4490 | ||
4491 | eval "$ac_cv_use_config" | |
4492 | if test "$no_cache" != 1; then | |
4493 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4494 | fi | |
4495 | ||
4496 | if test "$wxUSE_CONFIG" = yes; then | |
4497 | echo "$as_me:$LINENO: result: yes" >&5 | |
4498 | echo "${ECHO_T}yes" >&6 | |
4499 | else | |
4500 | echo "$as_me:$LINENO: result: no" >&5 | |
4501 | echo "${ECHO_T}no" >&6 | |
4502 | fi | |
4503 | ||
4504 | ||
4505 | ||
4506 | enablestring= | |
4507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4508 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4509 | no_cache=0 | |
4510 | # Check whether --enable-protocols or --disable-protocols was given. | |
4511 | if test "${enable_protocols+set}" = set; then | |
4512 | enableval="$enable_protocols" | |
4513 | ||
4514 | if test "$enableval" = yes; then | |
4515 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4516 | else | |
4517 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4518 | fi | |
4519 | ||
4520 | else | |
4521 | ||
4522 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4523 | if test "x$LINE" != x ; then | |
4524 | eval "DEFAULT_$LINE" | |
4525 | else | |
4526 | no_cache=1 | |
4527 | fi | |
4528 | ||
4529 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4530 | ||
4531 | fi; | |
4532 | ||
4533 | eval "$ac_cv_use_protocols" | |
4534 | if test "$no_cache" != 1; then | |
4535 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4536 | fi | |
4537 | ||
4538 | if test "$wxUSE_PROTOCOL" = yes; then | |
4539 | echo "$as_me:$LINENO: result: yes" >&5 | |
4540 | echo "${ECHO_T}yes" >&6 | |
4541 | else | |
4542 | echo "$as_me:$LINENO: result: no" >&5 | |
4543 | echo "${ECHO_T}no" >&6 | |
4544 | fi | |
4545 | ||
4546 | ||
4547 | enablestring= | |
4548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4549 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4550 | no_cache=0 | |
4551 | # Check whether --enable-ftp or --disable-ftp was given. | |
4552 | if test "${enable_ftp+set}" = set; then | |
4553 | enableval="$enable_ftp" | |
4554 | ||
4555 | if test "$enableval" = yes; then | |
4556 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4557 | else | |
4558 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4559 | fi | |
4560 | ||
4561 | else | |
4562 | ||
4563 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4564 | if test "x$LINE" != x ; then | |
4565 | eval "DEFAULT_$LINE" | |
4566 | else | |
4567 | no_cache=1 | |
4568 | fi | |
4569 | ||
4570 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4571 | ||
4572 | fi; | |
4573 | ||
4574 | eval "$ac_cv_use_ftp" | |
4575 | if test "$no_cache" != 1; then | |
4576 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4577 | fi | |
4578 | ||
4579 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4580 | echo "$as_me:$LINENO: result: yes" >&5 | |
4581 | echo "${ECHO_T}yes" >&6 | |
4582 | else | |
4583 | echo "$as_me:$LINENO: result: no" >&5 | |
4584 | echo "${ECHO_T}no" >&6 | |
4585 | fi | |
4586 | ||
4587 | ||
4588 | enablestring= | |
4589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4590 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4591 | no_cache=0 | |
4592 | # Check whether --enable-http or --disable-http was given. | |
4593 | if test "${enable_http+set}" = set; then | |
4594 | enableval="$enable_http" | |
4595 | ||
4596 | if test "$enableval" = yes; then | |
4597 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4598 | else | |
4599 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4600 | fi | |
4601 | ||
4602 | else | |
4603 | ||
4604 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4605 | if test "x$LINE" != x ; then | |
4606 | eval "DEFAULT_$LINE" | |
4607 | else | |
4608 | no_cache=1 | |
4609 | fi | |
4610 | ||
4611 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4612 | ||
4613 | fi; | |
4614 | ||
4615 | eval "$ac_cv_use_http" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4621 | echo "$as_me:$LINENO: result: yes" >&5 | |
4622 | echo "${ECHO_T}yes" >&6 | |
4623 | else | |
4624 | echo "$as_me:$LINENO: result: no" >&5 | |
4625 | echo "${ECHO_T}no" >&6 | |
4626 | fi | |
4627 | ||
4628 | ||
4629 | enablestring= | |
4630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4631 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4632 | no_cache=0 | |
4633 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4634 | if test "${enable_fileproto+set}" = set; then | |
4635 | enableval="$enable_fileproto" | |
4636 | ||
4637 | if test "$enableval" = yes; then | |
4638 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4639 | else | |
4640 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4641 | fi | |
4642 | ||
4643 | else | |
4644 | ||
4645 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4646 | if test "x$LINE" != x ; then | |
4647 | eval "DEFAULT_$LINE" | |
4648 | else | |
4649 | no_cache=1 | |
4650 | fi | |
4651 | ||
4652 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4653 | ||
4654 | fi; | |
4655 | ||
4656 | eval "$ac_cv_use_fileproto" | |
4657 | if test "$no_cache" != 1; then | |
4658 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4659 | fi | |
4660 | ||
4661 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4662 | echo "$as_me:$LINENO: result: yes" >&5 | |
4663 | echo "${ECHO_T}yes" >&6 | |
4664 | else | |
4665 | echo "$as_me:$LINENO: result: no" >&5 | |
4666 | echo "${ECHO_T}no" >&6 | |
4667 | fi | |
4668 | ||
4669 | ||
4670 | enablestring= | |
4671 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4672 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4673 | no_cache=0 | |
4674 | # Check whether --enable-sockets or --disable-sockets was given. | |
4675 | if test "${enable_sockets+set}" = set; then | |
4676 | enableval="$enable_sockets" | |
4677 | ||
4678 | if test "$enableval" = yes; then | |
4679 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4680 | else | |
4681 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4682 | fi | |
4683 | ||
4684 | else | |
4685 | ||
4686 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4687 | if test "x$LINE" != x ; then | |
4688 | eval "DEFAULT_$LINE" | |
4689 | else | |
4690 | no_cache=1 | |
4691 | fi | |
4692 | ||
4693 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4694 | ||
4695 | fi; | |
4696 | ||
4697 | eval "$ac_cv_use_sockets" | |
4698 | if test "$no_cache" != 1; then | |
4699 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4700 | fi | |
4701 | ||
4702 | if test "$wxUSE_SOCKETS" = yes; then | |
4703 | echo "$as_me:$LINENO: result: yes" >&5 | |
4704 | echo "${ECHO_T}yes" >&6 | |
4705 | else | |
4706 | echo "$as_me:$LINENO: result: no" >&5 | |
4707 | echo "${ECHO_T}no" >&6 | |
4708 | fi | |
4709 | ||
4710 | ||
4711 | enablestring= | |
4712 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4713 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4714 | no_cache=0 | |
4715 | # Check whether --enable-ole or --disable-ole was given. | |
4716 | if test "${enable_ole+set}" = set; then | |
4717 | enableval="$enable_ole" | |
4718 | ||
4719 | if test "$enableval" = yes; then | |
4720 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4721 | else | |
4722 | ac_cv_use_ole='wxUSE_OLE=no' | |
4723 | fi | |
4724 | ||
4725 | else | |
4726 | ||
4727 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4728 | if test "x$LINE" != x ; then | |
4729 | eval "DEFAULT_$LINE" | |
4730 | else | |
4731 | no_cache=1 | |
4732 | fi | |
4733 | ||
4734 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4735 | ||
4736 | fi; | |
4737 | ||
4738 | eval "$ac_cv_use_ole" | |
4739 | if test "$no_cache" != 1; then | |
4740 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4741 | fi | |
4742 | ||
4743 | if test "$wxUSE_OLE" = yes; then | |
4744 | echo "$as_me:$LINENO: result: yes" >&5 | |
4745 | echo "${ECHO_T}yes" >&6 | |
4746 | else | |
4747 | echo "$as_me:$LINENO: result: no" >&5 | |
4748 | echo "${ECHO_T}no" >&6 | |
4749 | fi | |
4750 | ||
4751 | ||
4752 | enablestring= | |
4753 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4754 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4755 | no_cache=0 | |
4756 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4757 | if test "${enable_dataobj+set}" = set; then | |
4758 | enableval="$enable_dataobj" | |
4759 | ||
4760 | if test "$enableval" = yes; then | |
4761 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4762 | else | |
4763 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4764 | fi | |
4765 | ||
4766 | else | |
4767 | ||
4768 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4769 | if test "x$LINE" != x ; then | |
4770 | eval "DEFAULT_$LINE" | |
4771 | else | |
4772 | no_cache=1 | |
4773 | fi | |
4774 | ||
4775 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4776 | ||
4777 | fi; | |
4778 | ||
4779 | eval "$ac_cv_use_dataobj" | |
4780 | if test "$no_cache" != 1; then | |
4781 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4782 | fi | |
4783 | ||
4784 | if test "$wxUSE_DATAOBJ" = yes; then | |
4785 | echo "$as_me:$LINENO: result: yes" >&5 | |
4786 | echo "${ECHO_T}yes" >&6 | |
4787 | else | |
4788 | echo "$as_me:$LINENO: result: no" >&5 | |
4789 | echo "${ECHO_T}no" >&6 | |
4790 | fi | |
4791 | ||
4792 | ||
4793 | ||
4794 | enablestring= | |
4795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4796 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4797 | no_cache=0 | |
4798 | # Check whether --enable-ipc or --disable-ipc was given. | |
4799 | if test "${enable_ipc+set}" = set; then | |
4800 | enableval="$enable_ipc" | |
4801 | ||
4802 | if test "$enableval" = yes; then | |
4803 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4804 | else | |
4805 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4806 | fi | |
4807 | ||
4808 | else | |
4809 | ||
4810 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4811 | if test "x$LINE" != x ; then | |
4812 | eval "DEFAULT_$LINE" | |
4813 | else | |
4814 | no_cache=1 | |
4815 | fi | |
4816 | ||
4817 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4818 | ||
4819 | fi; | |
4820 | ||
4821 | eval "$ac_cv_use_ipc" | |
4822 | if test "$no_cache" != 1; then | |
4823 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4824 | fi | |
4825 | ||
4826 | if test "$wxUSE_IPC" = yes; then | |
4827 | echo "$as_me:$LINENO: result: yes" >&5 | |
4828 | echo "${ECHO_T}yes" >&6 | |
4829 | else | |
4830 | echo "$as_me:$LINENO: result: no" >&5 | |
4831 | echo "${ECHO_T}no" >&6 | |
4832 | fi | |
4833 | ||
4834 | ||
4835 | ||
4836 | enablestring= | |
4837 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4838 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4839 | no_cache=0 | |
4840 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4841 | if test "${enable_apple_ieee+set}" = set; then | |
4842 | enableval="$enable_apple_ieee" | |
4843 | ||
4844 | if test "$enableval" = yes; then | |
4845 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4846 | else | |
4847 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4848 | fi | |
4849 | ||
4850 | else | |
4851 | ||
4852 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4853 | if test "x$LINE" != x ; then | |
4854 | eval "DEFAULT_$LINE" | |
4855 | else | |
4856 | no_cache=1 | |
4857 | fi | |
4858 | ||
4859 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4860 | ||
4861 | fi; | |
4862 | ||
4863 | eval "$ac_cv_use_apple_ieee" | |
4864 | if test "$no_cache" != 1; then | |
4865 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4866 | fi | |
4867 | ||
4868 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4869 | echo "$as_me:$LINENO: result: yes" >&5 | |
4870 | echo "${ECHO_T}yes" >&6 | |
4871 | else | |
4872 | echo "$as_me:$LINENO: result: no" >&5 | |
4873 | echo "${ECHO_T}no" >&6 | |
4874 | fi | |
4875 | ||
4876 | ||
81f90336 MW |
4877 | enablestring= |
4878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4879 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4880 | no_cache=0 | |
4881 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4882 | if test "${enable_arcstream+set}" = set; then | |
4883 | enableval="$enable_arcstream" | |
4884 | ||
4885 | if test "$enableval" = yes; then | |
9e8e867f | 4886 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4887 | else |
9e8e867f | 4888 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4889 | fi |
4890 | ||
4891 | else | |
4892 | ||
9e8e867f | 4893 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4894 | if test "x$LINE" != x ; then |
4895 | eval "DEFAULT_$LINE" | |
4896 | else | |
4897 | no_cache=1 | |
4898 | fi | |
4899 | ||
9e8e867f | 4900 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4901 | |
4902 | fi; | |
4903 | ||
4904 | eval "$ac_cv_use_arcstream" | |
4905 | if test "$no_cache" != 1; then | |
4906 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4907 | fi | |
4908 | ||
9e8e867f | 4909 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4910 | echo "$as_me:$LINENO: result: yes" >&5 |
4911 | echo "${ECHO_T}yes" >&6 | |
4912 | else | |
4913 | echo "$as_me:$LINENO: result: no" >&5 | |
4914 | echo "${ECHO_T}no" >&6 | |
4915 | fi | |
4916 | ||
4917 | ||
a848cd7e | 4918 | enablestring= |
36b6448c VZ |
4919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4920 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4921 | no_cache=0 |
36b6448c VZ |
4922 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4923 | if test "${enable_backtrace+set}" = set; then | |
4924 | enableval="$enable_backtrace" | |
a848cd7e SC |
4925 | |
4926 | if test "$enableval" = yes; then | |
36b6448c | 4927 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4928 | else |
36b6448c | 4929 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4930 | fi |
4931 | ||
4932 | else | |
4933 | ||
36b6448c | 4934 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4935 | if test "x$LINE" != x ; then |
4936 | eval "DEFAULT_$LINE" | |
4937 | else | |
4938 | no_cache=1 | |
4939 | fi | |
4940 | ||
36b6448c | 4941 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4942 | |
4943 | fi; | |
4944 | ||
36b6448c | 4945 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4946 | if test "$no_cache" != 1; then |
36b6448c | 4947 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4948 | fi |
4949 | ||
36b6448c | 4950 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4951 | echo "$as_me:$LINENO: result: yes" >&5 |
4952 | echo "${ECHO_T}yes" >&6 | |
4953 | else | |
4954 | echo "$as_me:$LINENO: result: no" >&5 | |
4955 | echo "${ECHO_T}no" >&6 | |
4956 | fi | |
4957 | ||
4958 | ||
eaff0f0d | 4959 | enablestring= |
36b6448c VZ |
4960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4961 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4962 | no_cache=0 |
36b6448c VZ |
4963 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4964 | if test "${enable_catch_segvs+set}" = set; then | |
4965 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4966 | |
4967 | if test "$enableval" = yes; then | |
36b6448c | 4968 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4969 | else |
36b6448c | 4970 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4971 | fi |
4972 | ||
4973 | else | |
4974 | ||
36b6448c | 4975 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4976 | if test "x$LINE" != x ; then |
4977 | eval "DEFAULT_$LINE" | |
4978 | else | |
4979 | no_cache=1 | |
4980 | fi | |
4981 | ||
36b6448c | 4982 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4983 | |
4984 | fi; | |
4985 | ||
36b6448c | 4986 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4987 | if test "$no_cache" != 1; then |
36b6448c | 4988 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4989 | fi |
4990 | ||
36b6448c | 4991 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4992 | echo "$as_me:$LINENO: result: yes" >&5 |
4993 | echo "${ECHO_T}yes" >&6 | |
4994 | else | |
4995 | echo "$as_me:$LINENO: result: no" >&5 | |
4996 | echo "${ECHO_T}no" >&6 | |
4997 | fi | |
4998 | ||
4999 | ||
a848cd7e SC |
5000 | enablestring= |
5001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
5002 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
5003 | no_cache=0 | |
5004 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
5005 | if test "${enable_cmdline+set}" = set; then | |
5006 | enableval="$enable_cmdline" | |
5007 | ||
5008 | if test "$enableval" = yes; then | |
5009 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
5010 | else | |
5011 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
5012 | fi | |
5013 | ||
5014 | else | |
5015 | ||
5016 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
5017 | if test "x$LINE" != x ; then | |
5018 | eval "DEFAULT_$LINE" | |
5019 | else | |
5020 | no_cache=1 | |
5021 | fi | |
5022 | ||
5023 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
5024 | ||
5025 | fi; | |
5026 | ||
5027 | eval "$ac_cv_use_cmdline" | |
5028 | if test "$no_cache" != 1; then | |
5029 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
5030 | fi | |
5031 | ||
5032 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
5033 | echo "$as_me:$LINENO: result: yes" >&5 | |
5034 | echo "${ECHO_T}yes" >&6 | |
5035 | else | |
5036 | echo "$as_me:$LINENO: result: no" >&5 | |
5037 | echo "${ECHO_T}no" >&6 | |
5038 | fi | |
5039 | ||
5040 | ||
5041 | enablestring= | |
5042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
5043 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
5044 | no_cache=0 | |
5045 | # Check whether --enable-datetime or --disable-datetime was given. | |
5046 | if test "${enable_datetime+set}" = set; then | |
5047 | enableval="$enable_datetime" | |
5048 | ||
5049 | if test "$enableval" = yes; then | |
5050 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
5051 | else | |
5052 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
5053 | fi | |
5054 | ||
5055 | else | |
5056 | ||
5057 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
5058 | if test "x$LINE" != x ; then | |
5059 | eval "DEFAULT_$LINE" | |
5060 | else | |
5061 | no_cache=1 | |
5062 | fi | |
5063 | ||
5064 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
5065 | ||
5066 | fi; | |
5067 | ||
5068 | eval "$ac_cv_use_datetime" | |
5069 | if test "$no_cache" != 1; then | |
5070 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
5071 | fi | |
5072 | ||
5073 | if test "$wxUSE_DATETIME" = yes; then | |
5074 | echo "$as_me:$LINENO: result: yes" >&5 | |
5075 | echo "${ECHO_T}yes" >&6 | |
5076 | else | |
5077 | echo "$as_me:$LINENO: result: no" >&5 | |
5078 | echo "${ECHO_T}no" >&6 | |
5079 | fi | |
5080 | ||
5081 | ||
36b6448c VZ |
5082 | enablestring= |
5083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
5084 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
5085 | no_cache=0 | |
5086 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
5087 | if test "${enable_debugreport+set}" = set; then | |
5088 | enableval="$enable_debugreport" | |
5089 | ||
5090 | if test "$enableval" = yes; then | |
5091 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
5092 | else | |
5093 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
5094 | fi | |
5095 | ||
5096 | else | |
5097 | ||
5098 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
5099 | if test "x$LINE" != x ; then | |
5100 | eval "DEFAULT_$LINE" | |
5101 | else | |
5102 | no_cache=1 | |
5103 | fi | |
5104 | ||
5105 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
5106 | ||
5107 | fi; | |
5108 | ||
5109 | eval "$ac_cv_use_debugreport" | |
5110 | if test "$no_cache" != 1; then | |
5111 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
5112 | fi | |
5113 | ||
5114 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5115 | echo "$as_me:$LINENO: result: yes" >&5 | |
5116 | echo "${ECHO_T}yes" >&6 | |
5117 | else | |
5118 | echo "$as_me:$LINENO: result: no" >&5 | |
5119 | echo "${ECHO_T}no" >&6 | |
5120 | fi | |
5121 | ||
5122 | ||
a848cd7e SC |
5123 | enablestring= |
5124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5125 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5126 | no_cache=0 | |
5127 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5128 | if test "${enable_dialupman+set}" = set; then | |
5129 | enableval="$enable_dialupman" | |
5130 | ||
5131 | if test "$enableval" = yes; then | |
5132 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5133 | else | |
5134 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5135 | fi | |
5136 | ||
5137 | else | |
5138 | ||
5139 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5140 | if test "x$LINE" != x ; then | |
5141 | eval "DEFAULT_$LINE" | |
5142 | else | |
5143 | no_cache=1 | |
5144 | fi | |
5145 | ||
5146 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5147 | ||
5148 | fi; | |
5149 | ||
5150 | eval "$ac_cv_use_dialupman" | |
5151 | if test "$no_cache" != 1; then | |
5152 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5153 | fi | |
5154 | ||
5155 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5156 | echo "$as_me:$LINENO: result: yes" >&5 | |
5157 | echo "${ECHO_T}yes" >&6 | |
5158 | else | |
5159 | echo "$as_me:$LINENO: result: no" >&5 | |
5160 | echo "${ECHO_T}no" >&6 | |
5161 | fi | |
5162 | ||
5163 | ||
5164 | enablestring= | |
5165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5166 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5167 | no_cache=0 | |
5168 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5169 | if test "${enable_dynlib+set}" = set; then | |
5170 | enableval="$enable_dynlib" | |
5171 | ||
5172 | if test "$enableval" = yes; then | |
5173 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5174 | else | |
5175 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5176 | fi | |
5177 | ||
5178 | else | |
5179 | ||
5180 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5181 | if test "x$LINE" != x ; then | |
5182 | eval "DEFAULT_$LINE" | |
5183 | else | |
5184 | no_cache=1 | |
5185 | fi | |
5186 | ||
5187 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5188 | ||
5189 | fi; | |
5190 | ||
5191 | eval "$ac_cv_use_dynlib" | |
5192 | if test "$no_cache" != 1; then | |
5193 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5194 | fi | |
5195 | ||
5196 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5197 | echo "$as_me:$LINENO: result: yes" >&5 | |
5198 | echo "${ECHO_T}yes" >&6 | |
5199 | else | |
5200 | echo "$as_me:$LINENO: result: no" >&5 | |
5201 | echo "${ECHO_T}no" >&6 | |
5202 | fi | |
5203 | ||
5204 | ||
5205 | enablestring= | |
5206 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5207 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5208 | no_cache=0 | |
5209 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5210 | if test "${enable_dynamicloader+set}" = set; then | |
5211 | enableval="$enable_dynamicloader" | |
5212 | ||
5213 | if test "$enableval" = yes; then | |
5214 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5215 | else | |
5216 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5217 | fi | |
5218 | ||
5219 | else | |
5220 | ||
5221 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5222 | if test "x$LINE" != x ; then | |
5223 | eval "DEFAULT_$LINE" | |
5224 | else | |
5225 | no_cache=1 | |
5226 | fi | |
5227 | ||
5228 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5229 | ||
5230 | fi; | |
5231 | ||
5232 | eval "$ac_cv_use_dynamicloader" | |
5233 | if test "$no_cache" != 1; then | |
5234 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5235 | fi | |
5236 | ||
5237 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5238 | echo "$as_me:$LINENO: result: yes" >&5 | |
5239 | echo "${ECHO_T}yes" >&6 | |
5240 | else | |
5241 | echo "$as_me:$LINENO: result: no" >&5 | |
5242 | echo "${ECHO_T}no" >&6 | |
5243 | fi | |
5244 | ||
5245 | ||
5246 | enablestring= | |
5247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5248 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5249 | no_cache=0 | |
5250 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5251 | if test "${enable_exceptions+set}" = set; then | |
5252 | enableval="$enable_exceptions" | |
5253 | ||
5254 | if test "$enableval" = yes; then | |
5255 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5256 | else | |
5257 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5258 | fi | |
5259 | ||
5260 | else | |
5261 | ||
5262 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5263 | if test "x$LINE" != x ; then | |
5264 | eval "DEFAULT_$LINE" | |
5265 | else | |
5266 | no_cache=1 | |
5267 | fi | |
5268 | ||
5269 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5270 | ||
5271 | fi; | |
5272 | ||
5273 | eval "$ac_cv_use_exceptions" | |
5274 | if test "$no_cache" != 1; then | |
5275 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5276 | fi | |
5277 | ||
5278 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5279 | echo "$as_me:$LINENO: result: yes" >&5 | |
5280 | echo "${ECHO_T}yes" >&6 | |
5281 | else | |
5282 | echo "$as_me:$LINENO: result: no" >&5 | |
5283 | echo "${ECHO_T}no" >&6 | |
5284 | fi | |
5285 | ||
5286 | ||
5287 | enablestring= | |
5288 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5289 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5290 | no_cache=0 | |
5291 | # Check whether --enable-ffile or --disable-ffile was given. | |
5292 | if test "${enable_ffile+set}" = set; then | |
5293 | enableval="$enable_ffile" | |
5294 | ||
5295 | if test "$enableval" = yes; then | |
5296 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5297 | else | |
5298 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5299 | fi | |
5300 | ||
5301 | else | |
5302 | ||
5303 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5304 | if test "x$LINE" != x ; then | |
5305 | eval "DEFAULT_$LINE" | |
5306 | else | |
5307 | no_cache=1 | |
5308 | fi | |
5309 | ||
5310 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5311 | ||
5312 | fi; | |
5313 | ||
5314 | eval "$ac_cv_use_ffile" | |
5315 | if test "$no_cache" != 1; then | |
5316 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5317 | fi | |
5318 | ||
5319 | if test "$wxUSE_FFILE" = yes; then | |
5320 | echo "$as_me:$LINENO: result: yes" >&5 | |
5321 | echo "${ECHO_T}yes" >&6 | |
5322 | else | |
5323 | echo "$as_me:$LINENO: result: no" >&5 | |
5324 | echo "${ECHO_T}no" >&6 | |
5325 | fi | |
5326 | ||
5327 | ||
5328 | enablestring= | |
5329 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5330 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5331 | no_cache=0 | |
5332 | # Check whether --enable-file or --disable-file was given. | |
5333 | if test "${enable_file+set}" = set; then | |
5334 | enableval="$enable_file" | |
5335 | ||
5336 | if test "$enableval" = yes; then | |
5337 | ac_cv_use_file='wxUSE_FILE=yes' | |
5338 | else | |
5339 | ac_cv_use_file='wxUSE_FILE=no' | |
5340 | fi | |
5341 | ||
5342 | else | |
5343 | ||
5344 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5345 | if test "x$LINE" != x ; then | |
5346 | eval "DEFAULT_$LINE" | |
5347 | else | |
5348 | no_cache=1 | |
5349 | fi | |
5350 | ||
5351 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5352 | ||
5353 | fi; | |
5354 | ||
5355 | eval "$ac_cv_use_file" | |
5356 | if test "$no_cache" != 1; then | |
5357 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5358 | fi | |
5359 | ||
5360 | if test "$wxUSE_FILE" = yes; then | |
5361 | echo "$as_me:$LINENO: result: yes" >&5 | |
5362 | echo "${ECHO_T}yes" >&6 | |
5363 | else | |
5364 | echo "$as_me:$LINENO: result: no" >&5 | |
5365 | echo "${ECHO_T}no" >&6 | |
5366 | fi | |
5367 | ||
5368 | ||
5369 | enablestring= | |
5370 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5371 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5372 | no_cache=0 | |
5373 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5374 | if test "${enable_filesystem+set}" = set; then | |
5375 | enableval="$enable_filesystem" | |
5376 | ||
5377 | if test "$enableval" = yes; then | |
5378 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5379 | else | |
5380 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5381 | fi | |
5382 | ||
5383 | else | |
5384 | ||
5385 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5386 | if test "x$LINE" != x ; then | |
5387 | eval "DEFAULT_$LINE" | |
5388 | else | |
5389 | no_cache=1 | |
5390 | fi | |
5391 | ||
5392 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5393 | ||
5394 | fi; | |
5395 | ||
5396 | eval "$ac_cv_use_filesystem" | |
5397 | if test "$no_cache" != 1; then | |
5398 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5399 | fi | |
5400 | ||
5401 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5402 | echo "$as_me:$LINENO: result: yes" >&5 | |
5403 | echo "${ECHO_T}yes" >&6 | |
5404 | else | |
5405 | echo "$as_me:$LINENO: result: no" >&5 | |
5406 | echo "${ECHO_T}no" >&6 | |
5407 | fi | |
5408 | ||
5409 | ||
5410 | enablestring= | |
5411 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5412 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5413 | no_cache=0 | |
5414 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5415 | if test "${enable_fontmap+set}" = set; then | |
5416 | enableval="$enable_fontmap" | |
5417 | ||
5418 | if test "$enableval" = yes; then | |
5419 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5420 | else | |
5421 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5422 | fi | |
5423 | ||
5424 | else | |
5425 | ||
5426 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5427 | if test "x$LINE" != x ; then | |
5428 | eval "DEFAULT_$LINE" | |
5429 | else | |
5430 | no_cache=1 | |
5431 | fi | |
5432 | ||
5433 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5434 | ||
5435 | fi; | |
5436 | ||
5437 | eval "$ac_cv_use_fontmap" | |
5438 | if test "$no_cache" != 1; then | |
5439 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5440 | fi | |
5441 | ||
5442 | if test "$wxUSE_FONTMAP" = yes; then | |
5443 | echo "$as_me:$LINENO: result: yes" >&5 | |
5444 | echo "${ECHO_T}yes" >&6 | |
5445 | else | |
5446 | echo "$as_me:$LINENO: result: no" >&5 | |
5447 | echo "${ECHO_T}no" >&6 | |
5448 | fi | |
5449 | ||
5450 | ||
5451 | enablestring= | |
5452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5453 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5454 | no_cache=0 | |
5455 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5456 | if test "${enable_fs_inet+set}" = set; then | |
5457 | enableval="$enable_fs_inet" | |
5458 | ||
5459 | if test "$enableval" = yes; then | |
5460 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5461 | else | |
5462 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5463 | fi | |
5464 | ||
5465 | else | |
5466 | ||
5467 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5468 | if test "x$LINE" != x ; then | |
5469 | eval "DEFAULT_$LINE" | |
5470 | else | |
5471 | no_cache=1 | |
5472 | fi | |
5473 | ||
5474 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5475 | ||
5476 | fi; | |
5477 | ||
5478 | eval "$ac_cv_use_fs_inet" | |
5479 | if test "$no_cache" != 1; then | |
5480 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5481 | fi | |
5482 | ||
5483 | if test "$wxUSE_FS_INET" = yes; then | |
5484 | echo "$as_me:$LINENO: result: yes" >&5 | |
5485 | echo "${ECHO_T}yes" >&6 | |
5486 | else | |
5487 | echo "$as_me:$LINENO: result: no" >&5 | |
5488 | echo "${ECHO_T}no" >&6 | |
5489 | fi | |
5490 | ||
5491 | ||
5492 | enablestring= | |
5493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5494 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5495 | no_cache=0 | |
5496 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5497 | if test "${enable_fs_zip+set}" = set; then | |
5498 | enableval="$enable_fs_zip" | |
5499 | ||
5500 | if test "$enableval" = yes; then | |
5501 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5502 | else | |
5503 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5504 | fi | |
5505 | ||
5506 | else | |
5507 | ||
5508 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5509 | if test "x$LINE" != x ; then | |
5510 | eval "DEFAULT_$LINE" | |
5511 | else | |
5512 | no_cache=1 | |
5513 | fi | |
5514 | ||
5515 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5516 | ||
5517 | fi; | |
5518 | ||
5519 | eval "$ac_cv_use_fs_zip" | |
5520 | if test "$no_cache" != 1; then | |
5521 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5522 | fi | |
5523 | ||
5524 | if test "$wxUSE_FS_ZIP" = yes; then | |
5525 | echo "$as_me:$LINENO: result: yes" >&5 | |
5526 | echo "${ECHO_T}yes" >&6 | |
5527 | else | |
5528 | echo "$as_me:$LINENO: result: no" >&5 | |
5529 | echo "${ECHO_T}no" >&6 | |
5530 | fi | |
5531 | ||
5532 | ||
5533 | enablestring= | |
5534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5535 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5536 | no_cache=0 | |
5537 | # Check whether --enable-geometry or --disable-geometry was given. | |
5538 | if test "${enable_geometry+set}" = set; then | |
5539 | enableval="$enable_geometry" | |
5540 | ||
5541 | if test "$enableval" = yes; then | |
5542 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5543 | else | |
5544 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5545 | fi | |
5546 | ||
5547 | else | |
5548 | ||
5549 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5550 | if test "x$LINE" != x ; then | |
5551 | eval "DEFAULT_$LINE" | |
5552 | else | |
5553 | no_cache=1 | |
5554 | fi | |
5555 | ||
5556 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5557 | ||
5558 | fi; | |
5559 | ||
5560 | eval "$ac_cv_use_geometry" | |
5561 | if test "$no_cache" != 1; then | |
5562 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5563 | fi | |
5564 | ||
5565 | if test "$wxUSE_GEOMETRY" = yes; then | |
5566 | echo "$as_me:$LINENO: result: yes" >&5 | |
5567 | echo "${ECHO_T}yes" >&6 | |
5568 | else | |
5569 | echo "$as_me:$LINENO: result: no" >&5 | |
5570 | echo "${ECHO_T}no" >&6 | |
5571 | fi | |
5572 | ||
5573 | ||
5574 | enablestring= | |
5575 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5576 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5577 | no_cache=0 | |
5578 | # Check whether --enable-log or --disable-log was given. | |
5579 | if test "${enable_log+set}" = set; then | |
5580 | enableval="$enable_log" | |
5581 | ||
5582 | if test "$enableval" = yes; then | |
5583 | ac_cv_use_log='wxUSE_LOG=yes' | |
5584 | else | |
5585 | ac_cv_use_log='wxUSE_LOG=no' | |
5586 | fi | |
5587 | ||
5588 | else | |
5589 | ||
5590 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5591 | if test "x$LINE" != x ; then | |
5592 | eval "DEFAULT_$LINE" | |
5593 | else | |
5594 | no_cache=1 | |
5595 | fi | |
5596 | ||
5597 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5598 | ||
5599 | fi; | |
5600 | ||
5601 | eval "$ac_cv_use_log" | |
5602 | if test "$no_cache" != 1; then | |
5603 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5604 | fi | |
5605 | ||
5606 | if test "$wxUSE_LOG" = yes; then | |
5607 | echo "$as_me:$LINENO: result: yes" >&5 | |
5608 | echo "${ECHO_T}yes" >&6 | |
5609 | else | |
5610 | echo "$as_me:$LINENO: result: no" >&5 | |
5611 | echo "${ECHO_T}no" >&6 | |
5612 | fi | |
5613 | ||
5614 | ||
5615 | enablestring= | |
5616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5617 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5618 | no_cache=0 | |
5619 | # Check whether --enable-longlong or --disable-longlong was given. | |
5620 | if test "${enable_longlong+set}" = set; then | |
5621 | enableval="$enable_longlong" | |
5622 | ||
5623 | if test "$enableval" = yes; then | |
5624 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5625 | else | |
5626 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5627 | fi | |
5628 | ||
5629 | else | |
5630 | ||
5631 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5632 | if test "x$LINE" != x ; then | |
5633 | eval "DEFAULT_$LINE" | |
5634 | else | |
5635 | no_cache=1 | |
5636 | fi | |
5637 | ||
5638 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5639 | ||
5640 | fi; | |
5641 | ||
5642 | eval "$ac_cv_use_longlong" | |
5643 | if test "$no_cache" != 1; then | |
5644 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5645 | fi | |
5646 | ||
5647 | if test "$wxUSE_LONGLONG" = yes; then | |
5648 | echo "$as_me:$LINENO: result: yes" >&5 | |
5649 | echo "${ECHO_T}yes" >&6 | |
5650 | else | |
5651 | echo "$as_me:$LINENO: result: no" >&5 | |
5652 | echo "${ECHO_T}no" >&6 | |
5653 | fi | |
5654 | ||
5655 | ||
5656 | enablestring= | |
5657 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5658 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5659 | no_cache=0 | |
5660 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5661 | if test "${enable_mimetype+set}" = set; then | |
5662 | enableval="$enable_mimetype" | |
5663 | ||
5664 | if test "$enableval" = yes; then | |
5665 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5666 | else | |
5667 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5668 | fi | |
5669 | ||
5670 | else | |
5671 | ||
5672 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5673 | if test "x$LINE" != x ; then | |
5674 | eval "DEFAULT_$LINE" | |
5675 | else | |
5676 | no_cache=1 | |
5677 | fi | |
5678 | ||
5679 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5680 | ||
5681 | fi; | |
5682 | ||
5683 | eval "$ac_cv_use_mimetype" | |
5684 | if test "$no_cache" != 1; then | |
5685 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5686 | fi | |
5687 | ||
5688 | if test "$wxUSE_MIMETYPE" = yes; then | |
5689 | echo "$as_me:$LINENO: result: yes" >&5 | |
5690 | echo "${ECHO_T}yes" >&6 | |
5691 | else | |
5692 | echo "$as_me:$LINENO: result: no" >&5 | |
5693 | echo "${ECHO_T}no" >&6 | |
5694 | fi | |
5695 | ||
5696 | ||
5697 | enablestring= | |
5698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5699 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5700 | no_cache=0 | |
5701 | # Check whether --enable-mslu or --disable-mslu was given. | |
5702 | if test "${enable_mslu+set}" = set; then | |
5703 | enableval="$enable_mslu" | |
5704 | ||
5705 | if test "$enableval" = yes; then | |
5706 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5707 | else | |
5708 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5709 | fi | |
5710 | ||
5711 | else | |
5712 | ||
5713 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5714 | if test "x$LINE" != x ; then | |
5715 | eval "DEFAULT_$LINE" | |
5716 | else | |
5717 | no_cache=1 | |
5718 | fi | |
5719 | ||
5720 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5721 | ||
5722 | fi; | |
5723 | ||
5724 | eval "$ac_cv_use_mslu" | |
5725 | if test "$no_cache" != 1; then | |
5726 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5727 | fi | |
5728 | ||
5729 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5730 | echo "$as_me:$LINENO: result: yes" >&5 | |
5731 | echo "${ECHO_T}yes" >&6 | |
5732 | else | |
5733 | echo "$as_me:$LINENO: result: no" >&5 | |
5734 | echo "${ECHO_T}no" >&6 | |
5735 | fi | |
5736 | ||
5737 | ||
5738 | enablestring= | |
5739 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5740 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5741 | no_cache=0 | |
5742 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5743 | if test "${enable_snglinst+set}" = set; then | |
5744 | enableval="$enable_snglinst" | |
5745 | ||
5746 | if test "$enableval" = yes; then | |
5747 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5748 | else | |
5749 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5750 | fi | |
5751 | ||
5752 | else | |
5753 | ||
5754 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5755 | if test "x$LINE" != x ; then | |
5756 | eval "DEFAULT_$LINE" | |
5757 | else | |
5758 | no_cache=1 | |
5759 | fi | |
5760 | ||
5761 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5762 | ||
5763 | fi; | |
5764 | ||
5765 | eval "$ac_cv_use_snglinst" | |
5766 | if test "$no_cache" != 1; then | |
5767 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5768 | fi | |
5769 | ||
5770 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5771 | echo "$as_me:$LINENO: result: yes" >&5 | |
5772 | echo "${ECHO_T}yes" >&6 | |
5773 | else | |
5774 | echo "$as_me:$LINENO: result: no" >&5 | |
5775 | echo "${ECHO_T}no" >&6 | |
5776 | fi | |
5777 | ||
5778 | ||
5779 | enablestring= | |
07158944 VZ |
5780 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5781 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5782 | no_cache=0 |
07158944 VZ |
5783 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5784 | if test "${enable_std_iostreams+set}" = set; then | |
5785 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5786 | |
5787 | if test "$enableval" = yes; then | |
07158944 | 5788 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5789 | else |
07158944 | 5790 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5791 | fi |
5792 | ||
5793 | else | |
5794 | ||
07158944 | 5795 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5796 | if test "x$LINE" != x ; then |
5797 | eval "DEFAULT_$LINE" | |
5798 | else | |
5799 | no_cache=1 | |
5800 | fi | |
5801 | ||
07158944 | 5802 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5803 | |
5804 | fi; | |
5805 | ||
07158944 | 5806 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5807 | if test "$no_cache" != 1; then |
07158944 | 5808 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5809 | fi |
5810 | ||
07158944 | 5811 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5812 | echo "$as_me:$LINENO: result: yes" >&5 |
5813 | echo "${ECHO_T}yes" >&6 | |
5814 | else | |
5815 | echo "$as_me:$LINENO: result: no" >&5 | |
5816 | echo "${ECHO_T}no" >&6 | |
5817 | fi | |
5818 | ||
5819 | ||
59746b65 MW |
5820 | enablestring= |
5821 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5822 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5823 | no_cache=0 | |
5824 | # Check whether --enable-std_string or --disable-std_string was given. | |
5825 | if test "${enable_std_string+set}" = set; then | |
5826 | enableval="$enable_std_string" | |
5827 | ||
5828 | if test "$enableval" = yes; then | |
5829 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5830 | else | |
5831 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5832 | fi | |
5833 | ||
5834 | else | |
5835 | ||
5836 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5837 | if test "x$LINE" != x ; then | |
5838 | eval "DEFAULT_$LINE" | |
5839 | else | |
5840 | no_cache=1 | |
5841 | fi | |
5842 | ||
5843 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5844 | ||
5845 | fi; | |
5846 | ||
5847 | eval "$ac_cv_use_std_string" | |
5848 | if test "$no_cache" != 1; then | |
5849 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5850 | fi | |
5851 | ||
5852 | if test "$wxUSE_STD_STRING" = yes; then | |
5853 | echo "$as_me:$LINENO: result: yes" >&5 | |
5854 | echo "${ECHO_T}yes" >&6 | |
5855 | else | |
5856 | echo "$as_me:$LINENO: result: no" >&5 | |
5857 | echo "${ECHO_T}no" >&6 | |
5858 | fi | |
5859 | ||
5860 | ||
a848cd7e | 5861 | enablestring= |
07158944 VZ |
5862 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5863 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5864 | no_cache=0 |
07158944 VZ |
5865 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5866 | if test "${enable_stdpaths+set}" = set; then | |
5867 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5868 | |
5869 | if test "$enableval" = yes; then | |
07158944 | 5870 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5871 | else |
07158944 | 5872 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5873 | fi |
5874 | ||
5875 | else | |
5876 | ||
07158944 | 5877 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5878 | if test "x$LINE" != x ; then |
5879 | eval "DEFAULT_$LINE" | |
5880 | else | |
5881 | no_cache=1 | |
5882 | fi | |
5883 | ||
07158944 | 5884 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5885 | |
5886 | fi; | |
5887 | ||
07158944 | 5888 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5889 | if test "$no_cache" != 1; then |
07158944 | 5890 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5891 | fi |
5892 | ||
07158944 | 5893 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5894 | echo "$as_me:$LINENO: result: yes" >&5 |
5895 | echo "${ECHO_T}yes" >&6 | |
5896 | else | |
5897 | echo "$as_me:$LINENO: result: no" >&5 | |
5898 | echo "${ECHO_T}no" >&6 | |
5899 | fi | |
5900 | ||
5901 | ||
5902 | enablestring= | |
5903 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5904 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5905 | no_cache=0 | |
5906 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5907 | if test "${enable_stopwatch+set}" = set; then | |
5908 | enableval="$enable_stopwatch" | |
5909 | ||
5910 | if test "$enableval" = yes; then | |
5911 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5912 | else | |
5913 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5914 | fi | |
5915 | ||
5916 | else | |
5917 | ||
5918 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5919 | if test "x$LINE" != x ; then | |
5920 | eval "DEFAULT_$LINE" | |
5921 | else | |
5922 | no_cache=1 | |
5923 | fi | |
5924 | ||
5925 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5926 | ||
5927 | fi; | |
5928 | ||
5929 | eval "$ac_cv_use_stopwatch" | |
5930 | if test "$no_cache" != 1; then | |
5931 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5932 | fi | |
5933 | ||
5934 | if test "$wxUSE_STOPWATCH" = yes; then | |
5935 | echo "$as_me:$LINENO: result: yes" >&5 | |
5936 | echo "${ECHO_T}yes" >&6 | |
5937 | else | |
5938 | echo "$as_me:$LINENO: result: no" >&5 | |
5939 | echo "${ECHO_T}no" >&6 | |
5940 | fi | |
5941 | ||
5942 | ||
07158944 VZ |
5943 | enablestring= |
5944 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5945 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5946 | no_cache=0 | |
5947 | # Check whether --enable-streams or --disable-streams was given. | |
5948 | if test "${enable_streams+set}" = set; then | |
5949 | enableval="$enable_streams" | |
5950 | ||
5951 | if test "$enableval" = yes; then | |
5952 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5953 | else | |
5954 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5955 | fi | |
5956 | ||
5957 | else | |
5958 | ||
5959 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5960 | if test "x$LINE" != x ; then | |
5961 | eval "DEFAULT_$LINE" | |
5962 | else | |
5963 | no_cache=1 | |
5964 | fi | |
5965 | ||
5966 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5967 | ||
5968 | fi; | |
5969 | ||
5970 | eval "$ac_cv_use_streams" | |
5971 | if test "$no_cache" != 1; then | |
5972 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5973 | fi | |
5974 | ||
5975 | if test "$wxUSE_STREAMS" = yes; then | |
5976 | echo "$as_me:$LINENO: result: yes" >&5 | |
5977 | echo "${ECHO_T}yes" >&6 | |
5978 | else | |
5979 | echo "$as_me:$LINENO: result: no" >&5 | |
5980 | echo "${ECHO_T}no" >&6 | |
5981 | fi | |
5982 | ||
5983 | ||
a848cd7e SC |
5984 | enablestring= |
5985 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5986 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5987 | no_cache=0 | |
5988 | # Check whether --enable-system_options or --disable-system_options was given. | |
5989 | if test "${enable_system_options+set}" = set; then | |
5990 | enableval="$enable_system_options" | |
5991 | ||
5992 | if test "$enableval" = yes; then | |
5993 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5994 | else | |
5995 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5996 | fi | |
5997 | ||
5998 | else | |
5999 | ||
6000 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
6001 | if test "x$LINE" != x ; then | |
6002 | eval "DEFAULT_$LINE" | |
6003 | else | |
6004 | no_cache=1 | |
6005 | fi | |
6006 | ||
6007 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
6008 | ||
6009 | fi; | |
6010 | ||
6011 | eval "$ac_cv_use_system_options" | |
6012 | if test "$no_cache" != 1; then | |
6013 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
6014 | fi | |
6015 | ||
6016 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
6017 | echo "$as_me:$LINENO: result: yes" >&5 | |
6018 | echo "${ECHO_T}yes" >&6 | |
6019 | else | |
6020 | echo "$as_me:$LINENO: result: no" >&5 | |
6021 | echo "${ECHO_T}no" >&6 | |
6022 | fi | |
6023 | ||
6024 | ||
6025 | enablestring= | |
6026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
6027 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
6028 | no_cache=0 | |
6029 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
6030 | if test "${enable_textbuf+set}" = set; then | |
6031 | enableval="$enable_textbuf" | |
6032 | ||
6033 | if test "$enableval" = yes; then | |
6034 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
6035 | else | |
6036 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
6037 | fi | |
6038 | ||
6039 | else | |
6040 | ||
6041 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
6042 | if test "x$LINE" != x ; then | |
6043 | eval "DEFAULT_$LINE" | |
6044 | else | |
6045 | no_cache=1 | |
6046 | fi | |
6047 | ||
6048 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
6049 | ||
6050 | fi; | |
6051 | ||
6052 | eval "$ac_cv_use_textbuf" | |
6053 | if test "$no_cache" != 1; then | |
6054 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
6055 | fi | |
6056 | ||
6057 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
6058 | echo "$as_me:$LINENO: result: yes" >&5 | |
6059 | echo "${ECHO_T}yes" >&6 | |
6060 | else | |
6061 | echo "$as_me:$LINENO: result: no" >&5 | |
6062 | echo "${ECHO_T}no" >&6 | |
6063 | fi | |
6064 | ||
6065 | ||
6066 | enablestring= | |
6067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
6068 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
6069 | no_cache=0 | |
6070 | # Check whether --enable-textfile or --disable-textfile was given. | |
6071 | if test "${enable_textfile+set}" = set; then | |
6072 | enableval="$enable_textfile" | |
6073 | ||
6074 | if test "$enableval" = yes; then | |
6075 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
6076 | else | |
6077 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
6078 | fi | |
6079 | ||
6080 | else | |
6081 | ||
6082 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
6083 | if test "x$LINE" != x ; then | |
6084 | eval "DEFAULT_$LINE" | |
6085 | else | |
6086 | no_cache=1 | |
6087 | fi | |
6088 | ||
6089 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
6090 | ||
6091 | fi; | |
6092 | ||
6093 | eval "$ac_cv_use_textfile" | |
6094 | if test "$no_cache" != 1; then | |
6095 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
6096 | fi | |
6097 | ||
6098 | if test "$wxUSE_TEXTFILE" = yes; then | |
6099 | echo "$as_me:$LINENO: result: yes" >&5 | |
6100 | echo "${ECHO_T}yes" >&6 | |
6101 | else | |
6102 | echo "$as_me:$LINENO: result: no" >&5 | |
6103 | echo "${ECHO_T}no" >&6 | |
6104 | fi | |
6105 | ||
6106 | ||
6107 | enablestring= | |
6108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
6109 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
6110 | no_cache=0 | |
6111 | # Check whether --enable-timer or --disable-timer was given. | |
6112 | if test "${enable_timer+set}" = set; then | |
6113 | enableval="$enable_timer" | |
6114 | ||
6115 | if test "$enableval" = yes; then | |
6116 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6117 | else | |
6118 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6119 | fi | |
6120 | ||
6121 | else | |
6122 | ||
6123 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6124 | if test "x$LINE" != x ; then | |
6125 | eval "DEFAULT_$LINE" | |
6126 | else | |
6127 | no_cache=1 | |
6128 | fi | |
6129 | ||
6130 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6131 | ||
6132 | fi; | |
6133 | ||
6134 | eval "$ac_cv_use_timer" | |
6135 | if test "$no_cache" != 1; then | |
6136 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6137 | fi | |
6138 | ||
6139 | if test "$wxUSE_TIMER" = yes; then | |
6140 | echo "$as_me:$LINENO: result: yes" >&5 | |
6141 | echo "${ECHO_T}yes" >&6 | |
6142 | else | |
6143 | echo "$as_me:$LINENO: result: no" >&5 | |
6144 | echo "${ECHO_T}no" >&6 | |
6145 | fi | |
6146 | ||
6147 | ||
6148 | enablestring= | |
6149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6150 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6151 | no_cache=0 | |
6152 | # Check whether --enable-unicode or --disable-unicode was given. | |
6153 | if test "${enable_unicode+set}" = set; then | |
6154 | enableval="$enable_unicode" | |
6155 | ||
6156 | if test "$enableval" = yes; then | |
6157 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6158 | else | |
6159 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6160 | fi | |
6161 | ||
6162 | else | |
6163 | ||
6164 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6165 | if test "x$LINE" != x ; then | |
6166 | eval "DEFAULT_$LINE" | |
6167 | else | |
6168 | no_cache=1 | |
6169 | fi | |
6170 | ||
6171 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6172 | ||
6173 | fi; | |
6174 | ||
6175 | eval "$ac_cv_use_unicode" | |
6176 | if test "$no_cache" != 1; then | |
6177 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6178 | fi | |
6179 | ||
6180 | if test "$wxUSE_UNICODE" = yes; then | |
6181 | echo "$as_me:$LINENO: result: yes" >&5 | |
6182 | echo "${ECHO_T}yes" >&6 | |
6183 | else | |
6184 | echo "$as_me:$LINENO: result: no" >&5 | |
6185 | echo "${ECHO_T}no" >&6 | |
6186 | fi | |
6187 | ||
6188 | ||
6189 | enablestring= | |
6190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6191 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6192 | no_cache=0 | |
6193 | # Check whether --enable-sound or --disable-sound was given. | |
6194 | if test "${enable_sound+set}" = set; then | |
6195 | enableval="$enable_sound" | |
6196 | ||
6197 | if test "$enableval" = yes; then | |
6198 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6199 | else | |
6200 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6201 | fi | |
6202 | ||
6203 | else | |
6204 | ||
6205 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6206 | if test "x$LINE" != x ; then | |
6207 | eval "DEFAULT_$LINE" | |
6208 | else | |
6209 | no_cache=1 | |
6210 | fi | |
6211 | ||
6212 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6213 | ||
6214 | fi; | |
6215 | ||
6216 | eval "$ac_cv_use_sound" | |
6217 | if test "$no_cache" != 1; then | |
6218 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6219 | fi | |
6220 | ||
6221 | if test "$wxUSE_SOUND" = yes; then | |
6222 | echo "$as_me:$LINENO: result: yes" >&5 | |
6223 | echo "${ECHO_T}yes" >&6 | |
6224 | else | |
6225 | echo "$as_me:$LINENO: result: no" >&5 | |
6226 | echo "${ECHO_T}no" >&6 | |
6227 | fi | |
6228 | ||
6229 | ||
3b57de8b RL |
6230 | enablestring= |
6231 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6232 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6233 | no_cache=0 | |
6234 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6235 | if test "${enable_mediactrl+set}" = set; then | |
6236 | enableval="$enable_mediactrl" | |
6237 | ||
6238 | if test "$enableval" = yes; then | |
6239 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6240 | else | |
6241 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6242 | fi | |
6243 | ||
6244 | else | |
6245 | ||
6246 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6247 | if test "x$LINE" != x ; then | |
6248 | eval "DEFAULT_$LINE" | |
6249 | else | |
6250 | no_cache=1 | |
6251 | fi | |
6252 | ||
6253 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6254 | ||
6255 | fi; | |
6256 | ||
6257 | eval "$ac_cv_use_mediactrl" | |
6258 | if test "$no_cache" != 1; then | |
6259 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6260 | fi | |
6261 | ||
6262 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6263 | echo "$as_me:$LINENO: result: yes" >&5 | |
6264 | echo "${ECHO_T}yes" >&6 | |
6265 | else | |
6266 | echo "$as_me:$LINENO: result: no" >&5 | |
6267 | echo "${ECHO_T}no" >&6 | |
6268 | fi | |
6269 | ||
6270 | ||
f10e38c4 VZ |
6271 | enablestring= |
6272 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 | |
6273 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6 | |
6274 | no_cache=0 | |
6275 | # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given. | |
6276 | if test "${enable_gstreamer8+set}" = set; then | |
6277 | enableval="$enable_gstreamer8" | |
6278 | ||
6279 | if test "$enableval" = yes; then | |
6280 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
6281 | else | |
6282 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
6283 | fi | |
6284 | ||
6285 | else | |
6286 | ||
6287 | LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}` | |
6288 | if test "x$LINE" != x ; then | |
6289 | eval "DEFAULT_$LINE" | |
6290 | else | |
6291 | no_cache=1 | |
6292 | fi | |
6293 | ||
6294 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8 | |
6295 | ||
6296 | fi; | |
6297 | ||
6298 | eval "$ac_cv_use_gstreamer8" | |
6299 | if test "$no_cache" != 1; then | |
6300 | echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp | |
6301 | fi | |
6302 | ||
6303 | if test "$wxUSE_GSTREAMER8" = yes; then | |
6304 | echo "$as_me:$LINENO: result: yes" >&5 | |
6305 | echo "${ECHO_T}yes" >&6 | |
6306 | else | |
6307 | echo "$as_me:$LINENO: result: no" >&5 | |
6308 | echo "${ECHO_T}no" >&6 | |
6309 | fi | |
6310 | ||
6311 | ||
a848cd7e | 6312 | enablestring= |
8b6682b9 JS |
6313 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5 |
6314 | echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6 | |
a848cd7e | 6315 | no_cache=0 |
8b6682b9 JS |
6316 | # Check whether --enable-printfposparam or --disable-printfposparam was given. |
6317 | if test "${enable_printfposparam+set}" = set; then | |
6318 | enableval="$enable_printfposparam" | |
a848cd7e SC |
6319 | |
6320 | if test "$enableval" = yes; then | |
8b6682b9 | 6321 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes' |
a848cd7e | 6322 | else |
8b6682b9 | 6323 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no' |
a848cd7e SC |
6324 | fi |
6325 | ||
6326 | else | |
6327 | ||
8b6682b9 | 6328 | LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}` |
a848cd7e SC |
6329 | if test "x$LINE" != x ; then |
6330 | eval "DEFAULT_$LINE" | |
6331 | else | |
6332 | no_cache=1 | |
6333 | fi | |
6334 | ||
8b6682b9 | 6335 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS |
a848cd7e SC |
6336 | |
6337 | fi; | |
6338 | ||
8b6682b9 | 6339 | eval "$ac_cv_use_printfposparam" |
a848cd7e | 6340 | if test "$no_cache" != 1; then |
8b6682b9 | 6341 | echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
6342 | fi |
6343 | ||
8b6682b9 | 6344 | if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then |
a848cd7e SC |
6345 | echo "$as_me:$LINENO: result: yes" >&5 |
6346 | echo "${ECHO_T}yes" >&6 | |
6347 | else | |
6348 | echo "$as_me:$LINENO: result: no" >&5 | |
6349 | echo "${ECHO_T}no" >&6 | |
6350 | fi | |
6351 | ||
6352 | ||
6353 | enablestring= | |
6354 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6355 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6356 | no_cache=0 | |
6357 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6358 | if test "${enable_zipstream+set}" = set; then | |
6359 | enableval="$enable_zipstream" | |
6360 | ||
6361 | if test "$enableval" = yes; then | |
6362 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6363 | else | |
6364 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6365 | fi | |
6366 | ||
6367 | else | |
6368 | ||
6369 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6370 | if test "x$LINE" != x ; then | |
6371 | eval "DEFAULT_$LINE" | |
6372 | else | |
6373 | no_cache=1 | |
6374 | fi | |
6375 | ||
6376 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6377 | ||
6378 | fi; | |
6379 | ||
6380 | eval "$ac_cv_use_zipstream" | |
6381 | if test "$no_cache" != 1; then | |
6382 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6383 | fi | |
6384 | ||
6385 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6386 | echo "$as_me:$LINENO: result: yes" >&5 | |
6387 | echo "${ECHO_T}yes" >&6 | |
6388 | else | |
6389 | echo "$as_me:$LINENO: result: no" >&5 | |
6390 | echo "${ECHO_T}no" >&6 | |
6391 | fi | |
6392 | ||
6393 | ||
a848cd7e SC |
6394 | |
6395 | enablestring= | |
6396 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6397 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6398 | no_cache=0 | |
6399 | # Check whether --enable-url or --disable-url was given. | |
6400 | if test "${enable_url+set}" = set; then | |
6401 | enableval="$enable_url" | |
6402 | ||
6403 | if test "$enableval" = yes; then | |
6404 | ac_cv_use_url='wxUSE_URL=yes' | |
6405 | else | |
6406 | ac_cv_use_url='wxUSE_URL=no' | |
6407 | fi | |
6408 | ||
6409 | else | |
6410 | ||
6411 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6412 | if test "x$LINE" != x ; then | |
6413 | eval "DEFAULT_$LINE" | |
6414 | else | |
6415 | no_cache=1 | |
6416 | fi | |
6417 | ||
6418 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6419 | ||
6420 | fi; | |
6421 | ||
6422 | eval "$ac_cv_use_url" | |
6423 | if test "$no_cache" != 1; then | |
6424 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6425 | fi | |
6426 | ||
6427 | if test "$wxUSE_URL" = yes; then | |
6428 | echo "$as_me:$LINENO: result: yes" >&5 | |
6429 | echo "${ECHO_T}yes" >&6 | |
6430 | else | |
6431 | echo "$as_me:$LINENO: result: no" >&5 | |
6432 | echo "${ECHO_T}no" >&6 | |
6433 | fi | |
6434 | ||
6435 | ||
6436 | enablestring= | |
6437 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6438 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6439 | no_cache=0 | |
6440 | # Check whether --enable-protocol or --disable-protocol was given. | |
6441 | if test "${enable_protocol+set}" = set; then | |
6442 | enableval="$enable_protocol" | |
6443 | ||
6444 | if test "$enableval" = yes; then | |
6445 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6446 | else | |
6447 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6448 | fi | |
6449 | ||
6450 | else | |
6451 | ||
6452 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6453 | if test "x$LINE" != x ; then | |
6454 | eval "DEFAULT_$LINE" | |
6455 | else | |
6456 | no_cache=1 | |
6457 | fi | |
6458 | ||
6459 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6460 | ||
6461 | fi; | |
6462 | ||
6463 | eval "$ac_cv_use_protocol" | |
6464 | if test "$no_cache" != 1; then | |
6465 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6466 | fi | |
6467 | ||
6468 | if test "$wxUSE_PROTOCOL" = yes; then | |
6469 | echo "$as_me:$LINENO: result: yes" >&5 | |
6470 | echo "${ECHO_T}yes" >&6 | |
6471 | else | |
6472 | echo "$as_me:$LINENO: result: no" >&5 | |
6473 | echo "${ECHO_T}no" >&6 | |
6474 | fi | |
6475 | ||
6476 | ||
6477 | enablestring= | |
6478 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6479 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6480 | no_cache=0 | |
6481 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6482 | if test "${enable_protocol_http+set}" = set; then | |
6483 | enableval="$enable_protocol_http" | |
6484 | ||
6485 | if test "$enableval" = yes; then | |
6486 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6487 | else | |
6488 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6489 | fi | |
6490 | ||
6491 | else | |
6492 | ||
6493 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6494 | if test "x$LINE" != x ; then | |
6495 | eval "DEFAULT_$LINE" | |
6496 | else | |
6497 | no_cache=1 | |
6498 | fi | |
6499 | ||
6500 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6501 | ||
6502 | fi; | |
6503 | ||
6504 | eval "$ac_cv_use_protocol_http" | |
6505 | if test "$no_cache" != 1; then | |
6506 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6507 | fi | |
6508 | ||
6509 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6510 | echo "$as_me:$LINENO: result: yes" >&5 | |
6511 | echo "${ECHO_T}yes" >&6 | |
6512 | else | |
6513 | echo "$as_me:$LINENO: result: no" >&5 | |
6514 | echo "${ECHO_T}no" >&6 | |
6515 | fi | |
6516 | ||
6517 | ||
6518 | enablestring= | |
6519 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6520 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6521 | no_cache=0 | |
6522 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6523 | if test "${enable_protocol_ftp+set}" = set; then | |
6524 | enableval="$enable_protocol_ftp" | |
6525 | ||
6526 | if test "$enableval" = yes; then | |
6527 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6528 | else | |
6529 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6530 | fi | |
6531 | ||
6532 | else | |
6533 | ||
6534 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6535 | if test "x$LINE" != x ; then | |
6536 | eval "DEFAULT_$LINE" | |
6537 | else | |
6538 | no_cache=1 | |
6539 | fi | |
6540 | ||
6541 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6542 | ||
6543 | fi; | |
6544 | ||
6545 | eval "$ac_cv_use_protocol_ftp" | |
6546 | if test "$no_cache" != 1; then | |
6547 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6548 | fi | |
6549 | ||
6550 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6551 | echo "$as_me:$LINENO: result: yes" >&5 | |
6552 | echo "${ECHO_T}yes" >&6 | |
6553 | else | |
6554 | echo "$as_me:$LINENO: result: no" >&5 | |
6555 | echo "${ECHO_T}no" >&6 | |
6556 | fi | |
6557 | ||
6558 | ||
6559 | enablestring= | |
6560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6561 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6562 | no_cache=0 | |
6563 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6564 | if test "${enable_protocol_file+set}" = set; then | |
6565 | enableval="$enable_protocol_file" | |
6566 | ||
6567 | if test "$enableval" = yes; then | |
6568 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6569 | else | |
6570 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6571 | fi | |
6572 | ||
6573 | else | |
6574 | ||
6575 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6576 | if test "x$LINE" != x ; then | |
6577 | eval "DEFAULT_$LINE" | |
6578 | else | |
6579 | no_cache=1 | |
6580 | fi | |
6581 | ||
6582 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6583 | ||
6584 | fi; | |
6585 | ||
6586 | eval "$ac_cv_use_protocol_file" | |
6587 | if test "$no_cache" != 1; then | |
6588 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6589 | fi | |
6590 | ||
6591 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6592 | echo "$as_me:$LINENO: result: yes" >&5 | |
6593 | echo "${ECHO_T}yes" >&6 | |
6594 | else | |
6595 | echo "$as_me:$LINENO: result: no" >&5 | |
6596 | echo "${ECHO_T}no" >&6 | |
6597 | fi | |
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | ||
6603 | enablestring= | |
6604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6605 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6606 | no_cache=0 | |
6607 | # Check whether --enable-threads or --disable-threads was given. | |
6608 | if test "${enable_threads+set}" = set; then | |
6609 | enableval="$enable_threads" | |
6610 | ||
6611 | if test "$enableval" = yes; then | |
6612 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6613 | else | |
6614 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6615 | fi | |
6616 | ||
6617 | else | |
6618 | ||
6619 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6620 | if test "x$LINE" != x ; then | |
6621 | eval "DEFAULT_$LINE" | |
6622 | else | |
6623 | no_cache=1 | |
6624 | fi | |
6625 | ||
6626 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6627 | ||
6628 | fi; | |
6629 | ||
6630 | eval "$ac_cv_use_threads" | |
6631 | if test "$no_cache" != 1; then | |
6632 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6633 | fi | |
6634 | ||
6635 | if test "$wxUSE_THREADS" = yes; then | |
6636 | echo "$as_me:$LINENO: result: yes" >&5 | |
6637 | echo "${ECHO_T}yes" >&6 | |
6638 | else | |
6639 | echo "$as_me:$LINENO: result: no" >&5 | |
6640 | echo "${ECHO_T}no" >&6 | |
6641 | fi | |
6642 | ||
6643 | ||
6644 | if test "$wxUSE_GUI" = "yes"; then | |
6645 | ||
6646 | ||
6647 | ||
6648 | enablestring= | |
6649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6650 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6651 | no_cache=0 | |
6652 | # Check whether --enable-docview or --disable-docview was given. | |
6653 | if test "${enable_docview+set}" = set; then | |
6654 | enableval="$enable_docview" | |
6655 | ||
6656 | if test "$enableval" = yes; then | |
6657 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6658 | else | |
6659 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6660 | fi | |
6661 | ||
6662 | else | |
6663 | ||
6664 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6665 | if test "x$LINE" != x ; then | |
6666 | eval "DEFAULT_$LINE" | |
6667 | else | |
6668 | no_cache=1 | |
6669 | fi | |
6670 | ||
6671 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6672 | ||
6673 | fi; | |
6674 | ||
6675 | eval "$ac_cv_use_docview" | |
6676 | if test "$no_cache" != 1; then | |
6677 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6678 | fi | |
6679 | ||
6680 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6681 | echo "$as_me:$LINENO: result: yes" >&5 | |
6682 | echo "${ECHO_T}yes" >&6 | |
6683 | else | |
6684 | echo "$as_me:$LINENO: result: no" >&5 | |
6685 | echo "${ECHO_T}no" >&6 | |
6686 | fi | |
6687 | ||
6688 | ||
6689 | enablestring= | |
6690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6691 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6692 | no_cache=0 | |
6693 | # Check whether --enable-help or --disable-help was given. | |
6694 | if test "${enable_help+set}" = set; then | |
6695 | enableval="$enable_help" | |
6696 | ||
6697 | if test "$enableval" = yes; then | |
6698 | ac_cv_use_help='wxUSE_HELP=yes' | |
6699 | else | |
6700 | ac_cv_use_help='wxUSE_HELP=no' | |
6701 | fi | |
6702 | ||
6703 | else | |
6704 | ||
6705 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6706 | if test "x$LINE" != x ; then | |
6707 | eval "DEFAULT_$LINE" | |
6708 | else | |
6709 | no_cache=1 | |
6710 | fi | |
6711 | ||
6712 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6713 | ||
6714 | fi; | |
6715 | ||
6716 | eval "$ac_cv_use_help" | |
6717 | if test "$no_cache" != 1; then | |
6718 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6719 | fi | |
6720 | ||
6721 | if test "$wxUSE_HELP" = yes; then | |
6722 | echo "$as_me:$LINENO: result: yes" >&5 | |
6723 | echo "${ECHO_T}yes" >&6 | |
6724 | else | |
6725 | echo "$as_me:$LINENO: result: no" >&5 | |
6726 | echo "${ECHO_T}no" >&6 | |
6727 | fi | |
6728 | ||
6729 | ||
6730 | enablestring= | |
6731 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6732 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6733 | no_cache=0 | |
6734 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6735 | if test "${enable_mshtmlhelp+set}" = set; then | |
6736 | enableval="$enable_mshtmlhelp" | |
6737 | ||
6738 | if test "$enableval" = yes; then | |
6739 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6740 | else | |
6741 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6742 | fi | |
6743 | ||
6744 | else | |
6745 | ||
6746 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6747 | if test "x$LINE" != x ; then | |
6748 | eval "DEFAULT_$LINE" | |
6749 | else | |
6750 | no_cache=1 | |
6751 | fi | |
6752 | ||
6753 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6754 | ||
6755 | fi; | |
6756 | ||
6757 | eval "$ac_cv_use_mshtmlhelp" | |
6758 | if test "$no_cache" != 1; then | |
6759 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6760 | fi | |
6761 | ||
6762 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6763 | echo "$as_me:$LINENO: result: yes" >&5 | |
6764 | echo "${ECHO_T}yes" >&6 | |
6765 | else | |
6766 | echo "$as_me:$LINENO: result: no" >&5 | |
6767 | echo "${ECHO_T}no" >&6 | |
6768 | fi | |
6769 | ||
6770 | ||
6771 | enablestring= | |
6772 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6773 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6774 | no_cache=0 | |
6775 | # Check whether --enable-html or --disable-html was given. | |
6776 | if test "${enable_html+set}" = set; then | |
6777 | enableval="$enable_html" | |
6778 | ||
6779 | if test "$enableval" = yes; then | |
6780 | ac_cv_use_html='wxUSE_HTML=yes' | |
6781 | else | |
6782 | ac_cv_use_html='wxUSE_HTML=no' | |
6783 | fi | |
6784 | ||
6785 | else | |
6786 | ||
6787 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6788 | if test "x$LINE" != x ; then | |
6789 | eval "DEFAULT_$LINE" | |
6790 | else | |
6791 | no_cache=1 | |
6792 | fi | |
6793 | ||
6794 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6795 | ||
6796 | fi; | |
6797 | ||
6798 | eval "$ac_cv_use_html" | |
6799 | if test "$no_cache" != 1; then | |
6800 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6801 | fi | |
6802 | ||
6803 | if test "$wxUSE_HTML" = yes; then | |
6804 | echo "$as_me:$LINENO: result: yes" >&5 | |
6805 | echo "${ECHO_T}yes" >&6 | |
6806 | else | |
6807 | echo "$as_me:$LINENO: result: no" >&5 | |
6808 | echo "${ECHO_T}no" >&6 | |
6809 | fi | |
6810 | ||
6811 | ||
6812 | enablestring= | |
6813 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6814 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6815 | no_cache=0 | |
6816 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6817 | if test "${enable_htmlhelp+set}" = set; then | |
6818 | enableval="$enable_htmlhelp" | |
6819 | ||
6820 | if test "$enableval" = yes; then | |
6821 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6822 | else | |
6823 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6824 | fi | |
6825 | ||
6826 | else | |
6827 | ||
6828 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6829 | if test "x$LINE" != x ; then | |
6830 | eval "DEFAULT_$LINE" | |
6831 | else | |
6832 | no_cache=1 | |
6833 | fi | |
6834 | ||
6835 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6836 | ||
6837 | fi; | |
6838 | ||
6839 | eval "$ac_cv_use_htmlhelp" | |
6840 | if test "$no_cache" != 1; then | |
6841 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6842 | fi | |
6843 | ||
6844 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6845 | echo "$as_me:$LINENO: result: yes" >&5 | |
6846 | echo "${ECHO_T}yes" >&6 | |
6847 | else | |
6848 | echo "$as_me:$LINENO: result: no" >&5 | |
6849 | echo "${ECHO_T}no" >&6 | |
6850 | fi | |
6851 | ||
6852 | ||
9a8f0513 VS |
6853 | enablestring= |
6854 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6855 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6856 | no_cache=0 | |
6857 | # Check whether --enable-xrc or --disable-xrc was given. | |
6858 | if test "${enable_xrc+set}" = set; then | |
6859 | enableval="$enable_xrc" | |
6860 | ||
6861 | if test "$enableval" = yes; then | |
6862 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6863 | else | |
6864 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6865 | fi | |
6866 | ||
6867 | else | |
6868 | ||
6869 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6870 | if test "x$LINE" != x ; then | |
6871 | eval "DEFAULT_$LINE" | |
6872 | else | |
6873 | no_cache=1 | |
6874 | fi | |
6875 | ||
6876 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6877 | ||
6878 | fi; | |
6879 | ||
6880 | eval "$ac_cv_use_xrc" | |
6881 | if test "$no_cache" != 1; then | |
6882 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6883 | fi | |
6884 | ||
6885 | if test "$wxUSE_XRC" = yes; then | |
6886 | echo "$as_me:$LINENO: result: yes" >&5 | |
6887 | echo "${ECHO_T}yes" >&6 | |
6888 | else | |
6889 | echo "$as_me:$LINENO: result: no" >&5 | |
6890 | echo "${ECHO_T}no" >&6 | |
6891 | fi | |
6892 | ||
6893 | ||
3f60522a JS |
6894 | enablestring= |
6895 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5 | |
6896 | echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6 | |
6897 | no_cache=0 | |
6898 | # Check whether --enable-aui or --disable-aui was given. | |
6899 | if test "${enable_aui+set}" = set; then | |
6900 | enableval="$enable_aui" | |
6901 | ||
6902 | if test "$enableval" = yes; then | |
6903 | ac_cv_use_aui='wxUSE_AUI=yes' | |
6904 | else | |
6905 | ac_cv_use_aui='wxUSE_AUI=no' | |
6906 | fi | |
6907 | ||
6908 | else | |
6909 | ||
6910 | LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}` | |
6911 | if test "x$LINE" != x ; then | |
6912 | eval "DEFAULT_$LINE" | |
6913 | else | |
6914 | no_cache=1 | |
6915 | fi | |
6916 | ||
6917 | ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI | |
6918 | ||
6919 | fi; | |
6920 | ||
6921 | eval "$ac_cv_use_aui" | |
6922 | if test "$no_cache" != 1; then | |
6923 | echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp | |
6924 | fi | |
6925 | ||
6926 | if test "$wxUSE_AUI" = yes; then | |
6927 | echo "$as_me:$LINENO: result: yes" >&5 | |
6928 | echo "${ECHO_T}yes" >&6 | |
6929 | else | |
6930 | echo "$as_me:$LINENO: result: no" >&5 | |
6931 | echo "${ECHO_T}no" >&6 | |
6932 | fi | |
6933 | ||
6934 | ||
a848cd7e SC |
6935 | enablestring= |
6936 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6937 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6938 | no_cache=0 | |
6939 | # Check whether --enable-constraints or --disable-constraints was given. | |
6940 | if test "${enable_constraints+set}" = set; then | |
6941 | enableval="$enable_constraints" | |
6942 | ||
6943 | if test "$enableval" = yes; then | |
6944 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6945 | else | |
6946 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6947 | fi | |
6948 | ||
6949 | else | |
6950 | ||
6951 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6952 | if test "x$LINE" != x ; then | |
6953 | eval "DEFAULT_$LINE" | |
6954 | else | |
6955 | no_cache=1 | |
6956 | fi | |
6957 | ||
6958 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6959 | ||
6960 | fi; | |
6961 | ||
6962 | eval "$ac_cv_use_constraints" | |
6963 | if test "$no_cache" != 1; then | |
6964 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6965 | fi | |
6966 | ||
6967 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6968 | echo "$as_me:$LINENO: result: yes" >&5 | |
6969 | echo "${ECHO_T}yes" >&6 | |
6970 | else | |
6971 | echo "$as_me:$LINENO: result: no" >&5 | |
6972 | echo "${ECHO_T}no" >&6 | |
6973 | fi | |
6974 | ||
6975 | ||
6976 | enablestring= | |
6977 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6978 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6979 | no_cache=0 | |
6980 | # Check whether --enable-printarch or --disable-printarch was given. | |
6981 | if test "${enable_printarch+set}" = set; then | |
6982 | enableval="$enable_printarch" | |
6983 | ||
6984 | if test "$enableval" = yes; then | |
6985 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6986 | else | |
6987 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6988 | fi | |
6989 | ||
6990 | else | |
6991 | ||
6992 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6993 | if test "x$LINE" != x ; then | |
6994 | eval "DEFAULT_$LINE" | |
6995 | else | |
6996 | no_cache=1 | |
6997 | fi | |
6998 | ||
6999 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
7000 | ||
7001 | fi; | |
7002 | ||
7003 | eval "$ac_cv_use_printarch" | |
7004 | if test "$no_cache" != 1; then | |
7005 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
7006 | fi | |
7007 | ||
7008 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
7009 | echo "$as_me:$LINENO: result: yes" >&5 | |
7010 | echo "${ECHO_T}yes" >&6 | |
7011 | else | |
7012 | echo "$as_me:$LINENO: result: no" >&5 | |
7013 | echo "${ECHO_T}no" >&6 | |
7014 | fi | |
7015 | ||
7016 | ||
7017 | enablestring= | |
7018 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
7019 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
7020 | no_cache=0 | |
7021 | # Check whether --enable-mdi or --disable-mdi was given. | |
7022 | if test "${enable_mdi+set}" = set; then | |
7023 | enableval="$enable_mdi" | |
7024 | ||
7025 | if test "$enableval" = yes; then | |
8a7b1113 | 7026 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 7027 | else |
8a7b1113 | 7028 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
7029 | fi |
7030 | ||
7031 | else | |
7032 | ||
8a7b1113 | 7033 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
7034 | if test "x$LINE" != x ; then |
7035 | eval "DEFAULT_$LINE" | |
7036 | else | |
7037 | no_cache=1 | |
7038 | fi | |
7039 | ||
8a7b1113 | 7040 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
7041 | |
7042 | fi; | |
7043 | ||
7044 | eval "$ac_cv_use_mdi" | |
7045 | if test "$no_cache" != 1; then | |
7046 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
7047 | fi | |
7048 | ||
8a7b1113 VZ |
7049 | if test "$wxUSE_MDI" = yes; then |
7050 | echo "$as_me:$LINENO: result: yes" >&5 | |
7051 | echo "${ECHO_T}yes" >&6 | |
7052 | else | |
7053 | echo "$as_me:$LINENO: result: no" >&5 | |
7054 | echo "${ECHO_T}no" >&6 | |
7055 | fi | |
7056 | ||
7057 | ||
7058 | enablestring= | |
7059 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
7060 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
7061 | no_cache=0 | |
7062 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
7063 | if test "${enable_mdidoc+set}" = set; then | |
7064 | enableval="$enable_mdidoc" | |
7065 | ||
7066 | if test "$enableval" = yes; then | |
7067 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
7068 | else | |
7069 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
7070 | fi | |
7071 | ||
7072 | else | |
7073 | ||
7074 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
7075 | if test "x$LINE" != x ; then | |
7076 | eval "DEFAULT_$LINE" | |
7077 | else | |
7078 | no_cache=1 | |
7079 | fi | |
7080 | ||
7081 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
7082 | ||
7083 | fi; | |
7084 | ||
7085 | eval "$ac_cv_use_mdidoc" | |
7086 | if test "$no_cache" != 1; then | |
7087 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
7088 | fi | |
7089 | ||
a848cd7e SC |
7090 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
7091 | echo "$as_me:$LINENO: result: yes" >&5 | |
7092 | echo "${ECHO_T}yes" >&6 | |
7093 | else | |
7094 | echo "$as_me:$LINENO: result: no" >&5 | |
7095 | echo "${ECHO_T}no" >&6 | |
7096 | fi | |
7097 | ||
7098 | ||
7099 | enablestring= | |
7100 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
7101 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
7102 | no_cache=0 | |
7103 | # Check whether --enable-loggui or --disable-loggui was given. | |
7104 | if test "${enable_loggui+set}" = set; then | |
7105 | enableval="$enable_loggui" | |
7106 | ||
7107 | if test "$enableval" = yes; then | |
7108 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
7109 | else | |
7110 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
7111 | fi | |
7112 | ||
7113 | else | |
7114 | ||
7115 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
7116 | if test "x$LINE" != x ; then | |
7117 | eval "DEFAULT_$LINE" | |
7118 | else | |
7119 | no_cache=1 | |
7120 | fi | |
7121 | ||
7122 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
7123 | ||
7124 | fi; | |
7125 | ||
7126 | eval "$ac_cv_use_loggui" | |
7127 | if test "$no_cache" != 1; then | |
7128 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
7129 | fi | |
7130 | ||
7131 | if test "$wxUSE_LOGGUI" = yes; then | |
7132 | echo "$as_me:$LINENO: result: yes" >&5 | |
7133 | echo "${ECHO_T}yes" >&6 | |
7134 | else | |
7135 | echo "$as_me:$LINENO: result: no" >&5 | |
7136 | echo "${ECHO_T}no" >&6 | |
7137 | fi | |
7138 | ||
7139 | ||
7140 | enablestring= | |
7141 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
7142 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
7143 | no_cache=0 | |
7144 | # Check whether --enable-logwin or --disable-logwin was given. | |
7145 | if test "${enable_logwin+set}" = set; then | |
7146 | enableval="$enable_logwin" | |
7147 | ||
7148 | if test "$enableval" = yes; then | |
7149 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
7150 | else | |
7151 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
7152 | fi | |
7153 | ||
7154 | else | |
7155 | ||
7156 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
7157 | if test "x$LINE" != x ; then | |
7158 | eval "DEFAULT_$LINE" | |
7159 | else | |
7160 | no_cache=1 | |
7161 | fi | |
7162 | ||
7163 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
7164 | ||
7165 | fi; | |
7166 | ||
7167 | eval "$ac_cv_use_logwin" | |
7168 | if test "$no_cache" != 1; then | |
7169 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
7170 | fi | |
7171 | ||
7172 | if test "$wxUSE_LOGWINDOW" = yes; then | |
7173 | echo "$as_me:$LINENO: result: yes" >&5 | |
7174 | echo "${ECHO_T}yes" >&6 | |
7175 | else | |
7176 | echo "$as_me:$LINENO: result: no" >&5 | |
7177 | echo "${ECHO_T}no" >&6 | |
7178 | fi | |
7179 | ||
7180 | ||
7181 | enablestring= | |
7182 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
7183 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
7184 | no_cache=0 | |
7185 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
7186 | if test "${enable_logdialog+set}" = set; then | |
7187 | enableval="$enable_logdialog" | |
7188 | ||
7189 | if test "$enableval" = yes; then | |
7190 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
7191 | else | |
7192 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
7193 | fi | |
7194 | ||
7195 | else | |
7196 | ||
7197 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7198 | if test "x$LINE" != x ; then | |
7199 | eval "DEFAULT_$LINE" | |
7200 | else | |
7201 | no_cache=1 | |
7202 | fi | |
7203 | ||
7204 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7205 | ||
7206 | fi; | |
7207 | ||
7208 | eval "$ac_cv_use_logdialog" | |
7209 | if test "$no_cache" != 1; then | |
7210 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7211 | fi | |
7212 | ||
7213 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7214 | echo "$as_me:$LINENO: result: yes" >&5 | |
7215 | echo "${ECHO_T}yes" >&6 | |
7216 | else | |
7217 | echo "$as_me:$LINENO: result: no" >&5 | |
7218 | echo "${ECHO_T}no" >&6 | |
7219 | fi | |
7220 | ||
7221 | ||
646b6ec1 VS |
7222 | enablestring= |
7223 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7224 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7225 | no_cache=0 | |
7226 | # Check whether --enable-webkit or --disable-webkit was given. | |
7227 | if test "${enable_webkit+set}" = set; then | |
7228 | enableval="$enable_webkit" | |
7229 | ||
7230 | if test "$enableval" = yes; then | |
7231 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7232 | else | |
7233 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7234 | fi | |
7235 | ||
7236 | else | |
7237 | ||
7238 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7239 | if test "x$LINE" != x ; then | |
7240 | eval "DEFAULT_$LINE" | |
7241 | else | |
7242 | no_cache=1 | |
7243 | fi | |
7244 | ||
7245 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7246 | ||
7247 | fi; | |
7248 | ||
7249 | eval "$ac_cv_use_webkit" | |
7250 | if test "$no_cache" != 1; then | |
7251 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7252 | fi | |
7253 | ||
7254 | if test "$wxUSE_WEBKIT" = yes; then | |
7255 | echo "$as_me:$LINENO: result: yes" >&5 | |
7256 | echo "${ECHO_T}yes" >&6 | |
7257 | else | |
7258 | echo "$as_me:$LINENO: result: no" >&5 | |
7259 | echo "${ECHO_T}no" >&6 | |
7260 | fi | |
7261 | ||
7262 | ||
91dea314 MW |
7263 | enablestring= |
7264 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7265 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7266 | no_cache=0 | |
7267 | # Check whether --enable-html or --disable-html was given. | |
7268 | if test "${enable_html+set}" = set; then | |
7269 | enableval="$enable_html" | |
7270 | ||
7271 | if test "$enableval" = yes; then | |
7272 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7273 | else | |
7274 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7275 | fi | |
7276 | ||
7277 | else | |
7278 | ||
7279 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7280 | if test "x$LINE" != x ; then | |
7281 | eval "DEFAULT_$LINE" | |
7282 | else | |
7283 | no_cache=1 | |
7284 | fi | |
7285 | ||
7286 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7287 | ||
7288 | fi; | |
7289 | ||
7290 | eval "$ac_cv_use_html" | |
7291 | if test "$no_cache" != 1; then | |
7292 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7293 | fi | |
7294 | ||
7295 | if test "$wxUSE_RICHTEXT" = yes; then | |
7296 | echo "$as_me:$LINENO: result: yes" >&5 | |
7297 | echo "${ECHO_T}yes" >&6 | |
7298 | else | |
7299 | echo "$as_me:$LINENO: result: no" >&5 | |
7300 | echo "${ECHO_T}no" >&6 | |
7301 | fi | |
7302 | ||
7303 | ||
a848cd7e SC |
7304 | |
7305 | enablestring= | |
7306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7307 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7308 | no_cache=0 | |
7309 | # Check whether --enable-postscript or --disable-postscript was given. | |
7310 | if test "${enable_postscript+set}" = set; then | |
7311 | enableval="$enable_postscript" | |
7312 | ||
7313 | if test "$enableval" = yes; then | |
7314 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7315 | else | |
7316 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7317 | fi | |
7318 | ||
7319 | else | |
7320 | ||
7321 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7322 | if test "x$LINE" != x ; then | |
7323 | eval "DEFAULT_$LINE" | |
7324 | else | |
7325 | no_cache=1 | |
7326 | fi | |
7327 | ||
7328 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7329 | ||
7330 | fi; | |
7331 | ||
7332 | eval "$ac_cv_use_postscript" | |
7333 | if test "$no_cache" != 1; then | |
7334 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7335 | fi | |
7336 | ||
7337 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7338 | echo "$as_me:$LINENO: result: yes" >&5 | |
7339 | echo "${ECHO_T}yes" >&6 | |
7340 | else | |
7341 | echo "$as_me:$LINENO: result: no" >&5 | |
7342 | echo "${ECHO_T}no" >&6 | |
7343 | fi | |
7344 | ||
7345 | ||
7346 | ||
7347 | ||
7348 | ||
7349 | enablestring= | |
7350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7351 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7352 | no_cache=0 | |
7353 | # Check whether --enable-prologio or --disable-prologio was given. | |
7354 | if test "${enable_prologio+set}" = set; then | |
7355 | enableval="$enable_prologio" | |
7356 | ||
7357 | if test "$enableval" = yes; then | |
7358 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7359 | else | |
7360 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7361 | fi | |
7362 | ||
7363 | else | |
7364 | ||
7365 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7366 | if test "x$LINE" != x ; then | |
7367 | eval "DEFAULT_$LINE" | |
7368 | else | |
7369 | no_cache=1 | |
7370 | fi | |
7371 | ||
7372 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7373 | ||
7374 | fi; | |
7375 | ||
7376 | eval "$ac_cv_use_prologio" | |
7377 | if test "$no_cache" != 1; then | |
7378 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7379 | fi | |
7380 | ||
7381 | if test "$wxUSE_PROLOGIO" = yes; then | |
7382 | echo "$as_me:$LINENO: result: yes" >&5 | |
7383 | echo "${ECHO_T}yes" >&6 | |
7384 | else | |
7385 | echo "$as_me:$LINENO: result: no" >&5 | |
7386 | echo "${ECHO_T}no" >&6 | |
7387 | fi | |
7388 | ||
7389 | ||
7390 | enablestring= | |
7391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7392 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7393 | no_cache=0 | |
7394 | # Check whether --enable-resources or --disable-resources was given. | |
7395 | if test "${enable_resources+set}" = set; then | |
7396 | enableval="$enable_resources" | |
7397 | ||
7398 | if test "$enableval" = yes; then | |
7399 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7400 | else | |
7401 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7402 | fi | |
7403 | ||
7404 | else | |
7405 | ||
7406 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7407 | if test "x$LINE" != x ; then | |
7408 | eval "DEFAULT_$LINE" | |
7409 | else | |
7410 | no_cache=1 | |
7411 | fi | |
7412 | ||
7413 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7414 | ||
7415 | fi; | |
7416 | ||
7417 | eval "$ac_cv_use_resources" | |
7418 | if test "$no_cache" != 1; then | |
7419 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7420 | fi | |
7421 | ||
7422 | if test "$wxUSE_RESOURCES" = yes; then | |
7423 | echo "$as_me:$LINENO: result: yes" >&5 | |
7424 | echo "${ECHO_T}yes" >&6 | |
7425 | else | |
7426 | echo "$as_me:$LINENO: result: no" >&5 | |
7427 | echo "${ECHO_T}no" >&6 | |
7428 | fi | |
7429 | ||
7430 | ||
7431 | ||
7432 | ||
7433 | enablestring= | |
7434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7435 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7436 | no_cache=0 | |
7437 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7438 | if test "${enable_clipboard+set}" = set; then | |
7439 | enableval="$enable_clipboard" | |
7440 | ||
7441 | if test "$enableval" = yes; then | |
7442 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7443 | else | |
7444 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7445 | fi | |
7446 | ||
7447 | else | |
7448 | ||
7449 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7450 | if test "x$LINE" != x ; then | |
7451 | eval "DEFAULT_$LINE" | |
7452 | else | |
7453 | no_cache=1 | |
7454 | fi | |
7455 | ||
7456 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7457 | ||
7458 | fi; | |
7459 | ||
7460 | eval "$ac_cv_use_clipboard" | |
7461 | if test "$no_cache" != 1; then | |
7462 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7463 | fi | |
7464 | ||
7465 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7466 | echo "$as_me:$LINENO: result: yes" >&5 | |
7467 | echo "${ECHO_T}yes" >&6 | |
7468 | else | |
7469 | echo "$as_me:$LINENO: result: no" >&5 | |
7470 | echo "${ECHO_T}no" >&6 | |
7471 | fi | |
7472 | ||
7473 | ||
7474 | enablestring= | |
7475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7476 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7477 | no_cache=0 | |
7478 | # Check whether --enable-dnd or --disable-dnd was given. | |
7479 | if test "${enable_dnd+set}" = set; then | |
7480 | enableval="$enable_dnd" | |
7481 | ||
7482 | if test "$enableval" = yes; then | |
7483 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7484 | else | |
7485 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7486 | fi | |
7487 | ||
7488 | else | |
7489 | ||
7490 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7491 | if test "x$LINE" != x ; then | |
7492 | eval "DEFAULT_$LINE" | |
7493 | else | |
7494 | no_cache=1 | |
7495 | fi | |
7496 | ||
7497 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7498 | ||
7499 | fi; | |
7500 | ||
7501 | eval "$ac_cv_use_dnd" | |
7502 | if test "$no_cache" != 1; then | |
7503 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7504 | fi | |
7505 | ||
7506 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7507 | echo "$as_me:$LINENO: result: yes" >&5 | |
7508 | echo "${ECHO_T}yes" >&6 | |
7509 | else | |
7510 | echo "$as_me:$LINENO: result: no" >&5 | |
7511 | echo "${ECHO_T}no" >&6 | |
7512 | fi | |
7513 | ||
7514 | ||
7515 | enablestring= | |
7516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7517 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7518 | no_cache=0 | |
7519 | # Check whether --enable-metafile or --disable-metafile was given. | |
7520 | if test "${enable_metafile+set}" = set; then | |
7521 | enableval="$enable_metafile" | |
7522 | ||
7523 | if test "$enableval" = yes; then | |
7524 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7525 | else | |
7526 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7527 | fi | |
7528 | ||
7529 | else | |
7530 | ||
7531 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7532 | if test "x$LINE" != x ; then | |
7533 | eval "DEFAULT_$LINE" | |
7534 | else | |
7535 | no_cache=1 | |
7536 | fi | |
7537 | ||
7538 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7539 | ||
7540 | fi; | |
7541 | ||
7542 | eval "$ac_cv_use_metafile" | |
7543 | if test "$no_cache" != 1; then | |
7544 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7545 | fi | |
7546 | ||
7547 | if test "$wxUSE_METAFILE" = yes; then | |
7548 | echo "$as_me:$LINENO: result: yes" >&5 | |
7549 | echo "${ECHO_T}yes" >&6 | |
7550 | else | |
7551 | echo "$as_me:$LINENO: result: no" >&5 | |
7552 | echo "${ECHO_T}no" >&6 | |
7553 | fi | |
7554 | ||
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | enablestring= | |
7560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7561 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7562 | no_cache=0 | |
7563 | # Check whether --enable-controls or --disable-controls was given. | |
7564 | if test "${enable_controls+set}" = set; then | |
7565 | enableval="$enable_controls" | |
7566 | ||
7567 | if test "$enableval" = yes; then | |
7568 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7569 | else | |
7570 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7571 | fi | |
7572 | ||
7573 | else | |
7574 | ||
7575 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7576 | if test "x$LINE" != x ; then | |
7577 | eval "DEFAULT_$LINE" | |
7578 | else | |
7579 | no_cache=1 | |
7580 | fi | |
7581 | ||
7582 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7583 | ||
7584 | fi; | |
7585 | ||
7586 | eval "$ac_cv_use_controls" | |
7587 | if test "$no_cache" != 1; then | |
7588 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7589 | fi | |
7590 | ||
7591 | if test "$wxUSE_CONTROLS" = yes; then | |
7592 | echo "$as_me:$LINENO: result: yes" >&5 | |
7593 | echo "${ECHO_T}yes" >&6 | |
7594 | else | |
7595 | echo "$as_me:$LINENO: result: no" >&5 | |
7596 | echo "${ECHO_T}no" >&6 | |
7597 | fi | |
7598 | ||
7599 | ||
7600 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7601 | DEFAULT_wxUSE_ACCEL=yes | |
7602 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7603 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7604 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7605 | DEFAULT_wxUSE_CARET=yes |
7606 | DEFAULT_wxUSE_COMBOBOX=yes | |
7607 | DEFAULT_wxUSE_CHECKBOX=yes | |
7608 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7609 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7610 | DEFAULT_wxUSE_CHOICEBOOK=yes |
e9263684 VZ |
7611 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
7612 | DEFAULT_wxUSE_COMBOBOX=yes | |
da98e9be | 7613 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
e9263684 VZ |
7614 | DEFAULT_wxUSE_DISPLAY=yes |
7615 | DEFAULT_wxUSE_DIRPICKERCTRL=yes | |
7616 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
7617 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
7618 | DEFAULT_wxUSE_GAUGE=yes |
7619 | DEFAULT_wxUSE_GRID=yes | |
6954625c | 7620 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 7621 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7622 | DEFAULT_wxUSE_IMAGLIST=yes |
7623 | DEFAULT_wxUSE_LISTBOOK=yes | |
7624 | DEFAULT_wxUSE_LISTBOX=yes | |
7625 | DEFAULT_wxUSE_LISTCTRL=yes | |
7626 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7627 | DEFAULT_wxUSE_RADIOBOX=yes | |
7628 | DEFAULT_wxUSE_RADIOBTN=yes | |
7629 | DEFAULT_wxUSE_SASH=yes | |
7630 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7631 | DEFAULT_wxUSE_SLIDER=yes | |
7632 | DEFAULT_wxUSE_SPINBTN=yes | |
7633 | DEFAULT_wxUSE_SPINCTRL=yes | |
7634 | DEFAULT_wxUSE_SPLITTER=yes | |
7635 | DEFAULT_wxUSE_STATBMP=yes | |
7636 | DEFAULT_wxUSE_STATBOX=yes | |
7637 | DEFAULT_wxUSE_STATLINE=yes | |
7638 | DEFAULT_wxUSE_STATUSBAR=yes | |
7639 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7640 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7641 | DEFAULT_wxUSE_TOOLBAR=yes | |
7642 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7643 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7644 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7645 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 7646 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
7647 | DEFAULT_wxUSE_TREECTRL=yes |
7648 | DEFAULT_wxUSE_POPUPWIN=yes | |
7649 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7650 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7651 | DEFAULT_wxUSE_ACCEL=no | |
7652 | DEFAULT_wxUSE_BMPBUTTON=no | |
7653 | DEFAULT_wxUSE_BUTTON=no | |
7654 | DEFAULT_wxUSE_CALCTRL=no | |
7655 | DEFAULT_wxUSE_CARET=no | |
7656 | DEFAULT_wxUSE_COMBOBOX=no | |
7657 | DEFAULT_wxUSE_CHECKBOX=no | |
7658 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7659 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7660 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 VZ |
7661 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
7662 | DEFAULT_wxUSE_COMBOBOX=no | |
da98e9be | 7663 | DEFAULT_wxUSE_DATEPICKCTRL=no |
e9263684 VZ |
7664 | DEFAULT_wxUSE_DISPLAY=no |
7665 | DEFAULT_wxUSE_DIRPICKERCTRL=no | |
7666 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
7667 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e SC |
7668 | DEFAULT_wxUSE_GAUGE=no |
7669 | DEFAULT_wxUSE_GRID=no | |
6954625c | 7670 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 7671 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7672 | DEFAULT_wxUSE_IMAGLIST=no |
7673 | DEFAULT_wxUSE_LISTBOOK=no | |
7674 | DEFAULT_wxUSE_LISTBOX=no | |
7675 | DEFAULT_wxUSE_LISTCTRL=no | |
7676 | DEFAULT_wxUSE_NOTEBOOK=no | |
7677 | DEFAULT_wxUSE_RADIOBOX=no | |
7678 | DEFAULT_wxUSE_RADIOBTN=no | |
7679 | DEFAULT_wxUSE_SASH=no | |
7680 | DEFAULT_wxUSE_SCROLLBAR=no | |
7681 | DEFAULT_wxUSE_SLIDER=no | |
7682 | DEFAULT_wxUSE_SPINBTN=no | |
7683 | DEFAULT_wxUSE_SPINCTRL=no | |
7684 | DEFAULT_wxUSE_SPLITTER=no | |
7685 | DEFAULT_wxUSE_STATBMP=no | |
7686 | DEFAULT_wxUSE_STATBOX=no | |
7687 | DEFAULT_wxUSE_STATLINE=no | |
7688 | DEFAULT_wxUSE_STATUSBAR=no | |
7689 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7690 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7691 | DEFAULT_wxUSE_TOOLBAR=no | |
7692 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7693 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7694 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7695 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 7696 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
7697 | DEFAULT_wxUSE_TREECTRL=no |
7698 | DEFAULT_wxUSE_POPUPWIN=no | |
7699 | DEFAULT_wxUSE_TIPWINDOW=no | |
7700 | fi | |
7701 | ||
a848cd7e SC |
7702 | |
7703 | enablestring= | |
7704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7705 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7706 | no_cache=0 | |
7707 | # Check whether --enable-accel or --disable-accel was given. | |
7708 | if test "${enable_accel+set}" = set; then | |
7709 | enableval="$enable_accel" | |
7710 | ||
7711 | if test "$enableval" = yes; then | |
7712 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7713 | else | |
7714 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7715 | fi | |
7716 | ||
7717 | else | |
7718 | ||
7719 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7720 | if test "x$LINE" != x ; then | |
7721 | eval "DEFAULT_$LINE" | |
7722 | else | |
7723 | no_cache=1 | |
7724 | fi | |
7725 | ||
7726 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7727 | ||
7728 | fi; | |
7729 | ||
7730 | eval "$ac_cv_use_accel" | |
7731 | if test "$no_cache" != 1; then | |
7732 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7733 | fi | |
7734 | ||
7735 | if test "$wxUSE_ACCEL" = yes; then | |
7736 | echo "$as_me:$LINENO: result: yes" >&5 | |
7737 | echo "${ECHO_T}yes" >&6 | |
7738 | else | |
7739 | echo "$as_me:$LINENO: result: no" >&5 | |
7740 | echo "${ECHO_T}no" >&6 | |
7741 | fi | |
7742 | ||
7743 | ||
7744 | enablestring= | |
7745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7746 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7747 | no_cache=0 | |
7748 | # Check whether --enable-button or --disable-button was given. | |
7749 | if test "${enable_button+set}" = set; then | |
7750 | enableval="$enable_button" | |
7751 | ||
7752 | if test "$enableval" = yes; then | |
7753 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7754 | else | |
7755 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7756 | fi | |
7757 | ||
7758 | else | |
7759 | ||
7760 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7761 | if test "x$LINE" != x ; then | |
7762 | eval "DEFAULT_$LINE" | |
7763 | else | |
7764 | no_cache=1 | |
7765 | fi | |
7766 | ||
7767 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7768 | ||
7769 | fi; | |
7770 | ||
7771 | eval "$ac_cv_use_button" | |
7772 | if test "$no_cache" != 1; then | |
7773 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7774 | fi | |
7775 | ||
7776 | if test "$wxUSE_BUTTON" = yes; then | |
7777 | echo "$as_me:$LINENO: result: yes" >&5 | |
7778 | echo "${ECHO_T}yes" >&6 | |
7779 | else | |
7780 | echo "$as_me:$LINENO: result: no" >&5 | |
7781 | echo "${ECHO_T}no" >&6 | |
7782 | fi | |
7783 | ||
7784 | ||
7785 | enablestring= | |
7786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7787 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7788 | no_cache=0 | |
7789 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7790 | if test "${enable_bmpbutton+set}" = set; then | |
7791 | enableval="$enable_bmpbutton" | |
7792 | ||
7793 | if test "$enableval" = yes; then | |
7794 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7795 | else | |
7796 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7797 | fi | |
7798 | ||
7799 | else | |
7800 | ||
7801 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7802 | if test "x$LINE" != x ; then | |
7803 | eval "DEFAULT_$LINE" | |
7804 | else | |
7805 | no_cache=1 | |
7806 | fi | |
7807 | ||
7808 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7809 | ||
7810 | fi; | |
7811 | ||
7812 | eval "$ac_cv_use_bmpbutton" | |
7813 | if test "$no_cache" != 1; then | |
7814 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7815 | fi | |
7816 | ||
7817 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7818 | echo "$as_me:$LINENO: result: yes" >&5 | |
7819 | echo "${ECHO_T}yes" >&6 | |
7820 | else | |
7821 | echo "$as_me:$LINENO: result: no" >&5 | |
7822 | echo "${ECHO_T}no" >&6 | |
7823 | fi | |
7824 | ||
7825 | ||
7826 | enablestring= | |
7827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7828 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7829 | no_cache=0 | |
7830 | # Check whether --enable-calendar or --disable-calendar was given. | |
7831 | if test "${enable_calendar+set}" = set; then | |
7832 | enableval="$enable_calendar" | |
7833 | ||
7834 | if test "$enableval" = yes; then | |
7835 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7836 | else | |
7837 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7838 | fi | |
7839 | ||
7840 | else | |
7841 | ||
7842 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7843 | if test "x$LINE" != x ; then | |
7844 | eval "DEFAULT_$LINE" | |
7845 | else | |
7846 | no_cache=1 | |
7847 | fi | |
7848 | ||
7849 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7850 | ||
7851 | fi; | |
7852 | ||
7853 | eval "$ac_cv_use_calendar" | |
7854 | if test "$no_cache" != 1; then | |
7855 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7856 | fi | |
7857 | ||
7858 | if test "$wxUSE_CALCTRL" = yes; then | |
7859 | echo "$as_me:$LINENO: result: yes" >&5 | |
7860 | echo "${ECHO_T}yes" >&6 | |
7861 | else | |
7862 | echo "$as_me:$LINENO: result: no" >&5 | |
7863 | echo "${ECHO_T}no" >&6 | |
7864 | fi | |
7865 | ||
7866 | ||
7867 | enablestring= | |
7868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7869 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7870 | no_cache=0 | |
7871 | # Check whether --enable-caret or --disable-caret was given. | |
7872 | if test "${enable_caret+set}" = set; then | |
7873 | enableval="$enable_caret" | |
7874 | ||
7875 | if test "$enableval" = yes; then | |
7876 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7877 | else | |
7878 | ac_cv_use_caret='wxUSE_CARET=no' | |
7879 | fi | |
7880 | ||
7881 | else | |
7882 | ||
7883 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7884 | if test "x$LINE" != x ; then | |
7885 | eval "DEFAULT_$LINE" | |
7886 | else | |
7887 | no_cache=1 | |
7888 | fi | |
7889 | ||
7890 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7891 | ||
7892 | fi; | |
7893 | ||
7894 | eval "$ac_cv_use_caret" | |
7895 | if test "$no_cache" != 1; then | |
7896 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7897 | fi | |
7898 | ||
7899 | if test "$wxUSE_CARET" = yes; then | |
7900 | echo "$as_me:$LINENO: result: yes" >&5 | |
7901 | echo "${ECHO_T}yes" >&6 | |
7902 | else | |
7903 | echo "$as_me:$LINENO: result: no" >&5 | |
7904 | echo "${ECHO_T}no" >&6 | |
7905 | fi | |
7906 | ||
7907 | ||
7908 | enablestring= | |
7909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7910 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7911 | no_cache=0 | |
7912 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7913 | if test "${enable_checkbox+set}" = set; then | |
7914 | enableval="$enable_checkbox" | |
7915 | ||
7916 | if test "$enableval" = yes; then | |
7917 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7918 | else | |
7919 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7920 | fi | |
7921 | ||
7922 | else | |
7923 | ||
7924 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7925 | if test "x$LINE" != x ; then | |
7926 | eval "DEFAULT_$LINE" | |
7927 | else | |
7928 | no_cache=1 | |
7929 | fi | |
7930 | ||
7931 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7932 | ||
7933 | fi; | |
7934 | ||
7935 | eval "$ac_cv_use_checkbox" | |
7936 | if test "$no_cache" != 1; then | |
7937 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7938 | fi | |
7939 | ||
7940 | if test "$wxUSE_CHECKBOX" = yes; then | |
7941 | echo "$as_me:$LINENO: result: yes" >&5 | |
7942 | echo "${ECHO_T}yes" >&6 | |
7943 | else | |
7944 | echo "$as_me:$LINENO: result: no" >&5 | |
7945 | echo "${ECHO_T}no" >&6 | |
7946 | fi | |
7947 | ||
7948 | ||
7949 | enablestring= | |
7950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7951 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7952 | no_cache=0 | |
7953 | # Check whether --enable-checklst or --disable-checklst was given. | |
7954 | if test "${enable_checklst+set}" = set; then | |
7955 | enableval="$enable_checklst" | |
7956 | ||
7957 | if test "$enableval" = yes; then | |
7958 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7959 | else | |
7960 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7961 | fi | |
7962 | ||
7963 | else | |
7964 | ||
7965 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7966 | if test "x$LINE" != x ; then | |
7967 | eval "DEFAULT_$LINE" | |
7968 | else | |
7969 | no_cache=1 | |
7970 | fi | |
7971 | ||
7972 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7973 | ||
7974 | fi; | |
7975 | ||
7976 | eval "$ac_cv_use_checklst" | |
7977 | if test "$no_cache" != 1; then | |
7978 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7979 | fi | |
7980 | ||
7981 | if test "$wxUSE_CHECKLST" = yes; then | |
7982 | echo "$as_me:$LINENO: result: yes" >&5 | |
7983 | echo "${ECHO_T}yes" >&6 | |
7984 | else | |
7985 | echo "$as_me:$LINENO: result: no" >&5 | |
7986 | echo "${ECHO_T}no" >&6 | |
7987 | fi | |
7988 | ||
7989 | ||
7990 | enablestring= | |
7991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7992 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7993 | no_cache=0 | |
7994 | # Check whether --enable-choice or --disable-choice was given. | |
7995 | if test "${enable_choice+set}" = set; then | |
7996 | enableval="$enable_choice" | |
7997 | ||
7998 | if test "$enableval" = yes; then | |
7999 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
8000 | else | |
8001 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
8002 | fi | |
8003 | ||
8004 | else | |
8005 | ||
8006 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
8007 | if test "x$LINE" != x ; then | |
8008 | eval "DEFAULT_$LINE" | |
8009 | else | |
8010 | no_cache=1 | |
8011 | fi | |
8012 | ||
8013 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
8014 | ||
8015 | fi; | |
8016 | ||
8017 | eval "$ac_cv_use_choice" | |
8018 | if test "$no_cache" != 1; then | |
8019 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
8020 | fi | |
8021 | ||
8022 | if test "$wxUSE_CHOICE" = yes; then | |
8023 | echo "$as_me:$LINENO: result: yes" >&5 | |
8024 | echo "${ECHO_T}yes" >&6 | |
8025 | else | |
8026 | echo "$as_me:$LINENO: result: no" >&5 | |
8027 | echo "${ECHO_T}no" >&6 | |
8028 | fi | |
8029 | ||
8030 | ||
92bbdbcd WS |
8031 | enablestring= |
8032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
8033 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
8034 | no_cache=0 | |
8035 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
8036 | if test "${enable_choicebook+set}" = set; then | |
8037 | enableval="$enable_choicebook" | |
8038 | ||
8039 | if test "$enableval" = yes; then | |
8040 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
8041 | else | |
8042 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
8043 | fi | |
8044 | ||
8045 | else | |
8046 | ||
8047 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
8048 | if test "x$LINE" != x ; then | |
8049 | eval "DEFAULT_$LINE" | |
8050 | else | |
8051 | no_cache=1 | |
8052 | fi | |
8053 | ||
8054 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
8055 | ||
8056 | fi; | |
8057 | ||
8058 | eval "$ac_cv_use_choicebook" | |
8059 | if test "$no_cache" != 1; then | |
8060 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
8061 | fi | |
8062 | ||
8063 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
8064 | echo "$as_me:$LINENO: result: yes" >&5 | |
8065 | echo "${ECHO_T}yes" >&6 | |
8066 | else | |
8067 | echo "$as_me:$LINENO: result: no" >&5 | |
8068 | echo "${ECHO_T}no" >&6 | |
8069 | fi | |
8070 | ||
8071 | ||
e9263684 VZ |
8072 | enablestring= |
8073 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5 | |
8074 | echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6 | |
8075 | no_cache=0 | |
8076 | # Check whether --enable-colourpicker or --disable-colourpicker was given. | |
8077 | if test "${enable_colourpicker+set}" = set; then | |
8078 | enableval="$enable_colourpicker" | |
8079 | ||
8080 | if test "$enableval" = yes; then | |
8081 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes' | |
8082 | else | |
8083 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no' | |
8084 | fi | |
8085 | ||
8086 | else | |
8087 | ||
8088 | LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}` | |
8089 | if test "x$LINE" != x ; then | |
8090 | eval "DEFAULT_$LINE" | |
8091 | else | |
8092 | no_cache=1 | |
8093 | fi | |
8094 | ||
8095 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL | |
8096 | ||
8097 | fi; | |
8098 | ||
8099 | eval "$ac_cv_use_colourpicker" | |
8100 | if test "$no_cache" != 1; then | |
8101 | echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp | |
8102 | fi | |
8103 | ||
8104 | if test "$wxUSE_COLOURPICKERCTRL" = yes; then | |
8105 | echo "$as_me:$LINENO: result: yes" >&5 | |
8106 | echo "${ECHO_T}yes" >&6 | |
8107 | else | |
8108 | echo "$as_me:$LINENO: result: no" >&5 | |
8109 | echo "${ECHO_T}no" >&6 | |
8110 | fi | |
8111 | ||
8112 | ||
a848cd7e SC |
8113 | enablestring= |
8114 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
8115 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
8116 | no_cache=0 | |
8117 | # Check whether --enable-combobox or --disable-combobox was given. | |
8118 | if test "${enable_combobox+set}" = set; then | |
8119 | enableval="$enable_combobox" | |
8120 | ||
8121 | if test "$enableval" = yes; then | |
8122 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
8123 | else | |
8124 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
8125 | fi | |
8126 | ||
8127 | else | |
8128 | ||
8129 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
8130 | if test "x$LINE" != x ; then | |
8131 | eval "DEFAULT_$LINE" | |
8132 | else | |
8133 | no_cache=1 | |
8134 | fi | |
8135 | ||
8136 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
8137 | ||
8138 | fi; | |
8139 | ||
8140 | eval "$ac_cv_use_combobox" | |
8141 | if test "$no_cache" != 1; then | |
8142 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
8143 | fi | |
8144 | ||
8145 | if test "$wxUSE_COMBOBOX" = yes; then | |
8146 | echo "$as_me:$LINENO: result: yes" >&5 | |
8147 | echo "${ECHO_T}yes" >&6 | |
8148 | else | |
8149 | echo "$as_me:$LINENO: result: no" >&5 | |
8150 | echo "${ECHO_T}no" >&6 | |
8151 | fi | |
8152 | ||
8153 | ||
642bcba9 | 8154 | enablestring= |
a57d600f VZ |
8155 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5 |
8156 | echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6 | |
642bcba9 | 8157 | no_cache=0 |
a57d600f VZ |
8158 | # Check whether --enable-comboctrl or --disable-comboctrl was given. |
8159 | if test "${enable_comboctrl+set}" = set; then | |
8160 | enableval="$enable_comboctrl" | |
642bcba9 VZ |
8161 | |
8162 | if test "$enableval" = yes; then | |
a57d600f | 8163 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes' |
642bcba9 | 8164 | else |
a57d600f | 8165 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no' |
642bcba9 VZ |
8166 | fi |
8167 | ||
8168 | else | |
8169 | ||
a57d600f | 8170 | LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}` |
642bcba9 VZ |
8171 | if test "x$LINE" != x ; then |
8172 | eval "DEFAULT_$LINE" | |
8173 | else | |
8174 | no_cache=1 | |
8175 | fi | |
8176 | ||
a57d600f | 8177 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL |
642bcba9 VZ |
8178 | |
8179 | fi; | |
8180 | ||
a57d600f | 8181 | eval "$ac_cv_use_comboctrl" |
642bcba9 | 8182 | if test "$no_cache" != 1; then |
a57d600f | 8183 | echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8184 | fi |
8185 | ||
a57d600f | 8186 | if test "$wxUSE_COMBOCTRL" = yes; then |
642bcba9 VZ |
8187 | echo "$as_me:$LINENO: result: yes" >&5 |
8188 | echo "${ECHO_T}yes" >&6 | |
8189 | else | |
8190 | echo "$as_me:$LINENO: result: no" >&5 | |
8191 | echo "${ECHO_T}no" >&6 | |
8192 | fi | |
8193 | ||
8194 | ||
da98e9be VZ |
8195 | enablestring= |
8196 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
8197 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
8198 | no_cache=0 | |
8199 | # Check whether --enable-datepick or --disable-datepick was given. | |
8200 | if test "${enable_datepick+set}" = set; then | |
8201 | enableval="$enable_datepick" | |
8202 | ||
8203 | if test "$enableval" = yes; then | |
8204 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
8205 | else | |
8206 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
8207 | fi | |
8208 | ||
8209 | else | |
8210 | ||
8211 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
8212 | if test "x$LINE" != x ; then | |
8213 | eval "DEFAULT_$LINE" | |
8214 | else | |
8215 | no_cache=1 | |
8216 | fi | |
8217 | ||
8218 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
8219 | ||
8220 | fi; | |
8221 | ||
8222 | eval "$ac_cv_use_datepick" | |
8223 | if test "$no_cache" != 1; then | |
8224 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
8225 | fi | |
8226 | ||
8227 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
8228 | echo "$as_me:$LINENO: result: yes" >&5 | |
8229 | echo "${ECHO_T}yes" >&6 | |
8230 | else | |
8231 | echo "$as_me:$LINENO: result: no" >&5 | |
8232 | echo "${ECHO_T}no" >&6 | |
8233 | fi | |
8234 | ||
8235 | ||
e9263684 VZ |
8236 | enablestring= |
8237 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5 | |
8238 | echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6 | |
8239 | no_cache=0 | |
8240 | # Check whether --enable-dirpicker or --disable-dirpicker was given. | |
8241 | if test "${enable_dirpicker+set}" = set; then | |
8242 | enableval="$enable_dirpicker" | |
8243 | ||
8244 | if test "$enableval" = yes; then | |
8245 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes' | |
8246 | else | |
8247 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no' | |
8248 | fi | |
8249 | ||
8250 | else | |
8251 | ||
8252 | LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}` | |
8253 | if test "x$LINE" != x ; then | |
8254 | eval "DEFAULT_$LINE" | |
8255 | else | |
8256 | no_cache=1 | |
8257 | fi | |
8258 | ||
8259 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL | |
8260 | ||
8261 | fi; | |
8262 | ||
8263 | eval "$ac_cv_use_dirpicker" | |
8264 | if test "$no_cache" != 1; then | |
8265 | echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp | |
8266 | fi | |
8267 | ||
8268 | if test "$wxUSE_DIRPICKERCTRL" = yes; then | |
8269 | echo "$as_me:$LINENO: result: yes" >&5 | |
8270 | echo "${ECHO_T}yes" >&6 | |
8271 | else | |
8272 | echo "$as_me:$LINENO: result: no" >&5 | |
8273 | echo "${ECHO_T}no" >&6 | |
8274 | fi | |
8275 | ||
8276 | ||
a848cd7e SC |
8277 | enablestring= |
8278 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
8279 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
8280 | no_cache=0 | |
8281 | # Check whether --enable-display or --disable-display was given. | |
8282 | if test "${enable_display+set}" = set; then | |
8283 | enableval="$enable_display" | |
8284 | ||
8285 | if test "$enableval" = yes; then | |
8286 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
8287 | else | |
8288 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
8289 | fi | |
8290 | ||
8291 | else | |
8292 | ||
8293 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
8294 | if test "x$LINE" != x ; then | |
8295 | eval "DEFAULT_$LINE" | |
8296 | else | |
8297 | no_cache=1 | |
8298 | fi | |
8299 | ||
8300 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
8301 | ||
8302 | fi; | |
8303 | ||
8304 | eval "$ac_cv_use_display" | |
8305 | if test "$no_cache" != 1; then | |
8306 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
8307 | fi | |
8308 | ||
8309 | if test "$wxUSE_DISPLAY" = yes; then | |
8310 | echo "$as_me:$LINENO: result: yes" >&5 | |
8311 | echo "${ECHO_T}yes" >&6 | |
8312 | else | |
8313 | echo "$as_me:$LINENO: result: no" >&5 | |
8314 | echo "${ECHO_T}no" >&6 | |
8315 | fi | |
8316 | ||
8317 | ||
e9263684 VZ |
8318 | enablestring= |
8319 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5 | |
8320 | echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6 | |
8321 | no_cache=0 | |
8322 | # Check whether --enable-filepicker or --disable-filepicker was given. | |
8323 | if test "${enable_filepicker+set}" = set; then | |
8324 | enableval="$enable_filepicker" | |
8325 | ||
8326 | if test "$enableval" = yes; then | |
8327 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes' | |
8328 | else | |
8329 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no' | |
8330 | fi | |
8331 | ||
8332 | else | |
8333 | ||
8334 | LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}` | |
8335 | if test "x$LINE" != x ; then | |
8336 | eval "DEFAULT_$LINE" | |
8337 | else | |
8338 | no_cache=1 | |
8339 | fi | |
8340 | ||
8341 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL | |
8342 | ||
8343 | fi; | |
8344 | ||
8345 | eval "$ac_cv_use_filepicker" | |
8346 | if test "$no_cache" != 1; then | |
8347 | echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp | |
8348 | fi | |
8349 | ||
8350 | if test "$wxUSE_FILEPICKERCTRL" = yes; then | |
8351 | echo "$as_me:$LINENO: result: yes" >&5 | |
8352 | echo "${ECHO_T}yes" >&6 | |
8353 | else | |
8354 | echo "$as_me:$LINENO: result: no" >&5 | |
8355 | echo "${ECHO_T}no" >&6 | |
8356 | fi | |
8357 | ||
8358 | ||
8359 | enablestring= | |
8360 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5 | |
8361 | echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6 | |
8362 | no_cache=0 | |
8363 | # Check whether --enable-fontpicker or --disable-fontpicker was given. | |
8364 | if test "${enable_fontpicker+set}" = set; then | |
8365 | enableval="$enable_fontpicker" | |
8366 | ||
8367 | if test "$enableval" = yes; then | |
8368 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes' | |
8369 | else | |
8370 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no' | |
8371 | fi | |
8372 | ||
8373 | else | |
8374 | ||
8375 | LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}` | |
8376 | if test "x$LINE" != x ; then | |
8377 | eval "DEFAULT_$LINE" | |
8378 | else | |
8379 | no_cache=1 | |
8380 | fi | |
8381 | ||
8382 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL | |
8383 | ||
8384 | fi; | |
8385 | ||
8386 | eval "$ac_cv_use_fontpicker" | |
8387 | if test "$no_cache" != 1; then | |
8388 | echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp | |
8389 | fi | |
8390 | ||
8391 | if test "$wxUSE_FONTPICKERCTRL" = yes; then | |
8392 | echo "$as_me:$LINENO: result: yes" >&5 | |
8393 | echo "${ECHO_T}yes" >&6 | |
8394 | else | |
8395 | echo "$as_me:$LINENO: result: no" >&5 | |
8396 | echo "${ECHO_T}no" >&6 | |
8397 | fi | |
8398 | ||
8399 | ||
a848cd7e SC |
8400 | enablestring= |
8401 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
8402 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
8403 | no_cache=0 | |
8404 | # Check whether --enable-gauge or --disable-gauge was given. | |
8405 | if test "${enable_gauge+set}" = set; then | |
8406 | enableval="$enable_gauge" | |
8407 | ||
8408 | if test "$enableval" = yes; then | |
8409 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
8410 | else | |
8411 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
8412 | fi | |
8413 | ||
8414 | else | |
8415 | ||
8416 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
8417 | if test "x$LINE" != x ; then | |
8418 | eval "DEFAULT_$LINE" | |
8419 | else | |
8420 | no_cache=1 | |
8421 | fi | |
8422 | ||
8423 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8424 | ||
8425 | fi; | |
8426 | ||
8427 | eval "$ac_cv_use_gauge" | |
8428 | if test "$no_cache" != 1; then | |
8429 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8430 | fi | |
8431 | ||
8432 | if test "$wxUSE_GAUGE" = yes; then | |
8433 | echo "$as_me:$LINENO: result: yes" >&5 | |
8434 | echo "${ECHO_T}yes" >&6 | |
8435 | else | |
8436 | echo "$as_me:$LINENO: result: no" >&5 | |
8437 | echo "${ECHO_T}no" >&6 | |
8438 | fi | |
8439 | ||
8440 | ||
8441 | enablestring= | |
8442 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8443 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8444 | no_cache=0 | |
8445 | # Check whether --enable-grid or --disable-grid was given. | |
8446 | if test "${enable_grid+set}" = set; then | |
8447 | enableval="$enable_grid" | |
8448 | ||
8449 | if test "$enableval" = yes; then | |
8450 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8451 | else | |
8452 | ac_cv_use_grid='wxUSE_GRID=no' | |
8453 | fi | |
8454 | ||
8455 | else | |
8456 | ||
8457 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8458 | if test "x$LINE" != x ; then | |
8459 | eval "DEFAULT_$LINE" | |
8460 | else | |
8461 | no_cache=1 | |
8462 | fi | |
8463 | ||
8464 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8465 | ||
8466 | fi; | |
8467 | ||
8468 | eval "$ac_cv_use_grid" | |
8469 | if test "$no_cache" != 1; then | |
8470 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8471 | fi | |
8472 | ||
8473 | if test "$wxUSE_GRID" = yes; then | |
8474 | echo "$as_me:$LINENO: result: yes" >&5 | |
8475 | echo "${ECHO_T}yes" >&6 | |
8476 | else | |
8477 | echo "$as_me:$LINENO: result: no" >&5 | |
8478 | echo "${ECHO_T}no" >&6 | |
8479 | fi | |
8480 | ||
8481 | ||
20e34ecc RR |
8482 | enablestring= |
8483 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8484 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8485 | no_cache=0 | |
8486 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8487 | if test "${enable_dataviewctrl+set}" = set; then | |
8488 | enableval="$enable_dataviewctrl" | |
8489 | ||
8490 | if test "$enableval" = yes; then | |
8491 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8492 | else | |
8493 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8494 | fi | |
8495 | ||
8496 | else | |
8497 | ||
8498 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8499 | if test "x$LINE" != x ; then | |
8500 | eval "DEFAULT_$LINE" | |
8501 | else | |
8502 | no_cache=1 | |
8503 | fi | |
8504 | ||
8505 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8506 | ||
8507 | fi; | |
8508 | ||
8509 | eval "$ac_cv_use_dataviewctrl" | |
8510 | if test "$no_cache" != 1; then | |
8511 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8512 | fi | |
8513 | ||
8514 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8515 | echo "$as_me:$LINENO: result: yes" >&5 | |
8516 | echo "${ECHO_T}yes" >&6 | |
8517 | else | |
8518 | echo "$as_me:$LINENO: result: no" >&5 | |
8519 | echo "${ECHO_T}no" >&6 | |
8520 | fi | |
8521 | ||
8522 | ||
6954625c VZ |
8523 | enablestring= |
8524 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5 | |
8525 | echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6 | |
8526 | no_cache=0 | |
8527 | # Check whether --enable-hyperlink or --disable-hyperlink was given. | |
8528 | if test "${enable_hyperlink+set}" = set; then | |
8529 | enableval="$enable_hyperlink" | |
8530 | ||
8531 | if test "$enableval" = yes; then | |
8532 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes' | |
8533 | else | |
8534 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no' | |
8535 | fi | |
8536 | ||
8537 | else | |
8538 | ||
8539 | LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}` | |
8540 | if test "x$LINE" != x ; then | |
8541 | eval "DEFAULT_$LINE" | |
8542 | else | |
8543 | no_cache=1 | |
8544 | fi | |
8545 | ||
8546 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL | |
8547 | ||
8548 | fi; | |
8549 | ||
8550 | eval "$ac_cv_use_hyperlink" | |
8551 | if test "$no_cache" != 1; then | |
8552 | echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp | |
8553 | fi | |
8554 | ||
8555 | if test "$wxUSE_HYPERLINKCTRL" = yes; then | |
8556 | echo "$as_me:$LINENO: result: yes" >&5 | |
8557 | echo "${ECHO_T}yes" >&6 | |
8558 | else | |
8559 | echo "$as_me:$LINENO: result: no" >&5 | |
8560 | echo "${ECHO_T}no" >&6 | |
8561 | fi | |
8562 | ||
8563 | ||
a848cd7e SC |
8564 | enablestring= |
8565 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8566 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8567 | no_cache=0 | |
8568 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8569 | if test "${enable_imaglist+set}" = set; then | |
8570 | enableval="$enable_imaglist" | |
8571 | ||
8572 | if test "$enableval" = yes; then | |
8573 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8574 | else | |
8575 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8576 | fi | |
8577 | ||
8578 | else | |
8579 | ||
8580 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8581 | if test "x$LINE" != x ; then | |
8582 | eval "DEFAULT_$LINE" | |
8583 | else | |
8584 | no_cache=1 | |
8585 | fi | |
8586 | ||
8587 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8588 | ||
8589 | fi; | |
8590 | ||
8591 | eval "$ac_cv_use_imaglist" | |
8592 | if test "$no_cache" != 1; then | |
8593 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8594 | fi | |
8595 | ||
8596 | if test "$wxUSE_IMAGLIST" = yes; then | |
8597 | echo "$as_me:$LINENO: result: yes" >&5 | |
8598 | echo "${ECHO_T}yes" >&6 | |
8599 | else | |
8600 | echo "$as_me:$LINENO: result: no" >&5 | |
8601 | echo "${ECHO_T}no" >&6 | |
8602 | fi | |
8603 | ||
8604 | ||
8605 | enablestring= | |
8606 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8607 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8608 | no_cache=0 | |
8609 | # Check whether --enable-listbook or --disable-listbook was given. | |
8610 | if test "${enable_listbook+set}" = set; then | |
8611 | enableval="$enable_listbook" | |
8612 | ||
8613 | if test "$enableval" = yes; then | |
8614 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8615 | else | |
8616 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8617 | fi | |
8618 | ||
8619 | else | |
8620 | ||
8621 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8622 | if test "x$LINE" != x ; then | |
8623 | eval "DEFAULT_$LINE" | |
8624 | else | |
8625 | no_cache=1 | |
8626 | fi | |
8627 | ||
8628 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8629 | ||
8630 | fi; | |
8631 | ||
8632 | eval "$ac_cv_use_listbook" | |
8633 | if test "$no_cache" != 1; then | |
8634 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8635 | fi | |
8636 | ||
8637 | if test "$wxUSE_LISTBOOK" = yes; then | |
8638 | echo "$as_me:$LINENO: result: yes" >&5 | |
8639 | echo "${ECHO_T}yes" >&6 | |
8640 | else | |
8641 | echo "$as_me:$LINENO: result: no" >&5 | |
8642 | echo "${ECHO_T}no" >&6 | |
8643 | fi | |
8644 | ||
8645 | ||
8646 | enablestring= | |
8647 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8648 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8649 | no_cache=0 | |
8650 | # Check whether --enable-listbox or --disable-listbox was given. | |
8651 | if test "${enable_listbox+set}" = set; then | |
8652 | enableval="$enable_listbox" | |
8653 | ||
8654 | if test "$enableval" = yes; then | |
8655 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8656 | else | |
8657 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8658 | fi | |
8659 | ||
8660 | else | |
8661 | ||
8662 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8663 | if test "x$LINE" != x ; then | |
8664 | eval "DEFAULT_$LINE" | |
8665 | else | |
8666 | no_cache=1 | |
8667 | fi | |
8668 | ||
8669 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8670 | ||
8671 | fi; | |
8672 | ||
8673 | eval "$ac_cv_use_listbox" | |
8674 | if test "$no_cache" != 1; then | |
8675 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8676 | fi | |
8677 | ||
8678 | if test "$wxUSE_LISTBOX" = yes; then | |
8679 | echo "$as_me:$LINENO: result: yes" >&5 | |
8680 | echo "${ECHO_T}yes" >&6 | |
8681 | else | |
8682 | echo "$as_me:$LINENO: result: no" >&5 | |
8683 | echo "${ECHO_T}no" >&6 | |
8684 | fi | |
8685 | ||
8686 | ||
8687 | enablestring= | |
8688 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8689 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8690 | no_cache=0 | |
8691 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8692 | if test "${enable_listctrl+set}" = set; then | |
8693 | enableval="$enable_listctrl" | |
8694 | ||
8695 | if test "$enableval" = yes; then | |
8696 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8697 | else | |
8698 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8699 | fi | |
8700 | ||
8701 | else | |
8702 | ||
8703 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8704 | if test "x$LINE" != x ; then | |
8705 | eval "DEFAULT_$LINE" | |
8706 | else | |
8707 | no_cache=1 | |
8708 | fi | |
8709 | ||
8710 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8711 | ||
8712 | fi; | |
8713 | ||
8714 | eval "$ac_cv_use_listctrl" | |
8715 | if test "$no_cache" != 1; then | |
8716 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8717 | fi | |
8718 | ||
8719 | if test "$wxUSE_LISTCTRL" = yes; then | |
8720 | echo "$as_me:$LINENO: result: yes" >&5 | |
8721 | echo "${ECHO_T}yes" >&6 | |
8722 | else | |
8723 | echo "$as_me:$LINENO: result: no" >&5 | |
8724 | echo "${ECHO_T}no" >&6 | |
8725 | fi | |
8726 | ||
8727 | ||
8728 | enablestring= | |
8729 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8730 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8731 | no_cache=0 | |
8732 | # Check whether --enable-notebook or --disable-notebook was given. | |
8733 | if test "${enable_notebook+set}" = set; then | |
8734 | enableval="$enable_notebook" | |
8735 | ||
8736 | if test "$enableval" = yes; then | |
8737 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8738 | else | |
8739 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8740 | fi | |
8741 | ||
8742 | else | |
8743 | ||
8744 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8745 | if test "x$LINE" != x ; then | |
8746 | eval "DEFAULT_$LINE" | |
8747 | else | |
8748 | no_cache=1 | |
8749 | fi | |
8750 | ||
8751 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8752 | ||
8753 | fi; | |
8754 | ||
8755 | eval "$ac_cv_use_notebook" | |
8756 | if test "$no_cache" != 1; then | |
8757 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8758 | fi | |
8759 | ||
8760 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8761 | echo "$as_me:$LINENO: result: yes" >&5 | |
8762 | echo "${ECHO_T}yes" >&6 | |
8763 | else | |
8764 | echo "$as_me:$LINENO: result: no" >&5 | |
8765 | echo "${ECHO_T}no" >&6 | |
8766 | fi | |
8767 | ||
8768 | ||
642bcba9 | 8769 | enablestring= |
a57d600f VZ |
8770 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5 |
8771 | echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6 | |
642bcba9 | 8772 | no_cache=0 |
a57d600f VZ |
8773 | # Check whether --enable-odcombobox or --disable-odcombobox was given. |
8774 | if test "${enable_odcombobox+set}" = set; then | |
8775 | enableval="$enable_odcombobox" | |
642bcba9 VZ |
8776 | |
8777 | if test "$enableval" = yes; then | |
a57d600f | 8778 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes' |
642bcba9 | 8779 | else |
a57d600f | 8780 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no' |
642bcba9 VZ |
8781 | fi |
8782 | ||
8783 | else | |
8784 | ||
a57d600f | 8785 | LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}` |
642bcba9 VZ |
8786 | if test "x$LINE" != x ; then |
8787 | eval "DEFAULT_$LINE" | |
8788 | else | |
8789 | no_cache=1 | |
8790 | fi | |
8791 | ||
a57d600f | 8792 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX |
642bcba9 VZ |
8793 | |
8794 | fi; | |
8795 | ||
a57d600f | 8796 | eval "$ac_cv_use_odcombobox" |
642bcba9 | 8797 | if test "$no_cache" != 1; then |
a57d600f | 8798 | echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8799 | fi |
8800 | ||
a57d600f | 8801 | if test "$wxUSE_ODCOMBOBOX" = yes; then |
642bcba9 VZ |
8802 | echo "$as_me:$LINENO: result: yes" >&5 |
8803 | echo "${ECHO_T}yes" >&6 | |
8804 | else | |
8805 | echo "$as_me:$LINENO: result: no" >&5 | |
8806 | echo "${ECHO_T}no" >&6 | |
8807 | fi | |
8808 | ||
8809 | ||
a848cd7e SC |
8810 | enablestring= |
8811 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8812 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8813 | no_cache=0 | |
8814 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8815 | if test "${enable_radiobox+set}" = set; then | |
8816 | enableval="$enable_radiobox" | |
8817 | ||
8818 | if test "$enableval" = yes; then | |
8819 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8820 | else | |
8821 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8822 | fi | |
8823 | ||
8824 | else | |
8825 | ||
8826 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8827 | if test "x$LINE" != x ; then | |
8828 | eval "DEFAULT_$LINE" | |
8829 | else | |
8830 | no_cache=1 | |
8831 | fi | |
8832 | ||
8833 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8834 | ||
8835 | fi; | |
8836 | ||
8837 | eval "$ac_cv_use_radiobox" | |
8838 | if test "$no_cache" != 1; then | |
8839 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8840 | fi | |
8841 | ||
8842 | if test "$wxUSE_RADIOBOX" = yes; then | |
8843 | echo "$as_me:$LINENO: result: yes" >&5 | |
8844 | echo "${ECHO_T}yes" >&6 | |
8845 | else | |
8846 | echo "$as_me:$LINENO: result: no" >&5 | |
8847 | echo "${ECHO_T}no" >&6 | |
8848 | fi | |
8849 | ||
8850 | ||
8851 | enablestring= | |
8852 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8853 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8854 | no_cache=0 | |
8855 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8856 | if test "${enable_radiobtn+set}" = set; then | |
8857 | enableval="$enable_radiobtn" | |
8858 | ||
8859 | if test "$enableval" = yes; then | |
8860 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8861 | else | |
8862 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8863 | fi | |
8864 | ||
8865 | else | |
8866 | ||
8867 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8868 | if test "x$LINE" != x ; then | |
8869 | eval "DEFAULT_$LINE" | |
8870 | else | |
8871 | no_cache=1 | |
8872 | fi | |
8873 | ||
8874 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8875 | ||
8876 | fi; | |
8877 | ||
8878 | eval "$ac_cv_use_radiobtn" | |
8879 | if test "$no_cache" != 1; then | |
8880 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8881 | fi | |
8882 | ||
8883 | if test "$wxUSE_RADIOBTN" = yes; then | |
8884 | echo "$as_me:$LINENO: result: yes" >&5 | |
8885 | echo "${ECHO_T}yes" >&6 | |
8886 | else | |
8887 | echo "$as_me:$LINENO: result: no" >&5 | |
8888 | echo "${ECHO_T}no" >&6 | |
8889 | fi | |
8890 | ||
8891 | ||
8892 | enablestring= | |
8893 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8894 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8895 | no_cache=0 | |
8896 | # Check whether --enable-sash or --disable-sash was given. | |
8897 | if test "${enable_sash+set}" = set; then | |
8898 | enableval="$enable_sash" | |
8899 | ||
8900 | if test "$enableval" = yes; then | |
8901 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8902 | else | |
8903 | ac_cv_use_sash='wxUSE_SASH=no' | |
8904 | fi | |
8905 | ||
8906 | else | |
8907 | ||
8908 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8909 | if test "x$LINE" != x ; then | |
8910 | eval "DEFAULT_$LINE" | |
8911 | else | |
8912 | no_cache=1 | |
8913 | fi | |
8914 | ||
8915 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8916 | ||
8917 | fi; | |
8918 | ||
8919 | eval "$ac_cv_use_sash" | |
8920 | if test "$no_cache" != 1; then | |
8921 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8922 | fi | |
8923 | ||
8924 | if test "$wxUSE_SASH" = yes; then | |
8925 | echo "$as_me:$LINENO: result: yes" >&5 | |
8926 | echo "${ECHO_T}yes" >&6 | |
8927 | else | |
8928 | echo "$as_me:$LINENO: result: no" >&5 | |
8929 | echo "${ECHO_T}no" >&6 | |
8930 | fi | |
8931 | ||
8932 | ||
8933 | enablestring= | |
8934 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8935 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8936 | no_cache=0 | |
8937 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8938 | if test "${enable_scrollbar+set}" = set; then | |
8939 | enableval="$enable_scrollbar" | |
8940 | ||
8941 | if test "$enableval" = yes; then | |
8942 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8943 | else | |
8944 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8945 | fi | |
8946 | ||
8947 | else | |
8948 | ||
8949 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8950 | if test "x$LINE" != x ; then | |
8951 | eval "DEFAULT_$LINE" | |
8952 | else | |
8953 | no_cache=1 | |
8954 | fi | |
8955 | ||
8956 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8957 | ||
8958 | fi; | |
8959 | ||
8960 | eval "$ac_cv_use_scrollbar" | |
8961 | if test "$no_cache" != 1; then | |
8962 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8963 | fi | |
8964 | ||
8965 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8966 | echo "$as_me:$LINENO: result: yes" >&5 | |
8967 | echo "${ECHO_T}yes" >&6 | |
8968 | else | |
8969 | echo "$as_me:$LINENO: result: no" >&5 | |
8970 | echo "${ECHO_T}no" >&6 | |
8971 | fi | |
8972 | ||
8973 | ||
8974 | enablestring= | |
8975 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8976 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8977 | no_cache=0 | |
8978 | # Check whether --enable-slider or --disable-slider was given. | |
8979 | if test "${enable_slider+set}" = set; then | |
8980 | enableval="$enable_slider" | |
8981 | ||
8982 | if test "$enableval" = yes; then | |
8983 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8984 | else | |
8985 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8986 | fi | |
8987 | ||
8988 | else | |
8989 | ||
8990 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8991 | if test "x$LINE" != x ; then | |
8992 | eval "DEFAULT_$LINE" | |
8993 | else | |
8994 | no_cache=1 | |
8995 | fi | |
8996 | ||
8997 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8998 | ||
8999 | fi; | |
9000 | ||
9001 | eval "$ac_cv_use_slider" | |
9002 | if test "$no_cache" != 1; then | |
9003 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
9004 | fi | |
9005 | ||
9006 | if test "$wxUSE_SLIDER" = yes; then | |
9007 | echo "$as_me:$LINENO: result: yes" >&5 | |
9008 | echo "${ECHO_T}yes" >&6 | |
9009 | else | |
9010 | echo "$as_me:$LINENO: result: no" >&5 | |
9011 | echo "${ECHO_T}no" >&6 | |
9012 | fi | |
9013 | ||
9014 | ||
9015 | enablestring= | |
9016 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
9017 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
9018 | no_cache=0 | |
9019 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
9020 | if test "${enable_spinbtn+set}" = set; then | |
9021 | enableval="$enable_spinbtn" | |
9022 | ||
9023 | if test "$enableval" = yes; then | |
9024 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
9025 | else | |
9026 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
9027 | fi | |
9028 | ||
9029 | else | |
9030 | ||
9031 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
9032 | if test "x$LINE" != x ; then | |
9033 | eval "DEFAULT_$LINE" | |
9034 | else | |
9035 | no_cache=1 | |
9036 | fi | |
9037 | ||
9038 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
9039 | ||
9040 | fi; | |
9041 | ||
9042 | eval "$ac_cv_use_spinbtn" | |
9043 | if test "$no_cache" != 1; then | |
9044 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
9045 | fi | |
9046 | ||
9047 | if test "$wxUSE_SPINBTN" = yes; then | |
9048 | echo "$as_me:$LINENO: result: yes" >&5 | |
9049 | echo "${ECHO_T}yes" >&6 | |
9050 | else | |
9051 | echo "$as_me:$LINENO: result: no" >&5 | |
9052 | echo "${ECHO_T}no" >&6 | |
9053 | fi | |
9054 | ||
9055 | ||
9056 | enablestring= | |
9057 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
9058 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
9059 | no_cache=0 | |
9060 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
9061 | if test "${enable_spinctrl+set}" = set; then | |
9062 | enableval="$enable_spinctrl" | |
9063 | ||
9064 | if test "$enableval" = yes; then | |
9065 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
9066 | else | |
9067 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
9068 | fi | |
9069 | ||
9070 | else | |
9071 | ||
9072 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
9073 | if test "x$LINE" != x ; then | |
9074 | eval "DEFAULT_$LINE" | |
9075 | else | |
9076 | no_cache=1 | |
9077 | fi | |
9078 | ||
9079 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
9080 | ||
9081 | fi; | |
9082 | ||
9083 | eval "$ac_cv_use_spinctrl" | |
9084 | if test "$no_cache" != 1; then | |
9085 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
9086 | fi | |
9087 | ||
9088 | if test "$wxUSE_SPINCTRL" = yes; then | |
9089 | echo "$as_me:$LINENO: result: yes" >&5 | |
9090 | echo "${ECHO_T}yes" >&6 | |
9091 | else | |
9092 | echo "$as_me:$LINENO: result: no" >&5 | |
9093 | echo "${ECHO_T}no" >&6 | |
9094 | fi | |
9095 | ||
9096 | ||
9097 | enablestring= | |
9098 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
9099 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
9100 | no_cache=0 | |
9101 | # Check whether --enable-splitter or --disable-splitter was given. | |
9102 | if test "${enable_splitter+set}" = set; then | |
9103 | enableval="$enable_splitter" | |
9104 | ||
9105 | if test "$enableval" = yes; then | |
9106 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
9107 | else | |
9108 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
9109 | fi | |
9110 | ||
9111 | else | |
9112 | ||
9113 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
9114 | if test "x$LINE" != x ; then | |
9115 | eval "DEFAULT_$LINE" | |
9116 | else | |
9117 | no_cache=1 | |
9118 | fi | |
9119 | ||
9120 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
9121 | ||
9122 | fi; | |
9123 | ||
9124 | eval "$ac_cv_use_splitter" | |
9125 | if test "$no_cache" != 1; then | |
9126 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
9127 | fi | |
9128 | ||
9129 | if test "$wxUSE_SPLITTER" = yes; then | |
9130 | echo "$as_me:$LINENO: result: yes" >&5 | |
9131 | echo "${ECHO_T}yes" >&6 | |
9132 | else | |
9133 | echo "$as_me:$LINENO: result: no" >&5 | |
9134 | echo "${ECHO_T}no" >&6 | |
9135 | fi | |
9136 | ||
9137 | ||
9138 | enablestring= | |
9139 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
9140 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
9141 | no_cache=0 | |
9142 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
9143 | if test "${enable_statbmp+set}" = set; then | |
9144 | enableval="$enable_statbmp" | |
9145 | ||
9146 | if test "$enableval" = yes; then | |
9147 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
9148 | else | |
9149 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
9150 | fi | |
9151 | ||
9152 | else | |
9153 | ||
9154 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
9155 | if test "x$LINE" != x ; then | |
9156 | eval "DEFAULT_$LINE" | |
9157 | else | |
9158 | no_cache=1 | |
9159 | fi | |
9160 | ||
9161 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
9162 | ||
9163 | fi; | |
9164 | ||
9165 | eval "$ac_cv_use_statbmp" | |
9166 | if test "$no_cache" != 1; then | |
9167 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
9168 | fi | |
9169 | ||
9170 | if test "$wxUSE_STATBMP" = yes; then | |
9171 | echo "$as_me:$LINENO: result: yes" >&5 | |
9172 | echo "${ECHO_T}yes" >&6 | |
9173 | else | |
9174 | echo "$as_me:$LINENO: result: no" >&5 | |
9175 | echo "${ECHO_T}no" >&6 | |
9176 | fi | |
9177 | ||
9178 | ||
9179 | enablestring= | |
9180 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
9181 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
9182 | no_cache=0 | |
9183 | # Check whether --enable-statbox or --disable-statbox was given. | |
9184 | if test "${enable_statbox+set}" = set; then | |
9185 | enableval="$enable_statbox" | |
9186 | ||
9187 | if test "$enableval" = yes; then | |
9188 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
9189 | else | |
9190 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
9191 | fi | |
9192 | ||
9193 | else | |
9194 | ||
9195 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
9196 | if test "x$LINE" != x ; then | |
9197 | eval "DEFAULT_$LINE" | |
9198 | else | |
9199 | no_cache=1 | |
9200 | fi | |
9201 | ||
9202 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
9203 | ||
9204 | fi; | |
9205 | ||
9206 | eval "$ac_cv_use_statbox" | |
9207 | if test "$no_cache" != 1; then | |
9208 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
9209 | fi | |
9210 | ||
9211 | if test "$wxUSE_STATBOX" = yes; then | |
9212 | echo "$as_me:$LINENO: result: yes" >&5 | |
9213 | echo "${ECHO_T}yes" >&6 | |
9214 | else | |
9215 | echo "$as_me:$LINENO: result: no" >&5 | |
9216 | echo "${ECHO_T}no" >&6 | |
9217 | fi | |
9218 | ||
9219 | ||
9220 | enablestring= | |
9221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
9222 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
9223 | no_cache=0 | |
9224 | # Check whether --enable-statline or --disable-statline was given. | |
9225 | if test "${enable_statline+set}" = set; then | |
9226 | enableval="$enable_statline" | |
9227 | ||
9228 | if test "$enableval" = yes; then | |
9229 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
9230 | else | |
9231 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
9232 | fi | |
9233 | ||
9234 | else | |
9235 | ||
9236 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
9237 | if test "x$LINE" != x ; then | |
9238 | eval "DEFAULT_$LINE" | |
9239 | else | |
9240 | no_cache=1 | |
9241 | fi | |
9242 | ||
9243 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
9244 | ||
9245 | fi; | |
9246 | ||
9247 | eval "$ac_cv_use_statline" | |
9248 | if test "$no_cache" != 1; then | |
9249 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
9250 | fi | |
9251 | ||
9252 | if test "$wxUSE_STATLINE" = yes; then | |
9253 | echo "$as_me:$LINENO: result: yes" >&5 | |
9254 | echo "${ECHO_T}yes" >&6 | |
9255 | else | |
9256 | echo "$as_me:$LINENO: result: no" >&5 | |
9257 | echo "${ECHO_T}no" >&6 | |
9258 | fi | |
9259 | ||
9260 | ||
9261 | enablestring= | |
9262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
9263 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
9264 | no_cache=0 | |
9265 | # Check whether --enable-stattext or --disable-stattext was given. | |
9266 | if test "${enable_stattext+set}" = set; then | |
9267 | enableval="$enable_stattext" | |
9268 | ||
9269 | if test "$enableval" = yes; then | |
9270 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
9271 | else | |
9272 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
9273 | fi | |
9274 | ||
9275 | else | |
9276 | ||
9277 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
9278 | if test "x$LINE" != x ; then | |
9279 | eval "DEFAULT_$LINE" | |
9280 | else | |
9281 | no_cache=1 | |
9282 | fi | |
9283 | ||
9284 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
9285 | ||
9286 | fi; | |
9287 | ||
9288 | eval "$ac_cv_use_stattext" | |
9289 | if test "$no_cache" != 1; then | |
9290 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
9291 | fi | |
9292 | ||
9293 | if test "$wxUSE_STATTEXT" = yes; then | |
9294 | echo "$as_me:$LINENO: result: yes" >&5 | |
9295 | echo "${ECHO_T}yes" >&6 | |
9296 | else | |
9297 | echo "$as_me:$LINENO: result: no" >&5 | |
9298 | echo "${ECHO_T}no" >&6 | |
9299 | fi | |
9300 | ||
9301 | ||
9302 | enablestring= | |
9303 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
9304 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
9305 | no_cache=0 | |
9306 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
9307 | if test "${enable_statusbar+set}" = set; then | |
9308 | enableval="$enable_statusbar" | |
9309 | ||
9310 | if test "$enableval" = yes; then | |
9311 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
9312 | else | |
9313 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
9314 | fi | |
9315 | ||
9316 | else | |
9317 | ||
9318 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
9319 | if test "x$LINE" != x ; then | |
9320 | eval "DEFAULT_$LINE" | |
9321 | else | |
9322 | no_cache=1 | |
9323 | fi | |
9324 | ||
9325 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
9326 | ||
9327 | fi; | |
9328 | ||
9329 | eval "$ac_cv_use_statusbar" | |
9330 | if test "$no_cache" != 1; then | |
9331 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
9332 | fi | |
9333 | ||
9334 | if test "$wxUSE_STATUSBAR" = yes; then | |
9335 | echo "$as_me:$LINENO: result: yes" >&5 | |
9336 | echo "${ECHO_T}yes" >&6 | |
9337 | else | |
9338 | echo "$as_me:$LINENO: result: no" >&5 | |
9339 | echo "${ECHO_T}no" >&6 | |
9340 | fi | |
9341 | ||
9342 | ||
9343 | enablestring= | |
9344 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
9345 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
9346 | no_cache=0 | |
9347 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
9348 | if test "${enable_tabdialog+set}" = set; then | |
9349 | enableval="$enable_tabdialog" | |
9350 | ||
9351 | if test "$enableval" = yes; then | |
f10e38c4 | 9352 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes' |
a848cd7e | 9353 | else |
f10e38c4 | 9354 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no' |
a848cd7e SC |
9355 | fi |
9356 | ||
9357 | else | |
9358 | ||
f10e38c4 | 9359 | LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}` |
a848cd7e SC |
9360 | if test "x$LINE" != x ; then |
9361 | eval "DEFAULT_$LINE" | |
9362 | else | |
9363 | no_cache=1 | |
9364 | fi | |
9365 | ||
f10e38c4 | 9366 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG |
a848cd7e SC |
9367 | |
9368 | fi; | |
9369 | ||
9370 | eval "$ac_cv_use_tabdialog" | |
9371 | if test "$no_cache" != 1; then | |
9372 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
9373 | fi | |
9374 | ||
f10e38c4 | 9375 | if test "$wxUSE_TAB_DIALOG" = yes; then |
a848cd7e SC |
9376 | echo "$as_me:$LINENO: result: yes" >&5 |
9377 | echo "${ECHO_T}yes" >&6 | |
9378 | else | |
9379 | echo "$as_me:$LINENO: result: no" >&5 | |
9380 | echo "${ECHO_T}no" >&6 | |
9381 | fi | |
9382 | ||
9383 | ||
9384 | enablestring= | |
9385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
9386 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
9387 | no_cache=0 | |
9388 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
9389 | if test "${enable_textctrl+set}" = set; then | |
9390 | enableval="$enable_textctrl" | |
9391 | ||
9392 | if test "$enableval" = yes; then | |
9393 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
9394 | else | |
9395 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
9396 | fi | |
9397 | ||
9398 | else | |
9399 | ||
9400 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
9401 | if test "x$LINE" != x ; then | |
9402 | eval "DEFAULT_$LINE" | |
9403 | else | |
9404 | no_cache=1 | |
9405 | fi | |
9406 | ||
9407 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
9408 | ||
9409 | fi; | |
9410 | ||
9411 | eval "$ac_cv_use_textctrl" | |
9412 | if test "$no_cache" != 1; then | |
9413 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
9414 | fi | |
9415 | ||
9416 | if test "$wxUSE_TEXTCTRL" = yes; then | |
9417 | echo "$as_me:$LINENO: result: yes" >&5 | |
9418 | echo "${ECHO_T}yes" >&6 | |
9419 | else | |
9420 | echo "$as_me:$LINENO: result: no" >&5 | |
9421 | echo "${ECHO_T}no" >&6 | |
9422 | fi | |
9423 | ||
9424 | ||
9425 | enablestring= | |
9426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
9427 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
9428 | no_cache=0 | |
9429 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
9430 | if test "${enable_togglebtn+set}" = set; then | |
9431 | enableval="$enable_togglebtn" | |
9432 | ||
9433 | if test "$enableval" = yes; then | |
9434 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
9435 | else | |
9436 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
9437 | fi | |
9438 | ||
9439 | else | |
9440 | ||
9441 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
9442 | if test "x$LINE" != x ; then | |
9443 | eval "DEFAULT_$LINE" | |
9444 | else | |
9445 | no_cache=1 | |
9446 | fi | |
9447 | ||
9448 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
9449 | ||
9450 | fi; | |
9451 | ||
9452 | eval "$ac_cv_use_togglebtn" | |
9453 | if test "$no_cache" != 1; then | |
9454 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
9455 | fi | |
9456 | ||
9457 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
9458 | echo "$as_me:$LINENO: result: yes" >&5 | |
9459 | echo "${ECHO_T}yes" >&6 | |
9460 | else | |
9461 | echo "$as_me:$LINENO: result: no" >&5 | |
9462 | echo "${ECHO_T}no" >&6 | |
9463 | fi | |
9464 | ||
9465 | ||
9466 | enablestring= | |
9467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
9468 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
9469 | no_cache=0 | |
9470 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
9471 | if test "${enable_toolbar+set}" = set; then | |
9472 | enableval="$enable_toolbar" | |
9473 | ||
9474 | if test "$enableval" = yes; then | |
9475 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
9476 | else | |
9477 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
9478 | fi | |
9479 | ||
9480 | else | |
9481 | ||
9482 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
9483 | if test "x$LINE" != x ; then | |
9484 | eval "DEFAULT_$LINE" | |
9485 | else | |
9486 | no_cache=1 | |
9487 | fi | |
9488 | ||
9489 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
9490 | ||
9491 | fi; | |
9492 | ||
9493 | eval "$ac_cv_use_toolbar" | |
9494 | if test "$no_cache" != 1; then | |
9495 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
9496 | fi | |
9497 | ||
9498 | if test "$wxUSE_TOOLBAR" = yes; then | |
9499 | echo "$as_me:$LINENO: result: yes" >&5 | |
9500 | echo "${ECHO_T}yes" >&6 | |
9501 | else | |
9502 | echo "$as_me:$LINENO: result: no" >&5 | |
9503 | echo "${ECHO_T}no" >&6 | |
9504 | fi | |
9505 | ||
9506 | ||
9507 | enablestring= | |
9508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9509 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9510 | no_cache=0 | |
9511 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9512 | if test "${enable_tbarnative+set}" = set; then | |
9513 | enableval="$enable_tbarnative" | |
9514 | ||
9515 | if test "$enableval" = yes; then | |
9516 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9517 | else | |
9518 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9519 | fi | |
9520 | ||
9521 | else | |
9522 | ||
9523 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9524 | if test "x$LINE" != x ; then | |
9525 | eval "DEFAULT_$LINE" | |
9526 | else | |
9527 | no_cache=1 | |
9528 | fi | |
9529 | ||
9530 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9531 | ||
9532 | fi; | |
9533 | ||
9534 | eval "$ac_cv_use_tbarnative" | |
9535 | if test "$no_cache" != 1; then | |
9536 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9537 | fi | |
9538 | ||
9539 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9540 | echo "$as_me:$LINENO: result: yes" >&5 | |
9541 | echo "${ECHO_T}yes" >&6 | |
9542 | else | |
9543 | echo "$as_me:$LINENO: result: no" >&5 | |
9544 | echo "${ECHO_T}no" >&6 | |
9545 | fi | |
9546 | ||
9547 | ||
9548 | enablestring= | |
9549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9550 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9551 | no_cache=0 | |
9552 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9553 | if test "${enable_tbarsmpl+set}" = set; then | |
9554 | enableval="$enable_tbarsmpl" | |
9555 | ||
9556 | if test "$enableval" = yes; then | |
9557 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9558 | else | |
9559 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9560 | fi | |
9561 | ||
9562 | else | |
9563 | ||
9564 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9565 | if test "x$LINE" != x ; then | |
9566 | eval "DEFAULT_$LINE" | |
9567 | else | |
9568 | no_cache=1 | |
9569 | fi | |
9570 | ||
9571 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9572 | ||
9573 | fi; | |
9574 | ||
9575 | eval "$ac_cv_use_tbarsmpl" | |
9576 | if test "$no_cache" != 1; then | |
9577 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9578 | fi | |
9579 | ||
9580 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9581 | echo "$as_me:$LINENO: result: yes" >&5 | |
9582 | echo "${ECHO_T}yes" >&6 | |
9583 | else | |
9584 | echo "$as_me:$LINENO: result: no" >&5 | |
9585 | echo "${ECHO_T}no" >&6 | |
9586 | fi | |
9587 | ||
9588 | ||
0093c2fc VZ |
9589 | enablestring= |
9590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9591 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9592 | no_cache=0 | |
9593 | # Check whether --enable-treebook or --disable-treebook was given. | |
9594 | if test "${enable_treebook+set}" = set; then | |
9595 | enableval="$enable_treebook" | |
9596 | ||
9597 | if test "$enableval" = yes; then | |
9598 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9599 | else | |
9600 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9601 | fi | |
9602 | ||
9603 | else | |
9604 | ||
9605 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9606 | if test "x$LINE" != x ; then | |
9607 | eval "DEFAULT_$LINE" | |
9608 | else | |
9609 | no_cache=1 | |
9610 | fi | |
9611 | ||
9612 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9613 | ||
9614 | fi; | |
9615 | ||
9616 | eval "$ac_cv_use_treebook" | |
9617 | if test "$no_cache" != 1; then | |
9618 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9619 | fi | |
9620 | ||
9621 | if test "$wxUSE_TREEBOOK" = yes; then | |
9622 | echo "$as_me:$LINENO: result: yes" >&5 | |
9623 | echo "${ECHO_T}yes" >&6 | |
9624 | else | |
9625 | echo "$as_me:$LINENO: result: no" >&5 | |
9626 | echo "${ECHO_T}no" >&6 | |
9627 | fi | |
9628 | ||
9629 | ||
5ec3bc43 JS |
9630 | enablestring= |
9631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 | |
9632 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6 | |
9633 | no_cache=0 | |
9634 | # Check whether --enable-toolbook or --disable-toolbook was given. | |
9635 | if test "${enable_toolbook+set}" = set; then | |
9636 | enableval="$enable_toolbook" | |
9637 | ||
9638 | if test "$enableval" = yes; then | |
9639 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
9640 | else | |
9641 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
9642 | fi | |
9643 | ||
9644 | else | |
9645 | ||
9646 | LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}` | |
9647 | if test "x$LINE" != x ; then | |
9648 | eval "DEFAULT_$LINE" | |
9649 | else | |
9650 | no_cache=1 | |
9651 | fi | |
9652 | ||
9653 | ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK | |
9654 | ||
9655 | fi; | |
9656 | ||
9657 | eval "$ac_cv_use_toolbook" | |
9658 | if test "$no_cache" != 1; then | |
9659 | echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp | |
9660 | fi | |
9661 | ||
9662 | if test "$wxUSE_TOOLBOOK" = yes; then | |
9663 | echo "$as_me:$LINENO: result: yes" >&5 | |
9664 | echo "${ECHO_T}yes" >&6 | |
9665 | else | |
9666 | echo "$as_me:$LINENO: result: no" >&5 | |
9667 | echo "${ECHO_T}no" >&6 | |
9668 | fi | |
9669 | ||
9670 | ||
a848cd7e SC |
9671 | enablestring= |
9672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9673 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9674 | no_cache=0 | |
9675 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9676 | if test "${enable_treectrl+set}" = set; then | |
9677 | enableval="$enable_treectrl" | |
9678 | ||
9679 | if test "$enableval" = yes; then | |
9680 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9681 | else | |
9682 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9683 | fi | |
9684 | ||
9685 | else | |
9686 | ||
9687 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9688 | if test "x$LINE" != x ; then | |
9689 | eval "DEFAULT_$LINE" | |
9690 | else | |
9691 | no_cache=1 | |
9692 | fi | |
9693 | ||
9694 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9695 | ||
9696 | fi; | |
9697 | ||
9698 | eval "$ac_cv_use_treectrl" | |
9699 | if test "$no_cache" != 1; then | |
9700 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9701 | fi | |
9702 | ||
9703 | if test "$wxUSE_TREECTRL" = yes; then | |
9704 | echo "$as_me:$LINENO: result: yes" >&5 | |
9705 | echo "${ECHO_T}yes" >&6 | |
9706 | else | |
9707 | echo "$as_me:$LINENO: result: no" >&5 | |
9708 | echo "${ECHO_T}no" >&6 | |
9709 | fi | |
9710 | ||
9711 | ||
9712 | enablestring= | |
9713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9714 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9715 | no_cache=0 | |
9716 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9717 | if test "${enable_tipwindow+set}" = set; then | |
9718 | enableval="$enable_tipwindow" | |
9719 | ||
9720 | if test "$enableval" = yes; then | |
9721 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9722 | else | |
9723 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9724 | fi | |
9725 | ||
9726 | else | |
9727 | ||
9728 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9729 | if test "x$LINE" != x ; then | |
9730 | eval "DEFAULT_$LINE" | |
9731 | else | |
9732 | no_cache=1 | |
9733 | fi | |
9734 | ||
9735 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9736 | ||
9737 | fi; | |
9738 | ||
9739 | eval "$ac_cv_use_tipwindow" | |
9740 | if test "$no_cache" != 1; then | |
9741 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9742 | fi | |
9743 | ||
9744 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9745 | echo "$as_me:$LINENO: result: yes" >&5 | |
9746 | echo "${ECHO_T}yes" >&6 | |
9747 | else | |
9748 | echo "$as_me:$LINENO: result: no" >&5 | |
9749 | echo "${ECHO_T}no" >&6 | |
9750 | fi | |
9751 | ||
9752 | ||
9753 | enablestring= | |
9754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9755 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9756 | no_cache=0 | |
9757 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9758 | if test "${enable_popupwin+set}" = set; then | |
9759 | enableval="$enable_popupwin" | |
9760 | ||
9761 | if test "$enableval" = yes; then | |
9762 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9763 | else | |
9764 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9765 | fi | |
9766 | ||
9767 | else | |
9768 | ||
9769 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9770 | if test "x$LINE" != x ; then | |
9771 | eval "DEFAULT_$LINE" | |
9772 | else | |
9773 | no_cache=1 | |
9774 | fi | |
9775 | ||
9776 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9777 | ||
9778 | fi; | |
9779 | ||
9780 | eval "$ac_cv_use_popupwin" | |
9781 | if test "$no_cache" != 1; then | |
9782 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9783 | fi | |
9784 | ||
9785 | if test "$wxUSE_POPUPWIN" = yes; then | |
9786 | echo "$as_me:$LINENO: result: yes" >&5 | |
9787 | echo "${ECHO_T}yes" >&6 | |
9788 | else | |
9789 | echo "$as_me:$LINENO: result: no" >&5 | |
9790 | echo "${ECHO_T}no" >&6 | |
9791 | fi | |
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | enablestring= | |
9797 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9798 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9799 | no_cache=0 | |
9800 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9801 | if test "${enable_commondlg+set}" = set; then | |
9802 | enableval="$enable_commondlg" | |
9803 | ||
9804 | if test "$enableval" = yes; then | |
9805 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9806 | else | |
9807 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9808 | fi | |
9809 | ||
9810 | else | |
9811 | ||
9812 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9813 | if test "x$LINE" != x ; then | |
9814 | eval "DEFAULT_$LINE" | |
9815 | else | |
9816 | no_cache=1 | |
9817 | fi | |
9818 | ||
9819 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9820 | ||
9821 | fi; | |
9822 | ||
9823 | eval "$ac_cv_use_commondlg" | |
9824 | if test "$no_cache" != 1; then | |
9825 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9826 | fi | |
9827 | ||
9828 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9829 | echo "$as_me:$LINENO: result: yes" >&5 | |
9830 | echo "${ECHO_T}yes" >&6 | |
9831 | else | |
9832 | echo "$as_me:$LINENO: result: no" >&5 | |
9833 | echo "${ECHO_T}no" >&6 | |
9834 | fi | |
9835 | ||
9836 | ||
9837 | enablestring= | |
9838 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9839 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9840 | no_cache=0 | |
9841 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9842 | if test "${enable_choicedlg+set}" = set; then | |
9843 | enableval="$enable_choicedlg" | |
9844 | ||
9845 | if test "$enableval" = yes; then | |
9846 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9847 | else | |
9848 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9849 | fi | |
9850 | ||
9851 | else | |
9852 | ||
9853 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9854 | if test "x$LINE" != x ; then | |
9855 | eval "DEFAULT_$LINE" | |
9856 | else | |
9857 | no_cache=1 | |
9858 | fi | |
9859 | ||
9860 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9861 | ||
9862 | fi; | |
9863 | ||
9864 | eval "$ac_cv_use_choicedlg" | |
9865 | if test "$no_cache" != 1; then | |
9866 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9867 | fi | |
9868 | ||
9869 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9870 | echo "$as_me:$LINENO: result: yes" >&5 | |
9871 | echo "${ECHO_T}yes" >&6 | |
9872 | else | |
9873 | echo "$as_me:$LINENO: result: no" >&5 | |
9874 | echo "${ECHO_T}no" >&6 | |
9875 | fi | |
9876 | ||
9877 | ||
9878 | enablestring= | |
9879 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9880 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9881 | no_cache=0 | |
9882 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9883 | if test "${enable_coldlg+set}" = set; then | |
9884 | enableval="$enable_coldlg" | |
9885 | ||
9886 | if test "$enableval" = yes; then | |
9887 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9888 | else | |
9889 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9890 | fi | |
9891 | ||
9892 | else | |
9893 | ||
9894 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9895 | if test "x$LINE" != x ; then | |
9896 | eval "DEFAULT_$LINE" | |
9897 | else | |
9898 | no_cache=1 | |
9899 | fi | |
9900 | ||
9901 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9902 | ||
9903 | fi; | |
9904 | ||
9905 | eval "$ac_cv_use_coldlg" | |
9906 | if test "$no_cache" != 1; then | |
9907 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9908 | fi | |
9909 | ||
9910 | if test "$wxUSE_COLOURDLG" = yes; then | |
9911 | echo "$as_me:$LINENO: result: yes" >&5 | |
9912 | echo "${ECHO_T}yes" >&6 | |
9913 | else | |
9914 | echo "$as_me:$LINENO: result: no" >&5 | |
9915 | echo "${ECHO_T}no" >&6 | |
9916 | fi | |
9917 | ||
9918 | ||
9919 | enablestring= | |
9920 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9921 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9922 | no_cache=0 | |
9923 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9924 | if test "${enable_filedlg+set}" = set; then | |
9925 | enableval="$enable_filedlg" | |
9926 | ||
9927 | if test "$enableval" = yes; then | |
9928 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9929 | else | |
9930 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9931 | fi | |
9932 | ||
9933 | else | |
9934 | ||
9935 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9936 | if test "x$LINE" != x ; then | |
9937 | eval "DEFAULT_$LINE" | |
9938 | else | |
9939 | no_cache=1 | |
9940 | fi | |
9941 | ||
9942 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9943 | ||
9944 | fi; | |
9945 | ||
9946 | eval "$ac_cv_use_filedlg" | |
9947 | if test "$no_cache" != 1; then | |
9948 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9949 | fi | |
9950 | ||
9951 | if test "$wxUSE_FILEDLG" = yes; then | |
9952 | echo "$as_me:$LINENO: result: yes" >&5 | |
9953 | echo "${ECHO_T}yes" >&6 | |
9954 | else | |
9955 | echo "$as_me:$LINENO: result: no" >&5 | |
9956 | echo "${ECHO_T}no" >&6 | |
9957 | fi | |
9958 | ||
9959 | ||
9960 | enablestring= | |
9961 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9962 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9963 | no_cache=0 | |
9964 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9965 | if test "${enable_finddlg+set}" = set; then | |
9966 | enableval="$enable_finddlg" | |
9967 | ||
9968 | if test "$enableval" = yes; then | |
9969 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9970 | else | |
9971 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9972 | fi | |
9973 | ||
9974 | else | |
9975 | ||
9976 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9977 | if test "x$LINE" != x ; then | |
9978 | eval "DEFAULT_$LINE" | |
9979 | else | |
9980 | no_cache=1 | |
9981 | fi | |
9982 | ||
9983 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9984 | ||
9985 | fi; | |
9986 | ||
9987 | eval "$ac_cv_use_finddlg" | |
9988 | if test "$no_cache" != 1; then | |
9989 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9990 | fi | |
9991 | ||
9992 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9993 | echo "$as_me:$LINENO: result: yes" >&5 | |
9994 | echo "${ECHO_T}yes" >&6 | |
9995 | else | |
9996 | echo "$as_me:$LINENO: result: no" >&5 | |
9997 | echo "${ECHO_T}no" >&6 | |
9998 | fi | |
9999 | ||
10000 | ||
10001 | enablestring= | |
10002 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
10003 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
10004 | no_cache=0 | |
10005 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
10006 | if test "${enable_fontdlg+set}" = set; then | |
10007 | enableval="$enable_fontdlg" | |
10008 | ||
10009 | if test "$enableval" = yes; then | |
10010 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
10011 | else | |
10012 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
10013 | fi | |
10014 | ||
10015 | else | |
10016 | ||
10017 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
10018 | if test "x$LINE" != x ; then | |
10019 | eval "DEFAULT_$LINE" | |
10020 | else | |
10021 | no_cache=1 | |
10022 | fi | |
10023 | ||
10024 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
10025 | ||
10026 | fi; | |
10027 | ||
10028 | eval "$ac_cv_use_fontdlg" | |
10029 | if test "$no_cache" != 1; then | |
10030 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
10031 | fi | |
10032 | ||
10033 | if test "$wxUSE_FONTDLG" = yes; then | |
10034 | echo "$as_me:$LINENO: result: yes" >&5 | |
10035 | echo "${ECHO_T}yes" >&6 | |
10036 | else | |
10037 | echo "$as_me:$LINENO: result: no" >&5 | |
10038 | echo "${ECHO_T}no" >&6 | |
10039 | fi | |
10040 | ||
10041 | ||
10042 | enablestring= | |
10043 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
10044 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
10045 | no_cache=0 | |
10046 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
10047 | if test "${enable_dirdlg+set}" = set; then | |
10048 | enableval="$enable_dirdlg" | |
10049 | ||
10050 | if test "$enableval" = yes; then | |
10051 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
10052 | else | |
10053 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
10054 | fi | |
10055 | ||
10056 | else | |
10057 | ||
10058 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
10059 | if test "x$LINE" != x ; then | |
10060 | eval "DEFAULT_$LINE" | |
10061 | else | |
10062 | no_cache=1 | |
10063 | fi | |
10064 | ||
10065 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
10066 | ||
10067 | fi; | |
10068 | ||
10069 | eval "$ac_cv_use_dirdlg" | |
10070 | if test "$no_cache" != 1; then | |
10071 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
10072 | fi | |
10073 | ||
10074 | if test "$wxUSE_DIRDLG" = yes; then | |
10075 | echo "$as_me:$LINENO: result: yes" >&5 | |
10076 | echo "${ECHO_T}yes" >&6 | |
10077 | else | |
10078 | echo "$as_me:$LINENO: result: no" >&5 | |
10079 | echo "${ECHO_T}no" >&6 | |
10080 | fi | |
10081 | ||
10082 | ||
10083 | enablestring= | |
10084 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
10085 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10086 | no_cache=0 | |
10087 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
10088 | if test "${enable_msgdlg+set}" = set; then | |
10089 | enableval="$enable_msgdlg" | |
10090 | ||
10091 | if test "$enableval" = yes; then | |
10092 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
10093 | else | |
10094 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
10095 | fi | |
10096 | ||
10097 | else | |
10098 | ||
10099 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
10100 | if test "x$LINE" != x ; then | |
10101 | eval "DEFAULT_$LINE" | |
10102 | else | |
10103 | no_cache=1 | |
10104 | fi | |
10105 | ||
10106 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
10107 | ||
10108 | fi; | |
10109 | ||
10110 | eval "$ac_cv_use_msgdlg" | |
10111 | if test "$no_cache" != 1; then | |
10112 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
10113 | fi | |
10114 | ||
10115 | if test "$wxUSE_MSGDLG" = yes; then | |
10116 | echo "$as_me:$LINENO: result: yes" >&5 | |
10117 | echo "${ECHO_T}yes" >&6 | |
10118 | else | |
10119 | echo "$as_me:$LINENO: result: no" >&5 | |
10120 | echo "${ECHO_T}no" >&6 | |
10121 | fi | |
10122 | ||
10123 | ||
10124 | enablestring= | |
10125 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
10126 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10127 | no_cache=0 | |
10128 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
10129 | if test "${enable_numberdlg+set}" = set; then | |
10130 | enableval="$enable_numberdlg" | |
10131 | ||
10132 | if test "$enableval" = yes; then | |
10133 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
10134 | else | |
10135 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
10136 | fi | |
10137 | ||
10138 | else | |
10139 | ||
10140 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
10141 | if test "x$LINE" != x ; then | |
10142 | eval "DEFAULT_$LINE" | |
10143 | else | |
10144 | no_cache=1 | |
10145 | fi | |
10146 | ||
10147 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
10148 | ||
10149 | fi; | |
10150 | ||
10151 | eval "$ac_cv_use_numberdlg" | |
10152 | if test "$no_cache" != 1; then | |
10153 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
10154 | fi | |
10155 | ||
10156 | if test "$wxUSE_NUMBERDLG" = yes; then | |
10157 | echo "$as_me:$LINENO: result: yes" >&5 | |
10158 | echo "${ECHO_T}yes" >&6 | |
10159 | else | |
10160 | echo "$as_me:$LINENO: result: no" >&5 | |
10161 | echo "${ECHO_T}no" >&6 | |
10162 | fi | |
10163 | ||
10164 | ||
10165 | enablestring= | |
10166 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
10167 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
10168 | no_cache=0 | |
10169 | # Check whether --enable-splash or --disable-splash was given. | |
10170 | if test "${enable_splash+set}" = set; then | |
10171 | enableval="$enable_splash" | |
10172 | ||
10173 | if test "$enableval" = yes; then | |
10174 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
10175 | else | |
10176 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
10177 | fi | |
10178 | ||
10179 | else | |
10180 | ||
10181 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
10182 | if test "x$LINE" != x ; then | |
10183 | eval "DEFAULT_$LINE" | |
10184 | else | |
10185 | no_cache=1 | |
10186 | fi | |
10187 | ||
10188 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
10189 | ||
10190 | fi; | |
10191 | ||
10192 | eval "$ac_cv_use_splash" | |
10193 | if test "$no_cache" != 1; then | |
10194 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
10195 | fi | |
10196 | ||
10197 | if test "$wxUSE_SPLASH" = yes; then | |
10198 | echo "$as_me:$LINENO: result: yes" >&5 | |
10199 | echo "${ECHO_T}yes" >&6 | |
10200 | else | |
10201 | echo "$as_me:$LINENO: result: no" >&5 | |
10202 | echo "${ECHO_T}no" >&6 | |
10203 | fi | |
10204 | ||
10205 | ||
10206 | enablestring= | |
10207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
10208 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10209 | no_cache=0 | |
10210 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
10211 | if test "${enable_textdlg+set}" = set; then | |
10212 | enableval="$enable_textdlg" | |
10213 | ||
10214 | if test "$enableval" = yes; then | |
10215 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
10216 | else | |
10217 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
10218 | fi | |
10219 | ||
10220 | else | |
10221 | ||
10222 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
10223 | if test "x$LINE" != x ; then | |
10224 | eval "DEFAULT_$LINE" | |
10225 | else | |
10226 | no_cache=1 | |
10227 | fi | |
10228 | ||
10229 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10230 | ||
10231 | fi; | |
10232 | ||
10233 | eval "$ac_cv_use_textdlg" | |
10234 | if test "$no_cache" != 1; then | |
10235 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
10236 | fi | |
10237 | ||
10238 | if test "$wxUSE_TEXTDLG" = yes; then | |
10239 | echo "$as_me:$LINENO: result: yes" >&5 | |
10240 | echo "${ECHO_T}yes" >&6 | |
10241 | else | |
10242 | echo "$as_me:$LINENO: result: no" >&5 | |
10243 | echo "${ECHO_T}no" >&6 | |
10244 | fi | |
10245 | ||
10246 | ||
10247 | enablestring= | |
10248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
10249 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10250 | no_cache=0 | |
10251 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
10252 | if test "${enable_tipdlg+set}" = set; then | |
10253 | enableval="$enable_tipdlg" | |
10254 | ||
10255 | if test "$enableval" = yes; then | |
10256 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
10257 | else | |
10258 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
10259 | fi | |
10260 | ||
10261 | else | |
10262 | ||
10263 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
10264 | if test "x$LINE" != x ; then | |
10265 | eval "DEFAULT_$LINE" | |
10266 | else | |
10267 | no_cache=1 | |
10268 | fi | |
10269 | ||
10270 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10271 | ||
10272 | fi; | |
10273 | ||
10274 | eval "$ac_cv_use_tipdlg" | |
10275 | if test "$no_cache" != 1; then | |
10276 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
10277 | fi | |
10278 | ||
10279 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
10280 | echo "$as_me:$LINENO: result: yes" >&5 | |
10281 | echo "${ECHO_T}yes" >&6 | |
10282 | else | |
10283 | echo "$as_me:$LINENO: result: no" >&5 | |
10284 | echo "${ECHO_T}no" >&6 | |
10285 | fi | |
10286 | ||
10287 | ||
10288 | enablestring= | |
10289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
10290 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10291 | no_cache=0 | |
10292 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
10293 | if test "${enable_progressdlg+set}" = set; then | |
10294 | enableval="$enable_progressdlg" | |
10295 | ||
10296 | if test "$enableval" = yes; then | |
10297 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
10298 | else | |
10299 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
10300 | fi | |
10301 | ||
10302 | else | |
10303 | ||
10304 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
10305 | if test "x$LINE" != x ; then | |
10306 | eval "DEFAULT_$LINE" | |
10307 | else | |
10308 | no_cache=1 | |
10309 | fi | |
10310 | ||
10311 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10312 | ||
10313 | fi; | |
10314 | ||
10315 | eval "$ac_cv_use_progressdlg" | |
10316 | if test "$no_cache" != 1; then | |
10317 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
10318 | fi | |
10319 | ||
10320 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
10321 | echo "$as_me:$LINENO: result: yes" >&5 | |
10322 | echo "${ECHO_T}yes" >&6 | |
10323 | else | |
10324 | echo "$as_me:$LINENO: result: no" >&5 | |
10325 | echo "${ECHO_T}no" >&6 | |
10326 | fi | |
10327 | ||
10328 | ||
10329 | enablestring= | |
10330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
10331 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
10332 | no_cache=0 | |
10333 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
10334 | if test "${enable_wizarddlg+set}" = set; then | |
10335 | enableval="$enable_wizarddlg" | |
10336 | ||
10337 | if test "$enableval" = yes; then | |
10338 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
10339 | else | |
10340 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
10341 | fi | |
10342 | ||
10343 | else | |
10344 | ||
10345 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
10346 | if test "x$LINE" != x ; then | |
10347 | eval "DEFAULT_$LINE" | |
10348 | else | |
10349 | no_cache=1 | |
10350 | fi | |
10351 | ||
10352 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
10353 | ||
10354 | fi; | |
10355 | ||
10356 | eval "$ac_cv_use_wizarddlg" | |
10357 | if test "$no_cache" != 1; then | |
10358 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
10359 | fi | |
10360 | ||
10361 | if test "$wxUSE_WIZARDDLG" = yes; then | |
10362 | echo "$as_me:$LINENO: result: yes" >&5 | |
10363 | echo "${ECHO_T}yes" >&6 | |
10364 | else | |
10365 | echo "$as_me:$LINENO: result: no" >&5 | |
10366 | echo "${ECHO_T}no" >&6 | |
10367 | fi | |
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | enablestring= | |
10373 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
10374 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
10375 | no_cache=0 | |
10376 | # Check whether --enable-menus or --disable-menus was given. | |
10377 | if test "${enable_menus+set}" = set; then | |
10378 | enableval="$enable_menus" | |
10379 | ||
10380 | if test "$enableval" = yes; then | |
10381 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
10382 | else | |
10383 | ac_cv_use_menus='wxUSE_MENUS=no' | |
10384 | fi | |
10385 | ||
10386 | else | |
10387 | ||
10388 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
10389 | if test "x$LINE" != x ; then | |
10390 | eval "DEFAULT_$LINE" | |
10391 | else | |
10392 | no_cache=1 | |
10393 | fi | |
10394 | ||
10395 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
10396 | ||
10397 | fi; | |
10398 | ||
10399 | eval "$ac_cv_use_menus" | |
10400 | if test "$no_cache" != 1; then | |
10401 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
10402 | fi | |
10403 | ||
10404 | if test "$wxUSE_MENUS" = yes; then | |
10405 | echo "$as_me:$LINENO: result: yes" >&5 | |
10406 | echo "${ECHO_T}yes" >&6 | |
10407 | else | |
10408 | echo "$as_me:$LINENO: result: no" >&5 | |
10409 | echo "${ECHO_T}no" >&6 | |
10410 | fi | |
10411 | ||
10412 | ||
10413 | enablestring= | |
10414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
10415 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10416 | no_cache=0 | |
10417 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
10418 | if test "${enable_miniframe+set}" = set; then | |
10419 | enableval="$enable_miniframe" | |
10420 | ||
10421 | if test "$enableval" = yes; then | |
10422 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
10423 | else | |
10424 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
10425 | fi | |
10426 | ||
10427 | else | |
10428 | ||
10429 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
10430 | if test "x$LINE" != x ; then | |
10431 | eval "DEFAULT_$LINE" | |
10432 | else | |
10433 | no_cache=1 | |
10434 | fi | |
10435 | ||
10436 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10437 | ||
10438 | fi; | |
10439 | ||
10440 | eval "$ac_cv_use_miniframe" | |
10441 | if test "$no_cache" != 1; then | |
10442 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
10443 | fi | |
10444 | ||
10445 | if test "$wxUSE_MINIFRAME" = yes; then | |
10446 | echo "$as_me:$LINENO: result: yes" >&5 | |
10447 | echo "${ECHO_T}yes" >&6 | |
10448 | else | |
10449 | echo "$as_me:$LINENO: result: no" >&5 | |
10450 | echo "${ECHO_T}no" >&6 | |
10451 | fi | |
10452 | ||
10453 | ||
10454 | enablestring= | |
10455 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
10456 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10457 | no_cache=0 | |
10458 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
10459 | if test "${enable_tooltips+set}" = set; then | |
10460 | enableval="$enable_tooltips" | |
10461 | ||
10462 | if test "$enableval" = yes; then | |
10463 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
10464 | else | |
10465 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
10466 | fi | |
10467 | ||
10468 | else | |
10469 | ||
10470 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
10471 | if test "x$LINE" != x ; then | |
10472 | eval "DEFAULT_$LINE" | |
10473 | else | |
10474 | no_cache=1 | |
10475 | fi | |
10476 | ||
10477 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10478 | ||
10479 | fi; | |
10480 | ||
10481 | eval "$ac_cv_use_tooltips" | |
10482 | if test "$no_cache" != 1; then | |
10483 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
10484 | fi | |
10485 | ||
10486 | if test "$wxUSE_TOOLTIPS" = yes; then | |
10487 | echo "$as_me:$LINENO: result: yes" >&5 | |
10488 | echo "${ECHO_T}yes" >&6 | |
10489 | else | |
10490 | echo "$as_me:$LINENO: result: no" >&5 | |
10491 | echo "${ECHO_T}no" >&6 | |
10492 | fi | |
10493 | ||
10494 | ||
10495 | enablestring= | |
10496 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
10497 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10498 | no_cache=0 | |
10499 | # Check whether --enable-splines or --disable-splines was given. | |
10500 | if test "${enable_splines+set}" = set; then | |
10501 | enableval="$enable_splines" | |
10502 | ||
10503 | if test "$enableval" = yes; then | |
10504 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
10505 | else | |
10506 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
10507 | fi | |
10508 | ||
10509 | else | |
10510 | ||
10511 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
10512 | if test "x$LINE" != x ; then | |
10513 | eval "DEFAULT_$LINE" | |
10514 | else | |
10515 | no_cache=1 | |
10516 | fi | |
10517 | ||
10518 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10519 | ||
10520 | fi; | |
10521 | ||
10522 | eval "$ac_cv_use_splines" | |
10523 | if test "$no_cache" != 1; then | |
10524 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
10525 | fi | |
10526 | ||
10527 | if test "$wxUSE_SPLINES" = yes; then | |
10528 | echo "$as_me:$LINENO: result: yes" >&5 | |
10529 | echo "${ECHO_T}yes" >&6 | |
10530 | else | |
10531 | echo "$as_me:$LINENO: result: no" >&5 | |
10532 | echo "${ECHO_T}no" >&6 | |
10533 | fi | |
10534 | ||
10535 | ||
fbe2ca43 SN |
10536 | enablestring= |
10537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
10538 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
10539 | no_cache=0 | |
10540 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
10541 | if test "${enable_mousewheel+set}" = set; then | |
10542 | enableval="$enable_mousewheel" | |
10543 | ||
10544 | if test "$enableval" = yes; then | |
10545 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10546 | else | |
10547 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10548 | fi | |
10549 | ||
10550 | else | |
10551 | ||
10552 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10553 | if test "x$LINE" != x ; then | |
10554 | eval "DEFAULT_$LINE" | |
10555 | else | |
10556 | no_cache=1 | |
10557 | fi | |
10558 | ||
10559 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10560 | ||
10561 | fi; | |
10562 | ||
10563 | eval "$ac_cv_use_mousewheel" | |
10564 | if test "$no_cache" != 1; then | |
10565 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10566 | fi | |
10567 | ||
10568 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10569 | echo "$as_me:$LINENO: result: yes" >&5 | |
10570 | echo "${ECHO_T}yes" >&6 | |
10571 | else | |
10572 | echo "$as_me:$LINENO: result: no" >&5 | |
10573 | echo "${ECHO_T}no" >&6 | |
10574 | fi | |
10575 | ||
10576 | ||
a848cd7e SC |
10577 | enablestring= |
10578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10579 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10580 | no_cache=0 | |
10581 | # Check whether --enable-validators or --disable-validators was given. | |
10582 | if test "${enable_validators+set}" = set; then | |
10583 | enableval="$enable_validators" | |
10584 | ||
10585 | if test "$enableval" = yes; then | |
10586 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10587 | else | |
10588 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10589 | fi | |
10590 | ||
10591 | else | |
10592 | ||
10593 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10594 | if test "x$LINE" != x ; then | |
10595 | eval "DEFAULT_$LINE" | |
10596 | else | |
10597 | no_cache=1 | |
10598 | fi | |
10599 | ||
10600 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10601 | ||
10602 | fi; | |
10603 | ||
10604 | eval "$ac_cv_use_validators" | |
10605 | if test "$no_cache" != 1; then | |
10606 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10607 | fi | |
10608 | ||
10609 | if test "$wxUSE_VALIDATORS" = yes; then | |
10610 | echo "$as_me:$LINENO: result: yes" >&5 | |
10611 | echo "${ECHO_T}yes" >&6 | |
10612 | else | |
10613 | echo "$as_me:$LINENO: result: no" >&5 | |
10614 | echo "${ECHO_T}no" >&6 | |
10615 | fi | |
10616 | ||
10617 | ||
10618 | enablestring= | |
10619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10620 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10621 | no_cache=0 | |
10622 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10623 | if test "${enable_busyinfo+set}" = set; then | |
10624 | enableval="$enable_busyinfo" | |
10625 | ||
10626 | if test "$enableval" = yes; then | |
10627 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10628 | else | |
10629 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10630 | fi | |
10631 | ||
10632 | else | |
10633 | ||
10634 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10635 | if test "x$LINE" != x ; then | |
10636 | eval "DEFAULT_$LINE" | |
10637 | else | |
10638 | no_cache=1 | |
10639 | fi | |
10640 | ||
10641 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10642 | ||
10643 | fi; | |
10644 | ||
10645 | eval "$ac_cv_use_busyinfo" | |
10646 | if test "$no_cache" != 1; then | |
10647 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10648 | fi | |
10649 | ||
10650 | if test "$wxUSE_BUSYINFO" = yes; then | |
10651 | echo "$as_me:$LINENO: result: yes" >&5 | |
10652 | echo "${ECHO_T}yes" >&6 | |
10653 | else | |
10654 | echo "$as_me:$LINENO: result: no" >&5 | |
10655 | echo "${ECHO_T}no" >&6 | |
10656 | fi | |
10657 | ||
10658 | ||
10659 | enablestring= | |
10660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10661 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10662 | no_cache=0 | |
10663 | # Check whether --enable-joystick or --disable-joystick was given. | |
10664 | if test "${enable_joystick+set}" = set; then | |
10665 | enableval="$enable_joystick" | |
10666 | ||
10667 | if test "$enableval" = yes; then | |
10668 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10669 | else | |
10670 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10671 | fi | |
10672 | ||
10673 | else | |
10674 | ||
10675 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10676 | if test "x$LINE" != x ; then | |
10677 | eval "DEFAULT_$LINE" | |
10678 | else | |
10679 | no_cache=1 | |
10680 | fi | |
10681 | ||
10682 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10683 | ||
10684 | fi; | |
10685 | ||
10686 | eval "$ac_cv_use_joystick" | |
10687 | if test "$no_cache" != 1; then | |
10688 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10689 | fi | |
10690 | ||
10691 | if test "$wxUSE_JOYSTICK" = yes; then | |
10692 | echo "$as_me:$LINENO: result: yes" >&5 | |
10693 | echo "${ECHO_T}yes" >&6 | |
10694 | else | |
10695 | echo "$as_me:$LINENO: result: no" >&5 | |
10696 | echo "${ECHO_T}no" >&6 | |
10697 | fi | |
10698 | ||
10699 | ||
10700 | enablestring= | |
10701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10702 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10703 | no_cache=0 | |
10704 | # Check whether --enable-metafile or --disable-metafile was given. | |
10705 | if test "${enable_metafile+set}" = set; then | |
10706 | enableval="$enable_metafile" | |
10707 | ||
10708 | if test "$enableval" = yes; then | |
10709 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10710 | else | |
10711 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10712 | fi | |
10713 | ||
10714 | else | |
10715 | ||
10716 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10717 | if test "x$LINE" != x ; then | |
10718 | eval "DEFAULT_$LINE" | |
10719 | else | |
10720 | no_cache=1 | |
10721 | fi | |
10722 | ||
10723 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10724 | ||
10725 | fi; | |
10726 | ||
10727 | eval "$ac_cv_use_metafile" | |
10728 | if test "$no_cache" != 1; then | |
10729 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10730 | fi | |
10731 | ||
10732 | if test "$wxUSE_METAFILE" = yes; then | |
10733 | echo "$as_me:$LINENO: result: yes" >&5 | |
10734 | echo "${ECHO_T}yes" >&6 | |
10735 | else | |
10736 | echo "$as_me:$LINENO: result: no" >&5 | |
10737 | echo "${ECHO_T}no" >&6 | |
10738 | fi | |
10739 | ||
10740 | ||
10741 | enablestring= | |
10742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10743 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10744 | no_cache=0 | |
10745 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10746 | if test "${enable_dragimage+set}" = set; then | |
10747 | enableval="$enable_dragimage" | |
10748 | ||
10749 | if test "$enableval" = yes; then | |
10750 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10751 | else | |
10752 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10753 | fi | |
10754 | ||
10755 | else | |
10756 | ||
10757 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10758 | if test "x$LINE" != x ; then | |
10759 | eval "DEFAULT_$LINE" | |
10760 | else | |
10761 | no_cache=1 | |
10762 | fi | |
10763 | ||
10764 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10765 | ||
10766 | fi; | |
10767 | ||
10768 | eval "$ac_cv_use_dragimage" | |
10769 | if test "$no_cache" != 1; then | |
10770 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10771 | fi | |
10772 | ||
10773 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10774 | echo "$as_me:$LINENO: result: yes" >&5 | |
10775 | echo "${ECHO_T}yes" >&6 | |
10776 | else | |
10777 | echo "$as_me:$LINENO: result: no" >&5 | |
10778 | echo "${ECHO_T}no" >&6 | |
10779 | fi | |
10780 | ||
10781 | ||
10782 | enablestring= | |
10783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10784 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10785 | no_cache=0 | |
10786 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10787 | if test "${enable_accessibility+set}" = set; then | |
10788 | enableval="$enable_accessibility" | |
10789 | ||
10790 | if test "$enableval" = yes; then | |
10791 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10792 | else | |
10793 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10794 | fi | |
10795 | ||
10796 | else | |
10797 | ||
10798 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10799 | if test "x$LINE" != x ; then | |
10800 | eval "DEFAULT_$LINE" | |
10801 | else | |
10802 | no_cache=1 | |
10803 | fi | |
10804 | ||
10805 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10806 | ||
10807 | fi; | |
10808 | ||
10809 | eval "$ac_cv_use_accessibility" | |
10810 | if test "$no_cache" != 1; then | |
10811 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10812 | fi | |
10813 | ||
10814 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10815 | echo "$as_me:$LINENO: result: yes" >&5 | |
10816 | echo "${ECHO_T}yes" >&6 | |
10817 | else | |
10818 | echo "$as_me:$LINENO: result: no" >&5 | |
10819 | echo "${ECHO_T}no" >&6 | |
10820 | fi | |
10821 | ||
10822 | ||
38b4a946 VZ |
10823 | if test "$wxUSE_MSW" = "1"; then |
10824 | ||
10825 | enablestring= | |
10826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10827 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10828 | no_cache=0 | |
10829 | # Check whether --enable-dccache or --disable-dccache was given. | |
10830 | if test "${enable_dccache+set}" = set; then | |
10831 | enableval="$enable_dccache" | |
10832 | ||
10833 | if test "$enableval" = yes; then | |
10834 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10835 | else | |
10836 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10837 | fi | |
10838 | ||
10839 | else | |
10840 | ||
10841 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10842 | if test "x$LINE" != x ; then | |
10843 | eval "DEFAULT_$LINE" | |
10844 | else | |
10845 | no_cache=1 | |
10846 | fi | |
10847 | ||
10848 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10849 | ||
10850 | fi; | |
10851 | ||
10852 | eval "$ac_cv_use_dccache" | |
10853 | if test "$no_cache" != 1; then | |
10854 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10855 | fi | |
10856 | ||
10857 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10858 | echo "$as_me:$LINENO: result: yes" >&5 | |
10859 | echo "${ECHO_T}yes" >&6 | |
10860 | else | |
10861 | echo "$as_me:$LINENO: result: no" >&5 | |
10862 | echo "${ECHO_T}no" >&6 | |
10863 | fi | |
10864 | ||
10865 | fi | |
10866 | ||
a848cd7e SC |
10867 | |
10868 | ||
10869 | enablestring= | |
10870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10871 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10872 | no_cache=0 | |
10873 | # Check whether --enable-palette or --disable-palette was given. | |
10874 | if test "${enable_palette+set}" = set; then | |
10875 | enableval="$enable_palette" | |
10876 | ||
10877 | if test "$enableval" = yes; then | |
10878 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10879 | else | |
10880 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10881 | fi | |
10882 | ||
10883 | else | |
10884 | ||
10885 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10886 | if test "x$LINE" != x ; then | |
10887 | eval "DEFAULT_$LINE" | |
10888 | else | |
10889 | no_cache=1 | |
10890 | fi | |
10891 | ||
10892 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10893 | ||
10894 | fi; | |
10895 | ||
10896 | eval "$ac_cv_use_palette" | |
10897 | if test "$no_cache" != 1; then | |
10898 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10899 | fi | |
10900 | ||
10901 | if test "$wxUSE_PALETTE" = yes; then | |
10902 | echo "$as_me:$LINENO: result: yes" >&5 | |
10903 | echo "${ECHO_T}yes" >&6 | |
10904 | else | |
10905 | echo "$as_me:$LINENO: result: no" >&5 | |
10906 | echo "${ECHO_T}no" >&6 | |
10907 | fi | |
10908 | ||
10909 | ||
10910 | enablestring= | |
10911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10912 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10913 | no_cache=0 | |
10914 | # Check whether --enable-image or --disable-image was given. | |
10915 | if test "${enable_image+set}" = set; then | |
10916 | enableval="$enable_image" | |
10917 | ||
10918 | if test "$enableval" = yes; then | |
10919 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10920 | else | |
10921 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10922 | fi | |
10923 | ||
10924 | else | |
10925 | ||
10926 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10927 | if test "x$LINE" != x ; then | |
10928 | eval "DEFAULT_$LINE" | |
10929 | else | |
10930 | no_cache=1 | |
10931 | fi | |
10932 | ||
10933 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10934 | ||
10935 | fi; | |
10936 | ||
10937 | eval "$ac_cv_use_image" | |
10938 | if test "$no_cache" != 1; then | |
10939 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10940 | fi | |
10941 | ||
10942 | if test "$wxUSE_IMAGE" = yes; then | |
10943 | echo "$as_me:$LINENO: result: yes" >&5 | |
10944 | echo "${ECHO_T}yes" >&6 | |
10945 | else | |
10946 | echo "$as_me:$LINENO: result: no" >&5 | |
10947 | echo "${ECHO_T}no" >&6 | |
10948 | fi | |
10949 | ||
10950 | ||
10951 | enablestring= | |
10952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10953 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10954 | no_cache=0 | |
10955 | # Check whether --enable-gif or --disable-gif was given. | |
10956 | if test "${enable_gif+set}" = set; then | |
10957 | enableval="$enable_gif" | |
10958 | ||
10959 | if test "$enableval" = yes; then | |
10960 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10961 | else | |
10962 | ac_cv_use_gif='wxUSE_GIF=no' | |
10963 | fi | |
10964 | ||
10965 | else | |
10966 | ||
10967 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10968 | if test "x$LINE" != x ; then | |
10969 | eval "DEFAULT_$LINE" | |
10970 | else | |
10971 | no_cache=1 | |
10972 | fi | |
10973 | ||
10974 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10975 | ||
10976 | fi; | |
10977 | ||
10978 | eval "$ac_cv_use_gif" | |
10979 | if test "$no_cache" != 1; then | |
10980 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10981 | fi | |
10982 | ||
10983 | if test "$wxUSE_GIF" = yes; then | |
10984 | echo "$as_me:$LINENO: result: yes" >&5 | |
10985 | echo "${ECHO_T}yes" >&6 | |
10986 | else | |
10987 | echo "$as_me:$LINENO: result: no" >&5 | |
10988 | echo "${ECHO_T}no" >&6 | |
10989 | fi | |
10990 | ||
10991 | ||
10992 | enablestring= | |
10993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10994 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10995 | no_cache=0 | |
10996 | # Check whether --enable-pcx or --disable-pcx was given. | |
10997 | if test "${enable_pcx+set}" = set; then | |
10998 | enableval="$enable_pcx" | |
10999 | ||
11000 | if test "$enableval" = yes; then | |
11001 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
11002 | else | |
11003 | ac_cv_use_pcx='wxUSE_PCX=no' | |
11004 | fi | |
11005 | ||
11006 | else | |
11007 | ||
11008 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
11009 | if test "x$LINE" != x ; then | |
11010 | eval "DEFAULT_$LINE" | |
11011 | else | |
11012 | no_cache=1 | |
11013 | fi | |
11014 | ||
11015 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
11016 | ||
11017 | fi; | |
11018 | ||
11019 | eval "$ac_cv_use_pcx" | |
11020 | if test "$no_cache" != 1; then | |
11021 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
11022 | fi | |
11023 | ||
11024 | if test "$wxUSE_PCX" = yes; then | |
11025 | echo "$as_me:$LINENO: result: yes" >&5 | |
11026 | echo "${ECHO_T}yes" >&6 | |
11027 | else | |
11028 | echo "$as_me:$LINENO: result: no" >&5 | |
11029 | echo "${ECHO_T}no" >&6 | |
11030 | fi | |
11031 | ||
11032 | ||
11033 | enablestring= | |
11034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
11035 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
11036 | no_cache=0 | |
11037 | # Check whether --enable-iff or --disable-iff was given. | |
11038 | if test "${enable_iff+set}" = set; then | |
11039 | enableval="$enable_iff" | |
11040 | ||
11041 | if test "$enableval" = yes; then | |
11042 | ac_cv_use_iff='wxUSE_IFF=yes' | |
11043 | else | |
11044 | ac_cv_use_iff='wxUSE_IFF=no' | |
11045 | fi | |
11046 | ||
11047 | else | |
11048 | ||
11049 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
11050 | if test "x$LINE" != x ; then | |
11051 | eval "DEFAULT_$LINE" | |
11052 | else | |
11053 | no_cache=1 | |
11054 | fi | |
11055 | ||
11056 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
11057 | ||
11058 | fi; | |
11059 | ||
11060 | eval "$ac_cv_use_iff" | |
11061 | if test "$no_cache" != 1; then | |
11062 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
11063 | fi | |
11064 | ||
11065 | if test "$wxUSE_IFF" = yes; then | |
11066 | echo "$as_me:$LINENO: result: yes" >&5 | |
11067 | echo "${ECHO_T}yes" >&6 | |
11068 | else | |
11069 | echo "$as_me:$LINENO: result: no" >&5 | |
11070 | echo "${ECHO_T}no" >&6 | |
11071 | fi | |
11072 | ||
11073 | ||
11074 | enablestring= | |
11075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
11076 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
11077 | no_cache=0 | |
11078 | # Check whether --enable-pnm or --disable-pnm was given. | |
11079 | if test "${enable_pnm+set}" = set; then | |
11080 | enableval="$enable_pnm" | |
11081 | ||
11082 | if test "$enableval" = yes; then | |
11083 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
11084 | else | |
11085 | ac_cv_use_pnm='wxUSE_PNM=no' | |
11086 | fi | |
11087 | ||
11088 | else | |
11089 | ||
11090 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
11091 | if test "x$LINE" != x ; then | |
11092 | eval "DEFAULT_$LINE" | |
11093 | else | |
11094 | no_cache=1 | |
11095 | fi | |
11096 | ||
11097 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
11098 | ||
11099 | fi; | |
11100 | ||
11101 | eval "$ac_cv_use_pnm" | |
11102 | if test "$no_cache" != 1; then | |
11103 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
11104 | fi | |
11105 | ||
11106 | if test "$wxUSE_PNM" = yes; then | |
11107 | echo "$as_me:$LINENO: result: yes" >&5 | |
11108 | echo "${ECHO_T}yes" >&6 | |
11109 | else | |
11110 | echo "$as_me:$LINENO: result: no" >&5 | |
11111 | echo "${ECHO_T}no" >&6 | |
11112 | fi | |
11113 | ||
11114 | ||
11115 | enablestring= | |
11116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
11117 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
11118 | no_cache=0 | |
11119 | # Check whether --enable-xpm or --disable-xpm was given. | |
11120 | if test "${enable_xpm+set}" = set; then | |
11121 | enableval="$enable_xpm" | |
11122 | ||
11123 | if test "$enableval" = yes; then | |
11124 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
11125 | else | |
11126 | ac_cv_use_xpm='wxUSE_XPM=no' | |
11127 | fi | |
11128 | ||
11129 | else | |
11130 | ||
11131 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
11132 | if test "x$LINE" != x ; then | |
11133 | eval "DEFAULT_$LINE" | |
11134 | else | |
11135 | no_cache=1 | |
11136 | fi | |
11137 | ||
11138 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
11139 | ||
11140 | fi; | |
11141 | ||
11142 | eval "$ac_cv_use_xpm" | |
11143 | if test "$no_cache" != 1; then | |
11144 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
11145 | fi | |
11146 | ||
11147 | if test "$wxUSE_XPM" = yes; then | |
11148 | echo "$as_me:$LINENO: result: yes" >&5 | |
11149 | echo "${ECHO_T}yes" >&6 | |
11150 | else | |
11151 | echo "$as_me:$LINENO: result: no" >&5 | |
11152 | echo "${ECHO_T}no" >&6 | |
11153 | fi | |
11154 | ||
11155 | ||
11156 | enablestring= | |
11157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
11158 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
11159 | no_cache=0 | |
11160 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
11161 | if test "${enable_ico_cur+set}" = set; then | |
11162 | enableval="$enable_ico_cur" | |
11163 | ||
11164 | if test "$enableval" = yes; then | |
11165 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
11166 | else | |
11167 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
11168 | fi | |
11169 | ||
11170 | else | |
11171 | ||
11172 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
11173 | if test "x$LINE" != x ; then | |
11174 | eval "DEFAULT_$LINE" | |
11175 | else | |
11176 | no_cache=1 | |
11177 | fi | |
11178 | ||
11179 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
11180 | ||
11181 | fi; | |
11182 | ||
11183 | eval "$ac_cv_use_ico_cur" | |
11184 | if test "$no_cache" != 1; then | |
11185 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
11186 | fi | |
11187 | ||
11188 | if test "$wxUSE_ICO_CUR" = yes; then | |
11189 | echo "$as_me:$LINENO: result: yes" >&5 | |
11190 | echo "${ECHO_T}yes" >&6 | |
11191 | else | |
11192 | echo "$as_me:$LINENO: result: no" >&5 | |
11193 | echo "${ECHO_T}no" >&6 | |
11194 | fi | |
11195 | ||
11196 | ||
11197 | fi | |
11198 | ||
11199 | ||
11200 | ||
ceec2216 RL |
11201 | # Check whether --with-flavour or --without-flavour was given. |
11202 | if test "${with_flavour+set}" = set; then | |
11203 | withval="$with_flavour" | |
11204 | WX_FLAVOUR="$withval" | |
11205 | fi; | |
11206 | ||
11207 | ||
11208 | ||
a848cd7e SC |
11209 | enablestring= |
11210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
11211 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
11212 | no_cache=0 | |
11213 | # Check whether --enable-official_build or --disable-official_build was given. | |
11214 | if test "${enable_official_build+set}" = set; then | |
11215 | enableval="$enable_official_build" | |
11216 | ||
11217 | if test "$enableval" = yes; then | |
11218 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
11219 | else | |
11220 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
11221 | fi | |
11222 | ||
11223 | else | |
11224 | ||
11225 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
11226 | if test "x$LINE" != x ; then | |
11227 | eval "DEFAULT_$LINE" | |
11228 | else | |
11229 | no_cache=1 | |
11230 | fi | |
11231 | ||
11232 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
11233 | ||
11234 | fi; | |
11235 | ||
11236 | eval "$ac_cv_use_official_build" | |
11237 | if test "$no_cache" != 1; then | |
11238 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
11239 | fi | |
11240 | ||
11241 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
11242 | echo "$as_me:$LINENO: result: yes" >&5 | |
11243 | echo "${ECHO_T}yes" >&6 | |
11244 | else | |
11245 | echo "$as_me:$LINENO: result: no" >&5 | |
11246 | echo "${ECHO_T}no" >&6 | |
11247 | fi | |
11248 | ||
11249 | # Check whether --enable-vendor or --disable-vendor was given. | |
11250 | if test "${enable_vendor+set}" = set; then | |
11251 | enableval="$enable_vendor" | |
11252 | VENDOR="$enableval" | |
11253 | fi; | |
11254 | if test "x$VENDOR" = "x"; then | |
11255 | VENDOR="custom" | |
11256 | fi | |
11257 | ||
a848cd7e SC |
11258 | |
11259 | ||
11260 | ||
11261 | echo "saving argument cache $wx_arg_cache_file" | |
11262 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
11263 | ||
11264 | ||
11265 | ||
11266 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
11267 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
11268 | ||
11269 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
11270 | if test "$wxUSE_WINE" = "yes"; then | |
11271 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
11272 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
11273 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
11274 | wxUSE_SHARED=no | |
11275 | fi | |
11276 | ||
f597b41c | 11277 | |
a848cd7e SC |
11278 | if test "$wxUSE_GUI" = "yes"; then |
11279 | ||
11280 | if test "$USE_BEOS" = 1; then | |
11281 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
11282 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
11283 | { (exit 1); exit 1; }; } | |
11284 | fi | |
11285 | ||
11286 | if test "$TOOLKIT_GIVEN" = 1; then | |
11287 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11288 | var=wxUSE_$toolkit | |
11289 | eval "value=\$${var}" | |
f34ca037 MW |
11290 | if test "x$value" = "xno"; then |
11291 | eval "$var=0" | |
11292 | elif test "x$value" != "x"; then | |
11293 | eval "$var=1" | |
11294 | fi | |
11295 | ||
11296 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
11297 | eval "wx${toolkit}_VERSION=$value" | |
11298 | fi | |
a848cd7e SC |
11299 | done |
11300 | else | |
11301 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11302 | if test "$has_toolkit_in_cache" != 1; then | |
11303 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
11304 | else | |
11305 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
11306 | |
11307 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
11308 | if test "x$version" != "x"; then | |
11309 | eval "wx${toolkit}_VERSION=$version" | |
11310 | fi | |
a848cd7e SC |
11311 | fi |
11312 | eval "wxUSE_$toolkit=\$${var}" | |
11313 | done | |
11314 | fi | |
11315 | ||
11316 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
11317 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
11318 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
11319 | ||
11320 | case "${host}" in | |
11321 | *-pc-os2_emx | *-pc-os2-emx ) | |
11322 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
11323 | esac | |
11324 | ||
11325 | case "$NUM_TOOLKITS" in | |
11326 | 1) | |
11327 | ;; | |
11328 | 0) | |
11329 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
11330 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
11331 | { (exit 1); exit 1; }; } | |
11332 | ;; | |
11333 | *) | |
11334 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
11335 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
11336 | { (exit 1); exit 1; }; } | |
11337 | esac | |
11338 | ||
f34ca037 MW |
11339 | # to be removed when --disable-gtk2 isn't needed |
11340 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11341 | wxGTK_VERSION=2 | |
11342 | elif test "x$wxUSE_GTK2" = "xno"; then | |
11343 | wxGTK_VERSION=1 | |
11344 | fi | |
11345 | ||
a848cd7e SC |
11346 | for toolkit in `echo $ALL_TOOLKITS`; do |
11347 | var=wxUSE_$toolkit | |
11348 | eval "value=\$${var}" | |
11349 | if test "x$value" != x; then | |
11350 | cache_var=CACHE_$toolkit | |
11351 | eval "cache=\$${cache_var}" | |
11352 | if test "$cache" = 1; then | |
11353 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
11354 | eval "version=\$wx${toolkit}_VERSION" |
11355 | if test "x$version" != "x"; then | |
11356 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
11357 | fi | |
a848cd7e SC |
11358 | fi |
11359 | if test "$value" = 1; then | |
11360 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
11361 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
11362 | echo "${ECHO_T}$toolkit_echo" >&6 | |
11363 | fi | |
11364 | fi | |
11365 | done | |
11366 | else | |
11367 | if test "x$host_alias" != "x"; then | |
11368 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
11369 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
11370 | else | |
11371 | echo "$as_me:$LINENO: result: base only" >&5 | |
11372 | echo "${ECHO_T}base only" >&6 | |
11373 | fi | |
11374 | fi | |
11375 | ||
11376 | wants_win32=0 | |
11377 | doesnt_want_win32=0 | |
11378 | case "${host}" in | |
11379 | *-*-cygwin*) | |
11380 | if test "$wxUSE_MSW" = 1 ; then | |
11381 | wants_win32=1 | |
7275146d | 11382 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
11383 | else |
11384 | doesnt_want_win32=1 | |
11385 | fi | |
11386 | ;; | |
11387 | *-*-mingw*) | |
11388 | wants_win32=1 | |
11389 | ;; | |
11390 | esac | |
11391 | ||
11392 | if test "$wxUSE_WINE" = "yes"; then | |
11393 | wants_win32=1 | |
11394 | CC=winegcc | |
11395 | CXX=wineg++ | |
a848cd7e SC |
11396 | LDFLAGS_GUI="-mwindows" |
11397 | fi | |
11398 | ||
11399 | if test "$wants_win32" = 1 ; then | |
11400 | USE_UNIX=0 | |
11401 | USE_WIN32=1 | |
11402 | cat >>confdefs.h <<\_ACEOF | |
11403 | #define __WIN32__ 1 | |
11404 | _ACEOF | |
11405 | ||
11406 | cat >>confdefs.h <<\_ACEOF | |
11407 | #define __WIN95__ 1 | |
11408 | _ACEOF | |
11409 | ||
11410 | cat >>confdefs.h <<\_ACEOF | |
11411 | #define __WINDOWS__ 1 | |
11412 | _ACEOF | |
11413 | ||
11414 | cat >>confdefs.h <<\_ACEOF | |
11415 | #define __GNUWIN32__ 1 | |
11416 | _ACEOF | |
11417 | ||
11418 | cat >>confdefs.h <<\_ACEOF | |
11419 | #define STRICT 1 | |
11420 | _ACEOF | |
11421 | ||
11422 | cat >>confdefs.h <<\_ACEOF | |
11423 | #define WINVER 0x0400 | |
11424 | _ACEOF | |
11425 | ||
11426 | fi | |
11427 | if test "$doesnt_want_win32" = 1 ; then | |
11428 | USE_UNIX=1 | |
11429 | USE_WIN32=0 | |
11430 | fi | |
11431 | ||
11432 | if test "$USE_UNIX" = 1 ; then | |
11433 | wxUSE_UNIX=yes | |
11434 | cat >>confdefs.h <<\_ACEOF | |
11435 | #define __UNIX__ 1 | |
11436 | _ACEOF | |
11437 | ||
11438 | fi | |
11439 | ||
11440 | ||
11441 | cat >confcache <<\_ACEOF | |
11442 | # This file is a shell script that caches the results of configure | |
11443 | # tests run on this system so they can be shared between configure | |
11444 | # scripts and configure runs, see configure's option --config-cache. | |
11445 | # It is not useful on other systems. If it contains results you don't | |
11446 | # want to keep, you may remove or edit it. | |
11447 | # | |
11448 | # config.status only pays attention to the cache file if you give it | |
11449 | # the --recheck option to rerun configure. | |
11450 | # | |
11451 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11452 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11453 | # following values. | |
11454 | ||
11455 | _ACEOF | |
11456 | ||
11457 | # The following way of writing the cache mishandles newlines in values, | |
11458 | # but we know of no workaround that is simple, portable, and efficient. | |
11459 | # So, don't put newlines in cache variables' values. | |
11460 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11461 | # and sets the high bit in the cache file unless we assign to the vars. | |
11462 | { | |
11463 | (set) 2>&1 | | |
11464 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11465 | *ac_space=\ *) | |
11466 | # `set' does not quote correctly, so add quotes (double-quote | |
11467 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11468 | sed -n \ | |
ac1cb8d3 VS |
11469 | "s/'/'\\\\''/g; |
11470 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
11471 | ;; |
11472 | *) | |
11473 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11474 | sed -n \ | |
ac1cb8d3 | 11475 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
11476 | ;; |
11477 | esac; | |
11478 | } | | |
11479 | sed ' | |
11480 | t clear | |
11481 | : clear | |
11482 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11483 | t end | |
11484 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11485 | : end' >>confcache | |
11486 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11487 | if test -w $cache_file; then | |
11488 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11489 | cat confcache >$cache_file | |
11490 | else | |
11491 | echo "not updating unwritable cache $cache_file" | |
11492 | fi | |
11493 | fi | |
11494 | rm -f confcache | |
11495 | ||
a848cd7e | 11496 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
11497 | |
11498 | ||
3006edc0 | 11499 | |
6dcfc289 | 11500 | ac_ext=c |
a848cd7e SC |
11501 | ac_cpp='$CPP $CPPFLAGS' |
11502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11505 | if test -n "$ac_tool_prefix"; then | |
11506 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
11507 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11508 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11510 | if test "${ac_cv_prog_CC+set}" = set; then | |
11511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11512 | else | |
11513 | if test -n "$CC"; then | |
11514 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11515 | else | |
11516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11517 | for as_dir in $PATH | |
11518 | do | |
11519 | IFS=$as_save_IFS | |
11520 | test -z "$as_dir" && as_dir=. | |
11521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11523 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
11524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11525 | break 2 | |
11526 | fi | |
11527 | done | |
11528 | done | |
11529 | ||
11530 | fi | |
11531 | fi | |
11532 | CC=$ac_cv_prog_CC | |
11533 | if test -n "$CC"; then | |
11534 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11535 | echo "${ECHO_T}$CC" >&6 | |
11536 | else | |
11537 | echo "$as_me:$LINENO: result: no" >&5 | |
11538 | echo "${ECHO_T}no" >&6 | |
11539 | fi | |
11540 | ||
11541 | fi | |
11542 | if test -z "$ac_cv_prog_CC"; then | |
11543 | ac_ct_CC=$CC | |
11544 | # Extract the first word of "gcc", so it can be a program name with args. | |
11545 | set dummy gcc; ac_word=$2 | |
11546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11548 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11550 | else | |
11551 | if test -n "$ac_ct_CC"; then | |
11552 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11553 | else | |
11554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11555 | for as_dir in $PATH | |
11556 | do | |
11557 | IFS=$as_save_IFS | |
11558 | test -z "$as_dir" && as_dir=. | |
11559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11561 | ac_cv_prog_ac_ct_CC="gcc" | |
11562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11563 | break 2 | |
11564 | fi | |
11565 | done | |
11566 | done | |
11567 | ||
11568 | fi | |
11569 | fi | |
11570 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11571 | if test -n "$ac_ct_CC"; then | |
11572 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11573 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11574 | else | |
11575 | echo "$as_me:$LINENO: result: no" >&5 | |
11576 | echo "${ECHO_T}no" >&6 | |
11577 | fi | |
11578 | ||
11579 | CC=$ac_ct_CC | |
11580 | else | |
11581 | CC="$ac_cv_prog_CC" | |
11582 | fi | |
11583 | ||
11584 | if test -z "$CC"; then | |
11585 | if test -n "$ac_tool_prefix"; then | |
11586 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11587 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11588 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11590 | if test "${ac_cv_prog_CC+set}" = set; then | |
11591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11592 | else | |
11593 | if test -n "$CC"; then | |
11594 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11595 | else | |
11596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11597 | for as_dir in $PATH | |
11598 | do | |
11599 | IFS=$as_save_IFS | |
11600 | test -z "$as_dir" && as_dir=. | |
11601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11602 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11603 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11605 | break 2 | |
11606 | fi | |
11607 | done | |
11608 | done | |
11609 | ||
11610 | fi | |
11611 | fi | |
11612 | CC=$ac_cv_prog_CC | |
11613 | if test -n "$CC"; then | |
11614 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11615 | echo "${ECHO_T}$CC" >&6 | |
11616 | else | |
11617 | echo "$as_me:$LINENO: result: no" >&5 | |
11618 | echo "${ECHO_T}no" >&6 | |
11619 | fi | |
11620 | ||
11621 | fi | |
11622 | if test -z "$ac_cv_prog_CC"; then | |
11623 | ac_ct_CC=$CC | |
11624 | # Extract the first word of "cc", so it can be a program name with args. | |
11625 | set dummy cc; ac_word=$2 | |
11626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11628 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11630 | else | |
11631 | if test -n "$ac_ct_CC"; then | |
11632 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11633 | else | |
11634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11635 | for as_dir in $PATH | |
11636 | do | |
11637 | IFS=$as_save_IFS | |
11638 | test -z "$as_dir" && as_dir=. | |
11639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11641 | ac_cv_prog_ac_ct_CC="cc" | |
11642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11643 | break 2 | |
11644 | fi | |
11645 | done | |
11646 | done | |
11647 | ||
11648 | fi | |
11649 | fi | |
11650 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11651 | if test -n "$ac_ct_CC"; then | |
11652 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11653 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11654 | else | |
11655 | echo "$as_me:$LINENO: result: no" >&5 | |
11656 | echo "${ECHO_T}no" >&6 | |
11657 | fi | |
11658 | ||
11659 | CC=$ac_ct_CC | |
11660 | else | |
11661 | CC="$ac_cv_prog_CC" | |
11662 | fi | |
11663 | ||
11664 | fi | |
11665 | if test -z "$CC"; then | |
11666 | # Extract the first word of "cc", so it can be a program name with args. | |
11667 | set dummy cc; ac_word=$2 | |
11668 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11670 | if test "${ac_cv_prog_CC+set}" = set; then | |
11671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11672 | else | |
11673 | if test -n "$CC"; then | |
11674 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11675 | else | |
11676 | ac_prog_rejected=no | |
11677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11678 | for as_dir in $PATH | |
11679 | do | |
11680 | IFS=$as_save_IFS | |
11681 | test -z "$as_dir" && as_dir=. | |
11682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11684 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11685 | ac_prog_rejected=yes | |
11686 | continue | |
11687 | fi | |
11688 | ac_cv_prog_CC="cc" | |
11689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11690 | break 2 | |
11691 | fi | |
11692 | done | |
11693 | done | |
11694 | ||
11695 | if test $ac_prog_rejected = yes; then | |
11696 | # We found a bogon in the path, so make sure we never use it. | |
11697 | set dummy $ac_cv_prog_CC | |
11698 | shift | |
11699 | if test $# != 0; then | |
11700 | # We chose a different compiler from the bogus one. | |
11701 | # However, it has the same basename, so the bogon will be chosen | |
11702 | # first if we set CC to just the basename; use the full file name. | |
11703 | shift | |
11704 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11705 | fi | |
11706 | fi | |
11707 | fi | |
11708 | fi | |
11709 | CC=$ac_cv_prog_CC | |
11710 | if test -n "$CC"; then | |
11711 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11712 | echo "${ECHO_T}$CC" >&6 | |
11713 | else | |
11714 | echo "$as_me:$LINENO: result: no" >&5 | |
11715 | echo "${ECHO_T}no" >&6 | |
11716 | fi | |
11717 | ||
11718 | fi | |
11719 | if test -z "$CC"; then | |
11720 | if test -n "$ac_tool_prefix"; then | |
11721 | for ac_prog in cl | |
11722 | do | |
11723 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11724 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11727 | if test "${ac_cv_prog_CC+set}" = set; then | |
11728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11729 | else | |
11730 | if test -n "$CC"; then | |
11731 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11732 | else | |
11733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11734 | for as_dir in $PATH | |
11735 | do | |
11736 | IFS=$as_save_IFS | |
11737 | test -z "$as_dir" && as_dir=. | |
11738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11740 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11742 | break 2 | |
11743 | fi | |
11744 | done | |
11745 | done | |
11746 | ||
11747 | fi | |
11748 | fi | |
11749 | CC=$ac_cv_prog_CC | |
11750 | if test -n "$CC"; then | |
11751 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11752 | echo "${ECHO_T}$CC" >&6 | |
11753 | else | |
11754 | echo "$as_me:$LINENO: result: no" >&5 | |
11755 | echo "${ECHO_T}no" >&6 | |
11756 | fi | |
11757 | ||
11758 | test -n "$CC" && break | |
11759 | done | |
11760 | fi | |
11761 | if test -z "$CC"; then | |
11762 | ac_ct_CC=$CC | |
11763 | for ac_prog in cl | |
11764 | do | |
11765 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11766 | set dummy $ac_prog; ac_word=$2 | |
11767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11769 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11771 | else | |
11772 | if test -n "$ac_ct_CC"; then | |
11773 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11774 | else | |
11775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11776 | for as_dir in $PATH | |
11777 | do | |
11778 | IFS=$as_save_IFS | |
11779 | test -z "$as_dir" && as_dir=. | |
11780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11782 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11784 | break 2 | |
11785 | fi | |
11786 | done | |
11787 | done | |
11788 | ||
11789 | fi | |
11790 | fi | |
11791 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11792 | if test -n "$ac_ct_CC"; then | |
11793 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11794 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11795 | else | |
11796 | echo "$as_me:$LINENO: result: no" >&5 | |
11797 | echo "${ECHO_T}no" >&6 | |
11798 | fi | |
11799 | ||
11800 | test -n "$ac_ct_CC" && break | |
11801 | done | |
11802 | ||
11803 | CC=$ac_ct_CC | |
11804 | fi | |
11805 | ||
11806 | fi | |
11807 | ||
11808 | ||
11809 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11810 | See \`config.log' for more details." >&5 | |
11811 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11812 | See \`config.log' for more details." >&2;} | |
11813 | { (exit 1); exit 1; }; } | |
11814 | ||
11815 | # Provide some information about the compiler. | |
11816 | echo "$as_me:$LINENO:" \ | |
11817 | "checking for C compiler version" >&5 | |
11818 | ac_compiler=`set X $ac_compile; echo $2` | |
11819 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11820 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11821 | ac_status=$? | |
11822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11823 | (exit $ac_status); } | |
11824 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11825 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11826 | ac_status=$? | |
11827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11828 | (exit $ac_status); } | |
11829 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11830 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11831 | ac_status=$? | |
11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11833 | (exit $ac_status); } | |
11834 | ||
11835 | cat >conftest.$ac_ext <<_ACEOF | |
11836 | /* confdefs.h. */ | |
11837 | _ACEOF | |
11838 | cat confdefs.h >>conftest.$ac_ext | |
11839 | cat >>conftest.$ac_ext <<_ACEOF | |
11840 | /* end confdefs.h. */ | |
11841 | ||
11842 | int | |
11843 | main () | |
11844 | { | |
11845 | ||
11846 | ; | |
11847 | return 0; | |
11848 | } | |
11849 | _ACEOF | |
11850 | ac_clean_files_save=$ac_clean_files | |
11851 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11852 | # Try to create an executable without -o first, disregard a.out. | |
11853 | # It will help us diagnose broken compilers, and finding out an intuition | |
11854 | # of exeext. | |
ac1cb8d3 VS |
11855 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11856 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11857 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11858 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11859 | (eval $ac_link_default) 2>&5 | |
11860 | ac_status=$? | |
11861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11862 | (exit $ac_status); }; then | |
11863 | # Find the output, starting from the most likely. This scheme is | |
11864 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11865 | # resort. | |
11866 | ||
11867 | # Be careful to initialize this variable, since it used to be cached. | |
11868 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11869 | ac_cv_exeext= | |
11870 | # b.out is created by i960 compilers. | |
11871 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11872 | do | |
11873 | test -f "$ac_file" || continue | |
11874 | case $ac_file in | |
11875 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11876 | ;; |
a848cd7e | 11877 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11878 | # This is the source file. |
11879 | ;; | |
a848cd7e | 11880 | [ab].out ) |
ac1cb8d3 VS |
11881 | # We found the default executable, but exeext='' is most |
11882 | # certainly right. | |
11883 | break;; | |
a848cd7e | 11884 | *.* ) |
ac1cb8d3 VS |
11885 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11886 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11887 | # but it would be cool to find out if it's true. Does anybody | |
11888 | # maintain Libtool? --akim. | |
11889 | export ac_cv_exeext | |
11890 | break;; | |
a848cd7e | 11891 | * ) |
ac1cb8d3 | 11892 | break;; |
a848cd7e SC |
11893 | esac |
11894 | done | |
11895 | else | |
11896 | echo "$as_me: failed program was:" >&5 | |
11897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11898 | ||
11899 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11900 | See \`config.log' for more details." >&5 | |
11901 | echo "$as_me: error: C compiler cannot create executables | |
11902 | See \`config.log' for more details." >&2;} | |
11903 | { (exit 77); exit 77; }; } | |
11904 | fi | |
11905 | ||
11906 | ac_exeext=$ac_cv_exeext | |
11907 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11908 | echo "${ECHO_T}$ac_file" >&6 | |
11909 | ||
11910 | # Check the compiler produces executables we can run. If not, either | |
11911 | # the compiler is broken, or we cross compile. | |
11912 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11913 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11914 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11915 | # If not cross compiling, check that we can run a simple program. | |
11916 | if test "$cross_compiling" != yes; then | |
11917 | if { ac_try='./$ac_file' | |
11918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11919 | (eval $ac_try) 2>&5 | |
11920 | ac_status=$? | |
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11922 | (exit $ac_status); }; }; then | |
11923 | cross_compiling=no | |
11924 | else | |
11925 | if test "$cross_compiling" = maybe; then | |
11926 | cross_compiling=yes | |
11927 | else | |
11928 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11929 | If you meant to cross compile, use \`--host'. | |
11930 | See \`config.log' for more details." >&5 | |
11931 | echo "$as_me: error: cannot run C compiled programs. | |
11932 | If you meant to cross compile, use \`--host'. | |
11933 | See \`config.log' for more details." >&2;} | |
11934 | { (exit 1); exit 1; }; } | |
11935 | fi | |
11936 | fi | |
11937 | fi | |
11938 | echo "$as_me:$LINENO: result: yes" >&5 | |
11939 | echo "${ECHO_T}yes" >&6 | |
11940 | ||
11941 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11942 | ac_clean_files=$ac_clean_files_save | |
11943 | # Check the compiler produces executables we can run. If not, either | |
11944 | # the compiler is broken, or we cross compile. | |
11945 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11946 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11947 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11948 | echo "${ECHO_T}$cross_compiling" >&6 | |
11949 | ||
11950 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11951 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11953 | (eval $ac_link) 2>&5 | |
11954 | ac_status=$? | |
11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11956 | (exit $ac_status); }; then | |
11957 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11958 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11959 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11960 | # `rm'. | |
11961 | for ac_file in conftest.exe conftest conftest.*; do | |
11962 | test -f "$ac_file" || continue | |
11963 | case $ac_file in | |
11964 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11965 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11966 | export ac_cv_exeext |
11967 | break;; | |
a848cd7e SC |
11968 | * ) break;; |
11969 | esac | |
11970 | done | |
11971 | else | |
11972 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11973 | See \`config.log' for more details." >&5 | |
11974 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11975 | See \`config.log' for more details." >&2;} | |
11976 | { (exit 1); exit 1; }; } | |
11977 | fi | |
11978 | ||
11979 | rm -f conftest$ac_cv_exeext | |
11980 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11981 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11982 | ||
11983 | rm -f conftest.$ac_ext | |
11984 | EXEEXT=$ac_cv_exeext | |
11985 | ac_exeext=$EXEEXT | |
11986 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11987 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11988 | if test "${ac_cv_objext+set}" = set; then | |
11989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11990 | else | |
11991 | cat >conftest.$ac_ext <<_ACEOF | |
11992 | /* confdefs.h. */ | |
11993 | _ACEOF | |
11994 | cat confdefs.h >>conftest.$ac_ext | |
11995 | cat >>conftest.$ac_ext <<_ACEOF | |
11996 | /* end confdefs.h. */ | |
11997 | ||
11998 | int | |
11999 | main () | |
12000 | { | |
12001 | ||
12002 | ; | |
12003 | return 0; | |
12004 | } | |
12005 | _ACEOF | |
12006 | rm -f conftest.o conftest.obj | |
12007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12008 | (eval $ac_compile) 2>&5 | |
12009 | ac_status=$? | |
12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12011 | (exit $ac_status); }; then | |
12012 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
12013 | case $ac_file in | |
12014 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
12015 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
12016 | break;; | |
12017 | esac | |
12018 | done | |
12019 | else | |
12020 | echo "$as_me: failed program was:" >&5 | |
12021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12022 | ||
12023 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
12024 | See \`config.log' for more details." >&5 | |
12025 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
12026 | See \`config.log' for more details." >&2;} | |
12027 | { (exit 1); exit 1; }; } | |
12028 | fi | |
12029 | ||
12030 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
12031 | fi | |
12032 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
12033 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
12034 | OBJEXT=$ac_cv_objext | |
12035 | ac_objext=$OBJEXT | |
12036 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
12037 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
12038 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
12039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12040 | else | |
12041 | cat >conftest.$ac_ext <<_ACEOF | |
12042 | /* confdefs.h. */ | |
12043 | _ACEOF | |
12044 | cat confdefs.h >>conftest.$ac_ext | |
12045 | cat >>conftest.$ac_ext <<_ACEOF | |
12046 | /* end confdefs.h. */ | |
12047 | ||
12048 | int | |
12049 | main () | |
12050 | { | |
12051 | #ifndef __GNUC__ | |
12052 | choke me | |
12053 | #endif | |
12054 | ||
12055 | ; | |
12056 | return 0; | |
12057 | } | |
12058 | _ACEOF | |
12059 | rm -f conftest.$ac_objext | |
12060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12061 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12062 | ac_status=$? |
ac1cb8d3 VS |
12063 | grep -v '^ *+' conftest.er1 >conftest.err |
12064 | rm -f conftest.er1 | |
12065 | cat conftest.err >&5 | |
a848cd7e SC |
12066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12067 | (exit $ac_status); } && | |
c9a66001 | 12068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
12074 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12076 | (eval $ac_try) 2>&5 | |
12077 | ac_status=$? | |
12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12079 | (exit $ac_status); }; }; then | |
12080 | ac_compiler_gnu=yes | |
12081 | else | |
12082 | echo "$as_me: failed program was:" >&5 | |
12083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12084 | ||
12085 | ac_compiler_gnu=no | |
12086 | fi | |
ac1cb8d3 | 12087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12088 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
12089 | ||
12090 | fi | |
12091 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
12092 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
12093 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
12094 | ac_test_CFLAGS=${CFLAGS+set} | |
12095 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 12096 | CFLAGS="-g" |
a848cd7e SC |
12097 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12098 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12099 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12101 | else | |
12102 | cat >conftest.$ac_ext <<_ACEOF | |
12103 | /* confdefs.h. */ | |
12104 | _ACEOF | |
12105 | cat confdefs.h >>conftest.$ac_ext | |
12106 | cat >>conftest.$ac_ext <<_ACEOF | |
12107 | /* end confdefs.h. */ | |
12108 | ||
12109 | int | |
12110 | main () | |
12111 | { | |
12112 | ||
12113 | ; | |
12114 | return 0; | |
12115 | } | |
12116 | _ACEOF | |
12117 | rm -f conftest.$ac_objext | |
12118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12120 | ac_status=$? |
ac1cb8d3 VS |
12121 | grep -v '^ *+' conftest.er1 >conftest.err |
12122 | rm -f conftest.er1 | |
12123 | cat conftest.err >&5 | |
a848cd7e SC |
12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12125 | (exit $ac_status); } && | |
c9a66001 | 12126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12128 | (eval $ac_try) 2>&5 | |
12129 | ac_status=$? | |
12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12131 | (exit $ac_status); }; } && | |
12132 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12134 | (eval $ac_try) 2>&5 | |
12135 | ac_status=$? | |
12136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12137 | (exit $ac_status); }; }; then | |
12138 | ac_cv_prog_cc_g=yes | |
12139 | else | |
12140 | echo "$as_me: failed program was:" >&5 | |
12141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12142 | ||
12143 | ac_cv_prog_cc_g=no | |
12144 | fi | |
ac1cb8d3 | 12145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12146 | fi |
12147 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12148 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12149 | if test "$ac_test_CFLAGS" = set; then | |
12150 | CFLAGS=$ac_save_CFLAGS | |
12151 | elif test $ac_cv_prog_cc_g = yes; then | |
12152 | if test "$GCC" = yes; then | |
12153 | CFLAGS="-g -O2" | |
12154 | else | |
12155 | CFLAGS="-g" | |
12156 | fi | |
12157 | else | |
12158 | if test "$GCC" = yes; then | |
12159 | CFLAGS="-O2" | |
12160 | else | |
12161 | CFLAGS= | |
12162 | fi | |
12163 | fi | |
12164 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
12165 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
12166 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
12167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12168 | else | |
12169 | ac_cv_prog_cc_stdc=no | |
12170 | ac_save_CC=$CC | |
12171 | cat >conftest.$ac_ext <<_ACEOF | |
12172 | /* confdefs.h. */ | |
12173 | _ACEOF | |
12174 | cat confdefs.h >>conftest.$ac_ext | |
12175 | cat >>conftest.$ac_ext <<_ACEOF | |
12176 | /* end confdefs.h. */ | |
12177 | #include <stdarg.h> | |
12178 | #include <stdio.h> | |
12179 | #include <sys/types.h> | |
12180 | #include <sys/stat.h> | |
12181 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
12182 | struct buf { int x; }; | |
12183 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
12184 | static char *e (p, i) | |
12185 | char **p; | |
12186 | int i; | |
12187 | { | |
12188 | return p[i]; | |
12189 | } | |
12190 | static char *f (char * (*g) (char **, int), char **p, ...) | |
12191 | { | |
12192 | char *s; | |
12193 | va_list v; | |
12194 | va_start (v,p); | |
12195 | s = g (p, va_arg (v,int)); | |
12196 | va_end (v); | |
12197 | return s; | |
12198 | } | |
ac1cb8d3 VS |
12199 | |
12200 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
12201 | function prototypes and stuff, but not '\xHH' hex character constants. | |
12202 | These don't provoke an error unfortunately, instead are silently treated | |
12203 | as 'x'. The following induces an error, until -std1 is added to get | |
12204 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
12205 | array size at least. It's necessary to write '\x00'==0 to get something | |
12206 | that's true only with -std1. */ | |
12207 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
12208 | ||
a848cd7e SC |
12209 | int test (int i, double x); |
12210 | struct s1 {int (*f) (int a);}; | |
12211 | struct s2 {int (*f) (double a);}; | |
12212 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
12213 | int argc; | |
12214 | char **argv; | |
12215 | int | |
12216 | main () | |
12217 | { | |
12218 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
12219 | ; | |
12220 | return 0; | |
12221 | } | |
12222 | _ACEOF | |
12223 | # Don't try gcc -ansi; that turns off useful extensions and | |
12224 | # breaks some systems' header files. | |
12225 | # AIX -qlanglvl=ansi | |
12226 | # Ultrix and OSF/1 -std1 | |
12227 | # HP-UX 10.20 and later -Ae | |
12228 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
12229 | # SVR4 -Xc -D__EXTENSIONS__ | |
12230 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
12231 | do | |
12232 | CC="$ac_save_CC $ac_arg" | |
12233 | rm -f conftest.$ac_objext | |
12234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12235 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12236 | ac_status=$? |
ac1cb8d3 VS |
12237 | grep -v '^ *+' conftest.er1 >conftest.err |
12238 | rm -f conftest.er1 | |
12239 | cat conftest.err >&5 | |
a848cd7e SC |
12240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12241 | (exit $ac_status); } && | |
c9a66001 | 12242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12244 | (eval $ac_try) 2>&5 | |
12245 | ac_status=$? | |
12246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12247 | (exit $ac_status); }; } && | |
12248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12250 | (eval $ac_try) 2>&5 | |
12251 | ac_status=$? | |
12252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12253 | (exit $ac_status); }; }; then | |
12254 | ac_cv_prog_cc_stdc=$ac_arg | |
12255 | break | |
12256 | else | |
12257 | echo "$as_me: failed program was:" >&5 | |
12258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12259 | ||
12260 | fi | |
ac1cb8d3 | 12261 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
12262 | done |
12263 | rm -f conftest.$ac_ext conftest.$ac_objext | |
12264 | CC=$ac_save_CC | |
12265 | ||
12266 | fi | |
12267 | ||
12268 | case "x$ac_cv_prog_cc_stdc" in | |
12269 | x|xno) | |
12270 | echo "$as_me:$LINENO: result: none needed" >&5 | |
12271 | echo "${ECHO_T}none needed" >&6 ;; | |
12272 | *) | |
12273 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
12274 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12275 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12276 | esac | |
12277 | ||
12278 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
12279 | # in C++ we need to declare it. In case someone uses the same compiler | |
12280 | # for both compiling C and C++ we need to have the C++ compiler decide | |
12281 | # the declaration of exit, since it's the most demanding environment. | |
12282 | cat >conftest.$ac_ext <<_ACEOF | |
12283 | #ifndef __cplusplus | |
12284 | choke me | |
12285 | #endif | |
12286 | _ACEOF | |
12287 | rm -f conftest.$ac_objext | |
12288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12290 | ac_status=$? |
ac1cb8d3 VS |
12291 | grep -v '^ *+' conftest.er1 >conftest.err |
12292 | rm -f conftest.er1 | |
12293 | cat conftest.err >&5 | |
a848cd7e SC |
12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12295 | (exit $ac_status); } && | |
c9a66001 | 12296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12298 | (eval $ac_try) 2>&5 | |
12299 | ac_status=$? | |
12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12301 | (exit $ac_status); }; } && | |
12302 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12304 | (eval $ac_try) 2>&5 | |
12305 | ac_status=$? | |
12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12307 | (exit $ac_status); }; }; then | |
12308 | for ac_declaration in \ | |
ac1cb8d3 | 12309 | '' \ |
a848cd7e SC |
12310 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12311 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12312 | 'extern "C" void exit (int) throw ();' \ | |
12313 | 'extern "C" void exit (int);' \ | |
12314 | 'void exit (int);' | |
12315 | do | |
12316 | cat >conftest.$ac_ext <<_ACEOF | |
12317 | /* confdefs.h. */ | |
12318 | _ACEOF | |
12319 | cat confdefs.h >>conftest.$ac_ext | |
12320 | cat >>conftest.$ac_ext <<_ACEOF | |
12321 | /* end confdefs.h. */ | |
de59c161 | 12322 | $ac_declaration |
ac1cb8d3 | 12323 | #include <stdlib.h> |
a848cd7e SC |
12324 | int |
12325 | main () | |
12326 | { | |
12327 | exit (42); | |
12328 | ; | |
12329 | return 0; | |
12330 | } | |
12331 | _ACEOF | |
12332 | rm -f conftest.$ac_objext | |
12333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12334 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12335 | ac_status=$? |
ac1cb8d3 VS |
12336 | grep -v '^ *+' conftest.er1 >conftest.err |
12337 | rm -f conftest.er1 | |
12338 | cat conftest.err >&5 | |
a848cd7e SC |
12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12340 | (exit $ac_status); } && | |
c9a66001 | 12341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12343 | (eval $ac_try) 2>&5 | |
12344 | ac_status=$? | |
12345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12346 | (exit $ac_status); }; } && | |
12347 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12349 | (eval $ac_try) 2>&5 | |
12350 | ac_status=$? | |
12351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12352 | (exit $ac_status); }; }; then | |
12353 | : | |
12354 | else | |
12355 | echo "$as_me: failed program was:" >&5 | |
12356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12357 | ||
12358 | continue | |
12359 | fi | |
ac1cb8d3 | 12360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12361 | cat >conftest.$ac_ext <<_ACEOF |
12362 | /* confdefs.h. */ | |
12363 | _ACEOF | |
12364 | cat confdefs.h >>conftest.$ac_ext | |
12365 | cat >>conftest.$ac_ext <<_ACEOF | |
12366 | /* end confdefs.h. */ | |
12367 | $ac_declaration | |
12368 | int | |
12369 | main () | |
12370 | { | |
12371 | exit (42); | |
12372 | ; | |
12373 | return 0; | |
12374 | } | |
12375 | _ACEOF | |
12376 | rm -f conftest.$ac_objext | |
12377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12378 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12379 | ac_status=$? |
ac1cb8d3 VS |
12380 | grep -v '^ *+' conftest.er1 >conftest.err |
12381 | rm -f conftest.er1 | |
12382 | cat conftest.err >&5 | |
a848cd7e SC |
12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12384 | (exit $ac_status); } && | |
c9a66001 | 12385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12387 | (eval $ac_try) 2>&5 | |
12388 | ac_status=$? | |
12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12390 | (exit $ac_status); }; } && | |
12391 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12393 | (eval $ac_try) 2>&5 | |
12394 | ac_status=$? | |
12395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12396 | (exit $ac_status); }; }; then | |
12397 | break | |
12398 | else | |
12399 | echo "$as_me: failed program was:" >&5 | |
12400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12401 | ||
12402 | fi | |
ac1cb8d3 | 12403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12404 | done |
12405 | rm -f conftest* | |
12406 | if test -n "$ac_declaration"; then | |
12407 | echo '#ifdef __cplusplus' >>confdefs.h | |
12408 | echo $ac_declaration >>confdefs.h | |
12409 | echo '#endif' >>confdefs.h | |
12410 | fi | |
12411 | ||
12412 | else | |
12413 | echo "$as_me: failed program was:" >&5 | |
12414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12415 | ||
12416 | fi | |
ac1cb8d3 | 12417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12418 | ac_ext=c |
12419 | ac_cpp='$CPP $CPPFLAGS' | |
12420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12423 | ||
ab0ad5f1 VZ |
12424 | |
12425 | ||
12426 | ac_ext=c | |
12427 | ac_cpp='$CPP $CPPFLAGS' | |
12428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12431 | ||
12432 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12433 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12434 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12436 | else | |
12437 | cat >conftest.$ac_ext <<_ACEOF | |
12438 | /* confdefs.h. */ | |
12439 | _ACEOF | |
12440 | cat confdefs.h >>conftest.$ac_ext | |
12441 | cat >>conftest.$ac_ext <<_ACEOF | |
12442 | /* end confdefs.h. */ | |
12443 | ||
12444 | int | |
12445 | main () | |
12446 | { | |
12447 | ||
12448 | #ifndef __INTEL_COMPILER | |
12449 | choke me | |
12450 | #endif | |
12451 | ||
12452 | ; | |
12453 | return 0; | |
12454 | } | |
12455 | _ACEOF | |
12456 | rm -f conftest.$ac_objext | |
12457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12458 | (eval $ac_compile) 2>conftest.er1 | |
12459 | ac_status=$? | |
12460 | grep -v '^ *+' conftest.er1 >conftest.err | |
12461 | rm -f conftest.er1 | |
12462 | cat conftest.err >&5 | |
12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12464 | (exit $ac_status); } && | |
c9a66001 | 12465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
12466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12467 | (eval $ac_try) 2>&5 | |
12468 | ac_status=$? | |
12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12470 | (exit $ac_status); }; } && | |
12471 | { ac_try='test -s conftest.$ac_objext' | |
12472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12473 | (eval $ac_try) 2>&5 | |
12474 | ac_status=$? | |
12475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12476 | (exit $ac_status); }; }; then | |
12477 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12478 | else | |
12479 | echo "$as_me: failed program was:" >&5 | |
12480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12481 | ||
12482 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12483 | ||
12484 | fi | |
12485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12486 | ||
12487 | ||
12488 | fi | |
12489 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12490 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12491 | ac_ext=c | |
12492 | ac_cpp='$CPP $CPPFLAGS' | |
12493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12496 | ||
12497 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12498 | :; INTELCC=yes | |
12499 | else | |
12500 | :; | |
12501 | fi | |
12502 | ||
12503 | ||
12504 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12505 | if test "xCC" = "xC"; then |
12506 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12507 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12508 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
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 | ||
12522 | ; | |
12523 | return 0; | |
12524 | } | |
12525 | _ACEOF | |
12526 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12528 | (eval $ac_compile) 2>&5 | |
12529 | ac_status=$? | |
12530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12531 | (exit $ac_status); }; then | |
12532 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12533 | case $ac_file in | |
12534 | conftest.$ac_ext.o) | |
0093c2fc | 12535 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12536 | ;; |
12537 | *) | |
12538 | ;; | |
12539 | esac | |
12540 | done | |
12541 | else | |
12542 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12543 | See \`config.log' for more details." >&5 | |
12544 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12545 | See \`config.log' for more details." >&2;} | |
12546 | { (exit 1); exit 1; }; } | |
12547 | ||
12548 | fi | |
12549 | ||
12550 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12551 | ||
12552 | fi | |
0093c2fc VZ |
12553 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12554 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12555 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12556 | if test "c" = "c"; then |
0093c2fc | 12557 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12558 | fi |
12559 | if test "c" = "cxx"; then | |
0093c2fc | 12560 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12561 | fi |
12562 | fi | |
12563 | ||
0093c2fc | 12564 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12565 | unset ac_cv_prog_cc_g |
12566 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12567 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12568 | CFLAGS="-g" |
480ccd21 DE |
12569 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12570 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12571 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12573 | else | |
12574 | cat >conftest.$ac_ext <<_ACEOF | |
12575 | /* confdefs.h. */ | |
12576 | _ACEOF | |
12577 | cat confdefs.h >>conftest.$ac_ext | |
12578 | cat >>conftest.$ac_ext <<_ACEOF | |
12579 | /* end confdefs.h. */ | |
12580 | ||
12581 | int | |
12582 | main () | |
12583 | { | |
12584 | ||
12585 | ; | |
12586 | return 0; | |
12587 | } | |
12588 | _ACEOF | |
12589 | rm -f conftest.$ac_objext | |
12590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12591 | (eval $ac_compile) 2>conftest.er1 | |
12592 | ac_status=$? | |
12593 | grep -v '^ *+' conftest.er1 >conftest.err | |
12594 | rm -f conftest.er1 | |
12595 | cat conftest.err >&5 | |
12596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12597 | (exit $ac_status); } && | |
c9a66001 | 12598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12600 | (eval $ac_try) 2>&5 | |
12601 | ac_status=$? | |
12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12603 | (exit $ac_status); }; } && | |
12604 | { ac_try='test -s conftest.$ac_objext' | |
12605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12606 | (eval $ac_try) 2>&5 | |
12607 | ac_status=$? | |
12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12609 | (exit $ac_status); }; }; then | |
12610 | ac_cv_prog_cc_g=yes | |
12611 | else | |
12612 | echo "$as_me: failed program was:" >&5 | |
12613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12614 | ||
12615 | ac_cv_prog_cc_g=no | |
12616 | fi | |
12617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12618 | fi | |
12619 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12620 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12621 | if test "$ac_test_CFLAGS" = set; then | |
12622 | CFLAGS=$ac_save_CFLAGS | |
12623 | elif test $ac_cv_prog_cc_g = yes; then | |
12624 | if test "$GCC" = yes; then | |
12625 | CFLAGS="-g -O2" | |
12626 | else | |
12627 | CFLAGS="-g" | |
12628 | fi | |
12629 | else | |
12630 | if test "$GCC" = yes; then | |
12631 | CFLAGS="-O2" | |
12632 | else | |
12633 | CFLAGS= | |
12634 | fi | |
12635 | fi | |
3006edc0 | 12636 | fi |
ab0ad5f1 | 12637 | fi |
3006edc0 VZ |
12638 | |
12639 | case `uname -s` in | |
12640 | AIX*) | |
12641 | ac_ext=c | |
12642 | ac_cpp='$CPP $CPPFLAGS' | |
12643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12646 | ||
12647 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12648 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12649 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12651 | else | |
12652 | cat >conftest.$ac_ext <<_ACEOF | |
12653 | /* confdefs.h. */ | |
12654 | _ACEOF | |
12655 | cat confdefs.h >>conftest.$ac_ext | |
12656 | cat >>conftest.$ac_ext <<_ACEOF | |
12657 | /* end confdefs.h. */ | |
12658 | ||
12659 | int | |
12660 | main () | |
12661 | { | |
12662 | #ifndef __xlC__ | |
12663 | choke me | |
12664 | #endif | |
12665 | ||
12666 | ; | |
12667 | return 0; | |
12668 | } | |
12669 | _ACEOF | |
12670 | rm -f conftest.$ac_objext | |
12671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12672 | (eval $ac_compile) 2>conftest.er1 | |
12673 | ac_status=$? | |
12674 | grep -v '^ *+' conftest.er1 >conftest.err | |
12675 | rm -f conftest.er1 | |
12676 | cat conftest.err >&5 | |
12677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12678 | (exit $ac_status); } && | |
c9a66001 | 12679 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12681 | (eval $ac_try) 2>&5 | |
12682 | ac_status=$? | |
12683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12684 | (exit $ac_status); }; } && | |
12685 | { ac_try='test -s conftest.$ac_objext' | |
12686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12687 | (eval $ac_try) 2>&5 | |
12688 | ac_status=$? | |
12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12690 | (exit $ac_status); }; }; then | |
0093c2fc | 12691 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12692 | else |
12693 | echo "$as_me: failed program was:" >&5 | |
12694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12695 | ||
0093c2fc | 12696 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12697 | fi |
12698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12699 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12700 | |
12701 | fi | |
0093c2fc VZ |
12702 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12703 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12704 | |
0093c2fc | 12705 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12706 | ac_ext=c |
12707 | ac_cpp='$CPP $CPPFLAGS' | |
12708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12711 | ||
12712 | ||
12713 | ;; | |
12714 | ||
12715 | Darwin) | |
12716 | ac_ext=c | |
95986553 DE |
12717 | ac_cpp='$CPP $CPPFLAGS' |
12718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12721 | ||
12722 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12723 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12724 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12726 | else | |
12727 | cat >conftest.$ac_ext <<_ACEOF | |
12728 | /* confdefs.h. */ | |
12729 | _ACEOF | |
12730 | cat confdefs.h >>conftest.$ac_ext | |
12731 | cat >>conftest.$ac_ext <<_ACEOF | |
12732 | /* end confdefs.h. */ | |
12733 | ||
12734 | int | |
12735 | main () | |
12736 | { | |
12737 | #ifndef __MWERKS__ | |
12738 | choke me | |
12739 | #endif | |
12740 | ||
12741 | ; | |
12742 | return 0; | |
12743 | } | |
12744 | _ACEOF | |
12745 | rm -f conftest.$ac_objext | |
12746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12747 | (eval $ac_compile) 2>conftest.er1 | |
12748 | ac_status=$? | |
12749 | grep -v '^ *+' conftest.er1 >conftest.err | |
12750 | rm -f conftest.er1 | |
12751 | cat conftest.err >&5 | |
12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12753 | (exit $ac_status); } && | |
c9a66001 | 12754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12756 | (eval $ac_try) 2>&5 | |
12757 | ac_status=$? | |
12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12759 | (exit $ac_status); }; } && | |
12760 | { ac_try='test -s conftest.$ac_objext' | |
12761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12762 | (eval $ac_try) 2>&5 | |
12763 | ac_status=$? | |
12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12765 | (exit $ac_status); }; }; then | |
12766 | bakefile_compiler_mwerks=yes | |
12767 | else | |
12768 | echo "$as_me: failed program was:" >&5 | |
12769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12770 | ||
12771 | bakefile_compiler_mwerks=no | |
12772 | fi | |
12773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12774 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12775 | ||
12776 | fi | |
12777 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12778 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12779 | ||
0e6fa1d9 | 12780 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12781 | ac_ext=c |
12782 | ac_cpp='$CPP $CPPFLAGS' | |
12783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12786 | ||
12787 | ||
3006edc0 | 12788 | ac_ext=c |
9273ffba DE |
12789 | ac_cpp='$CPP $CPPFLAGS' |
12790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12793 | ||
12794 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12795 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12796 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12798 | else | |
12799 | cat >conftest.$ac_ext <<_ACEOF | |
12800 | /* confdefs.h. */ | |
12801 | _ACEOF | |
12802 | cat confdefs.h >>conftest.$ac_ext | |
12803 | cat >>conftest.$ac_ext <<_ACEOF | |
12804 | /* end confdefs.h. */ | |
12805 | ||
12806 | int | |
12807 | main () | |
12808 | { | |
12809 | #ifndef __xlC__ | |
12810 | choke me | |
12811 | #endif | |
12812 | ||
12813 | ; | |
12814 | return 0; | |
12815 | } | |
12816 | _ACEOF | |
12817 | rm -f conftest.$ac_objext | |
12818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12819 | (eval $ac_compile) 2>conftest.er1 | |
12820 | ac_status=$? | |
12821 | grep -v '^ *+' conftest.er1 >conftest.err | |
12822 | rm -f conftest.er1 | |
12823 | cat conftest.err >&5 | |
12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12825 | (exit $ac_status); } && | |
c9a66001 | 12826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12828 | (eval $ac_try) 2>&5 | |
12829 | ac_status=$? | |
12830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12831 | (exit $ac_status); }; } && | |
12832 | { ac_try='test -s conftest.$ac_objext' | |
12833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12834 | (eval $ac_try) 2>&5 | |
12835 | ac_status=$? | |
12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12837 | (exit $ac_status); }; }; then | |
0093c2fc | 12838 | bakefile_compiler_xlc=yes |
9273ffba DE |
12839 | else |
12840 | echo "$as_me: failed program was:" >&5 | |
12841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12842 | ||
0093c2fc | 12843 | bakefile_compiler_xlc=no |
9273ffba DE |
12844 | fi |
12845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12846 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12847 | |
12848 | fi | |
0093c2fc VZ |
12849 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12850 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12851 | |
0093c2fc | 12852 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12853 | ac_ext=c |
12854 | ac_cpp='$CPP $CPPFLAGS' | |
12855 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12856 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12857 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12858 | ||
12859 | ||
3006edc0 VZ |
12860 | ;; |
12861 | ||
12862 | IRIX*) | |
a848cd7e | 12863 | |
6dcfc289 | 12864 | |
0ad5d837 VZ |
12865 | ac_ext=c |
12866 | ac_cpp='$CPP $CPPFLAGS' | |
12867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12870 | ||
12871 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12872 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12873 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12875 | else | |
12876 | cat >conftest.$ac_ext <<_ACEOF | |
12877 | /* confdefs.h. */ | |
12878 | _ACEOF | |
12879 | cat confdefs.h >>conftest.$ac_ext | |
12880 | cat >>conftest.$ac_ext <<_ACEOF | |
12881 | /* end confdefs.h. */ | |
12882 | ||
12883 | int | |
12884 | main () | |
12885 | { | |
12886 | ||
12887 | #ifndef _SGI_COMPILER_VERSION | |
12888 | choke me | |
12889 | #endif | |
12890 | ||
12891 | ; | |
12892 | return 0; | |
12893 | } | |
12894 | _ACEOF | |
12895 | rm -f conftest.$ac_objext | |
12896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12897 | (eval $ac_compile) 2>conftest.er1 | |
12898 | ac_status=$? | |
12899 | grep -v '^ *+' conftest.er1 >conftest.err | |
12900 | rm -f conftest.er1 | |
12901 | cat conftest.err >&5 | |
12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12903 | (exit $ac_status); } && | |
c9a66001 | 12904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
12905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12906 | (eval $ac_try) 2>&5 | |
12907 | ac_status=$? | |
12908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12909 | (exit $ac_status); }; } && | |
12910 | { ac_try='test -s conftest.$ac_objext' | |
12911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12912 | (eval $ac_try) 2>&5 | |
12913 | ac_status=$? | |
12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12915 | (exit $ac_status); }; }; then | |
12916 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12917 | else | |
12918 | echo "$as_me: failed program was:" >&5 | |
12919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12920 | ||
12921 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12922 | ||
12923 | fi | |
12924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12925 | ||
12926 | ||
12927 | fi | |
12928 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12929 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12930 | ac_ext=c | |
12931 | ac_cpp='$CPP $CPPFLAGS' | |
12932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12935 | ||
12936 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12937 | :; SGICC=yes | |
12938 | else | |
12939 | :; | |
12940 | fi | |
12941 | ||
12942 | ||
3006edc0 VZ |
12943 | ;; |
12944 | ||
0093c2fc | 12945 | HP-UX*) |
3006edc0 VZ |
12946 | |
12947 | ||
12948 | ac_ext=c | |
12949 | ac_cpp='$CPP $CPPFLAGS' | |
12950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12953 | ||
0093c2fc VZ |
12954 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12955 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12956 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12958 | else | |
12959 | cat >conftest.$ac_ext <<_ACEOF | |
12960 | /* confdefs.h. */ | |
12961 | _ACEOF | |
12962 | cat confdefs.h >>conftest.$ac_ext | |
12963 | cat >>conftest.$ac_ext <<_ACEOF | |
12964 | /* end confdefs.h. */ | |
12965 | ||
12966 | int | |
12967 | main () | |
12968 | { | |
12969 | ||
0093c2fc | 12970 | #ifndef __HP_cc |
3006edc0 VZ |
12971 | choke me |
12972 | #endif | |
12973 | ||
12974 | ; | |
12975 | return 0; | |
12976 | } | |
12977 | _ACEOF | |
12978 | rm -f conftest.$ac_objext | |
12979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12980 | (eval $ac_compile) 2>conftest.er1 | |
12981 | ac_status=$? | |
12982 | grep -v '^ *+' conftest.er1 >conftest.err | |
12983 | rm -f conftest.er1 | |
12984 | cat conftest.err >&5 | |
12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12986 | (exit $ac_status); } && | |
c9a66001 | 12987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12989 | (eval $ac_try) 2>&5 | |
12990 | ac_status=$? | |
12991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12992 | (exit $ac_status); }; } && | |
12993 | { ac_try='test -s conftest.$ac_objext' | |
12994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12995 | (eval $ac_try) 2>&5 | |
12996 | ac_status=$? | |
12997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12998 | (exit $ac_status); }; }; then | |
0093c2fc | 12999 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
13000 | else |
13001 | echo "$as_me: failed program was:" >&5 | |
13002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13003 | ||
0093c2fc | 13004 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
13005 | |
13006 | fi | |
13007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13008 | ||
13009 | ||
13010 | fi | |
0093c2fc VZ |
13011 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
13012 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
13013 | ac_ext=c |
13014 | ac_cpp='$CPP $CPPFLAGS' | |
13015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13018 | ||
0093c2fc VZ |
13019 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
13020 | :; HPCC=yes | |
a1aa0349 VZ |
13021 | else |
13022 | :; | |
13023 | fi | |
13024 | ||
13025 | ||
13026 | ;; | |
13027 | ||
0093c2fc | 13028 | OSF1) |
a1aa0349 VZ |
13029 | |
13030 | ||
13031 | ac_ext=c | |
13032 | ac_cpp='$CPP $CPPFLAGS' | |
13033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13036 | ||
0093c2fc VZ |
13037 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
13038 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
13039 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
13040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13041 | else | |
13042 | cat >conftest.$ac_ext <<_ACEOF | |
13043 | /* confdefs.h. */ | |
13044 | _ACEOF | |
13045 | cat confdefs.h >>conftest.$ac_ext | |
13046 | cat >>conftest.$ac_ext <<_ACEOF | |
13047 | /* end confdefs.h. */ | |
13048 | ||
13049 | int | |
13050 | main () | |
13051 | { | |
13052 | ||
0093c2fc | 13053 | #ifndef __DECC |
a1aa0349 VZ |
13054 | choke me |
13055 | #endif | |
13056 | ||
13057 | ; | |
13058 | return 0; | |
13059 | } | |
13060 | _ACEOF | |
13061 | rm -f conftest.$ac_objext | |
13062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13063 | (eval $ac_compile) 2>conftest.er1 | |
13064 | ac_status=$? | |
13065 | grep -v '^ *+' conftest.er1 >conftest.err | |
13066 | rm -f conftest.er1 | |
13067 | cat conftest.err >&5 | |
13068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13069 | (exit $ac_status); } && | |
c9a66001 | 13070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
13071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13072 | (eval $ac_try) 2>&5 | |
13073 | ac_status=$? | |
13074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13075 | (exit $ac_status); }; } && | |
13076 | { ac_try='test -s conftest.$ac_objext' | |
13077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13078 | (eval $ac_try) 2>&5 | |
13079 | ac_status=$? | |
13080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13081 | (exit $ac_status); }; }; then | |
0093c2fc | 13082 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
13083 | else |
13084 | echo "$as_me: failed program was:" >&5 | |
13085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13086 | ||
0093c2fc | 13087 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
13088 | |
13089 | fi | |
13090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13091 | ||
13092 | ||
13093 | fi | |
0093c2fc VZ |
13094 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
13095 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
13096 | ac_ext=c |
13097 | ac_cpp='$CPP $CPPFLAGS' | |
13098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13101 | ||
0093c2fc VZ |
13102 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
13103 | :; COMPAQCC=yes | |
13104 | else | |
13105 | :; | |
13106 | fi | |
13107 | ||
13108 | ||
13109 | ;; | |
13110 | ||
13111 | SunOS) | |
13112 | ||
13113 | ||
13114 | ac_ext=c | |
13115 | ac_cpp='$CPP $CPPFLAGS' | |
13116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13119 | ||
13120 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
13121 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
13122 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
13123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13124 | else | |
13125 | cat >conftest.$ac_ext <<_ACEOF | |
13126 | /* confdefs.h. */ | |
13127 | _ACEOF | |
13128 | cat confdefs.h >>conftest.$ac_ext | |
13129 | cat >>conftest.$ac_ext <<_ACEOF | |
13130 | /* end confdefs.h. */ | |
13131 | ||
13132 | int | |
13133 | main () | |
13134 | { | |
13135 | ||
13136 | #ifndef __SUNPRO_C | |
13137 | choke me | |
13138 | #endif | |
13139 | ||
13140 | ; | |
13141 | return 0; | |
13142 | } | |
13143 | _ACEOF | |
13144 | rm -f conftest.$ac_objext | |
13145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13146 | (eval $ac_compile) 2>conftest.er1 | |
13147 | ac_status=$? | |
13148 | grep -v '^ *+' conftest.er1 >conftest.err | |
13149 | rm -f conftest.er1 | |
13150 | cat conftest.err >&5 | |
13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13152 | (exit $ac_status); } && | |
c9a66001 | 13153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
13154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13155 | (eval $ac_try) 2>&5 | |
13156 | ac_status=$? | |
13157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13158 | (exit $ac_status); }; } && | |
13159 | { ac_try='test -s conftest.$ac_objext' | |
13160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13161 | (eval $ac_try) 2>&5 | |
13162 | ac_status=$? | |
13163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13164 | (exit $ac_status); }; }; then | |
13165 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
13166 | else | |
13167 | echo "$as_me: failed program was:" >&5 | |
13168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13169 | ||
13170 | bakefile_cv_c_compiler___SUNPRO_C=no | |
13171 | ||
13172 | fi | |
13173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13174 | ||
13175 | ||
13176 | fi | |
13177 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
13178 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
13179 | ac_ext=c | |
13180 | ac_cpp='$CPP $CPPFLAGS' | |
13181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13184 | ||
13185 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
13186 | :; SUNCC=yes | |
3006edc0 VZ |
13187 | else |
13188 | :; | |
13189 | fi | |
13190 | ||
13191 | ||
13192 | ;; | |
13193 | esac | |
ab0ad5f1 | 13194 | fi |
a9e5b1f0 MW |
13195 | |
13196 | ||
3006edc0 | 13197 | |
a848cd7e SC |
13198 | ac_ext=c |
13199 | ac_cpp='$CPP $CPPFLAGS' | |
13200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13203 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
13204 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
13205 | # On Suns, sometimes $CPP names a directory. | |
13206 | if test -n "$CPP" && test -d "$CPP"; then | |
13207 | CPP= | |
13208 | fi | |
13209 | if test -z "$CPP"; then | |
13210 | if test "${ac_cv_prog_CPP+set}" = set; then | |
13211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13212 | else | |
13213 | # Double quotes because CPP needs to be expanded | |
13214 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
13215 | do | |
13216 | ac_preproc_ok=false | |
13217 | for ac_c_preproc_warn_flag in '' yes | |
13218 | do | |
13219 | # Use a header file that comes with gcc, so configuring glibc | |
13220 | # with a fresh cross-compiler works. | |
13221 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13222 | # <limits.h> exists even on freestanding compilers. | |
13223 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13224 | # not just through cpp. "Syntax error" is here to catch this case. | |
13225 | cat >conftest.$ac_ext <<_ACEOF | |
13226 | /* confdefs.h. */ | |
13227 | _ACEOF | |
13228 | cat confdefs.h >>conftest.$ac_ext | |
13229 | cat >>conftest.$ac_ext <<_ACEOF | |
13230 | /* end confdefs.h. */ | |
13231 | #ifdef __STDC__ | |
13232 | # include <limits.h> | |
13233 | #else | |
13234 | # include <assert.h> | |
13235 | #endif | |
ac1cb8d3 | 13236 | Syntax error |
a848cd7e SC |
13237 | _ACEOF |
13238 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13239 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13240 | ac_status=$? | |
13241 | grep -v '^ *+' conftest.er1 >conftest.err | |
13242 | rm -f conftest.er1 | |
13243 | cat conftest.err >&5 | |
13244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13245 | (exit $ac_status); } >/dev/null; then | |
13246 | if test -s conftest.err; then | |
13247 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13248 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13249 | else |
13250 | ac_cpp_err= | |
13251 | fi | |
13252 | else | |
13253 | ac_cpp_err=yes | |
13254 | fi | |
13255 | if test -z "$ac_cpp_err"; then | |
13256 | : | |
13257 | else | |
13258 | echo "$as_me: failed program was:" >&5 | |
13259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13260 | ||
13261 | # Broken: fails on valid input. | |
13262 | continue | |
13263 | fi | |
13264 | rm -f conftest.err conftest.$ac_ext | |
13265 | ||
13266 | # OK, works on sane cases. Now check whether non-existent headers | |
13267 | # can be detected and how. | |
13268 | cat >conftest.$ac_ext <<_ACEOF | |
13269 | /* confdefs.h. */ | |
13270 | _ACEOF | |
13271 | cat confdefs.h >>conftest.$ac_ext | |
13272 | cat >>conftest.$ac_ext <<_ACEOF | |
13273 | /* end confdefs.h. */ | |
13274 | #include <ac_nonexistent.h> | |
13275 | _ACEOF | |
13276 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13277 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13278 | ac_status=$? | |
13279 | grep -v '^ *+' conftest.er1 >conftest.err | |
13280 | rm -f conftest.er1 | |
13281 | cat conftest.err >&5 | |
13282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13283 | (exit $ac_status); } >/dev/null; then | |
13284 | if test -s conftest.err; then | |
13285 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13286 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13287 | else |
13288 | ac_cpp_err= | |
13289 | fi | |
13290 | else | |
13291 | ac_cpp_err=yes | |
13292 | fi | |
13293 | if test -z "$ac_cpp_err"; then | |
13294 | # Broken: success on invalid input. | |
13295 | continue | |
13296 | else | |
13297 | echo "$as_me: failed program was:" >&5 | |
13298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13299 | ||
13300 | # Passes both tests. | |
13301 | ac_preproc_ok=: | |
13302 | break | |
13303 | fi | |
13304 | rm -f conftest.err conftest.$ac_ext | |
13305 | ||
13306 | done | |
13307 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13308 | rm -f conftest.err conftest.$ac_ext | |
13309 | if $ac_preproc_ok; then | |
13310 | break | |
13311 | fi | |
13312 | ||
13313 | done | |
13314 | ac_cv_prog_CPP=$CPP | |
13315 | ||
13316 | fi | |
13317 | CPP=$ac_cv_prog_CPP | |
13318 | else | |
13319 | ac_cv_prog_CPP=$CPP | |
13320 | fi | |
13321 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
13322 | echo "${ECHO_T}$CPP" >&6 | |
13323 | ac_preproc_ok=false | |
13324 | for ac_c_preproc_warn_flag in '' yes | |
13325 | do | |
13326 | # Use a header file that comes with gcc, so configuring glibc | |
13327 | # with a fresh cross-compiler works. | |
13328 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13329 | # <limits.h> exists even on freestanding compilers. | |
13330 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13331 | # not just through cpp. "Syntax error" is here to catch this case. | |
13332 | cat >conftest.$ac_ext <<_ACEOF | |
13333 | /* confdefs.h. */ | |
13334 | _ACEOF | |
13335 | cat confdefs.h >>conftest.$ac_ext | |
13336 | cat >>conftest.$ac_ext <<_ACEOF | |
13337 | /* end confdefs.h. */ | |
13338 | #ifdef __STDC__ | |
13339 | # include <limits.h> | |
13340 | #else | |
13341 | # include <assert.h> | |
13342 | #endif | |
ac1cb8d3 | 13343 | Syntax error |
a848cd7e SC |
13344 | _ACEOF |
13345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13347 | ac_status=$? | |
13348 | grep -v '^ *+' conftest.er1 >conftest.err | |
13349 | rm -f conftest.er1 | |
13350 | cat conftest.err >&5 | |
13351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13352 | (exit $ac_status); } >/dev/null; then | |
13353 | if test -s conftest.err; then | |
13354 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13356 | else |
13357 | ac_cpp_err= | |
13358 | fi | |
13359 | else | |
13360 | ac_cpp_err=yes | |
13361 | fi | |
13362 | if test -z "$ac_cpp_err"; then | |
13363 | : | |
13364 | else | |
13365 | echo "$as_me: failed program was:" >&5 | |
13366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13367 | ||
13368 | # Broken: fails on valid input. | |
13369 | continue | |
13370 | fi | |
13371 | rm -f conftest.err conftest.$ac_ext | |
13372 | ||
13373 | # OK, works on sane cases. Now check whether non-existent headers | |
13374 | # can be detected and how. | |
13375 | cat >conftest.$ac_ext <<_ACEOF | |
13376 | /* confdefs.h. */ | |
13377 | _ACEOF | |
13378 | cat confdefs.h >>conftest.$ac_ext | |
13379 | cat >>conftest.$ac_ext <<_ACEOF | |
13380 | /* end confdefs.h. */ | |
13381 | #include <ac_nonexistent.h> | |
13382 | _ACEOF | |
13383 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13384 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13385 | ac_status=$? | |
13386 | grep -v '^ *+' conftest.er1 >conftest.err | |
13387 | rm -f conftest.er1 | |
13388 | cat conftest.err >&5 | |
13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13390 | (exit $ac_status); } >/dev/null; then | |
13391 | if test -s conftest.err; then | |
13392 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13393 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13394 | else |
13395 | ac_cpp_err= | |
13396 | fi | |
13397 | else | |
13398 | ac_cpp_err=yes | |
13399 | fi | |
13400 | if test -z "$ac_cpp_err"; then | |
13401 | # Broken: success on invalid input. | |
13402 | continue | |
13403 | else | |
13404 | echo "$as_me: failed program was:" >&5 | |
13405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13406 | ||
13407 | # Passes both tests. | |
13408 | ac_preproc_ok=: | |
13409 | break | |
13410 | fi | |
13411 | rm -f conftest.err conftest.$ac_ext | |
13412 | ||
13413 | done | |
13414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13415 | rm -f conftest.err conftest.$ac_ext | |
13416 | if $ac_preproc_ok; then | |
13417 | : | |
13418 | else | |
13419 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13420 | See \`config.log' for more details." >&5 | |
13421 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13422 | See \`config.log' for more details." >&2;} | |
13423 | { (exit 1); exit 1; }; } | |
13424 | fi | |
13425 | ||
13426 | ac_ext=c | |
13427 | ac_cpp='$CPP $CPPFLAGS' | |
13428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13431 | ||
13432 | ||
13433 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13434 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13435 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13437 | else | |
13438 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13439 | then ac_cv_prog_egrep='grep -E' | |
13440 | else ac_cv_prog_egrep='egrep' | |
13441 | fi | |
13442 | fi | |
13443 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13444 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13445 | EGREP=$ac_cv_prog_egrep | |
13446 | ||
13447 | ||
13448 | if test $ac_cv_c_compiler_gnu = yes; then | |
13449 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13450 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13451 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13453 | else | |
13454 | ac_pattern="Autoconf.*'x'" | |
13455 | cat >conftest.$ac_ext <<_ACEOF | |
13456 | /* confdefs.h. */ | |
13457 | _ACEOF | |
13458 | cat confdefs.h >>conftest.$ac_ext | |
13459 | cat >>conftest.$ac_ext <<_ACEOF | |
13460 | /* end confdefs.h. */ | |
13461 | #include <sgtty.h> | |
13462 | Autoconf TIOCGETP | |
13463 | _ACEOF | |
13464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13465 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13466 | ac_cv_prog_gcc_traditional=yes | |
13467 | else | |
13468 | ac_cv_prog_gcc_traditional=no | |
13469 | fi | |
13470 | rm -f conftest* | |
13471 | ||
13472 | ||
13473 | if test $ac_cv_prog_gcc_traditional = no; then | |
13474 | cat >conftest.$ac_ext <<_ACEOF | |
13475 | /* confdefs.h. */ | |
13476 | _ACEOF | |
13477 | cat confdefs.h >>conftest.$ac_ext | |
13478 | cat >>conftest.$ac_ext <<_ACEOF | |
13479 | /* end confdefs.h. */ | |
13480 | #include <termio.h> | |
13481 | Autoconf TCGETA | |
13482 | _ACEOF | |
13483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13484 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13485 | ac_cv_prog_gcc_traditional=yes | |
13486 | fi | |
13487 | rm -f conftest* | |
13488 | ||
13489 | fi | |
13490 | fi | |
13491 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13492 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13493 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13494 | CC="$CC -traditional" | |
13495 | fi | |
13496 | fi | |
13497 | ||
13498 | ||
a848cd7e SC |
13499 | ac_ext=cc |
13500 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13501 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13502 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13503 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13504 | ||
13505 | ||
13506 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13507 | |
13508 | ||
3006edc0 | 13509 | |
6dcfc289 | 13510 | ac_ext=cc |
a848cd7e SC |
13511 | ac_cpp='$CXXCPP $CPPFLAGS' |
13512 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13513 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13514 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13515 | if test -n "$ac_tool_prefix"; then | |
13516 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13517 | do | |
13518 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13519 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13522 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13524 | else | |
13525 | if test -n "$CXX"; then | |
13526 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13527 | else | |
13528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13529 | for as_dir in $PATH | |
13530 | do | |
13531 | IFS=$as_save_IFS | |
13532 | test -z "$as_dir" && as_dir=. | |
13533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13535 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13537 | break 2 | |
13538 | fi | |
13539 | done | |
13540 | done | |
13541 | ||
13542 | fi | |
13543 | fi | |
13544 | CXX=$ac_cv_prog_CXX | |
13545 | if test -n "$CXX"; then | |
13546 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13547 | echo "${ECHO_T}$CXX" >&6 | |
13548 | else | |
13549 | echo "$as_me:$LINENO: result: no" >&5 | |
13550 | echo "${ECHO_T}no" >&6 | |
13551 | fi | |
13552 | ||
13553 | test -n "$CXX" && break | |
13554 | done | |
13555 | fi | |
13556 | if test -z "$CXX"; then | |
13557 | ac_ct_CXX=$CXX | |
13558 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13559 | do | |
13560 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13561 | set dummy $ac_prog; ac_word=$2 | |
13562 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13564 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13566 | else | |
13567 | if test -n "$ac_ct_CXX"; then | |
13568 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13569 | else | |
13570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13571 | for as_dir in $PATH | |
13572 | do | |
13573 | IFS=$as_save_IFS | |
13574 | test -z "$as_dir" && as_dir=. | |
13575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13577 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13579 | break 2 | |
13580 | fi | |
13581 | done | |
13582 | done | |
13583 | ||
13584 | fi | |
13585 | fi | |
13586 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13587 | if test -n "$ac_ct_CXX"; then | |
13588 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13589 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13590 | else | |
13591 | echo "$as_me:$LINENO: result: no" >&5 | |
13592 | echo "${ECHO_T}no" >&6 | |
13593 | fi | |
13594 | ||
13595 | test -n "$ac_ct_CXX" && break | |
13596 | done | |
13597 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13598 | ||
13599 | CXX=$ac_ct_CXX | |
13600 | fi | |
13601 | ||
13602 | ||
13603 | # Provide some information about the compiler. | |
13604 | echo "$as_me:$LINENO:" \ | |
13605 | "checking for C++ compiler version" >&5 | |
13606 | ac_compiler=`set X $ac_compile; echo $2` | |
13607 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13608 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13609 | ac_status=$? | |
13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13611 | (exit $ac_status); } | |
13612 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13613 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13614 | ac_status=$? | |
13615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13616 | (exit $ac_status); } | |
13617 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13618 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13619 | ac_status=$? | |
13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13621 | (exit $ac_status); } | |
13622 | ||
13623 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13624 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13625 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13627 | else | |
13628 | cat >conftest.$ac_ext <<_ACEOF | |
13629 | /* confdefs.h. */ | |
13630 | _ACEOF | |
13631 | cat confdefs.h >>conftest.$ac_ext | |
13632 | cat >>conftest.$ac_ext <<_ACEOF | |
13633 | /* end confdefs.h. */ | |
13634 | ||
13635 | int | |
13636 | main () | |
13637 | { | |
13638 | #ifndef __GNUC__ | |
13639 | choke me | |
13640 | #endif | |
13641 | ||
13642 | ; | |
13643 | return 0; | |
13644 | } | |
13645 | _ACEOF | |
13646 | rm -f conftest.$ac_objext | |
13647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13648 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13649 | ac_status=$? |
ac1cb8d3 VS |
13650 | grep -v '^ *+' conftest.er1 >conftest.err |
13651 | rm -f conftest.er1 | |
13652 | cat conftest.err >&5 | |
a848cd7e SC |
13653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13654 | (exit $ac_status); } && | |
c9a66001 | 13655 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13657 | (eval $ac_try) 2>&5 | |
13658 | ac_status=$? | |
13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13660 | (exit $ac_status); }; } && | |
13661 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13663 | (eval $ac_try) 2>&5 | |
13664 | ac_status=$? | |
13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13666 | (exit $ac_status); }; }; then | |
13667 | ac_compiler_gnu=yes | |
13668 | else | |
13669 | echo "$as_me: failed program was:" >&5 | |
13670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13671 | ||
13672 | ac_compiler_gnu=no | |
13673 | fi | |
ac1cb8d3 | 13674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13675 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13676 | ||
13677 | fi | |
13678 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13679 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13680 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13681 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13682 | ac_save_CXXFLAGS=$CXXFLAGS | |
13683 | CXXFLAGS="-g" | |
13684 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13685 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13686 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13688 | else | |
13689 | cat >conftest.$ac_ext <<_ACEOF | |
13690 | /* confdefs.h. */ | |
13691 | _ACEOF | |
13692 | cat confdefs.h >>conftest.$ac_ext | |
13693 | cat >>conftest.$ac_ext <<_ACEOF | |
13694 | /* end confdefs.h. */ | |
13695 | ||
13696 | int | |
13697 | main () | |
13698 | { | |
13699 | ||
13700 | ; | |
13701 | return 0; | |
13702 | } | |
13703 | _ACEOF | |
13704 | rm -f conftest.$ac_objext | |
13705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13706 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13707 | ac_status=$? |
ac1cb8d3 VS |
13708 | grep -v '^ *+' conftest.er1 >conftest.err |
13709 | rm -f conftest.er1 | |
13710 | cat conftest.err >&5 | |
a848cd7e SC |
13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13712 | (exit $ac_status); } && | |
c9a66001 | 13713 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13715 | (eval $ac_try) 2>&5 | |
13716 | ac_status=$? | |
13717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13718 | (exit $ac_status); }; } && | |
13719 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13721 | (eval $ac_try) 2>&5 | |
13722 | ac_status=$? | |
13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13724 | (exit $ac_status); }; }; then | |
13725 | ac_cv_prog_cxx_g=yes | |
13726 | else | |
13727 | echo "$as_me: failed program was:" >&5 | |
13728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13729 | ||
13730 | ac_cv_prog_cxx_g=no | |
13731 | fi | |
ac1cb8d3 | 13732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13733 | fi |
13734 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13735 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13736 | if test "$ac_test_CXXFLAGS" = set; then | |
13737 | CXXFLAGS=$ac_save_CXXFLAGS | |
13738 | elif test $ac_cv_prog_cxx_g = yes; then | |
13739 | if test "$GXX" = yes; then | |
8aeeb05c | 13740 | CXXFLAGS="-g -O2" |
a848cd7e | 13741 | else |
8aeeb05c | 13742 | CXXFLAGS="-g" |
a848cd7e SC |
13743 | fi |
13744 | else | |
13745 | if test "$GXX" = yes; then | |
13746 | CXXFLAGS="-O2" | |
13747 | else | |
13748 | CXXFLAGS= | |
13749 | fi | |
13750 | fi | |
13751 | for ac_declaration in \ | |
ac1cb8d3 | 13752 | '' \ |
a848cd7e SC |
13753 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13754 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13755 | 'extern "C" void exit (int) throw ();' \ | |
13756 | 'extern "C" void exit (int);' \ | |
13757 | 'void exit (int);' | |
13758 | do | |
13759 | cat >conftest.$ac_ext <<_ACEOF | |
13760 | /* confdefs.h. */ | |
13761 | _ACEOF | |
13762 | cat confdefs.h >>conftest.$ac_ext | |
13763 | cat >>conftest.$ac_ext <<_ACEOF | |
13764 | /* end confdefs.h. */ | |
de59c161 | 13765 | $ac_declaration |
ac1cb8d3 | 13766 | #include <stdlib.h> |
a848cd7e SC |
13767 | int |
13768 | main () | |
13769 | { | |
13770 | exit (42); | |
13771 | ; | |
13772 | return 0; | |
13773 | } | |
13774 | _ACEOF | |
13775 | rm -f conftest.$ac_objext | |
13776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13777 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13778 | ac_status=$? |
ac1cb8d3 VS |
13779 | grep -v '^ *+' conftest.er1 >conftest.err |
13780 | rm -f conftest.er1 | |
13781 | cat conftest.err >&5 | |
a848cd7e SC |
13782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13783 | (exit $ac_status); } && | |
c9a66001 | 13784 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13786 | (eval $ac_try) 2>&5 | |
13787 | ac_status=$? | |
13788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13789 | (exit $ac_status); }; } && | |
13790 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13792 | (eval $ac_try) 2>&5 | |
13793 | ac_status=$? | |
13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13795 | (exit $ac_status); }; }; then | |
13796 | : | |
13797 | else | |
13798 | echo "$as_me: failed program was:" >&5 | |
13799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13800 | ||
13801 | continue | |
13802 | fi | |
ac1cb8d3 | 13803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13804 | cat >conftest.$ac_ext <<_ACEOF |
13805 | /* confdefs.h. */ | |
13806 | _ACEOF | |
13807 | cat confdefs.h >>conftest.$ac_ext | |
13808 | cat >>conftest.$ac_ext <<_ACEOF | |
13809 | /* end confdefs.h. */ | |
13810 | $ac_declaration | |
13811 | int | |
13812 | main () | |
13813 | { | |
13814 | exit (42); | |
13815 | ; | |
13816 | return 0; | |
13817 | } | |
13818 | _ACEOF | |
13819 | rm -f conftest.$ac_objext | |
13820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13821 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13822 | ac_status=$? |
ac1cb8d3 VS |
13823 | grep -v '^ *+' conftest.er1 >conftest.err |
13824 | rm -f conftest.er1 | |
13825 | cat conftest.err >&5 | |
a848cd7e SC |
13826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13827 | (exit $ac_status); } && | |
c9a66001 | 13828 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13830 | (eval $ac_try) 2>&5 | |
13831 | ac_status=$? | |
13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13833 | (exit $ac_status); }; } && | |
13834 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13836 | (eval $ac_try) 2>&5 | |
13837 | ac_status=$? | |
13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13839 | (exit $ac_status); }; }; then | |
13840 | break | |
13841 | else | |
13842 | echo "$as_me: failed program was:" >&5 | |
13843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13844 | ||
13845 | fi | |
ac1cb8d3 | 13846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13847 | done |
13848 | rm -f conftest* | |
13849 | if test -n "$ac_declaration"; then | |
13850 | echo '#ifdef __cplusplus' >>confdefs.h | |
13851 | echo $ac_declaration >>confdefs.h | |
13852 | echo '#endif' >>confdefs.h | |
13853 | fi | |
13854 | ||
13855 | ac_ext=cc | |
13856 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13857 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13858 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13859 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13860 | ||
ab0ad5f1 VZ |
13861 | |
13862 | ||
13863 | ac_ext=cc | |
13864 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13865 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13866 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13867 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13868 | ||
13869 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13870 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13871 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13873 | else | |
13874 | cat >conftest.$ac_ext <<_ACEOF | |
13875 | /* confdefs.h. */ | |
13876 | _ACEOF | |
13877 | cat confdefs.h >>conftest.$ac_ext | |
13878 | cat >>conftest.$ac_ext <<_ACEOF | |
13879 | /* end confdefs.h. */ | |
13880 | ||
13881 | int | |
13882 | main () | |
13883 | { | |
13884 | ||
13885 | #ifndef __INTEL_COMPILER | |
13886 | choke me | |
13887 | #endif | |
13888 | ||
13889 | ; | |
13890 | return 0; | |
13891 | } | |
13892 | _ACEOF | |
13893 | rm -f conftest.$ac_objext | |
13894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13895 | (eval $ac_compile) 2>conftest.er1 | |
13896 | ac_status=$? | |
13897 | grep -v '^ *+' conftest.er1 >conftest.err | |
13898 | rm -f conftest.er1 | |
13899 | cat conftest.err >&5 | |
13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13901 | (exit $ac_status); } && | |
c9a66001 | 13902 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
13903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13904 | (eval $ac_try) 2>&5 | |
13905 | ac_status=$? | |
13906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13907 | (exit $ac_status); }; } && | |
13908 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
13914 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13915 | else | |
13916 | echo "$as_me: failed program was:" >&5 | |
13917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13918 | ||
13919 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13920 | ||
13921 | fi | |
13922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13923 | ||
13924 | ||
13925 | fi | |
13926 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13927 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13928 | ac_ext=cc | |
13929 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13930 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13931 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13932 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13933 | ||
13934 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13935 | :; INTELCXX=yes | |
13936 | else | |
13937 | :; | |
13938 | fi | |
13939 | ||
13940 | ||
3006edc0 VZ |
13941 | if test "x$GCXX" != "xyes"; then |
13942 | if test "xCXX" = "xC"; then | |
13943 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13944 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13945 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13947 | else | |
13948 | cat >conftest.$ac_ext <<_ACEOF | |
13949 | /* confdefs.h. */ | |
13950 | _ACEOF | |
13951 | cat confdefs.h >>conftest.$ac_ext | |
13952 | cat >>conftest.$ac_ext <<_ACEOF | |
13953 | /* end confdefs.h. */ | |
13954 | ||
13955 | int | |
13956 | main () | |
13957 | { | |
13958 | ||
13959 | ; | |
13960 | return 0; | |
13961 | } | |
13962 | _ACEOF | |
13963 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13965 | (eval $ac_compile) 2>&5 | |
13966 | ac_status=$? | |
13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13968 | (exit $ac_status); }; then | |
13969 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13970 | case $ac_file in | |
13971 | conftest.$ac_ext.o) | |
0093c2fc | 13972 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13973 | ;; |
13974 | *) | |
13975 | ;; | |
13976 | esac | |
13977 | done | |
13978 | else | |
13979 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13980 | See \`config.log' for more details." >&5 | |
13981 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13982 | See \`config.log' for more details." >&2;} | |
13983 | { (exit 1); exit 1; }; } | |
13984 | ||
13985 | fi | |
13986 | ||
13987 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13988 | ||
13989 | fi | |
0093c2fc VZ |
13990 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13991 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13992 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13993 | if test "cxx" = "c"; then |
0093c2fc | 13994 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13995 | fi |
13996 | if test "cxx" = "cxx"; then | |
0093c2fc | 13997 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13998 | fi |
13999 | fi | |
14000 | ||
0093c2fc | 14001 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
14002 | unset ac_cv_prog_cc_g |
14003 | ac_test_CFLAGS=${CFLAGS+set} | |
14004 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 14005 | CFLAGS="-g" |
3006edc0 VZ |
14006 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
14007 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
14008 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
14009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14010 | else | |
14011 | cat >conftest.$ac_ext <<_ACEOF | |
14012 | /* confdefs.h. */ | |
14013 | _ACEOF | |
14014 | cat confdefs.h >>conftest.$ac_ext | |
14015 | cat >>conftest.$ac_ext <<_ACEOF | |
14016 | /* end confdefs.h. */ | |
14017 | ||
14018 | int | |
14019 | main () | |
14020 | { | |
14021 | ||
14022 | ; | |
14023 | return 0; | |
14024 | } | |
14025 | _ACEOF | |
14026 | rm -f conftest.$ac_objext | |
14027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14028 | (eval $ac_compile) 2>conftest.er1 | |
14029 | ac_status=$? | |
14030 | grep -v '^ *+' conftest.er1 >conftest.err | |
14031 | rm -f conftest.er1 | |
14032 | cat conftest.err >&5 | |
14033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14034 | (exit $ac_status); } && | |
c9a66001 | 14035 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
14036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14037 | (eval $ac_try) 2>&5 | |
14038 | ac_status=$? | |
14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14040 | (exit $ac_status); }; } && | |
14041 | { ac_try='test -s conftest.$ac_objext' | |
14042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14043 | (eval $ac_try) 2>&5 | |
14044 | ac_status=$? | |
14045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14046 | (exit $ac_status); }; }; then | |
3006edc0 | 14047 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
14048 | else |
14049 | echo "$as_me: failed program was:" >&5 | |
14050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14051 | ||
3006edc0 | 14052 | ac_cv_prog_cc_g=no |
480ccd21 DE |
14053 | fi |
14054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14055 | fi | |
3006edc0 VZ |
14056 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
14057 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
14058 | if test "$ac_test_CFLAGS" = set; then | |
14059 | CFLAGS=$ac_save_CFLAGS | |
14060 | elif test $ac_cv_prog_cc_g = yes; then | |
14061 | if test "$GCC" = yes; then | |
14062 | CFLAGS="-g -O2" | |
480ccd21 | 14063 | else |
3006edc0 | 14064 | CFLAGS="-g" |
480ccd21 DE |
14065 | fi |
14066 | else | |
3006edc0 VZ |
14067 | if test "$GCC" = yes; then |
14068 | CFLAGS="-O2" | |
480ccd21 | 14069 | else |
3006edc0 | 14070 | CFLAGS= |
480ccd21 DE |
14071 | fi |
14072 | fi | |
3006edc0 | 14073 | fi |
ab0ad5f1 | 14074 | fi |
3006edc0 VZ |
14075 | |
14076 | case `uname -s` in | |
14077 | AIX*) | |
14078 | ac_ext=cc | |
14079 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14080 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14081 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14082 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14083 | ||
14084 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14085 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14086 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
14087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14088 | else | |
14089 | cat >conftest.$ac_ext <<_ACEOF | |
14090 | /* confdefs.h. */ | |
14091 | _ACEOF | |
14092 | cat confdefs.h >>conftest.$ac_ext | |
14093 | cat >>conftest.$ac_ext <<_ACEOF | |
14094 | /* end confdefs.h. */ | |
14095 | ||
14096 | int | |
14097 | main () | |
14098 | { | |
14099 | #ifndef __xlC__ | |
14100 | choke me | |
14101 | #endif | |
14102 | ||
14103 | ; | |
14104 | return 0; | |
14105 | } | |
14106 | _ACEOF | |
14107 | rm -f conftest.$ac_objext | |
14108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14109 | (eval $ac_compile) 2>conftest.er1 | |
14110 | ac_status=$? | |
14111 | grep -v '^ *+' conftest.er1 >conftest.err | |
14112 | rm -f conftest.er1 | |
14113 | cat conftest.err >&5 | |
14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14115 | (exit $ac_status); } && | |
c9a66001 | 14116 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14118 | (eval $ac_try) 2>&5 | |
14119 | ac_status=$? | |
14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14121 | (exit $ac_status); }; } && | |
14122 | { ac_try='test -s conftest.$ac_objext' | |
14123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14124 | (eval $ac_try) 2>&5 | |
14125 | ac_status=$? | |
14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14127 | (exit $ac_status); }; }; then | |
0093c2fc | 14128 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
14129 | else |
14130 | echo "$as_me: failed program was:" >&5 | |
14131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14132 | ||
0093c2fc | 14133 | bakefile_compiler_xlc=no |
3006edc0 VZ |
14134 | fi |
14135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14136 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
14137 | |
14138 | fi | |
0093c2fc VZ |
14139 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14140 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 14141 | |
0093c2fc | 14142 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
14143 | ac_ext=cc |
14144 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14145 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14146 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14147 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14148 | ||
14149 | ||
14150 | ;; | |
14151 | ||
14152 | Darwin) | |
14153 | ac_ext=cc | |
95986553 DE |
14154 | ac_cpp='$CXXCPP $CPPFLAGS' |
14155 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14156 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14157 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14158 | ||
14159 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
14160 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
14161 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
14162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14163 | else | |
14164 | cat >conftest.$ac_ext <<_ACEOF | |
14165 | /* confdefs.h. */ | |
14166 | _ACEOF | |
14167 | cat confdefs.h >>conftest.$ac_ext | |
14168 | cat >>conftest.$ac_ext <<_ACEOF | |
14169 | /* end confdefs.h. */ | |
14170 | ||
14171 | int | |
14172 | main () | |
14173 | { | |
14174 | #ifndef __MWERKS__ | |
14175 | choke me | |
14176 | #endif | |
14177 | ||
14178 | ; | |
14179 | return 0; | |
14180 | } | |
14181 | _ACEOF | |
14182 | rm -f conftest.$ac_objext | |
14183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14184 | (eval $ac_compile) 2>conftest.er1 | |
14185 | ac_status=$? | |
14186 | grep -v '^ *+' conftest.er1 >conftest.err | |
14187 | rm -f conftest.er1 | |
14188 | cat conftest.err >&5 | |
14189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14190 | (exit $ac_status); } && | |
c9a66001 | 14191 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
14192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14193 | (eval $ac_try) 2>&5 | |
14194 | ac_status=$? | |
14195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14196 | (exit $ac_status); }; } && | |
14197 | { ac_try='test -s conftest.$ac_objext' | |
14198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14199 | (eval $ac_try) 2>&5 | |
14200 | ac_status=$? | |
14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14202 | (exit $ac_status); }; }; then | |
14203 | bakefile_compiler_mwerks=yes | |
14204 | else | |
14205 | echo "$as_me: failed program was:" >&5 | |
14206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14207 | ||
14208 | bakefile_compiler_mwerks=no | |
14209 | fi | |
14210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14211 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
14212 | ||
14213 | fi | |
14214 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
14215 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
14216 | ||
0e6fa1d9 | 14217 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
14218 | ac_ext=cc |
14219 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14220 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14221 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14222 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14223 | ||
14224 | ||
3006edc0 | 14225 | ac_ext=cc |
9273ffba DE |
14226 | ac_cpp='$CXXCPP $CPPFLAGS' |
14227 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14228 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14229 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14230 | ||
14231 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14232 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14233 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
14234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14235 | else | |
14236 | cat >conftest.$ac_ext <<_ACEOF | |
14237 | /* confdefs.h. */ | |
14238 | _ACEOF | |
14239 | cat confdefs.h >>conftest.$ac_ext | |
14240 | cat >>conftest.$ac_ext <<_ACEOF | |
14241 | /* end confdefs.h. */ | |
14242 | ||
14243 | int | |
14244 | main () | |
14245 | { | |
14246 | #ifndef __xlC__ | |
14247 | choke me | |
14248 | #endif | |
14249 | ||
14250 | ; | |
14251 | return 0; | |
14252 | } | |
14253 | _ACEOF | |
14254 | rm -f conftest.$ac_objext | |
14255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14256 | (eval $ac_compile) 2>conftest.er1 | |
14257 | ac_status=$? | |
14258 | grep -v '^ *+' conftest.er1 >conftest.err | |
14259 | rm -f conftest.er1 | |
14260 | cat conftest.err >&5 | |
14261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14262 | (exit $ac_status); } && | |
c9a66001 | 14263 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
14264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14265 | (eval $ac_try) 2>&5 | |
14266 | ac_status=$? | |
14267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14268 | (exit $ac_status); }; } && | |
14269 | { ac_try='test -s conftest.$ac_objext' | |
14270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14271 | (eval $ac_try) 2>&5 | |
14272 | ac_status=$? | |
14273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14274 | (exit $ac_status); }; }; then | |
0093c2fc | 14275 | bakefile_compiler_xlc=yes |
9273ffba DE |
14276 | else |
14277 | echo "$as_me: failed program was:" >&5 | |
14278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14279 | ||
0093c2fc | 14280 | bakefile_compiler_xlc=no |
9273ffba DE |
14281 | fi |
14282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14283 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
14284 | |
14285 | fi | |
0093c2fc VZ |
14286 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14287 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 14288 | |
0093c2fc | 14289 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
14290 | ac_ext=cc |
14291 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14292 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14293 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14294 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14295 | ||
14296 | ||
3006edc0 VZ |
14297 | ;; |
14298 | ||
14299 | IRIX*) | |
95986553 | 14300 | |
6dcfc289 | 14301 | |
0ad5d837 VZ |
14302 | ac_ext=cc |
14303 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14304 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14305 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14306 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14307 | ||
14308 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
14309 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
14310 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
14311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14312 | else | |
14313 | cat >conftest.$ac_ext <<_ACEOF | |
14314 | /* confdefs.h. */ | |
14315 | _ACEOF | |
14316 | cat confdefs.h >>conftest.$ac_ext | |
14317 | cat >>conftest.$ac_ext <<_ACEOF | |
14318 | /* end confdefs.h. */ | |
14319 | ||
14320 | int | |
14321 | main () | |
14322 | { | |
14323 | ||
14324 | #ifndef _SGI_COMPILER_VERSION | |
14325 | choke me | |
14326 | #endif | |
14327 | ||
14328 | ; | |
14329 | return 0; | |
14330 | } | |
14331 | _ACEOF | |
14332 | rm -f conftest.$ac_objext | |
14333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14334 | (eval $ac_compile) 2>conftest.er1 | |
14335 | ac_status=$? | |
14336 | grep -v '^ *+' conftest.er1 >conftest.err | |
14337 | rm -f conftest.er1 | |
14338 | cat conftest.err >&5 | |
14339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14340 | (exit $ac_status); } && | |
c9a66001 | 14341 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
14342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14343 | (eval $ac_try) 2>&5 | |
14344 | ac_status=$? | |
14345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14346 | (exit $ac_status); }; } && | |
14347 | { ac_try='test -s conftest.$ac_objext' | |
14348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14349 | (eval $ac_try) 2>&5 | |
14350 | ac_status=$? | |
14351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14352 | (exit $ac_status); }; }; then | |
14353 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
14354 | else | |
14355 | echo "$as_me: failed program was:" >&5 | |
14356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14357 | ||
14358 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
14359 | ||
14360 | fi | |
14361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14362 | ||
14363 | ||
14364 | fi | |
14365 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
14366 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
14367 | ac_ext=cc | |
14368 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14369 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14370 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14371 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14372 | ||
14373 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
14374 | :; SGICXX=yes | |
14375 | else | |
14376 | :; | |
14377 | fi | |
14378 | ||
14379 | ||
3006edc0 VZ |
14380 | ;; |
14381 | ||
0093c2fc | 14382 | HP-UX*) |
3006edc0 VZ |
14383 | |
14384 | ||
14385 | ac_ext=cc | |
14386 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14387 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14388 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14389 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14390 | ||
0093c2fc VZ |
14391 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
14392 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
14393 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
14394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14395 | else | |
14396 | cat >conftest.$ac_ext <<_ACEOF | |
14397 | /* confdefs.h. */ | |
14398 | _ACEOF | |
14399 | cat confdefs.h >>conftest.$ac_ext | |
14400 | cat >>conftest.$ac_ext <<_ACEOF | |
14401 | /* end confdefs.h. */ | |
14402 | ||
14403 | int | |
14404 | main () | |
14405 | { | |
14406 | ||
0093c2fc | 14407 | #ifndef __HP_aCC |
3006edc0 VZ |
14408 | choke me |
14409 | #endif | |
14410 | ||
14411 | ; | |
14412 | return 0; | |
14413 | } | |
14414 | _ACEOF | |
14415 | rm -f conftest.$ac_objext | |
14416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14417 | (eval $ac_compile) 2>conftest.er1 | |
14418 | ac_status=$? | |
14419 | grep -v '^ *+' conftest.er1 >conftest.err | |
14420 | rm -f conftest.er1 | |
14421 | cat conftest.err >&5 | |
14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14423 | (exit $ac_status); } && | |
c9a66001 | 14424 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14426 | (eval $ac_try) 2>&5 | |
14427 | ac_status=$? | |
14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14429 | (exit $ac_status); }; } && | |
14430 | { ac_try='test -s conftest.$ac_objext' | |
14431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14432 | (eval $ac_try) 2>&5 | |
14433 | ac_status=$? | |
14434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14435 | (exit $ac_status); }; }; then | |
0093c2fc | 14436 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14437 | else |
14438 | echo "$as_me: failed program was:" >&5 | |
14439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14440 | ||
0093c2fc | 14441 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14442 | |
14443 | fi | |
14444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14445 | ||
14446 | ||
14447 | fi | |
0093c2fc VZ |
14448 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14449 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14450 | ac_ext=cc |
14451 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14452 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14453 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14454 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14455 | ||
0093c2fc VZ |
14456 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14457 | :; HPCXX=yes | |
a1aa0349 VZ |
14458 | else |
14459 | :; | |
14460 | fi | |
14461 | ||
14462 | ||
14463 | ;; | |
14464 | ||
0093c2fc | 14465 | OSF1) |
a1aa0349 VZ |
14466 | |
14467 | ||
14468 | ac_ext=cc | |
14469 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14470 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14471 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14472 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14473 | ||
0093c2fc VZ |
14474 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14475 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14476 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14478 | else | |
14479 | cat >conftest.$ac_ext <<_ACEOF | |
14480 | /* confdefs.h. */ | |
14481 | _ACEOF | |
14482 | cat confdefs.h >>conftest.$ac_ext | |
14483 | cat >>conftest.$ac_ext <<_ACEOF | |
14484 | /* end confdefs.h. */ | |
14485 | ||
14486 | int | |
14487 | main () | |
14488 | { | |
14489 | ||
0093c2fc | 14490 | #ifndef __DECCXX |
a1aa0349 VZ |
14491 | choke me |
14492 | #endif | |
14493 | ||
14494 | ; | |
14495 | return 0; | |
14496 | } | |
14497 | _ACEOF | |
14498 | rm -f conftest.$ac_objext | |
14499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14500 | (eval $ac_compile) 2>conftest.er1 | |
14501 | ac_status=$? | |
14502 | grep -v '^ *+' conftest.er1 >conftest.err | |
14503 | rm -f conftest.er1 | |
14504 | cat conftest.err >&5 | |
14505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14506 | (exit $ac_status); } && | |
c9a66001 | 14507 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
14508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14509 | (eval $ac_try) 2>&5 | |
14510 | ac_status=$? | |
14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14512 | (exit $ac_status); }; } && | |
14513 | { ac_try='test -s conftest.$ac_objext' | |
14514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14515 | (eval $ac_try) 2>&5 | |
14516 | ac_status=$? | |
14517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14518 | (exit $ac_status); }; }; then | |
0093c2fc | 14519 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14520 | else |
14521 | echo "$as_me: failed program was:" >&5 | |
14522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14523 | ||
0093c2fc | 14524 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14525 | |
14526 | fi | |
14527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14528 | ||
14529 | ||
14530 | fi | |
0093c2fc VZ |
14531 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14532 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14533 | ac_ext=cc |
14534 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14535 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14536 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14537 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14538 | ||
0093c2fc VZ |
14539 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14540 | :; COMPAQCXX=yes | |
14541 | else | |
14542 | :; | |
14543 | fi | |
14544 | ||
14545 | ||
14546 | ;; | |
14547 | ||
14548 | SunOS) | |
14549 | ||
14550 | ||
14551 | ac_ext=cc | |
14552 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14553 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14554 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14555 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14556 | ||
14557 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14558 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14559 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14561 | else | |
14562 | cat >conftest.$ac_ext <<_ACEOF | |
14563 | /* confdefs.h. */ | |
14564 | _ACEOF | |
14565 | cat confdefs.h >>conftest.$ac_ext | |
14566 | cat >>conftest.$ac_ext <<_ACEOF | |
14567 | /* end confdefs.h. */ | |
14568 | ||
14569 | int | |
14570 | main () | |
14571 | { | |
14572 | ||
14573 | #ifndef __SUNPRO_CC | |
14574 | choke me | |
14575 | #endif | |
14576 | ||
14577 | ; | |
14578 | return 0; | |
14579 | } | |
14580 | _ACEOF | |
14581 | rm -f conftest.$ac_objext | |
14582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14583 | (eval $ac_compile) 2>conftest.er1 | |
14584 | ac_status=$? | |
14585 | grep -v '^ *+' conftest.er1 >conftest.err | |
14586 | rm -f conftest.er1 | |
14587 | cat conftest.err >&5 | |
14588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14589 | (exit $ac_status); } && | |
c9a66001 | 14590 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
14591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14592 | (eval $ac_try) 2>&5 | |
14593 | ac_status=$? | |
14594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14595 | (exit $ac_status); }; } && | |
14596 | { ac_try='test -s conftest.$ac_objext' | |
14597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14598 | (eval $ac_try) 2>&5 | |
14599 | ac_status=$? | |
14600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14601 | (exit $ac_status); }; }; then | |
14602 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14603 | else | |
14604 | echo "$as_me: failed program was:" >&5 | |
14605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14606 | ||
14607 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14608 | ||
14609 | fi | |
14610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14611 | ||
14612 | ||
14613 | fi | |
14614 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14615 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14616 | ac_ext=cc | |
14617 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14621 | ||
14622 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14623 | :; SUNCXX=yes | |
3006edc0 VZ |
14624 | else |
14625 | :; | |
ab0ad5f1 | 14626 | fi |
a9e5b1f0 MW |
14627 | |
14628 | ||
3006edc0 VZ |
14629 | ;; |
14630 | esac | |
14631 | fi | |
14632 | ||
14633 | ||
14634 | ||
a848cd7e SC |
14635 | if test -n "$ac_tool_prefix"; then |
14636 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14637 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14638 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14640 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14642 | else | |
14643 | if test -n "$RANLIB"; then | |
14644 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14645 | else | |
14646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14647 | for as_dir in $PATH | |
14648 | do | |
14649 | IFS=$as_save_IFS | |
14650 | test -z "$as_dir" && as_dir=. | |
14651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14653 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14655 | break 2 | |
14656 | fi | |
14657 | done | |
14658 | done | |
14659 | ||
14660 | fi | |
14661 | fi | |
14662 | RANLIB=$ac_cv_prog_RANLIB | |
14663 | if test -n "$RANLIB"; then | |
14664 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14665 | echo "${ECHO_T}$RANLIB" >&6 | |
14666 | else | |
14667 | echo "$as_me:$LINENO: result: no" >&5 | |
14668 | echo "${ECHO_T}no" >&6 | |
14669 | fi | |
14670 | ||
14671 | fi | |
14672 | if test -z "$ac_cv_prog_RANLIB"; then | |
14673 | ac_ct_RANLIB=$RANLIB | |
14674 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14675 | set dummy ranlib; ac_word=$2 | |
14676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14678 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14680 | else | |
14681 | if test -n "$ac_ct_RANLIB"; then | |
14682 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14683 | else | |
14684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14685 | for as_dir in $PATH | |
14686 | do | |
14687 | IFS=$as_save_IFS | |
14688 | test -z "$as_dir" && as_dir=. | |
14689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14691 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14693 | break 2 | |
14694 | fi | |
14695 | done | |
14696 | done | |
14697 | ||
14698 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14699 | fi | |
14700 | fi | |
14701 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14702 | if test -n "$ac_ct_RANLIB"; then | |
14703 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14704 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14705 | else | |
14706 | echo "$as_me:$LINENO: result: no" >&5 | |
14707 | echo "${ECHO_T}no" >&6 | |
14708 | fi | |
14709 | ||
14710 | RANLIB=$ac_ct_RANLIB | |
14711 | else | |
14712 | RANLIB="$ac_cv_prog_RANLIB" | |
14713 | fi | |
14714 | ||
14715 | ||
8c80d384 DE |
14716 | if test -n "$ac_tool_prefix"; then |
14717 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14718 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14721 | if test "${ac_cv_prog_AR+set}" = set; then | |
14722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14723 | else | |
14724 | if test -n "$AR"; then | |
14725 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14726 | else | |
14727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14728 | for as_dir in $PATH | |
14729 | do | |
14730 | IFS=$as_save_IFS | |
14731 | test -z "$as_dir" && as_dir=. | |
14732 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14734 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14736 | break 2 | |
14737 | fi | |
14738 | done | |
14739 | done | |
14740 | ||
14741 | fi | |
14742 | fi | |
14743 | AR=$ac_cv_prog_AR | |
14744 | if test -n "$AR"; then | |
14745 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14746 | echo "${ECHO_T}$AR" >&6 | |
14747 | else | |
14748 | echo "$as_me:$LINENO: result: no" >&5 | |
14749 | echo "${ECHO_T}no" >&6 | |
14750 | fi | |
14751 | ||
8c80d384 DE |
14752 | fi |
14753 | if test -z "$ac_cv_prog_AR"; then | |
14754 | ac_ct_AR=$AR | |
14755 | # Extract the first word of "ar", so it can be a program name with args. | |
14756 | set dummy ar; ac_word=$2 | |
14757 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14759 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14761 | else | |
14762 | if test -n "$ac_ct_AR"; then | |
14763 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14764 | else | |
14765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14766 | for as_dir in $PATH | |
14767 | do | |
14768 | IFS=$as_save_IFS | |
14769 | test -z "$as_dir" && as_dir=. | |
14770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14772 | ac_cv_prog_ac_ct_AR="ar" | |
14773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14774 | break 2 | |
14775 | fi | |
14776 | done | |
14777 | done | |
14778 | ||
14779 | fi | |
14780 | fi | |
14781 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14782 | if test -n "$ac_ct_AR"; then | |
14783 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14784 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14785 | else | |
14786 | echo "$as_me:$LINENO: result: no" >&5 | |
14787 | echo "${ECHO_T}no" >&6 | |
14788 | fi | |
14789 | ||
14790 | AR=$ac_ct_AR | |
14791 | else | |
14792 | AR="$ac_cv_prog_AR" | |
14793 | fi | |
14794 | ||
a848cd7e | 14795 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14796 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14797 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14798 | { (exit 1); exit 1; }; } |
14799 | fi | |
14800 | ||
14801 | # Find a good install program. We prefer a C program (faster), | |
14802 | # so one script is as good as another. But avoid the broken or | |
14803 | # incompatible versions: | |
14804 | # SysV /etc/install, /usr/sbin/install | |
14805 | # SunOS /usr/etc/install | |
14806 | # IRIX /sbin/install | |
14807 | # AIX /bin/install | |
14808 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14809 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14810 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14811 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14812 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14813 | # ./install, which can be erroneously created by make from ./install.sh. |
14814 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14815 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14816 | if test -z "$INSTALL"; then | |
14817 | if test "${ac_cv_path_install+set}" = set; then | |
14818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14819 | else | |
14820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14821 | for as_dir in $PATH | |
14822 | do | |
14823 | IFS=$as_save_IFS | |
14824 | test -z "$as_dir" && as_dir=. | |
14825 | # Account for people who put trailing slashes in PATH elements. | |
14826 | case $as_dir/ in | |
14827 | ./ | .// | /cC/* | \ | |
14828 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14829 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14830 | /usr/ucb/* ) ;; |
14831 | *) | |
14832 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14833 | # Don't use installbsd from OSF since it installs stuff as root | |
14834 | # by default. | |
14835 | for ac_prog in ginstall scoinst install; do | |
14836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14837 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14838 | if test $ac_prog = install && | |
14839 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14840 | # AIX install. It has an incompatible calling convention. | |
14841 | : | |
14842 | elif test $ac_prog = install && | |
14843 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14844 | # program-specific install script used by HP pwplus--don't use. | |
14845 | : | |
14846 | else | |
14847 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14848 | break 3 | |
14849 | fi | |
14850 | fi | |
a848cd7e SC |
14851 | done |
14852 | done | |
14853 | ;; | |
14854 | esac | |
14855 | done | |
14856 | ||
14857 | ||
14858 | fi | |
14859 | if test "${ac_cv_path_install+set}" = set; then | |
14860 | INSTALL=$ac_cv_path_install | |
14861 | else | |
14862 | # As a last resort, use the slow shell script. We don't cache a | |
14863 | # path for INSTALL within a source directory, because that will | |
14864 | # break other packages using the cache if that directory is | |
14865 | # removed, or if the path is relative. | |
14866 | INSTALL=$ac_install_sh | |
14867 | fi | |
14868 | fi | |
14869 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14870 | echo "${ECHO_T}$INSTALL" >&6 | |
14871 | ||
14872 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14873 | # It thinks the first close brace ends the variable substitution. | |
14874 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14875 | ||
14876 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14877 | ||
14878 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14879 | ||
14880 | ||
14881 | case ${INSTALL} in | |
14882 | /* ) # Absolute | |
14883 | ;; | |
14884 | ?:* ) # Drive letter, considered as absolute. | |
14885 | ;; | |
14886 | *) | |
14887 | INSTALL=`pwd`/${INSTALL} ;; | |
14888 | esac | |
14889 | ||
a848cd7e SC |
14890 | |
14891 | case "${host}" in | |
14892 | ||
cfda0ea8 | 14893 | *-*-darwin* ) |
a848cd7e SC |
14894 | INSTALL_PROGRAM="cp -fp" |
14895 | INSTALL_DATA="cp -fp" | |
14896 | ;; | |
14897 | *) | |
14898 | ;; | |
14899 | esac | |
14900 | ||
8c80d384 DE |
14901 | if test -n "$ac_tool_prefix"; then |
14902 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14903 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14904 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14906 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14908 | else | |
14909 | if test -n "$STRIP"; then | |
14910 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14911 | else | |
14912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14913 | for as_dir in $PATH | |
14914 | do | |
14915 | IFS=$as_save_IFS | |
14916 | test -z "$as_dir" && as_dir=. | |
14917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14918 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14919 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14921 | break 2 | |
14922 | fi | |
14923 | done | |
14924 | done | |
14925 | ||
a848cd7e SC |
14926 | fi |
14927 | fi | |
14928 | STRIP=$ac_cv_prog_STRIP | |
14929 | if test -n "$STRIP"; then | |
14930 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14931 | echo "${ECHO_T}$STRIP" >&6 | |
14932 | else | |
14933 | echo "$as_me:$LINENO: result: no" >&5 | |
14934 | echo "${ECHO_T}no" >&6 | |
14935 | fi | |
14936 | ||
8c80d384 DE |
14937 | fi |
14938 | if test -z "$ac_cv_prog_STRIP"; then | |
14939 | ac_ct_STRIP=$STRIP | |
14940 | # Extract the first word of "strip", so it can be a program name with args. | |
14941 | set dummy strip; ac_word=$2 | |
14942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14944 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14946 | else | |
14947 | if test -n "$ac_ct_STRIP"; then | |
14948 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14949 | else | |
14950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14951 | for as_dir in $PATH | |
14952 | do | |
14953 | IFS=$as_save_IFS | |
14954 | test -z "$as_dir" && as_dir=. | |
14955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14957 | ac_cv_prog_ac_ct_STRIP="strip" | |
14958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14959 | break 2 | |
14960 | fi | |
14961 | done | |
14962 | done | |
14963 | ||
14964 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14965 | fi | |
14966 | fi | |
14967 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14968 | if test -n "$ac_ct_STRIP"; then | |
14969 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14970 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14971 | else | |
14972 | echo "$as_me:$LINENO: result: no" >&5 | |
14973 | echo "${ECHO_T}no" >&6 | |
14974 | fi | |
14975 | ||
14976 | STRIP=$ac_ct_STRIP | |
14977 | else | |
14978 | STRIP="$ac_cv_prog_STRIP" | |
14979 | fi | |
14980 | ||
14981 | ||
14982 | if test "$wxUSE_WINE" = "yes"; then | |
14983 | if test -n "$ac_tool_prefix"; then | |
14984 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14985 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14986 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14988 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
14989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14990 | else | |
8ced02f6 DE |
14991 | if test -n "$WINDRES"; then |
14992 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
14993 | else |
14994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14995 | for as_dir in $PATH | |
14996 | do | |
14997 | IFS=$as_save_IFS | |
14998 | test -z "$as_dir" && as_dir=. | |
14999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15001 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
15002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15003 | break 2 | |
15004 | fi | |
15005 | done | |
15006 | done | |
15007 | ||
15008 | fi | |
15009 | fi | |
8ced02f6 DE |
15010 | WINDRES=$ac_cv_prog_WINDRES |
15011 | if test -n "$WINDRES"; then | |
15012 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15013 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
15014 | else |
15015 | echo "$as_me:$LINENO: result: no" >&5 | |
15016 | echo "${ECHO_T}no" >&6 | |
15017 | fi | |
15018 | ||
15019 | fi | |
8ced02f6 DE |
15020 | if test -z "$ac_cv_prog_WINDRES"; then |
15021 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
15022 | # Extract the first word of "wrc", so it can be a program name with args. |
15023 | set dummy wrc; ac_word=$2 | |
15024 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15026 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
15027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15028 | else | |
8ced02f6 DE |
15029 | if test -n "$ac_ct_WINDRES"; then |
15030 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
15031 | else |
15032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15033 | for as_dir in $PATH | |
15034 | do | |
15035 | IFS=$as_save_IFS | |
15036 | test -z "$as_dir" && as_dir=. | |
15037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15038 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15039 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
15040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15041 | break 2 | |
15042 | fi | |
15043 | done | |
15044 | done | |
15045 | ||
15046 | fi | |
15047 | fi | |
8ced02f6 DE |
15048 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
15049 | if test -n "$ac_ct_WINDRES"; then | |
15050 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15051 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
15052 | else |
15053 | echo "$as_me:$LINENO: result: no" >&5 | |
15054 | echo "${ECHO_T}no" >&6 | |
15055 | fi | |
15056 | ||
8ced02f6 | 15057 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 15058 | else |
8ced02f6 | 15059 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
15060 | fi |
15061 | ||
004ee6da | 15062 | RESCOMP="$WINDRES" |
8c80d384 DE |
15063 | else |
15064 | case "${host}" in | |
15065 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
15066 | if test -n "$ac_tool_prefix"; then |
15067 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
15068 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
15069 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15071 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
15072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15073 | else | |
15074 | if test -n "$WINDRES"; then | |
15075 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
15076 | else | |
15077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15078 | for as_dir in $PATH | |
15079 | do | |
15080 | IFS=$as_save_IFS | |
15081 | test -z "$as_dir" && as_dir=. | |
15082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15084 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
15085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15086 | break 2 | |
15087 | fi | |
15088 | done | |
15089 | done | |
15090 | ||
15091 | fi | |
15092 | fi | |
15093 | WINDRES=$ac_cv_prog_WINDRES | |
15094 | if test -n "$WINDRES"; then | |
15095 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15096 | echo "${ECHO_T}$WINDRES" >&6 | |
15097 | else | |
15098 | echo "$as_me:$LINENO: result: no" >&5 | |
15099 | echo "${ECHO_T}no" >&6 | |
15100 | fi | |
15101 | ||
15102 | fi | |
15103 | if test -z "$ac_cv_prog_WINDRES"; then | |
15104 | ac_ct_WINDRES=$WINDRES | |
15105 | # Extract the first word of "windres", so it can be a program name with args. | |
15106 | set dummy windres; ac_word=$2 | |
15107 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15109 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
15110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15111 | else | |
15112 | if test -n "$ac_ct_WINDRES"; then | |
15113 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
15114 | else | |
15115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15116 | for as_dir in $PATH | |
15117 | do | |
15118 | IFS=$as_save_IFS | |
15119 | test -z "$as_dir" && as_dir=. | |
15120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15122 | ac_cv_prog_ac_ct_WINDRES="windres" | |
15123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15124 | break 2 | |
15125 | fi | |
15126 | done | |
15127 | done | |
15128 | ||
15129 | fi | |
15130 | fi | |
15131 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
15132 | if test -n "$ac_ct_WINDRES"; then | |
15133 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15134 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
15135 | else | |
15136 | echo "$as_me:$LINENO: result: no" >&5 | |
15137 | echo "${ECHO_T}no" >&6 | |
15138 | fi | |
15139 | ||
15140 | WINDRES=$ac_ct_WINDRES | |
15141 | else | |
15142 | WINDRES="$ac_cv_prog_WINDRES" | |
15143 | fi | |
15144 | ||
15145 | RESCOMP="$WINDRES" | |
15146 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
15147 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
15148 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
15149 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15151 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
15152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15153 | else | |
15154 | if test -n "$DLLTOOL"; then | |
15155 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
15156 | else | |
15157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15158 | for as_dir in $PATH | |
15159 | do | |
15160 | IFS=$as_save_IFS | |
15161 | test -z "$as_dir" && as_dir=. | |
15162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15164 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
15165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15166 | break 2 | |
15167 | fi | |
15168 | done | |
15169 | done | |
15170 | ||
15171 | fi | |
15172 | fi | |
15173 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
15174 | if test -n "$DLLTOOL"; then | |
15175 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
15176 | echo "${ECHO_T}$DLLTOOL" >&6 | |
15177 | else | |
15178 | echo "$as_me:$LINENO: result: no" >&5 | |
15179 | echo "${ECHO_T}no" >&6 | |
15180 | fi | |
15181 | ||
15182 | fi | |
15183 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
15184 | ac_ct_DLLTOOL=$DLLTOOL | |
15185 | # Extract the first word of "dlltool", so it can be a program name with args. | |
15186 | set dummy dlltool; ac_word=$2 | |
15187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15189 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
15190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15191 | else | |
15192 | if test -n "$ac_ct_DLLTOOL"; then | |
15193 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
15194 | else | |
15195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15196 | for as_dir in $PATH | |
15197 | do | |
15198 | IFS=$as_save_IFS | |
15199 | test -z "$as_dir" && as_dir=. | |
15200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15202 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
15203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15204 | break 2 | |
15205 | fi | |
15206 | done | |
15207 | done | |
15208 | ||
15209 | fi | |
15210 | fi | |
15211 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
15212 | if test -n "$ac_ct_DLLTOOL"; then | |
15213 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
15214 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
15215 | else | |
15216 | echo "$as_me:$LINENO: result: no" >&5 | |
15217 | echo "${ECHO_T}no" >&6 | |
15218 | fi | |
15219 | ||
15220 | DLLTOOL=$ac_ct_DLLTOOL | |
15221 | else | |
15222 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
15223 | fi | |
15224 | ||
15225 | ;; | |
15226 | esac | |
15227 | fi | |
a848cd7e SC |
15228 | |
15229 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
15230 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
15231 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
15232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15233 | else | |
15234 | ||
15235 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
15236 | egrep -s GNU > /dev/null); then | |
15237 | wx_cv_prog_makeisgnu="yes" | |
15238 | else | |
15239 | wx_cv_prog_makeisgnu="no" | |
15240 | fi | |
15241 | ||
15242 | fi | |
15243 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
15244 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
15245 | ||
15246 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
15247 | IF_GNU_MAKE="" | |
15248 | else | |
15249 | IF_GNU_MAKE="#" | |
15250 | fi | |
15251 | ||
15252 | ||
15253 | ||
15254 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
15255 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
15256 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
15257 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
15258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15259 | else | |
15260 | ||
15261 | cat - << EOF > confMake | |
15262 | check : file | |
15263 | cp \$? \$@ | |
15264 | cp \$? final_file | |
15265 | EOF | |
15266 | ||
15267 | if test ! -d sub ; then | |
15268 | mkdir sub | |
15269 | fi | |
15270 | echo dummy > sub/file | |
15271 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
15272 | RESULT=$? | |
15273 | rm -f sub/file check final_file confMake | |
15274 | rmdir sub | |
15275 | if test "$RESULT" = 0; then | |
15276 | wx_cv_prog_makevpath="yes" | |
15277 | else | |
15278 | wx_cv_prog_makevpath="no" | |
15279 | fi | |
15280 | ||
15281 | fi | |
15282 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
15283 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
15284 | ||
15285 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
15286 | { { echo "$as_me:$LINENO: error: | |
15287 | You need a make-utility that is able to use the variable | |
15288 | VPATH correctly. | |
15289 | If your version of make does not support VPATH correctly, | |
15290 | please install GNU-make (possibly as gmake), and start | |
15291 | configure with the following command: | |
15292 | export MAKE=gmake; ./configure for sh-type shells | |
15293 | setenv MAKE gmake; ./configure for csh-type shells | |
15294 | Also please do remember to use gmake in this case every time | |
15295 | you are trying to compile. | |
15296 | " >&5 | |
15297 | echo "$as_me: error: | |
15298 | You need a make-utility that is able to use the variable | |
15299 | VPATH correctly. | |
15300 | If your version of make does not support VPATH correctly, | |
15301 | please install GNU-make (possibly as gmake), and start | |
15302 | configure with the following command: | |
15303 | export MAKE=gmake; ./configure for sh-type shells | |
15304 | setenv MAKE gmake; ./configure for csh-type shells | |
15305 | Also please do remember to use gmake in this case every time | |
15306 | you are trying to compile. | |
15307 | " >&2;} | |
15308 | { (exit 1); exit 1; }; } | |
15309 | fi fi | |
15310 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
15311 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
15312 | LN_S=$as_ln_s | |
15313 | if test "$LN_S" = "ln -s"; then | |
15314 | echo "$as_me:$LINENO: result: yes" >&5 | |
15315 | echo "${ECHO_T}yes" >&6 | |
15316 | else | |
15317 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
15318 | echo "${ECHO_T}no, using $LN_S" >&6 | |
15319 | fi | |
15320 | ||
15321 | ||
bcaab0f9 | 15322 | |
a848cd7e | 15323 | |
2113bc77 | 15324 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 15325 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
15326 | fi |
15327 | ||
4d7ec9f1 DE |
15328 | case "${host}" in |
15329 | powerpc-*-darwin* ) | |
15330 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
15331 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
15332 | cat >conftest.$ac_ext <<_ACEOF | |
15333 | /* confdefs.h. */ | |
15334 | _ACEOF | |
15335 | cat confdefs.h >>conftest.$ac_ext | |
15336 | cat >>conftest.$ac_ext <<_ACEOF | |
15337 | /* end confdefs.h. */ | |
15338 | ||
15339 | int | |
15340 | main () | |
15341 | { | |
15342 | #ifndef __POWERPC__ | |
15343 | choke me for lack of PowerPC | |
15344 | #endif | |
15345 | ||
15346 | ; | |
15347 | return 0; | |
15348 | } | |
15349 | _ACEOF | |
15350 | rm -f conftest.$ac_objext | |
15351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15352 | (eval $ac_compile) 2>conftest.er1 | |
15353 | ac_status=$? | |
15354 | grep -v '^ *+' conftest.er1 >conftest.err | |
15355 | rm -f conftest.er1 | |
15356 | cat conftest.err >&5 | |
15357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15358 | (exit $ac_status); } && | |
c9a66001 | 15359 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15361 | (eval $ac_try) 2>&5 | |
15362 | ac_status=$? | |
15363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15364 | (exit $ac_status); }; } && | |
15365 | { ac_try='test -s conftest.$ac_objext' | |
15366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15367 | (eval $ac_try) 2>&5 | |
15368 | ac_status=$? | |
15369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15370 | (exit $ac_status); }; }; then | |
15371 | echo "$as_me:$LINENO: result: yes" >&5 | |
15372 | echo "${ECHO_T}yes" >&6 | |
15373 | else | |
15374 | echo "$as_me: failed program was:" >&5 | |
15375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15376 | ||
15377 | echo "$as_me:$LINENO: result: no" >&5 | |
15378 | echo "${ECHO_T}no" >&6 | |
15379 | cat >>confdefs.h <<\_ACEOF | |
15380 | #define __POWERPC__ 1 | |
15381 | _ACEOF | |
15382 | ||
15383 | ||
15384 | fi | |
15385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
15386 | ;; |
15387 | esac | |
15388 | ||
15389 | case "${host}" in | |
15390 | *-*-darwin* ) | |
4d7ec9f1 DE |
15391 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
15392 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
15393 | cat >conftest.$ac_ext <<_ACEOF | |
15394 | /* confdefs.h. */ | |
15395 | _ACEOF | |
15396 | cat confdefs.h >>conftest.$ac_ext | |
15397 | cat >>conftest.$ac_ext <<_ACEOF | |
15398 | /* end confdefs.h. */ | |
15399 | #include <CoreFoundation/CFBase.h> | |
15400 | ||
15401 | int | |
15402 | main () | |
15403 | { | |
15404 | ||
15405 | ; | |
15406 | return 0; | |
15407 | } | |
15408 | _ACEOF | |
15409 | rm -f conftest.$ac_objext | |
15410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15411 | (eval $ac_compile) 2>conftest.er1 | |
15412 | ac_status=$? | |
15413 | grep -v '^ *+' conftest.er1 >conftest.err | |
15414 | rm -f conftest.er1 | |
15415 | cat conftest.err >&5 | |
15416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15417 | (exit $ac_status); } && | |
c9a66001 | 15418 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15420 | (eval $ac_try) 2>&5 | |
15421 | ac_status=$? | |
15422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15423 | (exit $ac_status); }; } && | |
15424 | { ac_try='test -s conftest.$ac_objext' | |
15425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15426 | (eval $ac_try) 2>&5 | |
15427 | ac_status=$? | |
15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15429 | (exit $ac_status); }; }; then | |
15430 | echo "$as_me:$LINENO: result: yes" >&5 | |
15431 | echo "${ECHO_T}yes" >&6 | |
15432 | else | |
15433 | echo "$as_me: failed program was:" >&5 | |
15434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15435 | ||
15436 | echo "$as_me:$LINENO: result: no" >&5 | |
15437 | echo "${ECHO_T}no" >&6 | |
15438 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15439 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15440 | cat >conftest.$ac_ext <<_ACEOF | |
15441 | /* confdefs.h. */ | |
15442 | _ACEOF | |
15443 | cat confdefs.h >>conftest.$ac_ext | |
15444 | cat >>conftest.$ac_ext <<_ACEOF | |
15445 | /* end confdefs.h. */ | |
15446 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15447 | #include <CoreFoundation/CFBase.h> | |
15448 | ||
15449 | int | |
15450 | main () | |
15451 | { | |
15452 | ||
15453 | ; | |
15454 | return 0; | |
15455 | } | |
15456 | _ACEOF | |
15457 | rm -f conftest.$ac_objext | |
15458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15459 | (eval $ac_compile) 2>conftest.er1 | |
15460 | ac_status=$? | |
15461 | grep -v '^ *+' conftest.er1 >conftest.err | |
15462 | rm -f conftest.er1 | |
15463 | cat conftest.err >&5 | |
15464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15465 | (exit $ac_status); } && | |
c9a66001 | 15466 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15468 | (eval $ac_try) 2>&5 | |
15469 | ac_status=$? | |
15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15471 | (exit $ac_status); }; } && | |
15472 | { ac_try='test -s conftest.$ac_objext' | |
15473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15474 | (eval $ac_try) 2>&5 | |
15475 | ac_status=$? | |
15476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15477 | (exit $ac_status); }; }; then | |
15478 | echo "$as_me:$LINENO: result: yes" >&5 | |
15479 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15480 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15481 | else |
15482 | echo "$as_me: failed program was:" >&5 | |
15483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15484 | ||
15485 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15486 | See \`config.log' for more details." >&5 | |
15487 | echo "$as_me: error: no. CoreFoundation not available. | |
15488 | See \`config.log' for more details." >&2;} | |
15489 | { (exit 1); exit 1; }; } | |
15490 | ||
15491 | fi | |
15492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15493 | ||
15494 | ||
15495 | fi | |
15496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15497 | ;; | |
15498 | esac | |
15499 | ||
a848cd7e SC |
15500 | case "${host}" in |
15501 | *-pc-os2_emx | *-pc-os2-emx ) | |
6ba87b06 SN |
15502 | ac_ext=c |
15503 | ac_cpp='$CPP $CPPFLAGS' | |
15504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15507 | ||
15508 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
a848cd7e SC |
15509 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
15510 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15511 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15513 | else | |
15514 | ac_check_lib_save_LIBS=$LIBS | |
15515 | LIBS="-lcExt $LIBS" | |
15516 | cat >conftest.$ac_ext <<_ACEOF | |
15517 | /* confdefs.h. */ | |
15518 | _ACEOF | |
15519 | cat confdefs.h >>conftest.$ac_ext | |
15520 | cat >>conftest.$ac_ext <<_ACEOF | |
15521 | /* end confdefs.h. */ | |
15522 | ||
15523 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15524 | #ifdef __cplusplus | |
15525 | extern "C" | |
15526 | #endif | |
15527 | /* We use char because int might match the return type of a gcc2 | |
15528 | builtin and then its argument prototype would still apply. */ | |
15529 | char drand48 (); | |
15530 | int | |
15531 | main () | |
15532 | { | |
15533 | drand48 (); | |
15534 | ; | |
15535 | return 0; | |
15536 | } | |
15537 | _ACEOF | |
15538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15540 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15541 | ac_status=$? |
ac1cb8d3 VS |
15542 | grep -v '^ *+' conftest.er1 >conftest.err |
15543 | rm -f conftest.er1 | |
15544 | cat conftest.err >&5 | |
a848cd7e SC |
15545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15546 | (exit $ac_status); } && | |
c9a66001 | 15547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15549 | (eval $ac_try) 2>&5 | |
15550 | ac_status=$? | |
15551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15552 | (exit $ac_status); }; } && | |
15553 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15555 | (eval $ac_try) 2>&5 | |
15556 | ac_status=$? | |
15557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15558 | (exit $ac_status); }; }; then | |
15559 | ac_cv_lib_cExt_drand48=yes | |
15560 | else | |
15561 | echo "$as_me: failed program was:" >&5 | |
15562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15563 | ||
15564 | ac_cv_lib_cExt_drand48=no | |
15565 | fi | |
ac1cb8d3 VS |
15566 | rm -f conftest.err conftest.$ac_objext \ |
15567 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15568 | LIBS=$ac_check_lib_save_LIBS |
15569 | fi | |
15570 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15571 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15572 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15573 | LIBS="$LIBS -lcExt" | |
15574 | fi | |
15575 | ||
15576 | else | |
15577 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15578 | fi | |
69120ee4 VZ |
15579 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15580 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15581 | if test "${wx_cv_gccversion+set}" = set; then |
15582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15583 | else | |
15584 | ||
391a765e VS |
15585 | if test "$cross_compiling" = yes; then |
15586 | wx_cv_gccversion="EMX2" | |
15587 | ||
15588 | else | |
15589 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15590 | /* confdefs.h. */ |
15591 | _ACEOF | |
15592 | cat confdefs.h >>conftest.$ac_ext | |
15593 | cat >>conftest.$ac_ext <<_ACEOF | |
15594 | /* end confdefs.h. */ | |
15595 | ||
391a765e | 15596 | #include <stdio.h> |
a848cd7e | 15597 | |
391a765e VS |
15598 | int main() |
15599 | { | |
15600 | FILE *f=fopen("conftestval", "w"); | |
15601 | if (!f) exit(1); | |
15602 | fprintf(f, | |
a848cd7e | 15603 | #if (__GNUC__ < 3) |
391a765e VS |
15604 | "EMX2" |
15605 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15606 | "EMX3" | |
15607 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15608 | "Innotek5" | |
15609 | #else | |
15610 | "Innotek6" | |
a848cd7e | 15611 | #endif |
391a765e VS |
15612 | ); |
15613 | exit(0); | |
15614 | } | |
a848cd7e | 15615 | |
a848cd7e | 15616 | _ACEOF |
391a765e VS |
15617 | rm -f conftest$ac_exeext |
15618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15619 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15620 | ac_status=$? |
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15622 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15624 | (eval $ac_try) 2>&5 | |
15625 | ac_status=$? | |
15626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15627 | (exit $ac_status); }; }; then | |
391a765e | 15628 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15629 | else |
391a765e VS |
15630 | echo "$as_me: program exited with status $ac_status" >&5 |
15631 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15632 | sed 's/^/| /' conftest.$ac_ext >&5 |
15633 | ||
391a765e VS |
15634 | ( exit $ac_status ) |
15635 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15636 | fi |
391a765e | 15637 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15638 | fi |
a848cd7e SC |
15639 | |
15640 | fi | |
15641 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15642 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
6ba87b06 SN |
15643 | ac_ext=cc |
15644 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15645 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15646 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15647 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15648 | ||
391a765e | 15649 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15650 | LIBS="$LIBS -lstdcpp" |
15651 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15652 | else | |
391a765e | 15653 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15654 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15655 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15656 | else | |
15657 | LIBS="$LIBS -lstdc++" | |
15658 | fi | |
15659 | fi | |
94acd38e DE |
15660 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15661 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15662 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15663 | wxUSE_OMF=yes | |
2da0c077 | 15664 | enable_omf=yes |
a848cd7e SC |
15665 | fi |
15666 | ;; | |
15667 | *) | |
15668 | ||
95986553 | 15669 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15670 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15671 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15673 | else | |
15674 | ||
15675 | cat >conftest.$ac_ext <<_ACEOF | |
15676 | /* confdefs.h. */ | |
15677 | _ACEOF | |
15678 | cat confdefs.h >>conftest.$ac_ext | |
15679 | cat >>conftest.$ac_ext <<_ACEOF | |
15680 | /* end confdefs.h. */ | |
15681 | ||
15682 | #include <string.h> | |
15683 | ||
15684 | int | |
15685 | main () | |
15686 | { | |
15687 | ||
15688 | strcasecmp("foo", "bar"); | |
15689 | ||
15690 | ; | |
15691 | return 0; | |
15692 | } | |
15693 | _ACEOF | |
15694 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15696 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15697 | ac_status=$? |
ac1cb8d3 VS |
15698 | grep -v '^ *+' conftest.er1 >conftest.err |
15699 | rm -f conftest.er1 | |
15700 | cat conftest.err >&5 | |
a848cd7e SC |
15701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15702 | (exit $ac_status); } && | |
c9a66001 | 15703 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15705 | (eval $ac_try) 2>&5 | |
15706 | ac_status=$? | |
15707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15708 | (exit $ac_status); }; } && | |
15709 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15711 | (eval $ac_try) 2>&5 | |
15712 | ac_status=$? | |
15713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15714 | (exit $ac_status); }; }; then | |
15715 | ac_cv_string_strcasecmp=yes | |
15716 | else | |
15717 | echo "$as_me: failed program was:" >&5 | |
15718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15719 | ||
15720 | ac_cv_string_strcasecmp=no | |
15721 | ||
15722 | fi | |
ac1cb8d3 VS |
15723 | rm -f conftest.err conftest.$ac_objext \ |
15724 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15725 | |
15726 | fi | |
15727 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15728 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15729 | ||
15730 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15731 | cat >>confdefs.h <<\_ACEOF | |
15732 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15733 | _ACEOF | |
15734 | ||
15735 | else | |
15736 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15737 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15738 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15740 | else | |
15741 | ||
15742 | cat >conftest.$ac_ext <<_ACEOF | |
15743 | /* confdefs.h. */ | |
15744 | _ACEOF | |
15745 | cat confdefs.h >>conftest.$ac_ext | |
15746 | cat >>conftest.$ac_ext <<_ACEOF | |
15747 | /* end confdefs.h. */ | |
15748 | ||
15749 | #include <strings.h> | |
15750 | ||
15751 | int | |
15752 | main () | |
15753 | { | |
15754 | ||
15755 | strcasecmp("foo", "bar"); | |
15756 | ||
15757 | ; | |
15758 | return 0; | |
15759 | } | |
15760 | _ACEOF | |
15761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15763 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15764 | ac_status=$? |
ac1cb8d3 VS |
15765 | grep -v '^ *+' conftest.er1 >conftest.err |
15766 | rm -f conftest.er1 | |
15767 | cat conftest.err >&5 | |
a848cd7e SC |
15768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15769 | (exit $ac_status); } && | |
c9a66001 | 15770 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15772 | (eval $ac_try) 2>&5 | |
15773 | ac_status=$? | |
15774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15775 | (exit $ac_status); }; } && | |
15776 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15778 | (eval $ac_try) 2>&5 | |
15779 | ac_status=$? | |
15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15781 | (exit $ac_status); }; }; then | |
15782 | ac_cv_strings_strcasecmp=yes | |
15783 | else | |
15784 | echo "$as_me: failed program was:" >&5 | |
15785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15786 | ||
15787 | ac_cv_strings_strcasecmp=no | |
15788 | ||
15789 | fi | |
ac1cb8d3 VS |
15790 | rm -f conftest.err conftest.$ac_objext \ |
15791 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15792 | |
15793 | fi | |
15794 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15795 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15796 | ||
0c3c69fc | 15797 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15798 | cat >>confdefs.h <<\_ACEOF |
15799 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15800 | _ACEOF | |
15801 | ||
15802 | else | |
15803 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15804 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15805 | { (exit 1); exit 1; }; } | |
15806 | fi | |
15807 | fi | |
15808 | ||
a848cd7e SC |
15809 | ;; |
15810 | esac | |
15811 | ||
15812 | ||
5d7b7554 VZ |
15813 | ac_ext=cc |
15814 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15818 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
15819 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
15820 | if test -z "$CXXCPP"; then | |
15821 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
15822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15823 | else | |
15824 | # Double quotes because CXXCPP needs to be expanded | |
15825 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
15826 | do | |
15827 | ac_preproc_ok=false | |
15828 | for ac_cxx_preproc_warn_flag in '' yes | |
15829 | do | |
15830 | # Use a header file that comes with gcc, so configuring glibc | |
15831 | # with a fresh cross-compiler works. | |
15832 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15833 | # <limits.h> exists even on freestanding compilers. | |
15834 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15835 | # not just through cpp. "Syntax error" is here to catch this case. | |
15836 | cat >conftest.$ac_ext <<_ACEOF | |
15837 | /* confdefs.h. */ | |
15838 | _ACEOF | |
15839 | cat confdefs.h >>conftest.$ac_ext | |
15840 | cat >>conftest.$ac_ext <<_ACEOF | |
15841 | /* end confdefs.h. */ | |
15842 | #ifdef __STDC__ | |
15843 | # include <limits.h> | |
15844 | #else | |
15845 | # include <assert.h> | |
15846 | #endif | |
15847 | Syntax error | |
15848 | _ACEOF | |
15849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15851 | ac_status=$? | |
15852 | grep -v '^ *+' conftest.er1 >conftest.err | |
15853 | rm -f conftest.er1 | |
15854 | cat conftest.err >&5 | |
15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15856 | (exit $ac_status); } >/dev/null; then | |
15857 | if test -s conftest.err; then | |
15858 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15859 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15860 | else | |
15861 | ac_cpp_err= | |
15862 | fi | |
15863 | else | |
15864 | ac_cpp_err=yes | |
15865 | fi | |
15866 | if test -z "$ac_cpp_err"; then | |
15867 | : | |
15868 | else | |
15869 | echo "$as_me: failed program was:" >&5 | |
15870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15871 | ||
15872 | # Broken: fails on valid input. | |
15873 | continue | |
15874 | fi | |
15875 | rm -f conftest.err conftest.$ac_ext | |
15876 | ||
15877 | # OK, works on sane cases. Now check whether non-existent headers | |
15878 | # can be detected and how. | |
15879 | cat >conftest.$ac_ext <<_ACEOF | |
15880 | /* confdefs.h. */ | |
15881 | _ACEOF | |
15882 | cat confdefs.h >>conftest.$ac_ext | |
15883 | cat >>conftest.$ac_ext <<_ACEOF | |
15884 | /* end confdefs.h. */ | |
15885 | #include <ac_nonexistent.h> | |
15886 | _ACEOF | |
15887 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15888 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15889 | ac_status=$? | |
15890 | grep -v '^ *+' conftest.er1 >conftest.err | |
15891 | rm -f conftest.er1 | |
15892 | cat conftest.err >&5 | |
15893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15894 | (exit $ac_status); } >/dev/null; then | |
15895 | if test -s conftest.err; then | |
15896 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15897 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15898 | else | |
15899 | ac_cpp_err= | |
15900 | fi | |
15901 | else | |
15902 | ac_cpp_err=yes | |
15903 | fi | |
15904 | if test -z "$ac_cpp_err"; then | |
15905 | # Broken: success on invalid input. | |
15906 | continue | |
15907 | else | |
15908 | echo "$as_me: failed program was:" >&5 | |
15909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15910 | ||
15911 | # Passes both tests. | |
15912 | ac_preproc_ok=: | |
15913 | break | |
15914 | fi | |
15915 | rm -f conftest.err conftest.$ac_ext | |
15916 | ||
15917 | done | |
15918 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15919 | rm -f conftest.err conftest.$ac_ext | |
15920 | if $ac_preproc_ok; then | |
15921 | break | |
15922 | fi | |
15923 | ||
15924 | done | |
15925 | ac_cv_prog_CXXCPP=$CXXCPP | |
15926 | ||
15927 | fi | |
15928 | CXXCPP=$ac_cv_prog_CXXCPP | |
15929 | else | |
15930 | ac_cv_prog_CXXCPP=$CXXCPP | |
15931 | fi | |
15932 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
15933 | echo "${ECHO_T}$CXXCPP" >&6 | |
15934 | ac_preproc_ok=false | |
15935 | for ac_cxx_preproc_warn_flag in '' yes | |
15936 | do | |
15937 | # Use a header file that comes with gcc, so configuring glibc | |
15938 | # with a fresh cross-compiler works. | |
15939 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15940 | # <limits.h> exists even on freestanding compilers. | |
15941 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15942 | # not just through cpp. "Syntax error" is here to catch this case. | |
15943 | cat >conftest.$ac_ext <<_ACEOF | |
15944 | /* confdefs.h. */ | |
15945 | _ACEOF | |
15946 | cat confdefs.h >>conftest.$ac_ext | |
15947 | cat >>conftest.$ac_ext <<_ACEOF | |
15948 | /* end confdefs.h. */ | |
15949 | #ifdef __STDC__ | |
15950 | # include <limits.h> | |
15951 | #else | |
15952 | # include <assert.h> | |
15953 | #endif | |
15954 | Syntax error | |
15955 | _ACEOF | |
15956 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15957 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15958 | ac_status=$? | |
15959 | grep -v '^ *+' conftest.er1 >conftest.err | |
15960 | rm -f conftest.er1 | |
15961 | cat conftest.err >&5 | |
15962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15963 | (exit $ac_status); } >/dev/null; then | |
15964 | if test -s conftest.err; then | |
15965 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15966 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15967 | else | |
15968 | ac_cpp_err= | |
15969 | fi | |
15970 | else | |
15971 | ac_cpp_err=yes | |
15972 | fi | |
15973 | if test -z "$ac_cpp_err"; then | |
15974 | : | |
15975 | else | |
15976 | echo "$as_me: failed program was:" >&5 | |
15977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15978 | ||
15979 | # Broken: fails on valid input. | |
15980 | continue | |
15981 | fi | |
15982 | rm -f conftest.err conftest.$ac_ext | |
15983 | ||
15984 | # OK, works on sane cases. Now check whether non-existent headers | |
15985 | # can be detected and how. | |
15986 | cat >conftest.$ac_ext <<_ACEOF | |
15987 | /* confdefs.h. */ | |
15988 | _ACEOF | |
15989 | cat confdefs.h >>conftest.$ac_ext | |
15990 | cat >>conftest.$ac_ext <<_ACEOF | |
15991 | /* end confdefs.h. */ | |
15992 | #include <ac_nonexistent.h> | |
15993 | _ACEOF | |
15994 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15995 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15996 | ac_status=$? | |
15997 | grep -v '^ *+' conftest.er1 >conftest.err | |
15998 | rm -f conftest.er1 | |
15999 | cat conftest.err >&5 | |
16000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16001 | (exit $ac_status); } >/dev/null; then | |
16002 | if test -s conftest.err; then | |
16003 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16004 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16005 | else | |
16006 | ac_cpp_err= | |
16007 | fi | |
16008 | else | |
16009 | ac_cpp_err=yes | |
16010 | fi | |
16011 | if test -z "$ac_cpp_err"; then | |
16012 | # Broken: success on invalid input. | |
16013 | continue | |
16014 | else | |
16015 | echo "$as_me: failed program was:" >&5 | |
16016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16017 | ||
16018 | # Passes both tests. | |
16019 | ac_preproc_ok=: | |
16020 | break | |
16021 | fi | |
16022 | rm -f conftest.err conftest.$ac_ext | |
16023 | ||
16024 | done | |
16025 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16026 | rm -f conftest.err conftest.$ac_ext | |
16027 | if $ac_preproc_ok; then | |
16028 | : | |
16029 | else | |
16030 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16031 | See \`config.log' for more details." >&5 | |
16032 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16033 | See \`config.log' for more details." >&2;} | |
16034 | { (exit 1); exit 1; }; } | |
16035 | fi | |
16036 | ||
16037 | ac_ext=cc | |
16038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16042 | ||
16043 | ||
a848cd7e SC |
16044 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
16045 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
16046 | if test "${ac_cv_header_stdc+set}" = set; then | |
16047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16048 | else | |
16049 | cat >conftest.$ac_ext <<_ACEOF | |
16050 | /* confdefs.h. */ | |
16051 | _ACEOF | |
16052 | cat confdefs.h >>conftest.$ac_ext | |
16053 | cat >>conftest.$ac_ext <<_ACEOF | |
16054 | /* end confdefs.h. */ | |
16055 | #include <stdlib.h> | |
16056 | #include <stdarg.h> | |
16057 | #include <string.h> | |
16058 | #include <float.h> | |
16059 | ||
16060 | int | |
16061 | main () | |
16062 | { | |
16063 | ||
16064 | ; | |
16065 | return 0; | |
16066 | } | |
16067 | _ACEOF | |
16068 | rm -f conftest.$ac_objext | |
16069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16070 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16071 | ac_status=$? |
ac1cb8d3 VS |
16072 | grep -v '^ *+' conftest.er1 >conftest.err |
16073 | rm -f conftest.er1 | |
16074 | cat conftest.err >&5 | |
a848cd7e SC |
16075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16076 | (exit $ac_status); } && | |
c9a66001 | 16077 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16079 | (eval $ac_try) 2>&5 | |
16080 | ac_status=$? | |
16081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16082 | (exit $ac_status); }; } && | |
16083 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16085 | (eval $ac_try) 2>&5 | |
16086 | ac_status=$? | |
16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16088 | (exit $ac_status); }; }; then | |
16089 | ac_cv_header_stdc=yes | |
16090 | else | |
16091 | echo "$as_me: failed program was:" >&5 | |
16092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16093 | ||
16094 | ac_cv_header_stdc=no | |
16095 | fi | |
ac1cb8d3 | 16096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16097 | |
16098 | if test $ac_cv_header_stdc = yes; then | |
16099 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16100 | cat >conftest.$ac_ext <<_ACEOF | |
16101 | /* confdefs.h. */ | |
16102 | _ACEOF | |
16103 | cat confdefs.h >>conftest.$ac_ext | |
16104 | cat >>conftest.$ac_ext <<_ACEOF | |
16105 | /* end confdefs.h. */ | |
16106 | #include <string.h> | |
16107 | ||
16108 | _ACEOF | |
16109 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16110 | $EGREP "memchr" >/dev/null 2>&1; then | |
16111 | : | |
16112 | else | |
16113 | ac_cv_header_stdc=no | |
16114 | fi | |
16115 | rm -f conftest* | |
16116 | ||
16117 | fi | |
16118 | ||
16119 | if test $ac_cv_header_stdc = yes; then | |
16120 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16121 | cat >conftest.$ac_ext <<_ACEOF | |
16122 | /* confdefs.h. */ | |
16123 | _ACEOF | |
16124 | cat confdefs.h >>conftest.$ac_ext | |
16125 | cat >>conftest.$ac_ext <<_ACEOF | |
16126 | /* end confdefs.h. */ | |
16127 | #include <stdlib.h> | |
16128 | ||
16129 | _ACEOF | |
16130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16131 | $EGREP "free" >/dev/null 2>&1; then | |
16132 | : | |
16133 | else | |
16134 | ac_cv_header_stdc=no | |
16135 | fi | |
16136 | rm -f conftest* | |
16137 | ||
16138 | fi | |
16139 | ||
16140 | if test $ac_cv_header_stdc = yes; then | |
16141 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16142 | if test "$cross_compiling" = yes; then | |
16143 | : | |
16144 | else | |
16145 | cat >conftest.$ac_ext <<_ACEOF | |
16146 | /* confdefs.h. */ | |
16147 | _ACEOF | |
16148 | cat confdefs.h >>conftest.$ac_ext | |
16149 | cat >>conftest.$ac_ext <<_ACEOF | |
16150 | /* end confdefs.h. */ | |
16151 | #include <ctype.h> | |
16152 | #if ((' ' & 0x0FF) == 0x020) | |
16153 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16154 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16155 | #else | |
16156 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
16157 | (('a' <= (c) && (c) <= 'i') \ |
16158 | || ('j' <= (c) && (c) <= 'r') \ | |
16159 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
16160 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
16161 | #endif | |
16162 | ||
16163 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16164 | int | |
16165 | main () | |
16166 | { | |
16167 | int i; | |
16168 | for (i = 0; i < 256; i++) | |
16169 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 16170 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
16171 | exit(2); |
16172 | exit (0); | |
16173 | } | |
16174 | _ACEOF | |
16175 | rm -f conftest$ac_exeext | |
16176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16177 | (eval $ac_link) 2>&5 | |
16178 | ac_status=$? | |
16179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16182 | (eval $ac_try) 2>&5 | |
16183 | ac_status=$? | |
16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16185 | (exit $ac_status); }; }; then | |
16186 | : | |
16187 | else | |
16188 | echo "$as_me: program exited with status $ac_status" >&5 | |
16189 | echo "$as_me: failed program was:" >&5 | |
16190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16191 | ||
16192 | ( exit $ac_status ) | |
16193 | ac_cv_header_stdc=no | |
16194 | fi | |
ac1cb8d3 | 16195 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16196 | fi |
16197 | fi | |
16198 | fi | |
16199 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
16200 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
16201 | if test $ac_cv_header_stdc = yes; then | |
16202 | ||
16203 | cat >>confdefs.h <<\_ACEOF | |
16204 | #define STDC_HEADERS 1 | |
16205 | _ACEOF | |
16206 | ||
16207 | fi | |
16208 | ||
16209 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
16210 | ||
16211 | ||
16212 | ||
16213 | ||
16214 | ||
16215 | ||
16216 | ||
16217 | ||
16218 | ||
16219 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 16220 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
16221 | do |
16222 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16227 | else | |
16228 | cat >conftest.$ac_ext <<_ACEOF | |
16229 | /* confdefs.h. */ | |
16230 | _ACEOF | |
16231 | cat confdefs.h >>conftest.$ac_ext | |
16232 | cat >>conftest.$ac_ext <<_ACEOF | |
16233 | /* end confdefs.h. */ | |
16234 | $ac_includes_default | |
16235 | ||
16236 | #include <$ac_header> | |
16237 | _ACEOF | |
16238 | rm -f conftest.$ac_objext | |
16239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16240 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16241 | ac_status=$? |
ac1cb8d3 VS |
16242 | grep -v '^ *+' conftest.er1 >conftest.err |
16243 | rm -f conftest.er1 | |
16244 | cat conftest.err >&5 | |
a848cd7e SC |
16245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16246 | (exit $ac_status); } && | |
c9a66001 | 16247 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16249 | (eval $ac_try) 2>&5 | |
16250 | ac_status=$? | |
16251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16252 | (exit $ac_status); }; } && | |
16253 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16255 | (eval $ac_try) 2>&5 | |
16256 | ac_status=$? | |
16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16258 | (exit $ac_status); }; }; then | |
16259 | eval "$as_ac_Header=yes" | |
16260 | else | |
16261 | echo "$as_me: failed program was:" >&5 | |
16262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16263 | ||
16264 | eval "$as_ac_Header=no" | |
16265 | fi | |
ac1cb8d3 | 16266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16267 | fi |
16268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16270 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16271 | cat >>confdefs.h <<_ACEOF | |
16272 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16273 | _ACEOF | |
16274 | ||
16275 | fi | |
16276 | ||
16277 | done | |
16278 | ||
16279 | ||
16280 | ||
16281 | for ac_header in stdlib.h | |
16282 | do | |
16283 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16285 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16286 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16287 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16289 | fi | |
16290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16291 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16292 | else | |
16293 | # Is the header compilable? | |
16294 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16295 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16296 | cat >conftest.$ac_ext <<_ACEOF | |
16297 | /* confdefs.h. */ | |
16298 | _ACEOF | |
16299 | cat confdefs.h >>conftest.$ac_ext | |
16300 | cat >>conftest.$ac_ext <<_ACEOF | |
16301 | /* end confdefs.h. */ | |
16302 | $ac_includes_default | |
16303 | #include <$ac_header> | |
16304 | _ACEOF | |
16305 | rm -f conftest.$ac_objext | |
16306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16307 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16308 | ac_status=$? |
ac1cb8d3 VS |
16309 | grep -v '^ *+' conftest.er1 >conftest.err |
16310 | rm -f conftest.er1 | |
16311 | cat conftest.err >&5 | |
a848cd7e SC |
16312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16313 | (exit $ac_status); } && | |
c9a66001 | 16314 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16316 | (eval $ac_try) 2>&5 | |
16317 | ac_status=$? | |
16318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16319 | (exit $ac_status); }; } && | |
16320 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16322 | (eval $ac_try) 2>&5 | |
16323 | ac_status=$? | |
16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16325 | (exit $ac_status); }; }; then | |
16326 | ac_header_compiler=yes | |
16327 | else | |
16328 | echo "$as_me: failed program was:" >&5 | |
16329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16330 | ||
16331 | ac_header_compiler=no | |
16332 | fi | |
ac1cb8d3 | 16333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16334 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16335 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16336 | ||
16337 | # Is the header present? | |
16338 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16339 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16340 | cat >conftest.$ac_ext <<_ACEOF | |
16341 | /* confdefs.h. */ | |
16342 | _ACEOF | |
16343 | cat confdefs.h >>conftest.$ac_ext | |
16344 | cat >>conftest.$ac_ext <<_ACEOF | |
16345 | /* end confdefs.h. */ | |
16346 | #include <$ac_header> | |
16347 | _ACEOF | |
16348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16350 | ac_status=$? | |
16351 | grep -v '^ *+' conftest.er1 >conftest.err | |
16352 | rm -f conftest.er1 | |
16353 | cat conftest.err >&5 | |
16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16355 | (exit $ac_status); } >/dev/null; then | |
16356 | if test -s conftest.err; then | |
5d7b7554 VZ |
16357 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16358 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16359 | else |
16360 | ac_cpp_err= | |
16361 | fi | |
16362 | else | |
16363 | ac_cpp_err=yes | |
16364 | fi | |
16365 | if test -z "$ac_cpp_err"; then | |
16366 | ac_header_preproc=yes | |
16367 | else | |
16368 | echo "$as_me: failed program was:" >&5 | |
16369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16370 | ||
16371 | ac_header_preproc=no | |
16372 | fi | |
16373 | rm -f conftest.err conftest.$ac_ext | |
16374 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16375 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16376 | ||
16377 | # So? What about this header? | |
5d7b7554 | 16378 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16379 | yes:no: ) |
a848cd7e SC |
16380 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16381 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16382 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16383 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16384 | ac_header_preproc=yes | |
a848cd7e | 16385 | ;; |
ac1cb8d3 | 16386 | no:yes:* ) |
a848cd7e SC |
16387 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16388 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16389 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16390 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16391 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16392 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16393 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16394 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16395 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16396 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16397 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16398 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16399 | ( |
16400 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16401 | ## ----------------------------------------- ## |
16402 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16403 | ## ----------------------------------------- ## | |
a848cd7e SC |
16404 | _ASBOX |
16405 | ) | | |
16406 | sed "s/^/$as_me: WARNING: /" >&2 | |
16407 | ;; | |
16408 | esac | |
16409 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16413 | else | |
ac1cb8d3 | 16414 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16415 | fi |
16416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16417 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16418 | ||
16419 | fi | |
16420 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16421 | cat >>confdefs.h <<_ACEOF | |
16422 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16423 | _ACEOF | |
16424 | ||
16425 | fi | |
16426 | ||
16427 | done | |
16428 | ||
16429 | ||
16430 | for ac_header in malloc.h | |
16431 | do | |
16432 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16433 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16438 | fi | |
16439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16440 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16441 | else | |
16442 | # Is the header compilable? | |
16443 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16444 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16445 | cat >conftest.$ac_ext <<_ACEOF | |
16446 | /* confdefs.h. */ | |
16447 | _ACEOF | |
16448 | cat confdefs.h >>conftest.$ac_ext | |
16449 | cat >>conftest.$ac_ext <<_ACEOF | |
16450 | /* end confdefs.h. */ | |
16451 | $ac_includes_default | |
16452 | #include <$ac_header> | |
16453 | _ACEOF | |
16454 | rm -f conftest.$ac_objext | |
16455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16456 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16457 | ac_status=$? |
ac1cb8d3 VS |
16458 | grep -v '^ *+' conftest.er1 >conftest.err |
16459 | rm -f conftest.er1 | |
16460 | cat conftest.err >&5 | |
a848cd7e SC |
16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16462 | (exit $ac_status); } && | |
c9a66001 | 16463 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16465 | (eval $ac_try) 2>&5 | |
16466 | ac_status=$? | |
16467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16468 | (exit $ac_status); }; } && | |
16469 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16471 | (eval $ac_try) 2>&5 | |
16472 | ac_status=$? | |
16473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16474 | (exit $ac_status); }; }; then | |
16475 | ac_header_compiler=yes | |
16476 | else | |
16477 | echo "$as_me: failed program was:" >&5 | |
16478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16479 | ||
16480 | ac_header_compiler=no | |
16481 | fi | |
ac1cb8d3 | 16482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16483 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16484 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16485 | ||
16486 | # Is the header present? | |
16487 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16488 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16489 | cat >conftest.$ac_ext <<_ACEOF | |
16490 | /* confdefs.h. */ | |
16491 | _ACEOF | |
16492 | cat confdefs.h >>conftest.$ac_ext | |
16493 | cat >>conftest.$ac_ext <<_ACEOF | |
16494 | /* end confdefs.h. */ | |
16495 | #include <$ac_header> | |
16496 | _ACEOF | |
16497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16499 | ac_status=$? | |
16500 | grep -v '^ *+' conftest.er1 >conftest.err | |
16501 | rm -f conftest.er1 | |
16502 | cat conftest.err >&5 | |
16503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16504 | (exit $ac_status); } >/dev/null; then | |
16505 | if test -s conftest.err; then | |
5d7b7554 VZ |
16506 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16507 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16508 | else |
16509 | ac_cpp_err= | |
16510 | fi | |
16511 | else | |
16512 | ac_cpp_err=yes | |
16513 | fi | |
16514 | if test -z "$ac_cpp_err"; then | |
16515 | ac_header_preproc=yes | |
16516 | else | |
16517 | echo "$as_me: failed program was:" >&5 | |
16518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16519 | ||
16520 | ac_header_preproc=no | |
16521 | fi | |
16522 | rm -f conftest.err conftest.$ac_ext | |
16523 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16524 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16525 | ||
16526 | # So? What about this header? | |
5d7b7554 | 16527 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16528 | yes:no: ) |
a848cd7e SC |
16529 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16530 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16531 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16532 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16533 | ac_header_preproc=yes | |
a848cd7e | 16534 | ;; |
ac1cb8d3 | 16535 | no:yes:* ) |
a848cd7e SC |
16536 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16537 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16538 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16539 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16540 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16541 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16542 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16543 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16545 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16546 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16547 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16548 | ( |
16549 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16550 | ## ----------------------------------------- ## |
16551 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16552 | ## ----------------------------------------- ## | |
a848cd7e SC |
16553 | _ASBOX |
16554 | ) | | |
16555 | sed "s/^/$as_me: WARNING: /" >&2 | |
16556 | ;; | |
16557 | esac | |
16558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16562 | else | |
ac1cb8d3 | 16563 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16564 | fi |
16565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16567 | ||
16568 | fi | |
16569 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16570 | cat >>confdefs.h <<_ACEOF | |
16571 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16572 | _ACEOF | |
16573 | ||
16574 | fi | |
16575 | ||
16576 | done | |
16577 | ||
16578 | ||
16579 | for ac_header in unistd.h | |
16580 | do | |
16581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16587 | fi | |
16588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16590 | else | |
16591 | # Is the header compilable? | |
16592 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16593 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16594 | cat >conftest.$ac_ext <<_ACEOF | |
16595 | /* confdefs.h. */ | |
16596 | _ACEOF | |
16597 | cat confdefs.h >>conftest.$ac_ext | |
16598 | cat >>conftest.$ac_ext <<_ACEOF | |
16599 | /* end confdefs.h. */ | |
16600 | $ac_includes_default | |
16601 | #include <$ac_header> | |
16602 | _ACEOF | |
16603 | rm -f conftest.$ac_objext | |
16604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16606 | ac_status=$? |
ac1cb8d3 VS |
16607 | grep -v '^ *+' conftest.er1 >conftest.err |
16608 | rm -f conftest.er1 | |
16609 | cat conftest.err >&5 | |
a848cd7e SC |
16610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16611 | (exit $ac_status); } && | |
c9a66001 | 16612 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16614 | (eval $ac_try) 2>&5 | |
16615 | ac_status=$? | |
16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16617 | (exit $ac_status); }; } && | |
16618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16620 | (eval $ac_try) 2>&5 | |
16621 | ac_status=$? | |
16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16623 | (exit $ac_status); }; }; then | |
16624 | ac_header_compiler=yes | |
16625 | else | |
16626 | echo "$as_me: failed program was:" >&5 | |
16627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16628 | ||
16629 | ac_header_compiler=no | |
16630 | fi | |
ac1cb8d3 | 16631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16632 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16633 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16634 | ||
16635 | # Is the header present? | |
16636 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16637 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16638 | cat >conftest.$ac_ext <<_ACEOF | |
16639 | /* confdefs.h. */ | |
16640 | _ACEOF | |
16641 | cat confdefs.h >>conftest.$ac_ext | |
16642 | cat >>conftest.$ac_ext <<_ACEOF | |
16643 | /* end confdefs.h. */ | |
16644 | #include <$ac_header> | |
16645 | _ACEOF | |
16646 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16647 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16648 | ac_status=$? | |
16649 | grep -v '^ *+' conftest.er1 >conftest.err | |
16650 | rm -f conftest.er1 | |
16651 | cat conftest.err >&5 | |
16652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16653 | (exit $ac_status); } >/dev/null; then | |
16654 | if test -s conftest.err; then | |
5d7b7554 VZ |
16655 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16656 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16657 | else |
16658 | ac_cpp_err= | |
16659 | fi | |
16660 | else | |
16661 | ac_cpp_err=yes | |
16662 | fi | |
16663 | if test -z "$ac_cpp_err"; then | |
16664 | ac_header_preproc=yes | |
16665 | else | |
16666 | echo "$as_me: failed program was:" >&5 | |
16667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16668 | ||
16669 | ac_header_preproc=no | |
16670 | fi | |
16671 | rm -f conftest.err conftest.$ac_ext | |
16672 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16673 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16674 | ||
16675 | # So? What about this header? | |
5d7b7554 | 16676 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16677 | yes:no: ) |
a848cd7e SC |
16678 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16679 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16681 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16682 | ac_header_preproc=yes | |
a848cd7e | 16683 | ;; |
ac1cb8d3 | 16684 | no:yes:* ) |
a848cd7e SC |
16685 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16686 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16687 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16688 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16689 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16690 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16691 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16692 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16694 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16695 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16696 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16697 | ( |
16698 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16699 | ## ----------------------------------------- ## |
16700 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16701 | ## ----------------------------------------- ## | |
a848cd7e SC |
16702 | _ASBOX |
16703 | ) | | |
16704 | sed "s/^/$as_me: WARNING: /" >&2 | |
16705 | ;; | |
16706 | esac | |
16707 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16708 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16711 | else | |
ac1cb8d3 | 16712 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16713 | fi |
16714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16715 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16716 | ||
16717 | fi | |
16718 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16719 | cat >>confdefs.h <<_ACEOF | |
16720 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16721 | _ACEOF | |
16722 | ||
16723 | fi | |
16724 | ||
16725 | done | |
16726 | ||
16727 | ||
16728 | for ac_header in wchar.h | |
16729 | do | |
16730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16732 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16736 | fi | |
16737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16738 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16739 | else | |
16740 | # Is the header compilable? | |
16741 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16742 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16743 | cat >conftest.$ac_ext <<_ACEOF | |
16744 | /* confdefs.h. */ | |
16745 | _ACEOF | |
16746 | cat confdefs.h >>conftest.$ac_ext | |
16747 | cat >>conftest.$ac_ext <<_ACEOF | |
16748 | /* end confdefs.h. */ | |
16749 | $ac_includes_default | |
16750 | #include <$ac_header> | |
16751 | _ACEOF | |
16752 | rm -f conftest.$ac_objext | |
16753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16754 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16755 | ac_status=$? |
ac1cb8d3 VS |
16756 | grep -v '^ *+' conftest.er1 >conftest.err |
16757 | rm -f conftest.er1 | |
16758 | cat conftest.err >&5 | |
a848cd7e SC |
16759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16760 | (exit $ac_status); } && | |
c9a66001 | 16761 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16763 | (eval $ac_try) 2>&5 | |
16764 | ac_status=$? | |
16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16766 | (exit $ac_status); }; } && | |
16767 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16769 | (eval $ac_try) 2>&5 | |
16770 | ac_status=$? | |
16771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16772 | (exit $ac_status); }; }; then | |
16773 | ac_header_compiler=yes | |
16774 | else | |
16775 | echo "$as_me: failed program was:" >&5 | |
16776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16777 | ||
16778 | ac_header_compiler=no | |
16779 | fi | |
ac1cb8d3 | 16780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16781 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16782 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16783 | ||
16784 | # Is the header present? | |
16785 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16786 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16787 | cat >conftest.$ac_ext <<_ACEOF | |
16788 | /* confdefs.h. */ | |
16789 | _ACEOF | |
16790 | cat confdefs.h >>conftest.$ac_ext | |
16791 | cat >>conftest.$ac_ext <<_ACEOF | |
16792 | /* end confdefs.h. */ | |
16793 | #include <$ac_header> | |
16794 | _ACEOF | |
16795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16797 | ac_status=$? | |
16798 | grep -v '^ *+' conftest.er1 >conftest.err | |
16799 | rm -f conftest.er1 | |
16800 | cat conftest.err >&5 | |
16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16802 | (exit $ac_status); } >/dev/null; then | |
16803 | if test -s conftest.err; then | |
5d7b7554 VZ |
16804 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16805 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16806 | else |
16807 | ac_cpp_err= | |
16808 | fi | |
16809 | else | |
16810 | ac_cpp_err=yes | |
16811 | fi | |
16812 | if test -z "$ac_cpp_err"; then | |
16813 | ac_header_preproc=yes | |
16814 | else | |
16815 | echo "$as_me: failed program was:" >&5 | |
16816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16817 | ||
16818 | ac_header_preproc=no | |
16819 | fi | |
16820 | rm -f conftest.err conftest.$ac_ext | |
16821 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16822 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16823 | ||
16824 | # So? What about this header? | |
5d7b7554 | 16825 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16826 | yes:no: ) |
a848cd7e SC |
16827 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16828 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16829 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16830 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16831 | ac_header_preproc=yes | |
a848cd7e | 16832 | ;; |
ac1cb8d3 | 16833 | no:yes:* ) |
a848cd7e SC |
16834 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16835 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16836 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16837 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16838 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16839 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16840 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16841 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16843 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16844 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16845 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16846 | ( |
16847 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16848 | ## ----------------------------------------- ## |
16849 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16850 | ## ----------------------------------------- ## | |
a848cd7e SC |
16851 | _ASBOX |
16852 | ) | | |
16853 | sed "s/^/$as_me: WARNING: /" >&2 | |
16854 | ;; | |
16855 | esac | |
16856 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16860 | else | |
ac1cb8d3 | 16861 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16862 | fi |
16863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16865 | ||
16866 | fi | |
16867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16868 | cat >>confdefs.h <<_ACEOF | |
16869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16870 | _ACEOF | |
16871 | ||
16872 | fi | |
16873 | ||
16874 | done | |
16875 | ||
16876 | ||
16877 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16878 | ||
16879 | for ac_header in wcstr.h | |
16880 | do | |
16881 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16883 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16885 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16887 | fi | |
16888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16889 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16890 | else | |
16891 | # Is the header compilable? | |
16892 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16893 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16894 | cat >conftest.$ac_ext <<_ACEOF | |
16895 | /* confdefs.h. */ | |
16896 | _ACEOF | |
16897 | cat confdefs.h >>conftest.$ac_ext | |
16898 | cat >>conftest.$ac_ext <<_ACEOF | |
16899 | /* end confdefs.h. */ | |
16900 | $ac_includes_default | |
16901 | #include <$ac_header> | |
16902 | _ACEOF | |
16903 | rm -f conftest.$ac_objext | |
16904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16905 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16906 | ac_status=$? |
ac1cb8d3 VS |
16907 | grep -v '^ *+' conftest.er1 >conftest.err |
16908 | rm -f conftest.er1 | |
16909 | cat conftest.err >&5 | |
a848cd7e SC |
16910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16911 | (exit $ac_status); } && | |
c9a66001 | 16912 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16914 | (eval $ac_try) 2>&5 | |
16915 | ac_status=$? | |
16916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16917 | (exit $ac_status); }; } && | |
16918 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16920 | (eval $ac_try) 2>&5 | |
16921 | ac_status=$? | |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16923 | (exit $ac_status); }; }; then | |
16924 | ac_header_compiler=yes | |
16925 | else | |
16926 | echo "$as_me: failed program was:" >&5 | |
16927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16928 | ||
16929 | ac_header_compiler=no | |
16930 | fi | |
ac1cb8d3 | 16931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16932 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16933 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16934 | ||
16935 | # Is the header present? | |
16936 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16937 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16938 | cat >conftest.$ac_ext <<_ACEOF | |
16939 | /* confdefs.h. */ | |
16940 | _ACEOF | |
16941 | cat confdefs.h >>conftest.$ac_ext | |
16942 | cat >>conftest.$ac_ext <<_ACEOF | |
16943 | /* end confdefs.h. */ | |
16944 | #include <$ac_header> | |
16945 | _ACEOF | |
16946 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16947 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16948 | ac_status=$? | |
16949 | grep -v '^ *+' conftest.er1 >conftest.err | |
16950 | rm -f conftest.er1 | |
16951 | cat conftest.err >&5 | |
16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16953 | (exit $ac_status); } >/dev/null; then | |
16954 | if test -s conftest.err; then | |
5d7b7554 VZ |
16955 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16956 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16957 | else |
16958 | ac_cpp_err= | |
16959 | fi | |
16960 | else | |
16961 | ac_cpp_err=yes | |
16962 | fi | |
16963 | if test -z "$ac_cpp_err"; then | |
16964 | ac_header_preproc=yes | |
16965 | else | |
16966 | echo "$as_me: failed program was:" >&5 | |
16967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16968 | ||
16969 | ac_header_preproc=no | |
16970 | fi | |
16971 | rm -f conftest.err conftest.$ac_ext | |
16972 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16973 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16974 | ||
16975 | # So? What about this header? | |
5d7b7554 | 16976 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16977 | yes:no: ) |
a848cd7e SC |
16978 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16979 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16981 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16982 | ac_header_preproc=yes | |
a848cd7e | 16983 | ;; |
ac1cb8d3 | 16984 | no:yes:* ) |
a848cd7e SC |
16985 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16986 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16987 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16988 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16989 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16990 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16991 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16992 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16994 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16995 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16996 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16997 | ( |
16998 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16999 | ## ----------------------------------------- ## |
17000 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17001 | ## ----------------------------------------- ## | |
a848cd7e SC |
17002 | _ASBOX |
17003 | ) | | |
17004 | sed "s/^/$as_me: WARNING: /" >&2 | |
17005 | ;; | |
17006 | esac | |
17007 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17008 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17009 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17011 | else | |
ac1cb8d3 | 17012 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17013 | fi |
17014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17015 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17016 | ||
17017 | fi | |
17018 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17019 | cat >>confdefs.h <<_ACEOF | |
17020 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17021 | _ACEOF | |
17022 | ||
17023 | fi | |
17024 | ||
17025 | done | |
17026 | ||
17027 | fi | |
17028 | ||
17029 | ||
17030 | for ac_header in fnmatch.h | |
17031 | do | |
17032 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17033 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17034 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17038 | fi | |
17039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17041 | else | |
17042 | # Is the header compilable? | |
17043 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17044 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17045 | cat >conftest.$ac_ext <<_ACEOF | |
17046 | /* confdefs.h. */ | |
17047 | _ACEOF | |
17048 | cat confdefs.h >>conftest.$ac_ext | |
17049 | cat >>conftest.$ac_ext <<_ACEOF | |
17050 | /* end confdefs.h. */ | |
17051 | $ac_includes_default | |
17052 | #include <$ac_header> | |
17053 | _ACEOF | |
17054 | rm -f conftest.$ac_objext | |
17055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17056 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17057 | ac_status=$? |
ac1cb8d3 VS |
17058 | grep -v '^ *+' conftest.er1 >conftest.err |
17059 | rm -f conftest.er1 | |
17060 | cat conftest.err >&5 | |
a848cd7e SC |
17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17062 | (exit $ac_status); } && | |
c9a66001 | 17063 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17065 | (eval $ac_try) 2>&5 | |
17066 | ac_status=$? | |
17067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17068 | (exit $ac_status); }; } && | |
17069 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17071 | (eval $ac_try) 2>&5 | |
17072 | ac_status=$? | |
17073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17074 | (exit $ac_status); }; }; then | |
17075 | ac_header_compiler=yes | |
17076 | else | |
17077 | echo "$as_me: failed program was:" >&5 | |
17078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17079 | ||
17080 | ac_header_compiler=no | |
17081 | fi | |
ac1cb8d3 | 17082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17083 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17084 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17085 | ||
17086 | # Is the header present? | |
17087 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17088 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17089 | cat >conftest.$ac_ext <<_ACEOF | |
17090 | /* confdefs.h. */ | |
17091 | _ACEOF | |
17092 | cat confdefs.h >>conftest.$ac_ext | |
17093 | cat >>conftest.$ac_ext <<_ACEOF | |
17094 | /* end confdefs.h. */ | |
17095 | #include <$ac_header> | |
17096 | _ACEOF | |
17097 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17098 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17099 | ac_status=$? | |
17100 | grep -v '^ *+' conftest.er1 >conftest.err | |
17101 | rm -f conftest.er1 | |
17102 | cat conftest.err >&5 | |
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17104 | (exit $ac_status); } >/dev/null; then | |
17105 | if test -s conftest.err; then | |
5d7b7554 VZ |
17106 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17107 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17108 | else |
17109 | ac_cpp_err= | |
17110 | fi | |
17111 | else | |
17112 | ac_cpp_err=yes | |
17113 | fi | |
17114 | if test -z "$ac_cpp_err"; then | |
17115 | ac_header_preproc=yes | |
17116 | else | |
17117 | echo "$as_me: failed program was:" >&5 | |
17118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17119 | ||
17120 | ac_header_preproc=no | |
17121 | fi | |
17122 | rm -f conftest.err conftest.$ac_ext | |
17123 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17124 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17125 | ||
17126 | # So? What about this header? | |
5d7b7554 | 17127 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17128 | yes:no: ) |
a848cd7e SC |
17129 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17130 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17131 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17132 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17133 | ac_header_preproc=yes | |
a848cd7e | 17134 | ;; |
ac1cb8d3 | 17135 | no:yes:* ) |
a848cd7e SC |
17136 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17137 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17138 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17139 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17140 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17141 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17142 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17143 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17145 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17146 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17147 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17148 | ( |
17149 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17150 | ## ----------------------------------------- ## |
17151 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17152 | ## ----------------------------------------- ## | |
a848cd7e SC |
17153 | _ASBOX |
17154 | ) | | |
17155 | sed "s/^/$as_me: WARNING: /" >&2 | |
17156 | ;; | |
17157 | esac | |
17158 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17162 | else | |
ac1cb8d3 | 17163 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17164 | fi |
17165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17166 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17167 | ||
17168 | fi | |
17169 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17170 | cat >>confdefs.h <<_ACEOF | |
17171 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17172 | _ACEOF | |
17173 | ||
17174 | fi | |
17175 | ||
17176 | done | |
17177 | ||
17178 | ||
a848cd7e SC |
17179 | |
17180 | for ac_header in langinfo.h | |
17181 | do | |
17182 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17184 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17185 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17188 | fi | |
17189 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17190 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17191 | else | |
17192 | # Is the header compilable? | |
17193 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17194 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17195 | cat >conftest.$ac_ext <<_ACEOF | |
17196 | /* confdefs.h. */ | |
17197 | _ACEOF | |
17198 | cat confdefs.h >>conftest.$ac_ext | |
17199 | cat >>conftest.$ac_ext <<_ACEOF | |
17200 | /* end confdefs.h. */ | |
17201 | $ac_includes_default | |
17202 | #include <$ac_header> | |
17203 | _ACEOF | |
17204 | rm -f conftest.$ac_objext | |
17205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17206 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17207 | ac_status=$? |
ac1cb8d3 VS |
17208 | grep -v '^ *+' conftest.er1 >conftest.err |
17209 | rm -f conftest.er1 | |
17210 | cat conftest.err >&5 | |
a848cd7e SC |
17211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17212 | (exit $ac_status); } && | |
c9a66001 | 17213 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17215 | (eval $ac_try) 2>&5 | |
17216 | ac_status=$? | |
17217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17218 | (exit $ac_status); }; } && | |
17219 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17221 | (eval $ac_try) 2>&5 | |
17222 | ac_status=$? | |
17223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17224 | (exit $ac_status); }; }; then | |
17225 | ac_header_compiler=yes | |
17226 | else | |
17227 | echo "$as_me: failed program was:" >&5 | |
17228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17229 | ||
17230 | ac_header_compiler=no | |
17231 | fi | |
ac1cb8d3 | 17232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17233 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17234 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17235 | ||
17236 | # Is the header present? | |
17237 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17238 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17239 | cat >conftest.$ac_ext <<_ACEOF | |
17240 | /* confdefs.h. */ | |
17241 | _ACEOF | |
17242 | cat confdefs.h >>conftest.$ac_ext | |
17243 | cat >>conftest.$ac_ext <<_ACEOF | |
17244 | /* end confdefs.h. */ | |
17245 | #include <$ac_header> | |
17246 | _ACEOF | |
17247 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17248 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17249 | ac_status=$? | |
17250 | grep -v '^ *+' conftest.er1 >conftest.err | |
17251 | rm -f conftest.er1 | |
17252 | cat conftest.err >&5 | |
17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17254 | (exit $ac_status); } >/dev/null; then | |
17255 | if test -s conftest.err; then | |
5d7b7554 VZ |
17256 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17257 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17258 | else |
17259 | ac_cpp_err= | |
17260 | fi | |
17261 | else | |
17262 | ac_cpp_err=yes | |
17263 | fi | |
17264 | if test -z "$ac_cpp_err"; then | |
17265 | ac_header_preproc=yes | |
17266 | else | |
17267 | echo "$as_me: failed program was:" >&5 | |
17268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17269 | ||
17270 | ac_header_preproc=no | |
17271 | fi | |
17272 | rm -f conftest.err conftest.$ac_ext | |
17273 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17274 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17275 | ||
17276 | # So? What about this header? | |
5d7b7554 | 17277 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17278 | yes:no: ) |
a848cd7e SC |
17279 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17280 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17282 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17283 | ac_header_preproc=yes | |
a848cd7e | 17284 | ;; |
ac1cb8d3 | 17285 | no:yes:* ) |
a848cd7e SC |
17286 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17287 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17288 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17289 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17290 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17291 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17292 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17293 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17294 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17295 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17296 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17297 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17298 | ( |
17299 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17300 | ## ----------------------------------------- ## |
17301 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17302 | ## ----------------------------------------- ## | |
a848cd7e SC |
17303 | _ASBOX |
17304 | ) | | |
17305 | sed "s/^/$as_me: WARNING: /" >&2 | |
17306 | ;; | |
17307 | esac | |
17308 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17312 | else | |
ac1cb8d3 | 17313 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17314 | fi |
17315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17316 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17317 | ||
17318 | fi | |
17319 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17320 | cat >>confdefs.h <<_ACEOF | |
17321 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17322 | _ACEOF | |
17323 | ||
17324 | fi | |
17325 | ||
17326 | done | |
17327 | ||
17328 | ||
17329 | case "${host}" in | |
17330 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
17331 | if test $ac_cv_header_langinfo_h = "yes" \ |
17332 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
17333 | -o "$wx_cv_gccversion" = "EMX3" \ | |
17334 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
17335 | LIBS="$LIBS -lintl" |
17336 | fi | |
17337 | ;; | |
17338 | esac | |
17339 | ||
bc023abb MW |
17340 | if test "$USE_UNIX" = 1 ; then |
17341 | ||
17342 | for ac_header in sys/select.h | |
17343 | do | |
17344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17350 | fi | |
17351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17353 | else | |
17354 | # Is the header compilable? | |
17355 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17356 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17357 | cat >conftest.$ac_ext <<_ACEOF | |
17358 | /* confdefs.h. */ | |
17359 | _ACEOF | |
17360 | cat confdefs.h >>conftest.$ac_ext | |
17361 | cat >>conftest.$ac_ext <<_ACEOF | |
17362 | /* end confdefs.h. */ | |
17363 | $ac_includes_default | |
17364 | #include <$ac_header> | |
17365 | _ACEOF | |
17366 | rm -f conftest.$ac_objext | |
17367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17368 | (eval $ac_compile) 2>conftest.er1 | |
17369 | ac_status=$? | |
17370 | grep -v '^ *+' conftest.er1 >conftest.err | |
17371 | rm -f conftest.er1 | |
17372 | cat conftest.err >&5 | |
17373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17374 | (exit $ac_status); } && | |
17375 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
17376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17377 | (eval $ac_try) 2>&5 | |
17378 | ac_status=$? | |
17379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17380 | (exit $ac_status); }; } && | |
17381 | { ac_try='test -s conftest.$ac_objext' | |
17382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17383 | (eval $ac_try) 2>&5 | |
17384 | ac_status=$? | |
17385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17386 | (exit $ac_status); }; }; then | |
17387 | ac_header_compiler=yes | |
17388 | else | |
17389 | echo "$as_me: failed program was:" >&5 | |
17390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17391 | ||
17392 | ac_header_compiler=no | |
17393 | fi | |
17394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17395 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17396 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17397 | ||
17398 | # Is the header present? | |
17399 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17400 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17401 | cat >conftest.$ac_ext <<_ACEOF | |
17402 | /* confdefs.h. */ | |
17403 | _ACEOF | |
17404 | cat confdefs.h >>conftest.$ac_ext | |
17405 | cat >>conftest.$ac_ext <<_ACEOF | |
17406 | /* end confdefs.h. */ | |
17407 | #include <$ac_header> | |
17408 | _ACEOF | |
17409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17411 | ac_status=$? | |
17412 | grep -v '^ *+' conftest.er1 >conftest.err | |
17413 | rm -f conftest.er1 | |
17414 | cat conftest.err >&5 | |
17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17416 | (exit $ac_status); } >/dev/null; then | |
17417 | if test -s conftest.err; then | |
17418 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17419 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
17420 | else | |
17421 | ac_cpp_err= | |
17422 | fi | |
17423 | else | |
17424 | ac_cpp_err=yes | |
17425 | fi | |
17426 | if test -z "$ac_cpp_err"; then | |
17427 | ac_header_preproc=yes | |
17428 | else | |
17429 | echo "$as_me: failed program was:" >&5 | |
17430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17431 | ||
17432 | ac_header_preproc=no | |
17433 | fi | |
17434 | rm -f conftest.err conftest.$ac_ext | |
17435 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17436 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17437 | ||
17438 | # So? What about this header? | |
17439 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
17440 | yes:no: ) | |
17441 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17442 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17444 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17445 | ac_header_preproc=yes | |
17446 | ;; | |
17447 | no:yes:* ) | |
17448 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17449 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17450 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17451 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17452 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17453 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17454 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17455 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17456 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17457 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17458 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17459 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17460 | ( | |
17461 | cat <<\_ASBOX | |
17462 | ## ----------------------------------------- ## | |
17463 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17464 | ## ----------------------------------------- ## | |
17465 | _ASBOX | |
17466 | ) | | |
17467 | sed "s/^/$as_me: WARNING: /" >&2 | |
17468 | ;; | |
17469 | esac | |
17470 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17472 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17474 | else | |
17475 | eval "$as_ac_Header=\$ac_header_preproc" | |
17476 | fi | |
17477 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17478 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17479 | ||
17480 | fi | |
17481 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17482 | cat >>confdefs.h <<_ACEOF | |
17483 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17484 | _ACEOF | |
17485 | ||
17486 | fi | |
17487 | ||
17488 | done | |
17489 | ||
17490 | fi | |
17491 | ||
a848cd7e SC |
17492 | |
17493 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
17494 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
17495 | if test "${ac_cv_c_const+set}" = set; then | |
17496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17497 | else | |
17498 | cat >conftest.$ac_ext <<_ACEOF | |
17499 | /* confdefs.h. */ | |
17500 | _ACEOF | |
17501 | cat confdefs.h >>conftest.$ac_ext | |
17502 | cat >>conftest.$ac_ext <<_ACEOF | |
17503 | /* end confdefs.h. */ | |
17504 | ||
17505 | int | |
17506 | main () | |
17507 | { | |
17508 | /* FIXME: Include the comments suggested by Paul. */ | |
17509 | #ifndef __cplusplus | |
17510 | /* Ultrix mips cc rejects this. */ | |
17511 | typedef int charset[2]; | |
17512 | const charset x; | |
17513 | /* SunOS 4.1.1 cc rejects this. */ | |
17514 | char const *const *ccp; | |
17515 | char **p; | |
17516 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17517 | struct point {int x, y;}; | |
17518 | static struct point const zero = {0,0}; | |
17519 | /* AIX XL C 1.02.0.0 rejects this. | |
17520 | It does not let you subtract one const X* pointer from another in | |
17521 | an arm of an if-expression whose if-part is not a constant | |
17522 | expression */ | |
17523 | const char *g = "string"; | |
17524 | ccp = &g + (g ? g-g : 0); | |
17525 | /* HPUX 7.0 cc rejects these. */ | |
17526 | ++ccp; | |
17527 | p = (char**) ccp; | |
17528 | ccp = (char const *const *) p; | |
17529 | { /* SCO 3.2v4 cc rejects this. */ | |
17530 | char *t; | |
17531 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17532 | ||
17533 | *t++ = 0; | |
17534 | } | |
17535 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17536 | int x[] = {25, 17}; | |
17537 | const int *foo = &x[0]; | |
17538 | ++foo; | |
17539 | } | |
17540 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17541 | typedef const int *iptr; | |
17542 | iptr p = 0; | |
17543 | ++p; | |
17544 | } | |
17545 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17546 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17547 | struct s { int j; const int *ap[3]; }; | |
17548 | struct s *b; b->j = 5; | |
17549 | } | |
17550 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17551 | const int foo = 10; | |
17552 | } | |
17553 | #endif | |
17554 | ||
17555 | ; | |
17556 | return 0; | |
17557 | } | |
17558 | _ACEOF | |
17559 | rm -f conftest.$ac_objext | |
17560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17561 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17562 | ac_status=$? |
ac1cb8d3 VS |
17563 | grep -v '^ *+' conftest.er1 >conftest.err |
17564 | rm -f conftest.er1 | |
17565 | cat conftest.err >&5 | |
a848cd7e SC |
17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17567 | (exit $ac_status); } && | |
c9a66001 | 17568 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17570 | (eval $ac_try) 2>&5 | |
17571 | ac_status=$? | |
17572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17573 | (exit $ac_status); }; } && | |
17574 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17576 | (eval $ac_try) 2>&5 | |
17577 | ac_status=$? | |
17578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17579 | (exit $ac_status); }; }; then | |
17580 | ac_cv_c_const=yes | |
17581 | else | |
17582 | echo "$as_me: failed program was:" >&5 | |
17583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17584 | ||
17585 | ac_cv_c_const=no | |
17586 | fi | |
ac1cb8d3 | 17587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17588 | fi |
17589 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17590 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
17591 | if test $ac_cv_c_const = no; then | |
17592 | ||
17593 | cat >>confdefs.h <<\_ACEOF | |
17594 | #define const | |
17595 | _ACEOF | |
17596 | ||
17597 | fi | |
17598 | ||
17599 | echo "$as_me:$LINENO: checking for inline" >&5 | |
17600 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
17601 | if test "${ac_cv_c_inline+set}" = set; then | |
17602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17603 | else | |
17604 | ac_cv_c_inline=no | |
17605 | for ac_kw in inline __inline__ __inline; do | |
17606 | cat >conftest.$ac_ext <<_ACEOF | |
17607 | /* confdefs.h. */ | |
17608 | _ACEOF | |
17609 | cat confdefs.h >>conftest.$ac_ext | |
17610 | cat >>conftest.$ac_ext <<_ACEOF | |
17611 | /* end confdefs.h. */ | |
17612 | #ifndef __cplusplus | |
17613 | typedef int foo_t; | |
17614 | static $ac_kw foo_t static_foo () {return 0; } | |
17615 | $ac_kw foo_t foo () {return 0; } | |
17616 | #endif | |
17617 | ||
17618 | _ACEOF | |
17619 | rm -f conftest.$ac_objext | |
17620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17621 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17622 | ac_status=$? |
ac1cb8d3 VS |
17623 | grep -v '^ *+' conftest.er1 >conftest.err |
17624 | rm -f conftest.er1 | |
17625 | cat conftest.err >&5 | |
a848cd7e SC |
17626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17627 | (exit $ac_status); } && | |
c9a66001 | 17628 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17630 | (eval $ac_try) 2>&5 | |
17631 | ac_status=$? | |
17632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17633 | (exit $ac_status); }; } && | |
17634 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17636 | (eval $ac_try) 2>&5 | |
17637 | ac_status=$? | |
17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17639 | (exit $ac_status); }; }; then | |
17640 | ac_cv_c_inline=$ac_kw; break | |
17641 | else | |
17642 | echo "$as_me: failed program was:" >&5 | |
17643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17644 | ||
17645 | fi | |
ac1cb8d3 | 17646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17647 | done |
17648 | ||
17649 | fi | |
17650 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
17651 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
17652 | |
17653 | ||
a848cd7e SC |
17654 | case $ac_cv_c_inline in |
17655 | inline | yes) ;; | |
ac1cb8d3 VS |
17656 | *) |
17657 | case $ac_cv_c_inline in | |
17658 | no) ac_val=;; | |
17659 | *) ac_val=$ac_cv_c_inline;; | |
17660 | esac | |
17661 | cat >>confdefs.h <<_ACEOF | |
17662 | #ifndef __cplusplus | |
17663 | #define inline $ac_val | |
17664 | #endif | |
de59c161 | 17665 | _ACEOF |
ac1cb8d3 | 17666 | ;; |
a848cd7e SC |
17667 | esac |
17668 | ||
17669 | ||
17670 | echo "$as_me:$LINENO: checking for char" >&5 | |
17671 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
17672 | if test "${ac_cv_type_char+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 ((char *) 0) | |
17686 | return 0; | |
17687 | if (sizeof (char)) | |
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); } && | |
c9a66001 | 17702 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17704 | (eval $ac_try) 2>&5 | |
17705 | ac_status=$? | |
17706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17707 | (exit $ac_status); }; } && | |
17708 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17710 | (eval $ac_try) 2>&5 | |
17711 | ac_status=$? | |
17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17713 | (exit $ac_status); }; }; then | |
17714 | ac_cv_type_char=yes | |
17715 | else | |
17716 | echo "$as_me: failed program was:" >&5 | |
17717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17718 | ||
17719 | ac_cv_type_char=no | |
17720 | fi | |
ac1cb8d3 | 17721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17722 | fi |
17723 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
17724 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
17725 | ||
17726 | echo "$as_me:$LINENO: checking size of char" >&5 | |
17727 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
17728 | if test "${ac_cv_sizeof_char+set}" = set; then | |
17729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17730 | else | |
17731 | if test "$ac_cv_type_char" = yes; then | |
17732 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17733 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17734 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17735 | # This bug is HP SR number 8606223364. | |
17736 | if test "$cross_compiling" = yes; then | |
17737 | # Depending upon the size, compute the lo and hi bounds. | |
17738 | cat >conftest.$ac_ext <<_ACEOF | |
17739 | /* confdefs.h. */ | |
17740 | _ACEOF | |
17741 | cat confdefs.h >>conftest.$ac_ext | |
17742 | cat >>conftest.$ac_ext <<_ACEOF | |
17743 | /* end confdefs.h. */ | |
17744 | $ac_includes_default | |
17745 | int | |
17746 | main () | |
17747 | { | |
17748 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
17749 | test_array [0] = 0 | |
17750 | ||
17751 | ; | |
17752 | return 0; | |
17753 | } | |
17754 | _ACEOF | |
17755 | rm -f conftest.$ac_objext | |
17756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17757 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17758 | ac_status=$? |
ac1cb8d3 VS |
17759 | grep -v '^ *+' conftest.er1 >conftest.err |
17760 | rm -f conftest.er1 | |
17761 | cat conftest.err >&5 | |
a848cd7e SC |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17763 | (exit $ac_status); } && | |
c9a66001 | 17764 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17766 | (eval $ac_try) 2>&5 | |
17767 | ac_status=$? | |
17768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17769 | (exit $ac_status); }; } && | |
17770 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17772 | (eval $ac_try) 2>&5 | |
17773 | ac_status=$? | |
17774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17775 | (exit $ac_status); }; }; then | |
17776 | ac_lo=0 ac_mid=0 | |
17777 | while :; do | |
17778 | cat >conftest.$ac_ext <<_ACEOF | |
17779 | /* confdefs.h. */ | |
17780 | _ACEOF | |
17781 | cat confdefs.h >>conftest.$ac_ext | |
17782 | cat >>conftest.$ac_ext <<_ACEOF | |
17783 | /* end confdefs.h. */ | |
17784 | $ac_includes_default | |
17785 | int | |
17786 | main () | |
17787 | { | |
17788 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17789 | test_array [0] = 0 | |
17790 | ||
17791 | ; | |
17792 | return 0; | |
17793 | } | |
17794 | _ACEOF | |
17795 | rm -f conftest.$ac_objext | |
17796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17798 | ac_status=$? |
ac1cb8d3 VS |
17799 | grep -v '^ *+' conftest.er1 >conftest.err |
17800 | rm -f conftest.er1 | |
17801 | cat conftest.err >&5 | |
a848cd7e SC |
17802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17803 | (exit $ac_status); } && | |
c9a66001 | 17804 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17806 | (eval $ac_try) 2>&5 | |
17807 | ac_status=$? | |
17808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17809 | (exit $ac_status); }; } && | |
17810 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17812 | (eval $ac_try) 2>&5 | |
17813 | ac_status=$? | |
17814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17815 | (exit $ac_status); }; }; then | |
17816 | ac_hi=$ac_mid; break | |
17817 | else | |
17818 | echo "$as_me: failed program was:" >&5 | |
17819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17820 | ||
17821 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17822 | if test $ac_lo -le $ac_mid; then |
17823 | ac_lo= ac_hi= | |
17824 | break | |
17825 | fi | |
17826 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17827 | fi |
ac1cb8d3 | 17828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17829 | done |
17830 | else | |
17831 | echo "$as_me: failed program was:" >&5 | |
17832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17833 | ||
17834 | cat >conftest.$ac_ext <<_ACEOF | |
17835 | /* confdefs.h. */ | |
17836 | _ACEOF | |
17837 | cat confdefs.h >>conftest.$ac_ext | |
17838 | cat >>conftest.$ac_ext <<_ACEOF | |
17839 | /* end confdefs.h. */ | |
17840 | $ac_includes_default | |
17841 | int | |
17842 | main () | |
17843 | { | |
17844 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17845 | test_array [0] = 0 | |
17846 | ||
17847 | ; | |
17848 | return 0; | |
17849 | } | |
17850 | _ACEOF | |
17851 | rm -f conftest.$ac_objext | |
17852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17853 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17854 | ac_status=$? |
ac1cb8d3 VS |
17855 | grep -v '^ *+' conftest.er1 >conftest.err |
17856 | rm -f conftest.er1 | |
17857 | cat conftest.err >&5 | |
a848cd7e SC |
17858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17859 | (exit $ac_status); } && | |
c9a66001 | 17860 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17862 | (eval $ac_try) 2>&5 | |
17863 | ac_status=$? | |
17864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17865 | (exit $ac_status); }; } && | |
17866 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17868 | (eval $ac_try) 2>&5 | |
17869 | ac_status=$? | |
17870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17871 | (exit $ac_status); }; }; then | |
17872 | ac_hi=-1 ac_mid=-1 | |
17873 | while :; do | |
17874 | cat >conftest.$ac_ext <<_ACEOF | |
17875 | /* confdefs.h. */ | |
17876 | _ACEOF | |
17877 | cat confdefs.h >>conftest.$ac_ext | |
17878 | cat >>conftest.$ac_ext <<_ACEOF | |
17879 | /* end confdefs.h. */ | |
17880 | $ac_includes_default | |
17881 | int | |
17882 | main () | |
17883 | { | |
17884 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17885 | test_array [0] = 0 | |
17886 | ||
17887 | ; | |
17888 | return 0; | |
17889 | } | |
17890 | _ACEOF | |
17891 | rm -f conftest.$ac_objext | |
17892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17893 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17894 | ac_status=$? |
ac1cb8d3 VS |
17895 | grep -v '^ *+' conftest.er1 >conftest.err |
17896 | rm -f conftest.er1 | |
17897 | cat conftest.err >&5 | |
a848cd7e SC |
17898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17899 | (exit $ac_status); } && | |
c9a66001 | 17900 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17902 | (eval $ac_try) 2>&5 | |
17903 | ac_status=$? | |
17904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17905 | (exit $ac_status); }; } && | |
17906 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17908 | (eval $ac_try) 2>&5 | |
17909 | ac_status=$? | |
17910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17911 | (exit $ac_status); }; }; then | |
17912 | ac_lo=$ac_mid; break | |
17913 | else | |
17914 | echo "$as_me: failed program was:" >&5 | |
17915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17916 | ||
17917 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17918 | if test $ac_mid -le $ac_hi; then |
17919 | ac_lo= ac_hi= | |
17920 | break | |
17921 | fi | |
17922 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17923 | fi |
ac1cb8d3 | 17924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17925 | done |
17926 | else | |
17927 | echo "$as_me: failed program was:" >&5 | |
17928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17929 | ||
17930 | ac_lo= ac_hi= | |
17931 | fi | |
ac1cb8d3 | 17932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17933 | fi |
ac1cb8d3 | 17934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17935 | # Binary search between lo and hi bounds. |
17936 | while test "x$ac_lo" != "x$ac_hi"; do | |
17937 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17938 | cat >conftest.$ac_ext <<_ACEOF | |
17939 | /* confdefs.h. */ | |
17940 | _ACEOF | |
17941 | cat confdefs.h >>conftest.$ac_ext | |
17942 | cat >>conftest.$ac_ext <<_ACEOF | |
17943 | /* end confdefs.h. */ | |
17944 | $ac_includes_default | |
17945 | int | |
17946 | main () | |
17947 | { | |
17948 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17949 | test_array [0] = 0 | |
17950 | ||
17951 | ; | |
17952 | return 0; | |
17953 | } | |
17954 | _ACEOF | |
17955 | rm -f conftest.$ac_objext | |
17956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17957 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17958 | ac_status=$? |
ac1cb8d3 VS |
17959 | grep -v '^ *+' conftest.er1 >conftest.err |
17960 | rm -f conftest.er1 | |
17961 | cat conftest.err >&5 | |
a848cd7e SC |
17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17963 | (exit $ac_status); } && | |
c9a66001 | 17964 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17966 | (eval $ac_try) 2>&5 | |
17967 | ac_status=$? | |
17968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17969 | (exit $ac_status); }; } && | |
17970 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17976 | ac_hi=$ac_mid | |
17977 | else | |
17978 | echo "$as_me: failed program was:" >&5 | |
17979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17980 | ||
17981 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17982 | fi | |
ac1cb8d3 | 17983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17984 | done |
17985 | case $ac_lo in | |
17986 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17987 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17988 | See \`config.log' for more details." >&5 | |
17989 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17990 | See \`config.log' for more details." >&2;} | |
17991 | { (exit 1); exit 1; }; } ;; | |
17992 | esac | |
17993 | else | |
17994 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
17995 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17996 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17997 | { (exit 1); exit 1; }; } |
17998 | else | |
17999 | cat >conftest.$ac_ext <<_ACEOF | |
18000 | /* confdefs.h. */ | |
18001 | _ACEOF | |
18002 | cat confdefs.h >>conftest.$ac_ext | |
18003 | cat >>conftest.$ac_ext <<_ACEOF | |
18004 | /* end confdefs.h. */ | |
18005 | $ac_includes_default | |
18006 | long longval () { return (long) (sizeof (char)); } | |
18007 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
18008 | #include <stdio.h> | |
18009 | #include <stdlib.h> | |
18010 | int | |
18011 | main () | |
18012 | { | |
18013 | ||
18014 | FILE *f = fopen ("conftest.val", "w"); | |
18015 | if (! f) | |
18016 | exit (1); | |
18017 | if (((long) (sizeof (char))) < 0) | |
18018 | { | |
18019 | long i = longval (); | |
18020 | if (i != ((long) (sizeof (char)))) | |
18021 | exit (1); | |
18022 | fprintf (f, "%ld\n", i); | |
18023 | } | |
18024 | else | |
18025 | { | |
18026 | unsigned long i = ulongval (); | |
18027 | if (i != ((long) (sizeof (char)))) | |
18028 | exit (1); | |
18029 | fprintf (f, "%lu\n", i); | |
18030 | } | |
18031 | exit (ferror (f) || fclose (f) != 0); | |
18032 | ||
18033 | ; | |
18034 | return 0; | |
18035 | } | |
18036 | _ACEOF | |
18037 | rm -f conftest$ac_exeext | |
18038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18039 | (eval $ac_link) 2>&5 | |
18040 | ac_status=$? | |
18041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18044 | (eval $ac_try) 2>&5 | |
18045 | ac_status=$? | |
18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18047 | (exit $ac_status); }; }; then | |
18048 | ac_cv_sizeof_char=`cat conftest.val` | |
18049 | else | |
18050 | echo "$as_me: program exited with status $ac_status" >&5 | |
18051 | echo "$as_me: failed program was:" >&5 | |
18052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18053 | ||
18054 | ( exit $ac_status ) | |
18055 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18056 | See \`config.log' for more details." >&5 | |
18057 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18058 | See \`config.log' for more details." >&2;} | |
18059 | { (exit 1); exit 1; }; } | |
18060 | fi | |
ac1cb8d3 | 18061 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18062 | fi |
18063 | fi | |
18064 | rm -f conftest.val | |
18065 | else | |
18066 | ac_cv_sizeof_char=0 | |
18067 | fi | |
18068 | fi | |
18069 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
18070 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
18071 | cat >>confdefs.h <<_ACEOF | |
18072 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
18073 | _ACEOF | |
18074 | ||
18075 | ||
18076 | echo "$as_me:$LINENO: checking for short" >&5 | |
18077 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
18078 | if test "${ac_cv_type_short+set}" = set; then | |
18079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18080 | else | |
18081 | cat >conftest.$ac_ext <<_ACEOF | |
18082 | /* confdefs.h. */ | |
18083 | _ACEOF | |
18084 | cat confdefs.h >>conftest.$ac_ext | |
18085 | cat >>conftest.$ac_ext <<_ACEOF | |
18086 | /* end confdefs.h. */ | |
18087 | $ac_includes_default | |
18088 | int | |
18089 | main () | |
18090 | { | |
18091 | if ((short *) 0) | |
18092 | return 0; | |
18093 | if (sizeof (short)) | |
18094 | return 0; | |
18095 | ; | |
18096 | return 0; | |
18097 | } | |
18098 | _ACEOF | |
18099 | rm -f conftest.$ac_objext | |
18100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18101 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18102 | ac_status=$? |
ac1cb8d3 VS |
18103 | grep -v '^ *+' conftest.er1 >conftest.err |
18104 | rm -f conftest.er1 | |
18105 | cat conftest.err >&5 | |
a848cd7e SC |
18106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18107 | (exit $ac_status); } && | |
c9a66001 | 18108 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18110 | (eval $ac_try) 2>&5 | |
18111 | ac_status=$? | |
18112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18113 | (exit $ac_status); }; } && | |
18114 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18116 | (eval $ac_try) 2>&5 | |
18117 | ac_status=$? | |
18118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18119 | (exit $ac_status); }; }; then | |
18120 | ac_cv_type_short=yes | |
18121 | else | |
18122 | echo "$as_me: failed program was:" >&5 | |
18123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18124 | ||
18125 | ac_cv_type_short=no | |
18126 | fi | |
ac1cb8d3 | 18127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18128 | fi |
18129 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
18130 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
18131 | ||
18132 | echo "$as_me:$LINENO: checking size of short" >&5 | |
18133 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
18134 | if test "${ac_cv_sizeof_short+set}" = set; then | |
18135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18136 | else | |
18137 | if test "$ac_cv_type_short" = yes; then | |
18138 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18139 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18140 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18141 | # This bug is HP SR number 8606223364. | |
18142 | if test "$cross_compiling" = yes; then | |
18143 | # Depending upon the size, compute the lo and hi bounds. | |
18144 | cat >conftest.$ac_ext <<_ACEOF | |
18145 | /* confdefs.h. */ | |
18146 | _ACEOF | |
18147 | cat confdefs.h >>conftest.$ac_ext | |
18148 | cat >>conftest.$ac_ext <<_ACEOF | |
18149 | /* end confdefs.h. */ | |
18150 | $ac_includes_default | |
18151 | int | |
18152 | main () | |
18153 | { | |
18154 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
18155 | test_array [0] = 0 | |
18156 | ||
18157 | ; | |
18158 | return 0; | |
18159 | } | |
18160 | _ACEOF | |
18161 | rm -f conftest.$ac_objext | |
18162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18163 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18164 | ac_status=$? |
ac1cb8d3 VS |
18165 | grep -v '^ *+' conftest.er1 >conftest.err |
18166 | rm -f conftest.er1 | |
18167 | cat conftest.err >&5 | |
a848cd7e SC |
18168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18169 | (exit $ac_status); } && | |
c9a66001 | 18170 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18172 | (eval $ac_try) 2>&5 | |
18173 | ac_status=$? | |
18174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18175 | (exit $ac_status); }; } && | |
18176 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18178 | (eval $ac_try) 2>&5 | |
18179 | ac_status=$? | |
18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18181 | (exit $ac_status); }; }; then | |
18182 | ac_lo=0 ac_mid=0 | |
18183 | while :; do | |
18184 | cat >conftest.$ac_ext <<_ACEOF | |
18185 | /* confdefs.h. */ | |
18186 | _ACEOF | |
18187 | cat confdefs.h >>conftest.$ac_ext | |
18188 | cat >>conftest.$ac_ext <<_ACEOF | |
18189 | /* end confdefs.h. */ | |
18190 | $ac_includes_default | |
18191 | int | |
18192 | main () | |
18193 | { | |
18194 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18195 | test_array [0] = 0 | |
18196 | ||
18197 | ; | |
18198 | return 0; | |
18199 | } | |
18200 | _ACEOF | |
18201 | rm -f conftest.$ac_objext | |
18202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18203 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18204 | ac_status=$? |
ac1cb8d3 VS |
18205 | grep -v '^ *+' conftest.er1 >conftest.err |
18206 | rm -f conftest.er1 | |
18207 | cat conftest.err >&5 | |
a848cd7e SC |
18208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18209 | (exit $ac_status); } && | |
c9a66001 | 18210 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18212 | (eval $ac_try) 2>&5 | |
18213 | ac_status=$? | |
18214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18215 | (exit $ac_status); }; } && | |
18216 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18218 | (eval $ac_try) 2>&5 | |
18219 | ac_status=$? | |
18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18221 | (exit $ac_status); }; }; then | |
18222 | ac_hi=$ac_mid; break | |
18223 | else | |
18224 | echo "$as_me: failed program was:" >&5 | |
18225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18226 | ||
18227 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18228 | if test $ac_lo -le $ac_mid; then |
18229 | ac_lo= ac_hi= | |
18230 | break | |
18231 | fi | |
18232 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18233 | fi |
ac1cb8d3 | 18234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18235 | done |
18236 | else | |
18237 | echo "$as_me: failed program was:" >&5 | |
18238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18239 | ||
18240 | cat >conftest.$ac_ext <<_ACEOF | |
18241 | /* confdefs.h. */ | |
18242 | _ACEOF | |
18243 | cat confdefs.h >>conftest.$ac_ext | |
18244 | cat >>conftest.$ac_ext <<_ACEOF | |
18245 | /* end confdefs.h. */ | |
18246 | $ac_includes_default | |
18247 | int | |
18248 | main () | |
18249 | { | |
18250 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
18251 | test_array [0] = 0 | |
18252 | ||
18253 | ; | |
18254 | return 0; | |
18255 | } | |
18256 | _ACEOF | |
18257 | rm -f conftest.$ac_objext | |
18258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18260 | ac_status=$? |
ac1cb8d3 VS |
18261 | grep -v '^ *+' conftest.er1 >conftest.err |
18262 | rm -f conftest.er1 | |
18263 | cat conftest.err >&5 | |
a848cd7e SC |
18264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18265 | (exit $ac_status); } && | |
c9a66001 | 18266 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18268 | (eval $ac_try) 2>&5 | |
18269 | ac_status=$? | |
18270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18271 | (exit $ac_status); }; } && | |
18272 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18274 | (eval $ac_try) 2>&5 | |
18275 | ac_status=$? | |
18276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18277 | (exit $ac_status); }; }; then | |
18278 | ac_hi=-1 ac_mid=-1 | |
18279 | while :; do | |
18280 | cat >conftest.$ac_ext <<_ACEOF | |
18281 | /* confdefs.h. */ | |
18282 | _ACEOF | |
18283 | cat confdefs.h >>conftest.$ac_ext | |
18284 | cat >>conftest.$ac_ext <<_ACEOF | |
18285 | /* end confdefs.h. */ | |
18286 | $ac_includes_default | |
18287 | int | |
18288 | main () | |
18289 | { | |
18290 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
18291 | test_array [0] = 0 | |
18292 | ||
18293 | ; | |
18294 | return 0; | |
18295 | } | |
18296 | _ACEOF | |
18297 | rm -f conftest.$ac_objext | |
18298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18299 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18300 | ac_status=$? |
ac1cb8d3 VS |
18301 | grep -v '^ *+' conftest.er1 >conftest.err |
18302 | rm -f conftest.er1 | |
18303 | cat conftest.err >&5 | |
a848cd7e SC |
18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18305 | (exit $ac_status); } && | |
c9a66001 | 18306 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18308 | (eval $ac_try) 2>&5 | |
18309 | ac_status=$? | |
18310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18311 | (exit $ac_status); }; } && | |
18312 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18314 | (eval $ac_try) 2>&5 | |
18315 | ac_status=$? | |
18316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18317 | (exit $ac_status); }; }; then | |
18318 | ac_lo=$ac_mid; break | |
18319 | else | |
18320 | echo "$as_me: failed program was:" >&5 | |
18321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18322 | ||
18323 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18324 | if test $ac_mid -le $ac_hi; then |
18325 | ac_lo= ac_hi= | |
18326 | break | |
18327 | fi | |
18328 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18329 | fi |
ac1cb8d3 | 18330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18331 | done |
18332 | else | |
18333 | echo "$as_me: failed program was:" >&5 | |
18334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18335 | ||
18336 | ac_lo= ac_hi= | |
18337 | fi | |
ac1cb8d3 | 18338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18339 | fi |
ac1cb8d3 | 18340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18341 | # Binary search between lo and hi bounds. |
18342 | while test "x$ac_lo" != "x$ac_hi"; do | |
18343 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18344 | cat >conftest.$ac_ext <<_ACEOF | |
18345 | /* confdefs.h. */ | |
18346 | _ACEOF | |
18347 | cat confdefs.h >>conftest.$ac_ext | |
18348 | cat >>conftest.$ac_ext <<_ACEOF | |
18349 | /* end confdefs.h. */ | |
18350 | $ac_includes_default | |
18351 | int | |
18352 | main () | |
18353 | { | |
18354 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18355 | test_array [0] = 0 | |
18356 | ||
18357 | ; | |
18358 | return 0; | |
18359 | } | |
18360 | _ACEOF | |
18361 | rm -f conftest.$ac_objext | |
18362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18364 | ac_status=$? |
ac1cb8d3 VS |
18365 | grep -v '^ *+' conftest.er1 >conftest.err |
18366 | rm -f conftest.er1 | |
18367 | cat conftest.err >&5 | |
a848cd7e SC |
18368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18369 | (exit $ac_status); } && | |
c9a66001 | 18370 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18372 | (eval $ac_try) 2>&5 | |
18373 | ac_status=$? | |
18374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18375 | (exit $ac_status); }; } && | |
18376 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18378 | (eval $ac_try) 2>&5 | |
18379 | ac_status=$? | |
18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18381 | (exit $ac_status); }; }; then | |
18382 | ac_hi=$ac_mid | |
18383 | else | |
18384 | echo "$as_me: failed program was:" >&5 | |
18385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18386 | ||
18387 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18388 | fi | |
ac1cb8d3 | 18389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18390 | done |
18391 | case $ac_lo in | |
18392 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
18393 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18394 | See \`config.log' for more details." >&5 | |
18395 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18396 | See \`config.log' for more details." >&2;} | |
18397 | { (exit 1); exit 1; }; } ;; | |
18398 | esac | |
18399 | else | |
18400 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
18401 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18402 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18403 | { (exit 1); exit 1; }; } |
18404 | else | |
18405 | cat >conftest.$ac_ext <<_ACEOF | |
18406 | /* confdefs.h. */ | |
18407 | _ACEOF | |
18408 | cat confdefs.h >>conftest.$ac_ext | |
18409 | cat >>conftest.$ac_ext <<_ACEOF | |
18410 | /* end confdefs.h. */ | |
18411 | $ac_includes_default | |
18412 | long longval () { return (long) (sizeof (short)); } | |
18413 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
18414 | #include <stdio.h> | |
18415 | #include <stdlib.h> | |
18416 | int | |
18417 | main () | |
18418 | { | |
18419 | ||
18420 | FILE *f = fopen ("conftest.val", "w"); | |
18421 | if (! f) | |
18422 | exit (1); | |
18423 | if (((long) (sizeof (short))) < 0) | |
18424 | { | |
18425 | long i = longval (); | |
18426 | if (i != ((long) (sizeof (short)))) | |
18427 | exit (1); | |
18428 | fprintf (f, "%ld\n", i); | |
18429 | } | |
18430 | else | |
18431 | { | |
18432 | unsigned long i = ulongval (); | |
18433 | if (i != ((long) (sizeof (short)))) | |
18434 | exit (1); | |
18435 | fprintf (f, "%lu\n", i); | |
18436 | } | |
18437 | exit (ferror (f) || fclose (f) != 0); | |
18438 | ||
18439 | ; | |
18440 | return 0; | |
18441 | } | |
18442 | _ACEOF | |
18443 | rm -f conftest$ac_exeext | |
18444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18445 | (eval $ac_link) 2>&5 | |
18446 | ac_status=$? | |
18447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18450 | (eval $ac_try) 2>&5 | |
18451 | ac_status=$? | |
18452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18453 | (exit $ac_status); }; }; then | |
18454 | ac_cv_sizeof_short=`cat conftest.val` | |
18455 | else | |
18456 | echo "$as_me: program exited with status $ac_status" >&5 | |
18457 | echo "$as_me: failed program was:" >&5 | |
18458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18459 | ||
18460 | ( exit $ac_status ) | |
18461 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18462 | See \`config.log' for more details." >&5 | |
18463 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18464 | See \`config.log' for more details." >&2;} | |
18465 | { (exit 1); exit 1; }; } | |
18466 | fi | |
ac1cb8d3 | 18467 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18468 | fi |
18469 | fi | |
18470 | rm -f conftest.val | |
18471 | else | |
18472 | ac_cv_sizeof_short=0 | |
18473 | fi | |
18474 | fi | |
18475 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
18476 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
18477 | cat >>confdefs.h <<_ACEOF | |
18478 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
18479 | _ACEOF | |
18480 | ||
18481 | ||
18482 | echo "$as_me:$LINENO: checking for void *" >&5 | |
18483 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
18484 | if test "${ac_cv_type_void_p+set}" = set; then | |
18485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18486 | else | |
18487 | cat >conftest.$ac_ext <<_ACEOF | |
18488 | /* confdefs.h. */ | |
18489 | _ACEOF | |
18490 | cat confdefs.h >>conftest.$ac_ext | |
18491 | cat >>conftest.$ac_ext <<_ACEOF | |
18492 | /* end confdefs.h. */ | |
18493 | $ac_includes_default | |
18494 | int | |
18495 | main () | |
18496 | { | |
18497 | if ((void * *) 0) | |
18498 | return 0; | |
18499 | if (sizeof (void *)) | |
18500 | return 0; | |
18501 | ; | |
18502 | return 0; | |
18503 | } | |
18504 | _ACEOF | |
18505 | rm -f conftest.$ac_objext | |
18506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18507 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18508 | ac_status=$? |
ac1cb8d3 VS |
18509 | grep -v '^ *+' conftest.er1 >conftest.err |
18510 | rm -f conftest.er1 | |
18511 | cat conftest.err >&5 | |
a848cd7e SC |
18512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18513 | (exit $ac_status); } && | |
c9a66001 | 18514 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18516 | (eval $ac_try) 2>&5 | |
18517 | ac_status=$? | |
18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18519 | (exit $ac_status); }; } && | |
18520 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18522 | (eval $ac_try) 2>&5 | |
18523 | ac_status=$? | |
18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18525 | (exit $ac_status); }; }; then | |
18526 | ac_cv_type_void_p=yes | |
18527 | else | |
18528 | echo "$as_me: failed program was:" >&5 | |
18529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18530 | ||
18531 | ac_cv_type_void_p=no | |
18532 | fi | |
ac1cb8d3 | 18533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18534 | fi |
18535 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
18536 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
18537 | ||
18538 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
18539 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
18540 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
18541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18542 | else | |
18543 | if test "$ac_cv_type_void_p" = yes; then | |
18544 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18545 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18546 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18547 | # This bug is HP SR number 8606223364. | |
18548 | if test "$cross_compiling" = yes; then | |
18549 | # Depending upon the size, compute the lo and hi bounds. | |
18550 | cat >conftest.$ac_ext <<_ACEOF | |
18551 | /* confdefs.h. */ | |
18552 | _ACEOF | |
18553 | cat confdefs.h >>conftest.$ac_ext | |
18554 | cat >>conftest.$ac_ext <<_ACEOF | |
18555 | /* end confdefs.h. */ | |
18556 | $ac_includes_default | |
18557 | int | |
18558 | main () | |
18559 | { | |
18560 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
18561 | test_array [0] = 0 | |
18562 | ||
18563 | ; | |
18564 | return 0; | |
18565 | } | |
18566 | _ACEOF | |
18567 | rm -f conftest.$ac_objext | |
18568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18569 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18570 | ac_status=$? |
ac1cb8d3 VS |
18571 | grep -v '^ *+' conftest.er1 >conftest.err |
18572 | rm -f conftest.er1 | |
18573 | cat conftest.err >&5 | |
a848cd7e SC |
18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18575 | (exit $ac_status); } && | |
c9a66001 | 18576 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18578 | (eval $ac_try) 2>&5 | |
18579 | ac_status=$? | |
18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18581 | (exit $ac_status); }; } && | |
18582 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18584 | (eval $ac_try) 2>&5 | |
18585 | ac_status=$? | |
18586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18587 | (exit $ac_status); }; }; then | |
18588 | ac_lo=0 ac_mid=0 | |
18589 | while :; do | |
18590 | cat >conftest.$ac_ext <<_ACEOF | |
18591 | /* confdefs.h. */ | |
18592 | _ACEOF | |
18593 | cat confdefs.h >>conftest.$ac_ext | |
18594 | cat >>conftest.$ac_ext <<_ACEOF | |
18595 | /* end confdefs.h. */ | |
18596 | $ac_includes_default | |
18597 | int | |
18598 | main () | |
18599 | { | |
18600 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18601 | test_array [0] = 0 | |
18602 | ||
18603 | ; | |
18604 | return 0; | |
18605 | } | |
18606 | _ACEOF | |
18607 | rm -f conftest.$ac_objext | |
18608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18610 | ac_status=$? |
ac1cb8d3 VS |
18611 | grep -v '^ *+' conftest.er1 >conftest.err |
18612 | rm -f conftest.er1 | |
18613 | cat conftest.err >&5 | |
a848cd7e SC |
18614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18615 | (exit $ac_status); } && | |
c9a66001 | 18616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18618 | (eval $ac_try) 2>&5 | |
18619 | ac_status=$? | |
18620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18621 | (exit $ac_status); }; } && | |
18622 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18624 | (eval $ac_try) 2>&5 | |
18625 | ac_status=$? | |
18626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18627 | (exit $ac_status); }; }; then | |
18628 | ac_hi=$ac_mid; break | |
18629 | else | |
18630 | echo "$as_me: failed program was:" >&5 | |
18631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18632 | ||
18633 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18634 | if test $ac_lo -le $ac_mid; then |
18635 | ac_lo= ac_hi= | |
18636 | break | |
18637 | fi | |
18638 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18639 | fi |
ac1cb8d3 | 18640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18641 | done |
18642 | else | |
18643 | echo "$as_me: failed program was:" >&5 | |
18644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18645 | ||
18646 | cat >conftest.$ac_ext <<_ACEOF | |
18647 | /* confdefs.h. */ | |
18648 | _ACEOF | |
18649 | cat confdefs.h >>conftest.$ac_ext | |
18650 | cat >>conftest.$ac_ext <<_ACEOF | |
18651 | /* end confdefs.h. */ | |
18652 | $ac_includes_default | |
18653 | int | |
18654 | main () | |
18655 | { | |
18656 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
18657 | test_array [0] = 0 | |
18658 | ||
18659 | ; | |
18660 | return 0; | |
18661 | } | |
18662 | _ACEOF | |
18663 | rm -f conftest.$ac_objext | |
18664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18665 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18666 | ac_status=$? |
ac1cb8d3 VS |
18667 | grep -v '^ *+' conftest.er1 >conftest.err |
18668 | rm -f conftest.er1 | |
18669 | cat conftest.err >&5 | |
a848cd7e SC |
18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18671 | (exit $ac_status); } && | |
c9a66001 | 18672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18674 | (eval $ac_try) 2>&5 | |
18675 | ac_status=$? | |
18676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18677 | (exit $ac_status); }; } && | |
18678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18680 | (eval $ac_try) 2>&5 | |
18681 | ac_status=$? | |
18682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18683 | (exit $ac_status); }; }; then | |
18684 | ac_hi=-1 ac_mid=-1 | |
18685 | while :; do | |
18686 | cat >conftest.$ac_ext <<_ACEOF | |
18687 | /* confdefs.h. */ | |
18688 | _ACEOF | |
18689 | cat confdefs.h >>conftest.$ac_ext | |
18690 | cat >>conftest.$ac_ext <<_ACEOF | |
18691 | /* end confdefs.h. */ | |
18692 | $ac_includes_default | |
18693 | int | |
18694 | main () | |
18695 | { | |
18696 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
18697 | test_array [0] = 0 | |
18698 | ||
18699 | ; | |
18700 | return 0; | |
18701 | } | |
18702 | _ACEOF | |
18703 | rm -f conftest.$ac_objext | |
18704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18706 | ac_status=$? |
ac1cb8d3 VS |
18707 | grep -v '^ *+' conftest.er1 >conftest.err |
18708 | rm -f conftest.er1 | |
18709 | cat conftest.err >&5 | |
a848cd7e SC |
18710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18711 | (exit $ac_status); } && | |
c9a66001 | 18712 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18714 | (eval $ac_try) 2>&5 | |
18715 | ac_status=$? | |
18716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18717 | (exit $ac_status); }; } && | |
18718 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18720 | (eval $ac_try) 2>&5 | |
18721 | ac_status=$? | |
18722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18723 | (exit $ac_status); }; }; then | |
18724 | ac_lo=$ac_mid; break | |
18725 | else | |
18726 | echo "$as_me: failed program was:" >&5 | |
18727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18728 | ||
18729 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18730 | if test $ac_mid -le $ac_hi; then |
18731 | ac_lo= ac_hi= | |
18732 | break | |
18733 | fi | |
18734 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18735 | fi |
ac1cb8d3 | 18736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18737 | done |
18738 | else | |
18739 | echo "$as_me: failed program was:" >&5 | |
18740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18741 | ||
18742 | ac_lo= ac_hi= | |
18743 | fi | |
ac1cb8d3 | 18744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18745 | fi |
ac1cb8d3 | 18746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18747 | # Binary search between lo and hi bounds. |
18748 | while test "x$ac_lo" != "x$ac_hi"; do | |
18749 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18750 | cat >conftest.$ac_ext <<_ACEOF | |
18751 | /* confdefs.h. */ | |
18752 | _ACEOF | |
18753 | cat confdefs.h >>conftest.$ac_ext | |
18754 | cat >>conftest.$ac_ext <<_ACEOF | |
18755 | /* end confdefs.h. */ | |
18756 | $ac_includes_default | |
18757 | int | |
18758 | main () | |
18759 | { | |
18760 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18761 | test_array [0] = 0 | |
18762 | ||
18763 | ; | |
18764 | return 0; | |
18765 | } | |
18766 | _ACEOF | |
18767 | rm -f conftest.$ac_objext | |
18768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18769 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18770 | ac_status=$? |
ac1cb8d3 VS |
18771 | grep -v '^ *+' conftest.er1 >conftest.err |
18772 | rm -f conftest.er1 | |
18773 | cat conftest.err >&5 | |
a848cd7e SC |
18774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18775 | (exit $ac_status); } && | |
c9a66001 | 18776 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18778 | (eval $ac_try) 2>&5 | |
18779 | ac_status=$? | |
18780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18781 | (exit $ac_status); }; } && | |
18782 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18784 | (eval $ac_try) 2>&5 | |
18785 | ac_status=$? | |
18786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18787 | (exit $ac_status); }; }; then | |
18788 | ac_hi=$ac_mid | |
18789 | else | |
18790 | echo "$as_me: failed program was:" >&5 | |
18791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18792 | ||
18793 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18794 | fi | |
ac1cb8d3 | 18795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18796 | done |
18797 | case $ac_lo in | |
18798 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
18799 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18800 | See \`config.log' for more details." >&5 | |
18801 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18802 | See \`config.log' for more details." >&2;} | |
18803 | { (exit 1); exit 1; }; } ;; | |
18804 | esac | |
18805 | else | |
18806 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
18807 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18808 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18809 | { (exit 1); exit 1; }; } |
18810 | else | |
18811 | cat >conftest.$ac_ext <<_ACEOF | |
18812 | /* confdefs.h. */ | |
18813 | _ACEOF | |
18814 | cat confdefs.h >>conftest.$ac_ext | |
18815 | cat >>conftest.$ac_ext <<_ACEOF | |
18816 | /* end confdefs.h. */ | |
18817 | $ac_includes_default | |
18818 | long longval () { return (long) (sizeof (void *)); } | |
18819 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18820 | #include <stdio.h> | |
18821 | #include <stdlib.h> | |
18822 | int | |
18823 | main () | |
18824 | { | |
18825 | ||
18826 | FILE *f = fopen ("conftest.val", "w"); | |
18827 | if (! f) | |
18828 | exit (1); | |
18829 | if (((long) (sizeof (void *))) < 0) | |
18830 | { | |
18831 | long i = longval (); | |
18832 | if (i != ((long) (sizeof (void *)))) | |
18833 | exit (1); | |
18834 | fprintf (f, "%ld\n", i); | |
18835 | } | |
18836 | else | |
18837 | { | |
18838 | unsigned long i = ulongval (); | |
18839 | if (i != ((long) (sizeof (void *)))) | |
18840 | exit (1); | |
18841 | fprintf (f, "%lu\n", i); | |
18842 | } | |
18843 | exit (ferror (f) || fclose (f) != 0); | |
18844 | ||
18845 | ; | |
18846 | return 0; | |
18847 | } | |
18848 | _ACEOF | |
18849 | rm -f conftest$ac_exeext | |
18850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18851 | (eval $ac_link) 2>&5 | |
18852 | ac_status=$? | |
18853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18856 | (eval $ac_try) 2>&5 | |
18857 | ac_status=$? | |
18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18859 | (exit $ac_status); }; }; then | |
18860 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18861 | else | |
18862 | echo "$as_me: program exited with status $ac_status" >&5 | |
18863 | echo "$as_me: failed program was:" >&5 | |
18864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18865 | ||
18866 | ( exit $ac_status ) | |
18867 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18868 | See \`config.log' for more details." >&5 | |
18869 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18870 | See \`config.log' for more details." >&2;} | |
18871 | { (exit 1); exit 1; }; } | |
18872 | fi | |
ac1cb8d3 | 18873 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18874 | fi |
18875 | fi | |
18876 | rm -f conftest.val | |
18877 | else | |
18878 | ac_cv_sizeof_void_p=0 | |
18879 | fi | |
18880 | fi | |
18881 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18882 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18883 | cat >>confdefs.h <<_ACEOF | |
18884 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18885 | _ACEOF | |
18886 | ||
18887 | ||
18888 | echo "$as_me:$LINENO: checking for int" >&5 | |
18889 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18890 | if test "${ac_cv_type_int+set}" = set; then | |
18891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18892 | else | |
18893 | cat >conftest.$ac_ext <<_ACEOF | |
18894 | /* confdefs.h. */ | |
18895 | _ACEOF | |
18896 | cat confdefs.h >>conftest.$ac_ext | |
18897 | cat >>conftest.$ac_ext <<_ACEOF | |
18898 | /* end confdefs.h. */ | |
18899 | $ac_includes_default | |
18900 | int | |
18901 | main () | |
18902 | { | |
18903 | if ((int *) 0) | |
18904 | return 0; | |
18905 | if (sizeof (int)) | |
18906 | return 0; | |
18907 | ; | |
18908 | return 0; | |
18909 | } | |
18910 | _ACEOF | |
18911 | rm -f conftest.$ac_objext | |
18912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18913 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18914 | ac_status=$? |
ac1cb8d3 VS |
18915 | grep -v '^ *+' conftest.er1 >conftest.err |
18916 | rm -f conftest.er1 | |
18917 | cat conftest.err >&5 | |
a848cd7e SC |
18918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18919 | (exit $ac_status); } && | |
c9a66001 | 18920 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18922 | (eval $ac_try) 2>&5 | |
18923 | ac_status=$? | |
18924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18925 | (exit $ac_status); }; } && | |
18926 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18928 | (eval $ac_try) 2>&5 | |
18929 | ac_status=$? | |
18930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18931 | (exit $ac_status); }; }; then | |
18932 | ac_cv_type_int=yes | |
18933 | else | |
18934 | echo "$as_me: failed program was:" >&5 | |
18935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18936 | ||
18937 | ac_cv_type_int=no | |
18938 | fi | |
ac1cb8d3 | 18939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18940 | fi |
18941 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18942 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18943 | ||
18944 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18945 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18946 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18948 | else | |
18949 | if test "$ac_cv_type_int" = yes; then | |
18950 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18951 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18952 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18953 | # This bug is HP SR number 8606223364. | |
18954 | if test "$cross_compiling" = yes; then | |
18955 | # Depending upon the size, compute the lo and hi bounds. | |
18956 | cat >conftest.$ac_ext <<_ACEOF | |
18957 | /* confdefs.h. */ | |
18958 | _ACEOF | |
18959 | cat confdefs.h >>conftest.$ac_ext | |
18960 | cat >>conftest.$ac_ext <<_ACEOF | |
18961 | /* end confdefs.h. */ | |
18962 | $ac_includes_default | |
18963 | int | |
18964 | main () | |
18965 | { | |
18966 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18967 | test_array [0] = 0 | |
18968 | ||
18969 | ; | |
18970 | return 0; | |
18971 | } | |
18972 | _ACEOF | |
18973 | rm -f conftest.$ac_objext | |
18974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18975 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18976 | ac_status=$? |
ac1cb8d3 VS |
18977 | grep -v '^ *+' conftest.er1 >conftest.err |
18978 | rm -f conftest.er1 | |
18979 | cat conftest.err >&5 | |
a848cd7e SC |
18980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18981 | (exit $ac_status); } && | |
c9a66001 | 18982 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18984 | (eval $ac_try) 2>&5 | |
18985 | ac_status=$? | |
18986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18987 | (exit $ac_status); }; } && | |
18988 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18990 | (eval $ac_try) 2>&5 | |
18991 | ac_status=$? | |
18992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18993 | (exit $ac_status); }; }; then | |
18994 | ac_lo=0 ac_mid=0 | |
18995 | while :; do | |
18996 | cat >conftest.$ac_ext <<_ACEOF | |
18997 | /* confdefs.h. */ | |
18998 | _ACEOF | |
18999 | cat confdefs.h >>conftest.$ac_ext | |
19000 | cat >>conftest.$ac_ext <<_ACEOF | |
19001 | /* end confdefs.h. */ | |
19002 | $ac_includes_default | |
19003 | int | |
19004 | main () | |
19005 | { | |
19006 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19007 | test_array [0] = 0 | |
19008 | ||
19009 | ; | |
19010 | return 0; | |
19011 | } | |
19012 | _ACEOF | |
19013 | rm -f conftest.$ac_objext | |
19014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19016 | ac_status=$? |
ac1cb8d3 VS |
19017 | grep -v '^ *+' conftest.er1 >conftest.err |
19018 | rm -f conftest.er1 | |
19019 | cat conftest.err >&5 | |
a848cd7e SC |
19020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19021 | (exit $ac_status); } && | |
c9a66001 | 19022 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19024 | (eval $ac_try) 2>&5 | |
19025 | ac_status=$? | |
19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19027 | (exit $ac_status); }; } && | |
19028 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19030 | (eval $ac_try) 2>&5 | |
19031 | ac_status=$? | |
19032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19033 | (exit $ac_status); }; }; then | |
19034 | ac_hi=$ac_mid; break | |
19035 | else | |
19036 | echo "$as_me: failed program was:" >&5 | |
19037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19038 | ||
19039 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19040 | if test $ac_lo -le $ac_mid; then |
19041 | ac_lo= ac_hi= | |
19042 | break | |
19043 | fi | |
19044 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19045 | fi |
ac1cb8d3 | 19046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19047 | done |
19048 | else | |
19049 | echo "$as_me: failed program was:" >&5 | |
19050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19051 | ||
19052 | cat >conftest.$ac_ext <<_ACEOF | |
19053 | /* confdefs.h. */ | |
19054 | _ACEOF | |
19055 | cat confdefs.h >>conftest.$ac_ext | |
19056 | cat >>conftest.$ac_ext <<_ACEOF | |
19057 | /* end confdefs.h. */ | |
19058 | $ac_includes_default | |
19059 | int | |
19060 | main () | |
19061 | { | |
19062 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
19063 | test_array [0] = 0 | |
19064 | ||
19065 | ; | |
19066 | return 0; | |
19067 | } | |
19068 | _ACEOF | |
19069 | rm -f conftest.$ac_objext | |
19070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19071 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19072 | ac_status=$? |
ac1cb8d3 VS |
19073 | grep -v '^ *+' conftest.er1 >conftest.err |
19074 | rm -f conftest.er1 | |
19075 | cat conftest.err >&5 | |
a848cd7e SC |
19076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19077 | (exit $ac_status); } && | |
c9a66001 | 19078 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19080 | (eval $ac_try) 2>&5 | |
19081 | ac_status=$? | |
19082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19083 | (exit $ac_status); }; } && | |
19084 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19086 | (eval $ac_try) 2>&5 | |
19087 | ac_status=$? | |
19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19089 | (exit $ac_status); }; }; then | |
19090 | ac_hi=-1 ac_mid=-1 | |
19091 | while :; do | |
19092 | cat >conftest.$ac_ext <<_ACEOF | |
19093 | /* confdefs.h. */ | |
19094 | _ACEOF | |
19095 | cat confdefs.h >>conftest.$ac_ext | |
19096 | cat >>conftest.$ac_ext <<_ACEOF | |
19097 | /* end confdefs.h. */ | |
19098 | $ac_includes_default | |
19099 | int | |
19100 | main () | |
19101 | { | |
19102 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
19103 | test_array [0] = 0 | |
19104 | ||
19105 | ; | |
19106 | return 0; | |
19107 | } | |
19108 | _ACEOF | |
19109 | rm -f conftest.$ac_objext | |
19110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19112 | ac_status=$? |
ac1cb8d3 VS |
19113 | grep -v '^ *+' conftest.er1 >conftest.err |
19114 | rm -f conftest.er1 | |
19115 | cat conftest.err >&5 | |
a848cd7e SC |
19116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19117 | (exit $ac_status); } && | |
c9a66001 | 19118 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19120 | (eval $ac_try) 2>&5 | |
19121 | ac_status=$? | |
19122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19123 | (exit $ac_status); }; } && | |
19124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19126 | (eval $ac_try) 2>&5 | |
19127 | ac_status=$? | |
19128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19129 | (exit $ac_status); }; }; then | |
19130 | ac_lo=$ac_mid; break | |
19131 | else | |
19132 | echo "$as_me: failed program was:" >&5 | |
19133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19134 | ||
19135 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19136 | if test $ac_mid -le $ac_hi; then |
19137 | ac_lo= ac_hi= | |
19138 | break | |
19139 | fi | |
19140 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19141 | fi |
ac1cb8d3 | 19142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19143 | done |
19144 | else | |
19145 | echo "$as_me: failed program was:" >&5 | |
19146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19147 | ||
19148 | ac_lo= ac_hi= | |
19149 | fi | |
ac1cb8d3 | 19150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19151 | fi |
ac1cb8d3 | 19152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19153 | # Binary search between lo and hi bounds. |
19154 | while test "x$ac_lo" != "x$ac_hi"; do | |
19155 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19156 | cat >conftest.$ac_ext <<_ACEOF | |
19157 | /* confdefs.h. */ | |
19158 | _ACEOF | |
19159 | cat confdefs.h >>conftest.$ac_ext | |
19160 | cat >>conftest.$ac_ext <<_ACEOF | |
19161 | /* end confdefs.h. */ | |
19162 | $ac_includes_default | |
19163 | int | |
19164 | main () | |
19165 | { | |
19166 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19167 | test_array [0] = 0 | |
19168 | ||
19169 | ; | |
19170 | return 0; | |
19171 | } | |
19172 | _ACEOF | |
19173 | rm -f conftest.$ac_objext | |
19174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19175 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19176 | ac_status=$? |
ac1cb8d3 VS |
19177 | grep -v '^ *+' conftest.er1 >conftest.err |
19178 | rm -f conftest.er1 | |
19179 | cat conftest.err >&5 | |
a848cd7e SC |
19180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19181 | (exit $ac_status); } && | |
c9a66001 | 19182 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19184 | (eval $ac_try) 2>&5 | |
19185 | ac_status=$? | |
19186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19187 | (exit $ac_status); }; } && | |
19188 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19190 | (eval $ac_try) 2>&5 | |
19191 | ac_status=$? | |
19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19193 | (exit $ac_status); }; }; then | |
19194 | ac_hi=$ac_mid | |
19195 | else | |
19196 | echo "$as_me: failed program was:" >&5 | |
19197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19198 | ||
19199 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19200 | fi | |
ac1cb8d3 | 19201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19202 | done |
19203 | case $ac_lo in | |
19204 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
19205 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19206 | See \`config.log' for more details." >&5 | |
19207 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19208 | See \`config.log' for more details." >&2;} | |
19209 | { (exit 1); exit 1; }; } ;; | |
19210 | esac | |
19211 | else | |
19212 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
19213 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19214 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19215 | { (exit 1); exit 1; }; } |
19216 | else | |
19217 | cat >conftest.$ac_ext <<_ACEOF | |
19218 | /* confdefs.h. */ | |
19219 | _ACEOF | |
19220 | cat confdefs.h >>conftest.$ac_ext | |
19221 | cat >>conftest.$ac_ext <<_ACEOF | |
19222 | /* end confdefs.h. */ | |
19223 | $ac_includes_default | |
19224 | long longval () { return (long) (sizeof (int)); } | |
19225 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
19226 | #include <stdio.h> | |
19227 | #include <stdlib.h> | |
19228 | int | |
19229 | main () | |
19230 | { | |
19231 | ||
19232 | FILE *f = fopen ("conftest.val", "w"); | |
19233 | if (! f) | |
19234 | exit (1); | |
19235 | if (((long) (sizeof (int))) < 0) | |
19236 | { | |
19237 | long i = longval (); | |
19238 | if (i != ((long) (sizeof (int)))) | |
19239 | exit (1); | |
19240 | fprintf (f, "%ld\n", i); | |
19241 | } | |
19242 | else | |
19243 | { | |
19244 | unsigned long i = ulongval (); | |
19245 | if (i != ((long) (sizeof (int)))) | |
19246 | exit (1); | |
19247 | fprintf (f, "%lu\n", i); | |
19248 | } | |
19249 | exit (ferror (f) || fclose (f) != 0); | |
19250 | ||
19251 | ; | |
19252 | return 0; | |
19253 | } | |
19254 | _ACEOF | |
19255 | rm -f conftest$ac_exeext | |
19256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19257 | (eval $ac_link) 2>&5 | |
19258 | ac_status=$? | |
19259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19260 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19262 | (eval $ac_try) 2>&5 | |
19263 | ac_status=$? | |
19264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19265 | (exit $ac_status); }; }; then | |
19266 | ac_cv_sizeof_int=`cat conftest.val` | |
19267 | else | |
19268 | echo "$as_me: program exited with status $ac_status" >&5 | |
19269 | echo "$as_me: failed program was:" >&5 | |
19270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19271 | ||
19272 | ( exit $ac_status ) | |
19273 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19274 | See \`config.log' for more details." >&5 | |
19275 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19276 | See \`config.log' for more details." >&2;} | |
19277 | { (exit 1); exit 1; }; } | |
19278 | fi | |
ac1cb8d3 | 19279 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19280 | fi |
19281 | fi | |
19282 | rm -f conftest.val | |
19283 | else | |
19284 | ac_cv_sizeof_int=0 | |
19285 | fi | |
19286 | fi | |
19287 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
19288 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
19289 | cat >>confdefs.h <<_ACEOF | |
19290 | #define SIZEOF_INT $ac_cv_sizeof_int | |
19291 | _ACEOF | |
19292 | ||
19293 | ||
19294 | echo "$as_me:$LINENO: checking for long" >&5 | |
19295 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
19296 | if test "${ac_cv_type_long+set}" = set; then | |
19297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19298 | else | |
19299 | cat >conftest.$ac_ext <<_ACEOF | |
19300 | /* confdefs.h. */ | |
19301 | _ACEOF | |
19302 | cat confdefs.h >>conftest.$ac_ext | |
19303 | cat >>conftest.$ac_ext <<_ACEOF | |
19304 | /* end confdefs.h. */ | |
19305 | $ac_includes_default | |
19306 | int | |
19307 | main () | |
19308 | { | |
19309 | if ((long *) 0) | |
19310 | return 0; | |
19311 | if (sizeof (long)) | |
19312 | return 0; | |
19313 | ; | |
19314 | return 0; | |
19315 | } | |
19316 | _ACEOF | |
19317 | rm -f conftest.$ac_objext | |
19318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19319 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19320 | ac_status=$? |
ac1cb8d3 VS |
19321 | grep -v '^ *+' conftest.er1 >conftest.err |
19322 | rm -f conftest.er1 | |
19323 | cat conftest.err >&5 | |
a848cd7e SC |
19324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19325 | (exit $ac_status); } && | |
c9a66001 | 19326 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19328 | (eval $ac_try) 2>&5 | |
19329 | ac_status=$? | |
19330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19331 | (exit $ac_status); }; } && | |
19332 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19334 | (eval $ac_try) 2>&5 | |
19335 | ac_status=$? | |
19336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19337 | (exit $ac_status); }; }; then | |
19338 | ac_cv_type_long=yes | |
19339 | else | |
19340 | echo "$as_me: failed program was:" >&5 | |
19341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19342 | ||
19343 | ac_cv_type_long=no | |
19344 | fi | |
ac1cb8d3 | 19345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19346 | fi |
19347 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
19348 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
19349 | ||
19350 | echo "$as_me:$LINENO: checking size of long" >&5 | |
19351 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
19352 | if test "${ac_cv_sizeof_long+set}" = set; then | |
19353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19354 | else | |
19355 | if test "$ac_cv_type_long" = yes; then | |
19356 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19357 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19358 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19359 | # This bug is HP SR number 8606223364. | |
19360 | if test "$cross_compiling" = yes; then | |
19361 | # Depending upon the size, compute the lo and hi bounds. | |
19362 | cat >conftest.$ac_ext <<_ACEOF | |
19363 | /* confdefs.h. */ | |
19364 | _ACEOF | |
19365 | cat confdefs.h >>conftest.$ac_ext | |
19366 | cat >>conftest.$ac_ext <<_ACEOF | |
19367 | /* end confdefs.h. */ | |
19368 | $ac_includes_default | |
19369 | int | |
19370 | main () | |
19371 | { | |
19372 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
19373 | test_array [0] = 0 | |
19374 | ||
19375 | ; | |
19376 | return 0; | |
19377 | } | |
19378 | _ACEOF | |
19379 | rm -f conftest.$ac_objext | |
19380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19381 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19382 | ac_status=$? |
ac1cb8d3 VS |
19383 | grep -v '^ *+' conftest.er1 >conftest.err |
19384 | rm -f conftest.er1 | |
19385 | cat conftest.err >&5 | |
a848cd7e SC |
19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19387 | (exit $ac_status); } && | |
c9a66001 | 19388 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19390 | (eval $ac_try) 2>&5 | |
19391 | ac_status=$? | |
19392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19393 | (exit $ac_status); }; } && | |
19394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19396 | (eval $ac_try) 2>&5 | |
19397 | ac_status=$? | |
19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19399 | (exit $ac_status); }; }; then | |
19400 | ac_lo=0 ac_mid=0 | |
19401 | while :; do | |
19402 | cat >conftest.$ac_ext <<_ACEOF | |
19403 | /* confdefs.h. */ | |
19404 | _ACEOF | |
19405 | cat confdefs.h >>conftest.$ac_ext | |
19406 | cat >>conftest.$ac_ext <<_ACEOF | |
19407 | /* end confdefs.h. */ | |
19408 | $ac_includes_default | |
19409 | int | |
19410 | main () | |
19411 | { | |
19412 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19413 | test_array [0] = 0 | |
19414 | ||
19415 | ; | |
19416 | return 0; | |
19417 | } | |
19418 | _ACEOF | |
19419 | rm -f conftest.$ac_objext | |
19420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19421 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19422 | ac_status=$? |
ac1cb8d3 VS |
19423 | grep -v '^ *+' conftest.er1 >conftest.err |
19424 | rm -f conftest.er1 | |
19425 | cat conftest.err >&5 | |
a848cd7e SC |
19426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19427 | (exit $ac_status); } && | |
c9a66001 | 19428 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19430 | (eval $ac_try) 2>&5 | |
19431 | ac_status=$? | |
19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19433 | (exit $ac_status); }; } && | |
19434 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19436 | (eval $ac_try) 2>&5 | |
19437 | ac_status=$? | |
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19439 | (exit $ac_status); }; }; then | |
19440 | ac_hi=$ac_mid; break | |
19441 | else | |
19442 | echo "$as_me: failed program was:" >&5 | |
19443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19444 | ||
19445 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19446 | if test $ac_lo -le $ac_mid; then |
19447 | ac_lo= ac_hi= | |
19448 | break | |
19449 | fi | |
19450 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19451 | fi |
ac1cb8d3 | 19452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19453 | done |
19454 | else | |
19455 | echo "$as_me: failed program was:" >&5 | |
19456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19457 | ||
19458 | cat >conftest.$ac_ext <<_ACEOF | |
19459 | /* confdefs.h. */ | |
19460 | _ACEOF | |
19461 | cat confdefs.h >>conftest.$ac_ext | |
19462 | cat >>conftest.$ac_ext <<_ACEOF | |
19463 | /* end confdefs.h. */ | |
19464 | $ac_includes_default | |
19465 | int | |
19466 | main () | |
19467 | { | |
19468 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
19469 | test_array [0] = 0 | |
19470 | ||
19471 | ; | |
19472 | return 0; | |
19473 | } | |
19474 | _ACEOF | |
19475 | rm -f conftest.$ac_objext | |
19476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19477 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19478 | ac_status=$? |
ac1cb8d3 VS |
19479 | grep -v '^ *+' conftest.er1 >conftest.err |
19480 | rm -f conftest.er1 | |
19481 | cat conftest.err >&5 | |
a848cd7e SC |
19482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19483 | (exit $ac_status); } && | |
c9a66001 | 19484 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19486 | (eval $ac_try) 2>&5 | |
19487 | ac_status=$? | |
19488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19489 | (exit $ac_status); }; } && | |
19490 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19492 | (eval $ac_try) 2>&5 | |
19493 | ac_status=$? | |
19494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19495 | (exit $ac_status); }; }; then | |
19496 | ac_hi=-1 ac_mid=-1 | |
19497 | while :; do | |
19498 | cat >conftest.$ac_ext <<_ACEOF | |
19499 | /* confdefs.h. */ | |
19500 | _ACEOF | |
19501 | cat confdefs.h >>conftest.$ac_ext | |
19502 | cat >>conftest.$ac_ext <<_ACEOF | |
19503 | /* end confdefs.h. */ | |
19504 | $ac_includes_default | |
19505 | int | |
19506 | main () | |
19507 | { | |
19508 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
19509 | test_array [0] = 0 | |
19510 | ||
19511 | ; | |
19512 | return 0; | |
19513 | } | |
19514 | _ACEOF | |
19515 | rm -f conftest.$ac_objext | |
19516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19517 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19518 | ac_status=$? |
ac1cb8d3 VS |
19519 | grep -v '^ *+' conftest.er1 >conftest.err |
19520 | rm -f conftest.er1 | |
19521 | cat conftest.err >&5 | |
a848cd7e SC |
19522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19523 | (exit $ac_status); } && | |
c9a66001 | 19524 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19526 | (eval $ac_try) 2>&5 | |
19527 | ac_status=$? | |
19528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19529 | (exit $ac_status); }; } && | |
19530 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19532 | (eval $ac_try) 2>&5 | |
19533 | ac_status=$? | |
19534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19535 | (exit $ac_status); }; }; then | |
19536 | ac_lo=$ac_mid; break | |
19537 | else | |
19538 | echo "$as_me: failed program was:" >&5 | |
19539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19540 | ||
19541 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19542 | if test $ac_mid -le $ac_hi; then |
19543 | ac_lo= ac_hi= | |
19544 | break | |
19545 | fi | |
19546 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19547 | fi |
ac1cb8d3 | 19548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19549 | done |
19550 | else | |
19551 | echo "$as_me: failed program was:" >&5 | |
19552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19553 | ||
19554 | ac_lo= ac_hi= | |
19555 | fi | |
ac1cb8d3 | 19556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19557 | fi |
ac1cb8d3 | 19558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19559 | # Binary search between lo and hi bounds. |
19560 | while test "x$ac_lo" != "x$ac_hi"; do | |
19561 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19562 | cat >conftest.$ac_ext <<_ACEOF | |
19563 | /* confdefs.h. */ | |
19564 | _ACEOF | |
19565 | cat confdefs.h >>conftest.$ac_ext | |
19566 | cat >>conftest.$ac_ext <<_ACEOF | |
19567 | /* end confdefs.h. */ | |
19568 | $ac_includes_default | |
19569 | int | |
19570 | main () | |
19571 | { | |
19572 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19573 | test_array [0] = 0 | |
19574 | ||
19575 | ; | |
19576 | return 0; | |
19577 | } | |
19578 | _ACEOF | |
19579 | rm -f conftest.$ac_objext | |
19580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19581 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19582 | ac_status=$? |
ac1cb8d3 VS |
19583 | grep -v '^ *+' conftest.er1 >conftest.err |
19584 | rm -f conftest.er1 | |
19585 | cat conftest.err >&5 | |
a848cd7e SC |
19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19587 | (exit $ac_status); } && | |
c9a66001 | 19588 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19590 | (eval $ac_try) 2>&5 | |
19591 | ac_status=$? | |
19592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19593 | (exit $ac_status); }; } && | |
19594 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19596 | (eval $ac_try) 2>&5 | |
19597 | ac_status=$? | |
19598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19599 | (exit $ac_status); }; }; then | |
19600 | ac_hi=$ac_mid | |
19601 | else | |
19602 | echo "$as_me: failed program was:" >&5 | |
19603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19604 | ||
19605 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19606 | fi | |
ac1cb8d3 | 19607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19608 | done |
19609 | case $ac_lo in | |
19610 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
19611 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19612 | See \`config.log' for more details." >&5 | |
19613 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19614 | See \`config.log' for more details." >&2;} | |
19615 | { (exit 1); exit 1; }; } ;; | |
19616 | esac | |
19617 | else | |
19618 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
19619 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19620 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19621 | { (exit 1); exit 1; }; } |
19622 | else | |
19623 | cat >conftest.$ac_ext <<_ACEOF | |
19624 | /* confdefs.h. */ | |
19625 | _ACEOF | |
19626 | cat confdefs.h >>conftest.$ac_ext | |
19627 | cat >>conftest.$ac_ext <<_ACEOF | |
19628 | /* end confdefs.h. */ | |
19629 | $ac_includes_default | |
19630 | long longval () { return (long) (sizeof (long)); } | |
19631 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
19632 | #include <stdio.h> | |
19633 | #include <stdlib.h> | |
19634 | int | |
19635 | main () | |
19636 | { | |
19637 | ||
19638 | FILE *f = fopen ("conftest.val", "w"); | |
19639 | if (! f) | |
19640 | exit (1); | |
19641 | if (((long) (sizeof (long))) < 0) | |
19642 | { | |
19643 | long i = longval (); | |
19644 | if (i != ((long) (sizeof (long)))) | |
19645 | exit (1); | |
19646 | fprintf (f, "%ld\n", i); | |
19647 | } | |
19648 | else | |
19649 | { | |
19650 | unsigned long i = ulongval (); | |
19651 | if (i != ((long) (sizeof (long)))) | |
19652 | exit (1); | |
19653 | fprintf (f, "%lu\n", i); | |
19654 | } | |
19655 | exit (ferror (f) || fclose (f) != 0); | |
19656 | ||
19657 | ; | |
19658 | return 0; | |
19659 | } | |
19660 | _ACEOF | |
19661 | rm -f conftest$ac_exeext | |
19662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19663 | (eval $ac_link) 2>&5 | |
19664 | ac_status=$? | |
19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19668 | (eval $ac_try) 2>&5 | |
19669 | ac_status=$? | |
19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19671 | (exit $ac_status); }; }; then | |
19672 | ac_cv_sizeof_long=`cat conftest.val` | |
19673 | else | |
19674 | echo "$as_me: program exited with status $ac_status" >&5 | |
19675 | echo "$as_me: failed program was:" >&5 | |
19676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19677 | ||
19678 | ( exit $ac_status ) | |
19679 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19680 | See \`config.log' for more details." >&5 | |
19681 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19682 | See \`config.log' for more details." >&2;} | |
19683 | { (exit 1); exit 1; }; } | |
19684 | fi | |
ac1cb8d3 | 19685 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19686 | fi |
19687 | fi | |
19688 | rm -f conftest.val | |
19689 | else | |
19690 | ac_cv_sizeof_long=0 | |
19691 | fi | |
19692 | fi | |
19693 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
19694 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
19695 | cat >>confdefs.h <<_ACEOF | |
19696 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
19697 | _ACEOF | |
19698 | ||
19699 | ||
19700 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
19701 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
19702 | if test "${ac_cv_type_size_t+set}" = set; then | |
19703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19704 | else | |
19705 | cat >conftest.$ac_ext <<_ACEOF | |
19706 | /* confdefs.h. */ | |
19707 | _ACEOF | |
19708 | cat confdefs.h >>conftest.$ac_ext | |
19709 | cat >>conftest.$ac_ext <<_ACEOF | |
19710 | /* end confdefs.h. */ | |
19711 | $ac_includes_default | |
19712 | int | |
19713 | main () | |
19714 | { | |
19715 | if ((size_t *) 0) | |
19716 | return 0; | |
19717 | if (sizeof (size_t)) | |
19718 | return 0; | |
19719 | ; | |
19720 | return 0; | |
19721 | } | |
19722 | _ACEOF | |
19723 | rm -f conftest.$ac_objext | |
19724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19725 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19726 | ac_status=$? |
ac1cb8d3 VS |
19727 | grep -v '^ *+' conftest.er1 >conftest.err |
19728 | rm -f conftest.er1 | |
19729 | cat conftest.err >&5 | |
a848cd7e SC |
19730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19731 | (exit $ac_status); } && | |
c9a66001 | 19732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19734 | (eval $ac_try) 2>&5 | |
19735 | ac_status=$? | |
19736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19737 | (exit $ac_status); }; } && | |
19738 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19740 | (eval $ac_try) 2>&5 | |
19741 | ac_status=$? | |
19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19743 | (exit $ac_status); }; }; then | |
19744 | ac_cv_type_size_t=yes | |
19745 | else | |
19746 | echo "$as_me: failed program was:" >&5 | |
19747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19748 | ||
19749 | ac_cv_type_size_t=no | |
19750 | fi | |
ac1cb8d3 | 19751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19752 | fi |
19753 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
19754 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
19755 | ||
19756 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
19757 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
19758 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
19759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19760 | else | |
19761 | if test "$ac_cv_type_size_t" = yes; then | |
19762 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19763 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19764 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19765 | # This bug is HP SR number 8606223364. | |
19766 | if test "$cross_compiling" = yes; then | |
19767 | # Depending upon the size, compute the lo and hi bounds. | |
19768 | cat >conftest.$ac_ext <<_ACEOF | |
19769 | /* confdefs.h. */ | |
19770 | _ACEOF | |
19771 | cat confdefs.h >>conftest.$ac_ext | |
19772 | cat >>conftest.$ac_ext <<_ACEOF | |
19773 | /* end confdefs.h. */ | |
19774 | $ac_includes_default | |
19775 | int | |
19776 | main () | |
19777 | { | |
19778 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
19779 | test_array [0] = 0 | |
19780 | ||
19781 | ; | |
19782 | return 0; | |
19783 | } | |
19784 | _ACEOF | |
19785 | rm -f conftest.$ac_objext | |
19786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19787 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19788 | ac_status=$? |
ac1cb8d3 VS |
19789 | grep -v '^ *+' conftest.er1 >conftest.err |
19790 | rm -f conftest.er1 | |
19791 | cat conftest.err >&5 | |
a848cd7e SC |
19792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19793 | (exit $ac_status); } && | |
c9a66001 | 19794 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19796 | (eval $ac_try) 2>&5 | |
19797 | ac_status=$? | |
19798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19799 | (exit $ac_status); }; } && | |
19800 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19802 | (eval $ac_try) 2>&5 | |
19803 | ac_status=$? | |
19804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19805 | (exit $ac_status); }; }; then | |
19806 | ac_lo=0 ac_mid=0 | |
19807 | while :; do | |
19808 | cat >conftest.$ac_ext <<_ACEOF | |
19809 | /* confdefs.h. */ | |
19810 | _ACEOF | |
19811 | cat confdefs.h >>conftest.$ac_ext | |
19812 | cat >>conftest.$ac_ext <<_ACEOF | |
19813 | /* end confdefs.h. */ | |
19814 | $ac_includes_default | |
19815 | int | |
19816 | main () | |
19817 | { | |
19818 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19819 | test_array [0] = 0 | |
19820 | ||
19821 | ; | |
19822 | return 0; | |
19823 | } | |
19824 | _ACEOF | |
19825 | rm -f conftest.$ac_objext | |
19826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19827 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19828 | ac_status=$? |
ac1cb8d3 VS |
19829 | grep -v '^ *+' conftest.er1 >conftest.err |
19830 | rm -f conftest.er1 | |
19831 | cat conftest.err >&5 | |
a848cd7e SC |
19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19833 | (exit $ac_status); } && | |
c9a66001 | 19834 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19836 | (eval $ac_try) 2>&5 | |
19837 | ac_status=$? | |
19838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19839 | (exit $ac_status); }; } && | |
19840 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19842 | (eval $ac_try) 2>&5 | |
19843 | ac_status=$? | |
19844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19845 | (exit $ac_status); }; }; then | |
19846 | ac_hi=$ac_mid; break | |
19847 | else | |
19848 | echo "$as_me: failed program was:" >&5 | |
19849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19850 | ||
19851 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19852 | if test $ac_lo -le $ac_mid; then |
19853 | ac_lo= ac_hi= | |
19854 | break | |
19855 | fi | |
19856 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19857 | fi |
ac1cb8d3 | 19858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19859 | done |
19860 | else | |
19861 | echo "$as_me: failed program was:" >&5 | |
19862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19863 | ||
19864 | cat >conftest.$ac_ext <<_ACEOF | |
19865 | /* confdefs.h. */ | |
19866 | _ACEOF | |
19867 | cat confdefs.h >>conftest.$ac_ext | |
19868 | cat >>conftest.$ac_ext <<_ACEOF | |
19869 | /* end confdefs.h. */ | |
19870 | $ac_includes_default | |
19871 | int | |
19872 | main () | |
19873 | { | |
19874 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19875 | test_array [0] = 0 | |
19876 | ||
19877 | ; | |
19878 | return 0; | |
19879 | } | |
19880 | _ACEOF | |
19881 | rm -f conftest.$ac_objext | |
19882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19883 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19884 | ac_status=$? |
ac1cb8d3 VS |
19885 | grep -v '^ *+' conftest.er1 >conftest.err |
19886 | rm -f conftest.er1 | |
19887 | cat conftest.err >&5 | |
a848cd7e SC |
19888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19889 | (exit $ac_status); } && | |
c9a66001 | 19890 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19892 | (eval $ac_try) 2>&5 | |
19893 | ac_status=$? | |
19894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19895 | (exit $ac_status); }; } && | |
19896 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19898 | (eval $ac_try) 2>&5 | |
19899 | ac_status=$? | |
19900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19901 | (exit $ac_status); }; }; then | |
19902 | ac_hi=-1 ac_mid=-1 | |
19903 | while :; do | |
19904 | cat >conftest.$ac_ext <<_ACEOF | |
19905 | /* confdefs.h. */ | |
19906 | _ACEOF | |
19907 | cat confdefs.h >>conftest.$ac_ext | |
19908 | cat >>conftest.$ac_ext <<_ACEOF | |
19909 | /* end confdefs.h. */ | |
19910 | $ac_includes_default | |
19911 | int | |
19912 | main () | |
19913 | { | |
19914 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19915 | test_array [0] = 0 | |
19916 | ||
19917 | ; | |
19918 | return 0; | |
19919 | } | |
19920 | _ACEOF | |
19921 | rm -f conftest.$ac_objext | |
19922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19923 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19924 | ac_status=$? |
ac1cb8d3 VS |
19925 | grep -v '^ *+' conftest.er1 >conftest.err |
19926 | rm -f conftest.er1 | |
19927 | cat conftest.err >&5 | |
a848cd7e SC |
19928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19929 | (exit $ac_status); } && | |
c9a66001 | 19930 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19932 | (eval $ac_try) 2>&5 | |
19933 | ac_status=$? | |
19934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19935 | (exit $ac_status); }; } && | |
19936 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19938 | (eval $ac_try) 2>&5 | |
19939 | ac_status=$? | |
19940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19941 | (exit $ac_status); }; }; then | |
19942 | ac_lo=$ac_mid; break | |
19943 | else | |
19944 | echo "$as_me: failed program was:" >&5 | |
19945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19946 | ||
19947 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19948 | if test $ac_mid -le $ac_hi; then |
19949 | ac_lo= ac_hi= | |
19950 | break | |
19951 | fi | |
19952 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19953 | fi |
ac1cb8d3 | 19954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19955 | done |
19956 | else | |
19957 | echo "$as_me: failed program was:" >&5 | |
19958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19959 | ||
19960 | ac_lo= ac_hi= | |
19961 | fi | |
ac1cb8d3 | 19962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19963 | fi |
ac1cb8d3 | 19964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19965 | # Binary search between lo and hi bounds. |
19966 | while test "x$ac_lo" != "x$ac_hi"; do | |
19967 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19968 | cat >conftest.$ac_ext <<_ACEOF | |
19969 | /* confdefs.h. */ | |
19970 | _ACEOF | |
19971 | cat confdefs.h >>conftest.$ac_ext | |
19972 | cat >>conftest.$ac_ext <<_ACEOF | |
19973 | /* end confdefs.h. */ | |
19974 | $ac_includes_default | |
19975 | int | |
19976 | main () | |
19977 | { | |
19978 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19979 | test_array [0] = 0 | |
19980 | ||
19981 | ; | |
19982 | return 0; | |
19983 | } | |
19984 | _ACEOF | |
19985 | rm -f conftest.$ac_objext | |
19986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19987 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19988 | ac_status=$? |
ac1cb8d3 VS |
19989 | grep -v '^ *+' conftest.er1 >conftest.err |
19990 | rm -f conftest.er1 | |
19991 | cat conftest.err >&5 | |
a848cd7e SC |
19992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19993 | (exit $ac_status); } && | |
c9a66001 | 19994 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19996 | (eval $ac_try) 2>&5 | |
19997 | ac_status=$? | |
19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19999 | (exit $ac_status); }; } && | |
20000 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20002 | (eval $ac_try) 2>&5 | |
20003 | ac_status=$? | |
20004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20005 | (exit $ac_status); }; }; then | |
20006 | ac_hi=$ac_mid | |
20007 | else | |
20008 | echo "$as_me: failed program was:" >&5 | |
20009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20010 | ||
20011 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20012 | fi | |
ac1cb8d3 | 20013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20014 | done |
20015 | case $ac_lo in | |
20016 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
20017 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20018 | See \`config.log' for more details." >&5 | |
20019 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20020 | See \`config.log' for more details." >&2;} | |
20021 | { (exit 1); exit 1; }; } ;; | |
20022 | esac | |
20023 | else | |
20024 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
20025 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20026 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20027 | { (exit 1); exit 1; }; } |
20028 | else | |
20029 | cat >conftest.$ac_ext <<_ACEOF | |
20030 | /* confdefs.h. */ | |
20031 | _ACEOF | |
20032 | cat confdefs.h >>conftest.$ac_ext | |
20033 | cat >>conftest.$ac_ext <<_ACEOF | |
20034 | /* end confdefs.h. */ | |
20035 | $ac_includes_default | |
20036 | long longval () { return (long) (sizeof (size_t)); } | |
20037 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
20038 | #include <stdio.h> | |
20039 | #include <stdlib.h> | |
20040 | int | |
20041 | main () | |
20042 | { | |
20043 | ||
20044 | FILE *f = fopen ("conftest.val", "w"); | |
20045 | if (! f) | |
20046 | exit (1); | |
20047 | if (((long) (sizeof (size_t))) < 0) | |
20048 | { | |
20049 | long i = longval (); | |
20050 | if (i != ((long) (sizeof (size_t)))) | |
20051 | exit (1); | |
20052 | fprintf (f, "%ld\n", i); | |
20053 | } | |
20054 | else | |
20055 | { | |
20056 | unsigned long i = ulongval (); | |
20057 | if (i != ((long) (sizeof (size_t)))) | |
20058 | exit (1); | |
20059 | fprintf (f, "%lu\n", i); | |
20060 | } | |
20061 | exit (ferror (f) || fclose (f) != 0); | |
20062 | ||
20063 | ; | |
20064 | return 0; | |
20065 | } | |
20066 | _ACEOF | |
20067 | rm -f conftest$ac_exeext | |
20068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20069 | (eval $ac_link) 2>&5 | |
20070 | ac_status=$? | |
20071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20074 | (eval $ac_try) 2>&5 | |
20075 | ac_status=$? | |
20076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20077 | (exit $ac_status); }; }; then | |
20078 | ac_cv_sizeof_size_t=`cat conftest.val` | |
20079 | else | |
20080 | echo "$as_me: program exited with status $ac_status" >&5 | |
20081 | echo "$as_me: failed program was:" >&5 | |
20082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20083 | ||
20084 | ( exit $ac_status ) | |
20085 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20086 | See \`config.log' for more details." >&5 | |
20087 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20088 | See \`config.log' for more details." >&2;} | |
20089 | { (exit 1); exit 1; }; } | |
20090 | fi | |
ac1cb8d3 | 20091 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20092 | fi |
20093 | fi | |
20094 | rm -f conftest.val | |
20095 | else | |
20096 | ac_cv_sizeof_size_t=0 | |
20097 | fi | |
20098 | fi | |
20099 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
20100 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
20101 | cat >>confdefs.h <<_ACEOF | |
20102 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
20103 | _ACEOF | |
20104 | ||
20105 | ||
20106 | ||
20107 | case "${host}" in | |
20108 | arm-*-linux* ) | |
20109 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20110 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20111 | if test "${ac_cv_type_long_long+set}" = set; then | |
20112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20113 | else | |
20114 | cat >conftest.$ac_ext <<_ACEOF | |
20115 | /* confdefs.h. */ | |
20116 | _ACEOF | |
20117 | cat confdefs.h >>conftest.$ac_ext | |
20118 | cat >>conftest.$ac_ext <<_ACEOF | |
20119 | /* end confdefs.h. */ | |
20120 | $ac_includes_default | |
20121 | int | |
20122 | main () | |
20123 | { | |
20124 | if ((long long *) 0) | |
20125 | return 0; | |
20126 | if (sizeof (long long)) | |
20127 | return 0; | |
20128 | ; | |
20129 | return 0; | |
20130 | } | |
20131 | _ACEOF | |
20132 | rm -f conftest.$ac_objext | |
20133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20134 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20135 | ac_status=$? |
ac1cb8d3 VS |
20136 | grep -v '^ *+' conftest.er1 >conftest.err |
20137 | rm -f conftest.er1 | |
20138 | cat conftest.err >&5 | |
a848cd7e SC |
20139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20140 | (exit $ac_status); } && | |
c9a66001 | 20141 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20143 | (eval $ac_try) 2>&5 | |
20144 | ac_status=$? | |
20145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20146 | (exit $ac_status); }; } && | |
20147 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20149 | (eval $ac_try) 2>&5 | |
20150 | ac_status=$? | |
20151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20152 | (exit $ac_status); }; }; then | |
20153 | ac_cv_type_long_long=yes | |
20154 | else | |
20155 | echo "$as_me: failed program was:" >&5 | |
20156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20157 | ||
20158 | ac_cv_type_long_long=no | |
20159 | fi | |
ac1cb8d3 | 20160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20161 | fi |
20162 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20163 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20164 | ||
20165 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20166 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20167 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20169 | else | |
20170 | if test "$ac_cv_type_long_long" = yes; then | |
20171 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20172 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20173 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20174 | # This bug is HP SR number 8606223364. | |
20175 | if test "$cross_compiling" = yes; then | |
20176 | # Depending upon the size, compute the lo and hi bounds. | |
20177 | cat >conftest.$ac_ext <<_ACEOF | |
20178 | /* confdefs.h. */ | |
20179 | _ACEOF | |
20180 | cat confdefs.h >>conftest.$ac_ext | |
20181 | cat >>conftest.$ac_ext <<_ACEOF | |
20182 | /* end confdefs.h. */ | |
20183 | $ac_includes_default | |
20184 | int | |
20185 | main () | |
20186 | { | |
20187 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20188 | test_array [0] = 0 | |
20189 | ||
20190 | ; | |
20191 | return 0; | |
20192 | } | |
20193 | _ACEOF | |
20194 | rm -f conftest.$ac_objext | |
20195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20196 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20197 | ac_status=$? |
ac1cb8d3 VS |
20198 | grep -v '^ *+' conftest.er1 >conftest.err |
20199 | rm -f conftest.er1 | |
20200 | cat conftest.err >&5 | |
a848cd7e SC |
20201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20202 | (exit $ac_status); } && | |
c9a66001 | 20203 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
20209 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20211 | (eval $ac_try) 2>&5 | |
20212 | ac_status=$? | |
20213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20214 | (exit $ac_status); }; }; then | |
20215 | ac_lo=0 ac_mid=0 | |
20216 | while :; do | |
20217 | cat >conftest.$ac_ext <<_ACEOF | |
20218 | /* confdefs.h. */ | |
20219 | _ACEOF | |
20220 | cat confdefs.h >>conftest.$ac_ext | |
20221 | cat >>conftest.$ac_ext <<_ACEOF | |
20222 | /* end confdefs.h. */ | |
20223 | $ac_includes_default | |
20224 | int | |
20225 | main () | |
20226 | { | |
20227 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20228 | test_array [0] = 0 | |
20229 | ||
20230 | ; | |
20231 | return 0; | |
20232 | } | |
20233 | _ACEOF | |
20234 | rm -f conftest.$ac_objext | |
20235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20236 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20237 | ac_status=$? |
ac1cb8d3 VS |
20238 | grep -v '^ *+' conftest.er1 >conftest.err |
20239 | rm -f conftest.er1 | |
20240 | cat conftest.err >&5 | |
a848cd7e SC |
20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20242 | (exit $ac_status); } && | |
c9a66001 | 20243 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20245 | (eval $ac_try) 2>&5 | |
20246 | ac_status=$? | |
20247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20248 | (exit $ac_status); }; } && | |
20249 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20251 | (eval $ac_try) 2>&5 | |
20252 | ac_status=$? | |
20253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20254 | (exit $ac_status); }; }; then | |
20255 | ac_hi=$ac_mid; break | |
20256 | else | |
20257 | echo "$as_me: failed program was:" >&5 | |
20258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20259 | ||
20260 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20261 | if test $ac_lo -le $ac_mid; then |
20262 | ac_lo= ac_hi= | |
20263 | break | |
20264 | fi | |
20265 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20266 | fi |
ac1cb8d3 | 20267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20268 | done |
20269 | else | |
20270 | echo "$as_me: failed program was:" >&5 | |
20271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20272 | ||
20273 | cat >conftest.$ac_ext <<_ACEOF | |
20274 | /* confdefs.h. */ | |
20275 | _ACEOF | |
20276 | cat confdefs.h >>conftest.$ac_ext | |
20277 | cat >>conftest.$ac_ext <<_ACEOF | |
20278 | /* end confdefs.h. */ | |
20279 | $ac_includes_default | |
20280 | int | |
20281 | main () | |
20282 | { | |
20283 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20284 | test_array [0] = 0 | |
20285 | ||
20286 | ; | |
20287 | return 0; | |
20288 | } | |
20289 | _ACEOF | |
20290 | rm -f conftest.$ac_objext | |
20291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20292 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20293 | ac_status=$? |
ac1cb8d3 VS |
20294 | grep -v '^ *+' conftest.er1 >conftest.err |
20295 | rm -f conftest.er1 | |
20296 | cat conftest.err >&5 | |
a848cd7e SC |
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20298 | (exit $ac_status); } && | |
c9a66001 | 20299 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20301 | (eval $ac_try) 2>&5 | |
20302 | ac_status=$? | |
20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20304 | (exit $ac_status); }; } && | |
20305 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20307 | (eval $ac_try) 2>&5 | |
20308 | ac_status=$? | |
20309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20310 | (exit $ac_status); }; }; then | |
20311 | ac_hi=-1 ac_mid=-1 | |
20312 | while :; do | |
20313 | cat >conftest.$ac_ext <<_ACEOF | |
20314 | /* confdefs.h. */ | |
20315 | _ACEOF | |
20316 | cat confdefs.h >>conftest.$ac_ext | |
20317 | cat >>conftest.$ac_ext <<_ACEOF | |
20318 | /* end confdefs.h. */ | |
20319 | $ac_includes_default | |
20320 | int | |
20321 | main () | |
20322 | { | |
20323 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20324 | test_array [0] = 0 | |
20325 | ||
20326 | ; | |
20327 | return 0; | |
20328 | } | |
20329 | _ACEOF | |
20330 | rm -f conftest.$ac_objext | |
20331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20332 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20333 | ac_status=$? |
ac1cb8d3 VS |
20334 | grep -v '^ *+' conftest.er1 >conftest.err |
20335 | rm -f conftest.er1 | |
20336 | cat conftest.err >&5 | |
a848cd7e SC |
20337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20338 | (exit $ac_status); } && | |
c9a66001 | 20339 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20341 | (eval $ac_try) 2>&5 | |
20342 | ac_status=$? | |
20343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20344 | (exit $ac_status); }; } && | |
20345 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20347 | (eval $ac_try) 2>&5 | |
20348 | ac_status=$? | |
20349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20350 | (exit $ac_status); }; }; then | |
20351 | ac_lo=$ac_mid; break | |
20352 | else | |
20353 | echo "$as_me: failed program was:" >&5 | |
20354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20355 | ||
20356 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20357 | if test $ac_mid -le $ac_hi; then |
20358 | ac_lo= ac_hi= | |
20359 | break | |
20360 | fi | |
20361 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20362 | fi |
ac1cb8d3 | 20363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20364 | done |
20365 | else | |
20366 | echo "$as_me: failed program was:" >&5 | |
20367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20368 | ||
20369 | ac_lo= ac_hi= | |
20370 | fi | |
ac1cb8d3 | 20371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20372 | fi |
ac1cb8d3 | 20373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20374 | # Binary search between lo and hi bounds. |
20375 | while test "x$ac_lo" != "x$ac_hi"; do | |
20376 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20377 | cat >conftest.$ac_ext <<_ACEOF | |
20378 | /* confdefs.h. */ | |
20379 | _ACEOF | |
20380 | cat confdefs.h >>conftest.$ac_ext | |
20381 | cat >>conftest.$ac_ext <<_ACEOF | |
20382 | /* end confdefs.h. */ | |
20383 | $ac_includes_default | |
20384 | int | |
20385 | main () | |
20386 | { | |
20387 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20388 | test_array [0] = 0 | |
20389 | ||
20390 | ; | |
20391 | return 0; | |
20392 | } | |
20393 | _ACEOF | |
20394 | rm -f conftest.$ac_objext | |
20395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20396 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20397 | ac_status=$? |
ac1cb8d3 VS |
20398 | grep -v '^ *+' conftest.er1 >conftest.err |
20399 | rm -f conftest.er1 | |
20400 | cat conftest.err >&5 | |
a848cd7e SC |
20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20402 | (exit $ac_status); } && | |
c9a66001 | 20403 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20405 | (eval $ac_try) 2>&5 | |
20406 | ac_status=$? | |
20407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20408 | (exit $ac_status); }; } && | |
20409 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20411 | (eval $ac_try) 2>&5 | |
20412 | ac_status=$? | |
20413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20414 | (exit $ac_status); }; }; then | |
20415 | ac_hi=$ac_mid | |
20416 | else | |
20417 | echo "$as_me: failed program was:" >&5 | |
20418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20419 | ||
20420 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20421 | fi | |
ac1cb8d3 | 20422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20423 | done |
20424 | case $ac_lo in | |
20425 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20426 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20427 | See \`config.log' for more details." >&5 | |
20428 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20429 | See \`config.log' for more details." >&2;} | |
20430 | { (exit 1); exit 1; }; } ;; | |
20431 | esac | |
20432 | else | |
20433 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
20434 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20435 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20436 | { (exit 1); exit 1; }; } |
20437 | else | |
20438 | cat >conftest.$ac_ext <<_ACEOF | |
20439 | /* confdefs.h. */ | |
20440 | _ACEOF | |
20441 | cat confdefs.h >>conftest.$ac_ext | |
20442 | cat >>conftest.$ac_ext <<_ACEOF | |
20443 | /* end confdefs.h. */ | |
20444 | $ac_includes_default | |
20445 | long longval () { return (long) (sizeof (long long)); } | |
20446 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20447 | #include <stdio.h> | |
20448 | #include <stdlib.h> | |
20449 | int | |
20450 | main () | |
20451 | { | |
20452 | ||
20453 | FILE *f = fopen ("conftest.val", "w"); | |
20454 | if (! f) | |
20455 | exit (1); | |
20456 | if (((long) (sizeof (long long))) < 0) | |
20457 | { | |
20458 | long i = longval (); | |
20459 | if (i != ((long) (sizeof (long long)))) | |
20460 | exit (1); | |
20461 | fprintf (f, "%ld\n", i); | |
20462 | } | |
20463 | else | |
20464 | { | |
20465 | unsigned long i = ulongval (); | |
20466 | if (i != ((long) (sizeof (long long)))) | |
20467 | exit (1); | |
20468 | fprintf (f, "%lu\n", i); | |
20469 | } | |
20470 | exit (ferror (f) || fclose (f) != 0); | |
20471 | ||
20472 | ; | |
20473 | return 0; | |
20474 | } | |
20475 | _ACEOF | |
20476 | rm -f conftest$ac_exeext | |
20477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20478 | (eval $ac_link) 2>&5 | |
20479 | ac_status=$? | |
20480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20481 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20483 | (eval $ac_try) 2>&5 | |
20484 | ac_status=$? | |
20485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20486 | (exit $ac_status); }; }; then | |
20487 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20488 | else | |
20489 | echo "$as_me: program exited with status $ac_status" >&5 | |
20490 | echo "$as_me: failed program was:" >&5 | |
20491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20492 | ||
20493 | ( exit $ac_status ) | |
20494 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20495 | See \`config.log' for more details." >&5 | |
20496 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20497 | See \`config.log' for more details." >&2;} | |
20498 | { (exit 1); exit 1; }; } | |
20499 | fi | |
ac1cb8d3 | 20500 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20501 | fi |
20502 | fi | |
20503 | rm -f conftest.val | |
20504 | else | |
20505 | ac_cv_sizeof_long_long=0 | |
20506 | fi | |
20507 | fi | |
20508 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20509 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20510 | cat >>confdefs.h <<_ACEOF | |
20511 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20512 | _ACEOF | |
20513 | ||
20514 | ||
20515 | ;; | |
20516 | *-hp-hpux* ) | |
20517 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20518 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20519 | if test "${ac_cv_type_long_long+set}" = set; then | |
20520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20521 | else | |
20522 | cat >conftest.$ac_ext <<_ACEOF | |
20523 | /* confdefs.h. */ | |
20524 | _ACEOF | |
20525 | cat confdefs.h >>conftest.$ac_ext | |
20526 | cat >>conftest.$ac_ext <<_ACEOF | |
20527 | /* end confdefs.h. */ | |
20528 | $ac_includes_default | |
20529 | int | |
20530 | main () | |
20531 | { | |
20532 | if ((long long *) 0) | |
20533 | return 0; | |
20534 | if (sizeof (long long)) | |
20535 | return 0; | |
20536 | ; | |
20537 | return 0; | |
20538 | } | |
20539 | _ACEOF | |
20540 | rm -f conftest.$ac_objext | |
20541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20542 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20543 | ac_status=$? |
ac1cb8d3 VS |
20544 | grep -v '^ *+' conftest.er1 >conftest.err |
20545 | rm -f conftest.er1 | |
20546 | cat conftest.err >&5 | |
a848cd7e SC |
20547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20548 | (exit $ac_status); } && | |
c9a66001 | 20549 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20551 | (eval $ac_try) 2>&5 | |
20552 | ac_status=$? | |
20553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20554 | (exit $ac_status); }; } && | |
20555 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20557 | (eval $ac_try) 2>&5 | |
20558 | ac_status=$? | |
20559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20560 | (exit $ac_status); }; }; then | |
20561 | ac_cv_type_long_long=yes | |
20562 | else | |
20563 | echo "$as_me: failed program was:" >&5 | |
20564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20565 | ||
20566 | ac_cv_type_long_long=no | |
20567 | fi | |
ac1cb8d3 | 20568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20569 | fi |
20570 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20571 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20572 | ||
20573 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20574 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20575 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20577 | else | |
20578 | if test "$ac_cv_type_long_long" = yes; then | |
20579 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20580 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20581 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20582 | # This bug is HP SR number 8606223364. | |
20583 | if test "$cross_compiling" = yes; then | |
20584 | # Depending upon the size, compute the lo and hi bounds. | |
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 | $ac_includes_default | |
20592 | int | |
20593 | main () | |
20594 | { | |
20595 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20596 | test_array [0] = 0 | |
20597 | ||
20598 | ; | |
20599 | return 0; | |
20600 | } | |
20601 | _ACEOF | |
20602 | rm -f conftest.$ac_objext | |
20603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20604 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20605 | ac_status=$? |
ac1cb8d3 VS |
20606 | grep -v '^ *+' conftest.er1 >conftest.err |
20607 | rm -f conftest.er1 | |
20608 | cat conftest.err >&5 | |
a848cd7e SC |
20609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20610 | (exit $ac_status); } && | |
c9a66001 | 20611 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20613 | (eval $ac_try) 2>&5 | |
20614 | ac_status=$? | |
20615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20616 | (exit $ac_status); }; } && | |
20617 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20619 | (eval $ac_try) 2>&5 | |
20620 | ac_status=$? | |
20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20622 | (exit $ac_status); }; }; then | |
20623 | ac_lo=0 ac_mid=0 | |
20624 | while :; do | |
20625 | cat >conftest.$ac_ext <<_ACEOF | |
20626 | /* confdefs.h. */ | |
20627 | _ACEOF | |
20628 | cat confdefs.h >>conftest.$ac_ext | |
20629 | cat >>conftest.$ac_ext <<_ACEOF | |
20630 | /* end confdefs.h. */ | |
20631 | $ac_includes_default | |
20632 | int | |
20633 | main () | |
20634 | { | |
20635 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20636 | test_array [0] = 0 | |
20637 | ||
20638 | ; | |
20639 | return 0; | |
20640 | } | |
20641 | _ACEOF | |
20642 | rm -f conftest.$ac_objext | |
20643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20644 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20645 | ac_status=$? |
ac1cb8d3 VS |
20646 | grep -v '^ *+' conftest.er1 >conftest.err |
20647 | rm -f conftest.er1 | |
20648 | cat conftest.err >&5 | |
a848cd7e SC |
20649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20650 | (exit $ac_status); } && | |
c9a66001 | 20651 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20653 | (eval $ac_try) 2>&5 | |
20654 | ac_status=$? | |
20655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20656 | (exit $ac_status); }; } && | |
20657 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20659 | (eval $ac_try) 2>&5 | |
20660 | ac_status=$? | |
20661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20662 | (exit $ac_status); }; }; then | |
20663 | ac_hi=$ac_mid; break | |
20664 | else | |
20665 | echo "$as_me: failed program was:" >&5 | |
20666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20667 | ||
20668 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20669 | if test $ac_lo -le $ac_mid; then |
20670 | ac_lo= ac_hi= | |
20671 | break | |
20672 | fi | |
20673 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20674 | fi |
ac1cb8d3 | 20675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20676 | done |
20677 | else | |
20678 | echo "$as_me: failed program was:" >&5 | |
20679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20680 | ||
20681 | cat >conftest.$ac_ext <<_ACEOF | |
20682 | /* confdefs.h. */ | |
20683 | _ACEOF | |
20684 | cat confdefs.h >>conftest.$ac_ext | |
20685 | cat >>conftest.$ac_ext <<_ACEOF | |
20686 | /* end confdefs.h. */ | |
20687 | $ac_includes_default | |
20688 | int | |
20689 | main () | |
20690 | { | |
20691 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20692 | test_array [0] = 0 | |
20693 | ||
20694 | ; | |
20695 | return 0; | |
20696 | } | |
20697 | _ACEOF | |
20698 | rm -f conftest.$ac_objext | |
20699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20700 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20701 | ac_status=$? |
ac1cb8d3 VS |
20702 | grep -v '^ *+' conftest.er1 >conftest.err |
20703 | rm -f conftest.er1 | |
20704 | cat conftest.err >&5 | |
a848cd7e SC |
20705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20706 | (exit $ac_status); } && | |
c9a66001 | 20707 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20709 | (eval $ac_try) 2>&5 | |
20710 | ac_status=$? | |
20711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20712 | (exit $ac_status); }; } && | |
20713 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20715 | (eval $ac_try) 2>&5 | |
20716 | ac_status=$? | |
20717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20718 | (exit $ac_status); }; }; then | |
20719 | ac_hi=-1 ac_mid=-1 | |
20720 | while :; do | |
20721 | cat >conftest.$ac_ext <<_ACEOF | |
20722 | /* confdefs.h. */ | |
20723 | _ACEOF | |
20724 | cat confdefs.h >>conftest.$ac_ext | |
20725 | cat >>conftest.$ac_ext <<_ACEOF | |
20726 | /* end confdefs.h. */ | |
20727 | $ac_includes_default | |
20728 | int | |
20729 | main () | |
20730 | { | |
20731 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20732 | test_array [0] = 0 | |
20733 | ||
20734 | ; | |
20735 | return 0; | |
20736 | } | |
20737 | _ACEOF | |
20738 | rm -f conftest.$ac_objext | |
20739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20740 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20741 | ac_status=$? |
ac1cb8d3 VS |
20742 | grep -v '^ *+' conftest.er1 >conftest.err |
20743 | rm -f conftest.er1 | |
20744 | cat conftest.err >&5 | |
a848cd7e SC |
20745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20746 | (exit $ac_status); } && | |
c9a66001 | 20747 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20749 | (eval $ac_try) 2>&5 | |
20750 | ac_status=$? | |
20751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20752 | (exit $ac_status); }; } && | |
20753 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20755 | (eval $ac_try) 2>&5 | |
20756 | ac_status=$? | |
20757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20758 | (exit $ac_status); }; }; then | |
20759 | ac_lo=$ac_mid; break | |
20760 | else | |
20761 | echo "$as_me: failed program was:" >&5 | |
20762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20763 | ||
20764 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20765 | if test $ac_mid -le $ac_hi; then |
20766 | ac_lo= ac_hi= | |
20767 | break | |
20768 | fi | |
20769 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20770 | fi |
ac1cb8d3 | 20771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20772 | done |
20773 | else | |
20774 | echo "$as_me: failed program was:" >&5 | |
20775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20776 | ||
20777 | ac_lo= ac_hi= | |
20778 | fi | |
ac1cb8d3 | 20779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20780 | fi |
ac1cb8d3 | 20781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20782 | # Binary search between lo and hi bounds. |
20783 | while test "x$ac_lo" != "x$ac_hi"; do | |
20784 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20785 | cat >conftest.$ac_ext <<_ACEOF | |
20786 | /* confdefs.h. */ | |
20787 | _ACEOF | |
20788 | cat confdefs.h >>conftest.$ac_ext | |
20789 | cat >>conftest.$ac_ext <<_ACEOF | |
20790 | /* end confdefs.h. */ | |
20791 | $ac_includes_default | |
20792 | int | |
20793 | main () | |
20794 | { | |
20795 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20796 | test_array [0] = 0 | |
20797 | ||
20798 | ; | |
20799 | return 0; | |
20800 | } | |
20801 | _ACEOF | |
20802 | rm -f conftest.$ac_objext | |
20803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20804 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20805 | ac_status=$? |
ac1cb8d3 VS |
20806 | grep -v '^ *+' conftest.er1 >conftest.err |
20807 | rm -f conftest.er1 | |
20808 | cat conftest.err >&5 | |
a848cd7e SC |
20809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20810 | (exit $ac_status); } && | |
c9a66001 | 20811 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20813 | (eval $ac_try) 2>&5 | |
20814 | ac_status=$? | |
20815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20816 | (exit $ac_status); }; } && | |
20817 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20819 | (eval $ac_try) 2>&5 | |
20820 | ac_status=$? | |
20821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20822 | (exit $ac_status); }; }; then | |
20823 | ac_hi=$ac_mid | |
20824 | else | |
20825 | echo "$as_me: failed program was:" >&5 | |
20826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20827 | ||
20828 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20829 | fi | |
ac1cb8d3 | 20830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20831 | done |
20832 | case $ac_lo in | |
20833 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20834 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20835 | See \`config.log' for more details." >&5 | |
20836 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20837 | See \`config.log' for more details." >&2;} | |
20838 | { (exit 1); exit 1; }; } ;; | |
20839 | esac | |
20840 | else | |
20841 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
20842 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20843 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20844 | { (exit 1); exit 1; }; } |
20845 | else | |
20846 | cat >conftest.$ac_ext <<_ACEOF | |
20847 | /* confdefs.h. */ | |
20848 | _ACEOF | |
20849 | cat confdefs.h >>conftest.$ac_ext | |
20850 | cat >>conftest.$ac_ext <<_ACEOF | |
20851 | /* end confdefs.h. */ | |
20852 | $ac_includes_default | |
20853 | long longval () { return (long) (sizeof (long long)); } | |
20854 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20855 | #include <stdio.h> | |
20856 | #include <stdlib.h> | |
20857 | int | |
20858 | main () | |
20859 | { | |
20860 | ||
20861 | FILE *f = fopen ("conftest.val", "w"); | |
20862 | if (! f) | |
20863 | exit (1); | |
20864 | if (((long) (sizeof (long long))) < 0) | |
20865 | { | |
20866 | long i = longval (); | |
20867 | if (i != ((long) (sizeof (long long)))) | |
20868 | exit (1); | |
20869 | fprintf (f, "%ld\n", i); | |
20870 | } | |
20871 | else | |
20872 | { | |
20873 | unsigned long i = ulongval (); | |
20874 | if (i != ((long) (sizeof (long long)))) | |
20875 | exit (1); | |
20876 | fprintf (f, "%lu\n", i); | |
20877 | } | |
20878 | exit (ferror (f) || fclose (f) != 0); | |
20879 | ||
20880 | ; | |
20881 | return 0; | |
20882 | } | |
20883 | _ACEOF | |
20884 | rm -f conftest$ac_exeext | |
20885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20886 | (eval $ac_link) 2>&5 | |
20887 | ac_status=$? | |
20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20891 | (eval $ac_try) 2>&5 | |
20892 | ac_status=$? | |
20893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20894 | (exit $ac_status); }; }; then | |
20895 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20896 | else | |
20897 | echo "$as_me: program exited with status $ac_status" >&5 | |
20898 | echo "$as_me: failed program was:" >&5 | |
20899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20900 | ||
20901 | ( exit $ac_status ) | |
20902 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20903 | See \`config.log' for more details." >&5 | |
20904 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20905 | See \`config.log' for more details." >&2;} | |
20906 | { (exit 1); exit 1; }; } | |
20907 | fi | |
ac1cb8d3 | 20908 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20909 | fi |
20910 | fi | |
20911 | rm -f conftest.val | |
20912 | else | |
20913 | ac_cv_sizeof_long_long=0 | |
20914 | fi | |
20915 | fi | |
20916 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20917 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20918 | cat >>confdefs.h <<_ACEOF | |
20919 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20920 | _ACEOF | |
20921 | ||
20922 | ||
20923 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20924 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20925 | fi |
20926 | ;; | |
20927 | * ) | |
20928 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20929 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20930 | if test "${ac_cv_type_long_long+set}" = set; then | |
20931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20932 | else | |
20933 | cat >conftest.$ac_ext <<_ACEOF | |
20934 | /* confdefs.h. */ | |
20935 | _ACEOF | |
20936 | cat confdefs.h >>conftest.$ac_ext | |
20937 | cat >>conftest.$ac_ext <<_ACEOF | |
20938 | /* end confdefs.h. */ | |
20939 | $ac_includes_default | |
20940 | int | |
20941 | main () | |
20942 | { | |
20943 | if ((long long *) 0) | |
20944 | return 0; | |
20945 | if (sizeof (long long)) | |
20946 | return 0; | |
20947 | ; | |
20948 | return 0; | |
20949 | } | |
20950 | _ACEOF | |
20951 | rm -f conftest.$ac_objext | |
20952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20953 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20954 | ac_status=$? |
ac1cb8d3 VS |
20955 | grep -v '^ *+' conftest.er1 >conftest.err |
20956 | rm -f conftest.er1 | |
20957 | cat conftest.err >&5 | |
a848cd7e SC |
20958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20959 | (exit $ac_status); } && | |
c9a66001 | 20960 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20962 | (eval $ac_try) 2>&5 | |
20963 | ac_status=$? | |
20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20965 | (exit $ac_status); }; } && | |
20966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20968 | (eval $ac_try) 2>&5 | |
20969 | ac_status=$? | |
20970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20971 | (exit $ac_status); }; }; then | |
20972 | ac_cv_type_long_long=yes | |
20973 | else | |
20974 | echo "$as_me: failed program was:" >&5 | |
20975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20976 | ||
20977 | ac_cv_type_long_long=no | |
20978 | fi | |
ac1cb8d3 | 20979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20980 | fi |
20981 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20982 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20983 | ||
20984 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20985 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20986 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20988 | else | |
20989 | if test "$ac_cv_type_long_long" = yes; then | |
20990 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20991 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20992 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20993 | # This bug is HP SR number 8606223364. | |
20994 | if test "$cross_compiling" = yes; then | |
20995 | # Depending upon the size, compute the lo and hi bounds. | |
20996 | cat >conftest.$ac_ext <<_ACEOF | |
20997 | /* confdefs.h. */ | |
20998 | _ACEOF | |
20999 | cat confdefs.h >>conftest.$ac_ext | |
21000 | cat >>conftest.$ac_ext <<_ACEOF | |
21001 | /* end confdefs.h. */ | |
21002 | $ac_includes_default | |
21003 | int | |
21004 | main () | |
21005 | { | |
21006 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
21007 | test_array [0] = 0 | |
21008 | ||
21009 | ; | |
21010 | return 0; | |
21011 | } | |
21012 | _ACEOF | |
21013 | rm -f conftest.$ac_objext | |
21014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21016 | ac_status=$? |
ac1cb8d3 VS |
21017 | grep -v '^ *+' conftest.er1 >conftest.err |
21018 | rm -f conftest.er1 | |
21019 | cat conftest.err >&5 | |
a848cd7e SC |
21020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21021 | (exit $ac_status); } && | |
c9a66001 | 21022 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21024 | (eval $ac_try) 2>&5 | |
21025 | ac_status=$? | |
21026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21027 | (exit $ac_status); }; } && | |
21028 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21030 | (eval $ac_try) 2>&5 | |
21031 | ac_status=$? | |
21032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21033 | (exit $ac_status); }; }; then | |
21034 | ac_lo=0 ac_mid=0 | |
21035 | while :; do | |
21036 | cat >conftest.$ac_ext <<_ACEOF | |
21037 | /* confdefs.h. */ | |
21038 | _ACEOF | |
21039 | cat confdefs.h >>conftest.$ac_ext | |
21040 | cat >>conftest.$ac_ext <<_ACEOF | |
21041 | /* end confdefs.h. */ | |
21042 | $ac_includes_default | |
21043 | int | |
21044 | main () | |
21045 | { | |
21046 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21047 | test_array [0] = 0 | |
21048 | ||
21049 | ; | |
21050 | return 0; | |
21051 | } | |
21052 | _ACEOF | |
21053 | rm -f conftest.$ac_objext | |
21054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21055 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21056 | ac_status=$? |
ac1cb8d3 VS |
21057 | grep -v '^ *+' conftest.er1 >conftest.err |
21058 | rm -f conftest.er1 | |
21059 | cat conftest.err >&5 | |
a848cd7e SC |
21060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21061 | (exit $ac_status); } && | |
c9a66001 | 21062 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21064 | (eval $ac_try) 2>&5 | |
21065 | ac_status=$? | |
21066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21067 | (exit $ac_status); }; } && | |
21068 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21070 | (eval $ac_try) 2>&5 | |
21071 | ac_status=$? | |
21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21073 | (exit $ac_status); }; }; then | |
21074 | ac_hi=$ac_mid; break | |
21075 | else | |
21076 | echo "$as_me: failed program was:" >&5 | |
21077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21078 | ||
21079 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
21080 | if test $ac_lo -le $ac_mid; then |
21081 | ac_lo= ac_hi= | |
21082 | break | |
21083 | fi | |
21084 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 21085 | fi |
ac1cb8d3 | 21086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21087 | done |
21088 | else | |
21089 | echo "$as_me: failed program was:" >&5 | |
21090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21091 | ||
21092 | cat >conftest.$ac_ext <<_ACEOF | |
21093 | /* confdefs.h. */ | |
21094 | _ACEOF | |
21095 | cat confdefs.h >>conftest.$ac_ext | |
21096 | cat >>conftest.$ac_ext <<_ACEOF | |
21097 | /* end confdefs.h. */ | |
21098 | $ac_includes_default | |
21099 | int | |
21100 | main () | |
21101 | { | |
21102 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
21103 | test_array [0] = 0 | |
21104 | ||
21105 | ; | |
21106 | return 0; | |
21107 | } | |
21108 | _ACEOF | |
21109 | rm -f conftest.$ac_objext | |
21110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21112 | ac_status=$? |
ac1cb8d3 VS |
21113 | grep -v '^ *+' conftest.er1 >conftest.err |
21114 | rm -f conftest.er1 | |
21115 | cat conftest.err >&5 | |
a848cd7e SC |
21116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21117 | (exit $ac_status); } && | |
c9a66001 | 21118 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21120 | (eval $ac_try) 2>&5 | |
21121 | ac_status=$? | |
21122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21123 | (exit $ac_status); }; } && | |
21124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21126 | (eval $ac_try) 2>&5 | |
21127 | ac_status=$? | |
21128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21129 | (exit $ac_status); }; }; then | |
21130 | ac_hi=-1 ac_mid=-1 | |
21131 | while :; do | |
21132 | cat >conftest.$ac_ext <<_ACEOF | |
21133 | /* confdefs.h. */ | |
21134 | _ACEOF | |
21135 | cat confdefs.h >>conftest.$ac_ext | |
21136 | cat >>conftest.$ac_ext <<_ACEOF | |
21137 | /* end confdefs.h. */ | |
21138 | $ac_includes_default | |
21139 | int | |
21140 | main () | |
21141 | { | |
21142 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
21143 | test_array [0] = 0 | |
21144 | ||
21145 | ; | |
21146 | return 0; | |
21147 | } | |
21148 | _ACEOF | |
21149 | rm -f conftest.$ac_objext | |
21150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21151 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21152 | ac_status=$? |
ac1cb8d3 VS |
21153 | grep -v '^ *+' conftest.er1 >conftest.err |
21154 | rm -f conftest.er1 | |
21155 | cat conftest.err >&5 | |
a848cd7e SC |
21156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21157 | (exit $ac_status); } && | |
c9a66001 | 21158 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
21164 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21166 | (eval $ac_try) 2>&5 | |
21167 | ac_status=$? | |
21168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21169 | (exit $ac_status); }; }; then | |
21170 | ac_lo=$ac_mid; break | |
21171 | else | |
21172 | echo "$as_me: failed program was:" >&5 | |
21173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21174 | ||
21175 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
21176 | if test $ac_mid -le $ac_hi; then |
21177 | ac_lo= ac_hi= | |
21178 | break | |
21179 | fi | |
21180 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21181 | fi |
ac1cb8d3 | 21182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21183 | done |
21184 | else | |
21185 | echo "$as_me: failed program was:" >&5 | |
21186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21187 | ||
21188 | ac_lo= ac_hi= | |
21189 | fi | |
ac1cb8d3 | 21190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21191 | fi |
ac1cb8d3 | 21192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21193 | # Binary search between lo and hi bounds. |
21194 | while test "x$ac_lo" != "x$ac_hi"; do | |
21195 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21196 | cat >conftest.$ac_ext <<_ACEOF | |
21197 | /* confdefs.h. */ | |
21198 | _ACEOF | |
21199 | cat confdefs.h >>conftest.$ac_ext | |
21200 | cat >>conftest.$ac_ext <<_ACEOF | |
21201 | /* end confdefs.h. */ | |
21202 | $ac_includes_default | |
21203 | int | |
21204 | main () | |
21205 | { | |
21206 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21207 | test_array [0] = 0 | |
21208 | ||
21209 | ; | |
21210 | return 0; | |
21211 | } | |
21212 | _ACEOF | |
21213 | rm -f conftest.$ac_objext | |
21214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21215 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21216 | ac_status=$? |
ac1cb8d3 VS |
21217 | grep -v '^ *+' conftest.er1 >conftest.err |
21218 | rm -f conftest.er1 | |
21219 | cat conftest.err >&5 | |
a848cd7e SC |
21220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21221 | (exit $ac_status); } && | |
c9a66001 | 21222 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21224 | (eval $ac_try) 2>&5 | |
21225 | ac_status=$? | |
21226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21227 | (exit $ac_status); }; } && | |
21228 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21230 | (eval $ac_try) 2>&5 | |
21231 | ac_status=$? | |
21232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21233 | (exit $ac_status); }; }; then | |
21234 | ac_hi=$ac_mid | |
21235 | else | |
21236 | echo "$as_me: failed program was:" >&5 | |
21237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21238 | ||
21239 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21240 | fi | |
ac1cb8d3 | 21241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21242 | done |
21243 | case $ac_lo in | |
21244 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21245 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21246 | See \`config.log' for more details." >&5 | |
21247 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21248 | See \`config.log' for more details." >&2;} | |
21249 | { (exit 1); exit 1; }; } ;; | |
21250 | esac | |
21251 | else | |
21252 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
21253 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21254 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
21255 | { (exit 1); exit 1; }; } |
21256 | else | |
21257 | cat >conftest.$ac_ext <<_ACEOF | |
21258 | /* confdefs.h. */ | |
21259 | _ACEOF | |
21260 | cat confdefs.h >>conftest.$ac_ext | |
21261 | cat >>conftest.$ac_ext <<_ACEOF | |
21262 | /* end confdefs.h. */ | |
21263 | $ac_includes_default | |
21264 | long longval () { return (long) (sizeof (long long)); } | |
21265 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21266 | #include <stdio.h> | |
21267 | #include <stdlib.h> | |
21268 | int | |
21269 | main () | |
21270 | { | |
21271 | ||
21272 | FILE *f = fopen ("conftest.val", "w"); | |
21273 | if (! f) | |
21274 | exit (1); | |
21275 | if (((long) (sizeof (long long))) < 0) | |
21276 | { | |
21277 | long i = longval (); | |
21278 | if (i != ((long) (sizeof (long long)))) | |
21279 | exit (1); | |
21280 | fprintf (f, "%ld\n", i); | |
21281 | } | |
21282 | else | |
21283 | { | |
21284 | unsigned long i = ulongval (); | |
21285 | if (i != ((long) (sizeof (long long)))) | |
21286 | exit (1); | |
21287 | fprintf (f, "%lu\n", i); | |
21288 | } | |
21289 | exit (ferror (f) || fclose (f) != 0); | |
21290 | ||
21291 | ; | |
21292 | return 0; | |
21293 | } | |
21294 | _ACEOF | |
21295 | rm -f conftest$ac_exeext | |
21296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21297 | (eval $ac_link) 2>&5 | |
21298 | ac_status=$? | |
21299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21300 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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_sizeof_long_long=`cat conftest.val` | |
21307 | else | |
21308 | echo "$as_me: program exited with status $ac_status" >&5 | |
21309 | echo "$as_me: failed program was:" >&5 | |
21310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21311 | ||
21312 | ( exit $ac_status ) | |
21313 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21314 | See \`config.log' for more details." >&5 | |
21315 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21316 | See \`config.log' for more details." >&2;} | |
21317 | { (exit 1); exit 1; }; } | |
21318 | fi | |
ac1cb8d3 | 21319 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21320 | fi |
21321 | fi | |
21322 | rm -f conftest.val | |
21323 | else | |
21324 | ac_cv_sizeof_long_long=0 | |
21325 | fi | |
21326 | fi | |
21327 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21328 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21329 | cat >>confdefs.h <<_ACEOF | |
21330 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21331 | _ACEOF | |
21332 | ||
21333 | ||
21334 | esac | |
21335 | ||
238ecede MW |
21336 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
21337 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
21338 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
21339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21340 | else | |
21341 | cat >conftest.$ac_ext <<_ACEOF | |
21342 | /* confdefs.h. */ | |
21343 | _ACEOF | |
21344 | cat confdefs.h >>conftest.$ac_ext | |
21345 | cat >>conftest.$ac_ext <<_ACEOF | |
21346 | /* end confdefs.h. */ | |
21347 | ||
83d8eb47 MW |
21348 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21349 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21350 | # error "fake wchar_t" |
21351 | #endif | |
21352 | #ifdef HAVE_WCHAR_H | |
21353 | # ifdef __CYGWIN__ | |
21354 | # include <stddef.h> | |
21355 | # endif | |
21356 | # include <wchar.h> | |
21357 | #endif | |
21358 | #ifdef HAVE_STDLIB_H | |
21359 | # include <stdlib.h> | |
21360 | #endif | |
21361 | #include <stdio.h> | |
21362 | ||
21363 | ||
21364 | ||
21365 | int | |
21366 | main () | |
21367 | { | |
21368 | if ((wchar_t *) 0) | |
21369 | return 0; | |
21370 | if (sizeof (wchar_t)) | |
21371 | return 0; | |
21372 | ; | |
21373 | return 0; | |
21374 | } | |
21375 | _ACEOF | |
21376 | rm -f conftest.$ac_objext | |
21377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21378 | (eval $ac_compile) 2>conftest.er1 | |
21379 | ac_status=$? | |
21380 | grep -v '^ *+' conftest.er1 >conftest.err | |
21381 | rm -f conftest.er1 | |
21382 | cat conftest.err >&5 | |
21383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21384 | (exit $ac_status); } && | |
c9a66001 | 21385 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21387 | (eval $ac_try) 2>&5 | |
21388 | ac_status=$? | |
21389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21390 | (exit $ac_status); }; } && | |
21391 | { ac_try='test -s conftest.$ac_objext' | |
21392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21393 | (eval $ac_try) 2>&5 | |
21394 | ac_status=$? | |
21395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21396 | (exit $ac_status); }; }; then | |
21397 | ac_cv_type_wchar_t=yes | |
21398 | else | |
21399 | echo "$as_me: failed program was:" >&5 | |
21400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21401 | ||
21402 | ac_cv_type_wchar_t=no | |
21403 | fi | |
21404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21405 | fi | |
21406 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
21407 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
21408 | ||
a848cd7e SC |
21409 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
21410 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 21411 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
21412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21413 | else | |
238ecede MW |
21414 | if test "$ac_cv_type_wchar_t" = yes; then |
21415 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21416 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21417 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21418 | # This bug is HP SR number 8606223364. | |
21419 | if test "$cross_compiling" = yes; then | |
21420 | # Depending upon the size, compute the lo and hi bounds. | |
21421 | cat >conftest.$ac_ext <<_ACEOF | |
21422 | /* confdefs.h. */ | |
21423 | _ACEOF | |
21424 | cat confdefs.h >>conftest.$ac_ext | |
21425 | cat >>conftest.$ac_ext <<_ACEOF | |
21426 | /* end confdefs.h. */ | |
21427 | ||
83d8eb47 MW |
21428 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21429 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21430 | # error "fake wchar_t" |
21431 | #endif | |
21432 | #ifdef HAVE_WCHAR_H | |
21433 | # ifdef __CYGWIN__ | |
21434 | # include <stddef.h> | |
21435 | # endif | |
21436 | # include <wchar.h> | |
21437 | #endif | |
21438 | #ifdef HAVE_STDLIB_H | |
21439 | # include <stdlib.h> | |
21440 | #endif | |
21441 | #include <stdio.h> | |
21442 | ||
21443 | ||
21444 | ||
21445 | int | |
21446 | main () | |
21447 | { | |
21448 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
21449 | test_array [0] = 0 | |
21450 | ||
21451 | ; | |
21452 | return 0; | |
21453 | } | |
21454 | _ACEOF | |
21455 | rm -f conftest.$ac_objext | |
21456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21457 | (eval $ac_compile) 2>conftest.er1 | |
21458 | ac_status=$? | |
21459 | grep -v '^ *+' conftest.er1 >conftest.err | |
21460 | rm -f conftest.er1 | |
21461 | cat conftest.err >&5 | |
21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21463 | (exit $ac_status); } && | |
c9a66001 | 21464 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21466 | (eval $ac_try) 2>&5 | |
21467 | ac_status=$? | |
21468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21469 | (exit $ac_status); }; } && | |
21470 | { ac_try='test -s conftest.$ac_objext' | |
21471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21472 | (eval $ac_try) 2>&5 | |
21473 | ac_status=$? | |
21474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21475 | (exit $ac_status); }; }; then | |
21476 | ac_lo=0 ac_mid=0 | |
21477 | while :; do | |
21478 | cat >conftest.$ac_ext <<_ACEOF | |
21479 | /* confdefs.h. */ | |
21480 | _ACEOF | |
21481 | cat confdefs.h >>conftest.$ac_ext | |
21482 | cat >>conftest.$ac_ext <<_ACEOF | |
21483 | /* end confdefs.h. */ | |
21484 | ||
83d8eb47 MW |
21485 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21486 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21487 | # error "fake wchar_t" |
21488 | #endif | |
21489 | #ifdef HAVE_WCHAR_H | |
21490 | # ifdef __CYGWIN__ | |
21491 | # include <stddef.h> | |
21492 | # endif | |
21493 | # include <wchar.h> | |
21494 | #endif | |
21495 | #ifdef HAVE_STDLIB_H | |
21496 | # include <stdlib.h> | |
21497 | #endif | |
21498 | #include <stdio.h> | |
21499 | ||
21500 | ||
21501 | ||
21502 | int | |
21503 | main () | |
21504 | { | |
21505 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21506 | test_array [0] = 0 | |
21507 | ||
21508 | ; | |
21509 | return 0; | |
21510 | } | |
21511 | _ACEOF | |
21512 | rm -f conftest.$ac_objext | |
21513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21514 | (eval $ac_compile) 2>conftest.er1 | |
21515 | ac_status=$? | |
21516 | grep -v '^ *+' conftest.er1 >conftest.err | |
21517 | rm -f conftest.er1 | |
21518 | cat conftest.err >&5 | |
21519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21520 | (exit $ac_status); } && | |
c9a66001 | 21521 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21523 | (eval $ac_try) 2>&5 | |
21524 | ac_status=$? | |
21525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21526 | (exit $ac_status); }; } && | |
21527 | { ac_try='test -s conftest.$ac_objext' | |
21528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21529 | (eval $ac_try) 2>&5 | |
21530 | ac_status=$? | |
21531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21532 | (exit $ac_status); }; }; then | |
21533 | ac_hi=$ac_mid; break | |
21534 | else | |
21535 | echo "$as_me: failed program was:" >&5 | |
21536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21537 | ||
21538 | ac_lo=`expr $ac_mid + 1` | |
21539 | if test $ac_lo -le $ac_mid; then | |
21540 | ac_lo= ac_hi= | |
21541 | break | |
21542 | fi | |
21543 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21544 | fi | |
21545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21546 | done | |
21547 | else | |
21548 | echo "$as_me: failed program was:" >&5 | |
21549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21550 | ||
21551 | cat >conftest.$ac_ext <<_ACEOF | |
21552 | /* confdefs.h. */ | |
21553 | _ACEOF | |
21554 | cat confdefs.h >>conftest.$ac_ext | |
21555 | cat >>conftest.$ac_ext <<_ACEOF | |
21556 | /* end confdefs.h. */ | |
21557 | ||
83d8eb47 MW |
21558 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21559 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21560 | # error "fake wchar_t" |
21561 | #endif | |
21562 | #ifdef HAVE_WCHAR_H | |
21563 | # ifdef __CYGWIN__ | |
21564 | # include <stddef.h> | |
21565 | # endif | |
21566 | # include <wchar.h> | |
21567 | #endif | |
21568 | #ifdef HAVE_STDLIB_H | |
21569 | # include <stdlib.h> | |
21570 | #endif | |
21571 | #include <stdio.h> | |
21572 | ||
21573 | ||
21574 | ||
21575 | int | |
21576 | main () | |
21577 | { | |
21578 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
21579 | test_array [0] = 0 | |
21580 | ||
21581 | ; | |
21582 | return 0; | |
21583 | } | |
21584 | _ACEOF | |
21585 | rm -f conftest.$ac_objext | |
21586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21587 | (eval $ac_compile) 2>conftest.er1 | |
21588 | ac_status=$? | |
21589 | grep -v '^ *+' conftest.er1 >conftest.err | |
21590 | rm -f conftest.er1 | |
21591 | cat conftest.err >&5 | |
21592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21593 | (exit $ac_status); } && | |
c9a66001 | 21594 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21596 | (eval $ac_try) 2>&5 | |
21597 | ac_status=$? | |
21598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21599 | (exit $ac_status); }; } && | |
21600 | { ac_try='test -s conftest.$ac_objext' | |
21601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21602 | (eval $ac_try) 2>&5 | |
21603 | ac_status=$? | |
21604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21605 | (exit $ac_status); }; }; then | |
21606 | ac_hi=-1 ac_mid=-1 | |
21607 | while :; do | |
21608 | cat >conftest.$ac_ext <<_ACEOF | |
21609 | /* confdefs.h. */ | |
21610 | _ACEOF | |
21611 | cat confdefs.h >>conftest.$ac_ext | |
21612 | cat >>conftest.$ac_ext <<_ACEOF | |
21613 | /* end confdefs.h. */ | |
21614 | ||
83d8eb47 MW |
21615 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21616 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21617 | # error "fake wchar_t" |
21618 | #endif | |
21619 | #ifdef HAVE_WCHAR_H | |
21620 | # ifdef __CYGWIN__ | |
21621 | # include <stddef.h> | |
21622 | # endif | |
21623 | # include <wchar.h> | |
21624 | #endif | |
21625 | #ifdef HAVE_STDLIB_H | |
21626 | # include <stdlib.h> | |
21627 | #endif | |
21628 | #include <stdio.h> | |
21629 | ||
21630 | ||
21631 | ||
21632 | int | |
21633 | main () | |
21634 | { | |
21635 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
21636 | test_array [0] = 0 | |
21637 | ||
21638 | ; | |
21639 | return 0; | |
21640 | } | |
21641 | _ACEOF | |
21642 | rm -f conftest.$ac_objext | |
21643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21644 | (eval $ac_compile) 2>conftest.er1 | |
21645 | ac_status=$? | |
21646 | grep -v '^ *+' conftest.er1 >conftest.err | |
21647 | rm -f conftest.er1 | |
21648 | cat conftest.err >&5 | |
21649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21650 | (exit $ac_status); } && | |
c9a66001 | 21651 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21653 | (eval $ac_try) 2>&5 | |
21654 | ac_status=$? | |
21655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21656 | (exit $ac_status); }; } && | |
21657 | { ac_try='test -s conftest.$ac_objext' | |
21658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21659 | (eval $ac_try) 2>&5 | |
21660 | ac_status=$? | |
21661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21662 | (exit $ac_status); }; }; then | |
21663 | ac_lo=$ac_mid; break | |
21664 | else | |
21665 | echo "$as_me: failed program was:" >&5 | |
21666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21667 | ||
21668 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21669 | if test $ac_mid -le $ac_hi; then | |
21670 | ac_lo= ac_hi= | |
21671 | break | |
21672 | fi | |
21673 | ac_mid=`expr 2 '*' $ac_mid` | |
21674 | fi | |
21675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21676 | done | |
21677 | else | |
21678 | echo "$as_me: failed program was:" >&5 | |
21679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21680 | ||
21681 | ac_lo= ac_hi= | |
21682 | fi | |
21683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21684 | fi | |
21685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21686 | # Binary search between lo and hi bounds. | |
21687 | while test "x$ac_lo" != "x$ac_hi"; do | |
21688 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21689 | cat >conftest.$ac_ext <<_ACEOF | |
21690 | /* confdefs.h. */ | |
21691 | _ACEOF | |
21692 | cat confdefs.h >>conftest.$ac_ext | |
21693 | cat >>conftest.$ac_ext <<_ACEOF | |
21694 | /* end confdefs.h. */ | |
21695 | ||
83d8eb47 MW |
21696 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21697 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21698 | # error "fake wchar_t" |
21699 | #endif | |
21700 | #ifdef HAVE_WCHAR_H | |
21701 | # ifdef __CYGWIN__ | |
21702 | # include <stddef.h> | |
21703 | # endif | |
21704 | # include <wchar.h> | |
21705 | #endif | |
21706 | #ifdef HAVE_STDLIB_H | |
21707 | # include <stdlib.h> | |
21708 | #endif | |
21709 | #include <stdio.h> | |
a848cd7e | 21710 | |
a848cd7e | 21711 | |
a848cd7e | 21712 | |
238ecede MW |
21713 | int |
21714 | main () | |
21715 | { | |
21716 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21717 | test_array [0] = 0 | |
a848cd7e | 21718 | |
238ecede MW |
21719 | ; |
21720 | return 0; | |
21721 | } | |
21722 | _ACEOF | |
21723 | rm -f conftest.$ac_objext | |
21724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21725 | (eval $ac_compile) 2>conftest.er1 | |
21726 | ac_status=$? | |
21727 | grep -v '^ *+' conftest.er1 >conftest.err | |
21728 | rm -f conftest.er1 | |
21729 | cat conftest.err >&5 | |
21730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21731 | (exit $ac_status); } && | |
c9a66001 | 21732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21734 | (eval $ac_try) 2>&5 | |
21735 | ac_status=$? | |
21736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21737 | (exit $ac_status); }; } && | |
21738 | { ac_try='test -s conftest.$ac_objext' | |
21739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21740 | (eval $ac_try) 2>&5 | |
21741 | ac_status=$? | |
21742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21743 | (exit $ac_status); }; }; then | |
21744 | ac_hi=$ac_mid | |
21745 | else | |
21746 | echo "$as_me: failed program was:" >&5 | |
21747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21748 | ||
21749 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21750 | fi | |
21751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21752 | done | |
21753 | case $ac_lo in | |
21754 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21755 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21756 | See \`config.log' for more details." >&5 | |
21757 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21758 | See \`config.log' for more details." >&2;} | |
21759 | { (exit 1); exit 1; }; } ;; | |
21760 | esac | |
21761 | else | |
21762 | if test "$cross_compiling" = yes; then | |
c9a66001 VZ |
21763 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21764 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 21765 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21766 | else |
21767 | cat >conftest.$ac_ext <<_ACEOF | |
21768 | /* confdefs.h. */ | |
21769 | _ACEOF | |
21770 | cat confdefs.h >>conftest.$ac_ext | |
21771 | cat >>conftest.$ac_ext <<_ACEOF | |
21772 | /* end confdefs.h. */ | |
21773 | ||
83d8eb47 MW |
21774 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21775 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21776 | # error "fake wchar_t" |
21777 | #endif | |
21778 | #ifdef HAVE_WCHAR_H | |
21779 | # ifdef __CYGWIN__ | |
21780 | # include <stddef.h> | |
21781 | # endif | |
21782 | # include <wchar.h> | |
21783 | #endif | |
21784 | #ifdef HAVE_STDLIB_H | |
21785 | # include <stdlib.h> | |
21786 | #endif | |
21787 | #include <stdio.h> | |
21788 | ||
21789 | ||
21790 | ||
21791 | long longval () { return (long) (sizeof (wchar_t)); } | |
21792 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21793 | #include <stdio.h> | |
21794 | #include <stdlib.h> | |
21795 | int | |
21796 | main () | |
21797 | { | |
a848cd7e | 21798 | |
238ecede MW |
21799 | FILE *f = fopen ("conftest.val", "w"); |
21800 | if (! f) | |
21801 | exit (1); | |
21802 | if (((long) (sizeof (wchar_t))) < 0) | |
21803 | { | |
21804 | long i = longval (); | |
21805 | if (i != ((long) (sizeof (wchar_t)))) | |
21806 | exit (1); | |
21807 | fprintf (f, "%ld\n", i); | |
21808 | } | |
21809 | else | |
21810 | { | |
21811 | unsigned long i = ulongval (); | |
21812 | if (i != ((long) (sizeof (wchar_t)))) | |
21813 | exit (1); | |
21814 | fprintf (f, "%lu\n", i); | |
21815 | } | |
21816 | exit (ferror (f) || fclose (f) != 0); | |
21817 | ||
21818 | ; | |
21819 | return 0; | |
21820 | } | |
a848cd7e SC |
21821 | _ACEOF |
21822 | rm -f conftest$ac_exeext | |
21823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21824 | (eval $ac_link) 2>&5 | |
21825 | ac_status=$? | |
21826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21829 | (eval $ac_try) 2>&5 | |
21830 | ac_status=$? | |
21831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21832 | (exit $ac_status); }; }; then | |
238ecede | 21833 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21834 | else |
21835 | echo "$as_me: program exited with status $ac_status" >&5 | |
21836 | echo "$as_me: failed program was:" >&5 | |
21837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21838 | ||
21839 | ( exit $ac_status ) | |
238ecede MW |
21840 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21841 | See \`config.log' for more details." >&5 | |
21842 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21843 | See \`config.log' for more details." >&2;} | |
21844 | { (exit 1); exit 1; }; } | |
a848cd7e | 21845 | fi |
ac1cb8d3 | 21846 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21847 | fi |
a848cd7e | 21848 | fi |
238ecede MW |
21849 | rm -f conftest.val |
21850 | else | |
21851 | ac_cv_sizeof_wchar_t=0 | |
21852 | fi | |
21853 | fi | |
21854 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21855 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21856 | cat >>confdefs.h <<_ACEOF |
238ecede | 21857 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21858 | _ACEOF |
21859 | ||
21860 | ||
47a7e797 MW |
21861 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21862 | wxUSE_WCHAR_T=yes | |
21863 | else | |
21864 | wxUSE_WCHAR_T=no | |
21865 | fi | |
238ecede | 21866 | |
ba3d13e1 VZ |
21867 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21868 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21869 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21871 | else | |
21872 | ||
21873 | cat >conftest.$ac_ext <<_ACEOF | |
21874 | ||
21875 | #include <stdarg.h> | |
21876 | void foo(char *f, ...) | |
21877 | { | |
21878 | va_list ap1, ap2; | |
21879 | va_start(ap1, f); | |
21880 | va_copy(ap2, ap1); | |
21881 | va_end(ap2); | |
21882 | va_end(ap1); | |
21883 | } | |
5886b072 VZ |
21884 | int main() |
21885 | { | |
b902e639 VZ |
21886 | foo("hi", 17); |
21887 | return 0; | |
5886b072 | 21888 | } |
ba3d13e1 VZ |
21889 | _ACEOF |
21890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21892 | (eval $ac_link) 2>conftest.er1 | |
21893 | ac_status=$? | |
21894 | grep -v '^ *+' conftest.er1 >conftest.err | |
21895 | rm -f conftest.er1 | |
21896 | cat conftest.err >&5 | |
21897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21898 | (exit $ac_status); } && | |
c9a66001 | 21899 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
21900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21901 | (eval $ac_try) 2>&5 | |
21902 | ac_status=$? | |
21903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21904 | (exit $ac_status); }; } && | |
21905 | { ac_try='test -s conftest$ac_exeext' | |
21906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21907 | (eval $ac_try) 2>&5 | |
21908 | ac_status=$? | |
21909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21910 | (exit $ac_status); }; }; then | |
21911 | wx_cv_func_va_copy=yes | |
21912 | else | |
21913 | echo "$as_me: failed program was:" >&5 | |
21914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21915 | ||
21916 | wx_cv_func_va_copy=no | |
21917 | ||
21918 | fi | |
21919 | rm -f conftest.err conftest.$ac_objext \ | |
21920 | conftest$ac_exeext conftest.$ac_ext | |
21921 | ||
21922 | ||
21923 | fi | |
21924 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21925 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21926 | ||
21927 | if test $wx_cv_func_va_copy = "yes"; then | |
21928 | cat >>confdefs.h <<\_ACEOF | |
21929 | #define HAVE_VA_COPY 1 | |
21930 | _ACEOF | |
21931 | ||
21932 | else | |
21933 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21934 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21935 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21937 | else | |
21938 | ||
21939 | if test "$cross_compiling" = yes; then | |
21940 | wx_cv_type_va_list_lvalue=yes | |
21941 | ||
21942 | else | |
21943 | cat >conftest.$ac_ext <<_ACEOF | |
21944 | ||
21945 | #include <stdarg.h> | |
21946 | int foo(char *f, ...) | |
21947 | { | |
21948 | va_list ap1, ap2; | |
21949 | va_start(ap1, f); | |
21950 | ap2 = ap1; | |
21951 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21952 | return 1; | |
21953 | va_end(ap2); | |
21954 | va_end(ap1); | |
21955 | return 0; | |
21956 | } | |
21957 | int main() | |
21958 | { | |
21959 | return foo("hi", 17); | |
21960 | } | |
21961 | _ACEOF | |
21962 | rm -f conftest$ac_exeext | |
21963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21964 | (eval $ac_link) 2>&5 | |
21965 | ac_status=$? | |
21966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21969 | (eval $ac_try) 2>&5 | |
21970 | ac_status=$? | |
21971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21972 | (exit $ac_status); }; }; then | |
21973 | wx_cv_type_va_list_lvalue=yes | |
21974 | else | |
21975 | echo "$as_me: program exited with status $ac_status" >&5 | |
21976 | echo "$as_me: failed program was:" >&5 | |
21977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21978 | ||
21979 | ( exit $ac_status ) | |
21980 | wx_cv_type_va_list_lvalue=no | |
21981 | fi | |
21982 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21983 | fi | |
21984 | ||
21985 | ||
21986 | fi | |
21987 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21988 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21989 | ||
21990 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21991 | cat >>confdefs.h <<\_ACEOF | |
21992 | #define VA_LIST_IS_ARRAY 1 | |
21993 | _ACEOF | |
21994 | ||
21995 | fi | |
21996 | fi | |
21997 | ||
a848cd7e SC |
21998 | # Check whether --enable-largefile or --disable-largefile was given. |
21999 | if test "${enable_largefile+set}" = set; then | |
22000 | enableval="$enable_largefile" | |
22001 | ||
22002 | fi; | |
22003 | if test "$enable_largefile" != no; then | |
22004 | wx_largefile=no | |
22005 | ||
22006 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
22007 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
22008 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
22009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22010 | else | |
22011 | ||
22012 | cat >conftest.$ac_ext <<_ACEOF | |
22013 | /* confdefs.h. */ | |
22014 | _ACEOF | |
22015 | cat confdefs.h >>conftest.$ac_ext | |
22016 | cat >>conftest.$ac_ext <<_ACEOF | |
22017 | /* end confdefs.h. */ | |
22018 | #define _FILE_OFFSET_BITS 64 | |
22019 | #include <sys/types.h> | |
22020 | int | |
22021 | main () | |
22022 | { | |
22023 | typedef struct { | |
22024 | unsigned int field: sizeof(off_t) == 8; | |
22025 | } wxlf; | |
22026 | ||
22027 | ; | |
22028 | return 0; | |
22029 | } | |
22030 | _ACEOF | |
22031 | rm -f conftest.$ac_objext | |
22032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22033 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22034 | ac_status=$? |
ac1cb8d3 VS |
22035 | grep -v '^ *+' conftest.er1 >conftest.err |
22036 | rm -f conftest.er1 | |
22037 | cat conftest.err >&5 | |
a848cd7e SC |
22038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22039 | (exit $ac_status); } && | |
c9a66001 | 22040 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22042 | (eval $ac_try) 2>&5 | |
22043 | ac_status=$? | |
22044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22045 | (exit $ac_status); }; } && | |
22046 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22048 | (eval $ac_try) 2>&5 | |
22049 | ac_status=$? | |
22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22051 | (exit $ac_status); }; }; then | |
22052 | ac_cv_sys_file_offset_bits=64 | |
22053 | else | |
22054 | echo "$as_me: failed program was:" >&5 | |
22055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22056 | ||
22057 | ac_cv_sys_file_offset_bits=no | |
22058 | fi | |
ac1cb8d3 | 22059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22060 | |
22061 | ||
22062 | fi | |
22063 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
22064 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
22065 | ||
22066 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
22067 | wx_largefile=yes | |
22068 | cat >>confdefs.h <<_ACEOF | |
22069 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
22070 | _ACEOF | |
22071 | ||
22072 | fi | |
22073 | ||
22074 | if test "x$wx_largefile" != "xyes"; then | |
22075 | ||
22076 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
22077 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
22078 | if test "${ac_cv_sys_large_files+set}" = set; then | |
22079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22080 | else | |
22081 | ||
22082 | cat >conftest.$ac_ext <<_ACEOF | |
22083 | /* confdefs.h. */ | |
22084 | _ACEOF | |
22085 | cat confdefs.h >>conftest.$ac_ext | |
22086 | cat >>conftest.$ac_ext <<_ACEOF | |
22087 | /* end confdefs.h. */ | |
22088 | #define _LARGE_FILES 1 | |
22089 | #include <sys/types.h> | |
22090 | int | |
22091 | main () | |
22092 | { | |
22093 | typedef struct { | |
22094 | unsigned int field: sizeof(off_t) == 8; | |
22095 | } wxlf; | |
22096 | ||
22097 | ; | |
22098 | return 0; | |
22099 | } | |
22100 | _ACEOF | |
22101 | rm -f conftest.$ac_objext | |
22102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22103 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22104 | ac_status=$? |
ac1cb8d3 VS |
22105 | grep -v '^ *+' conftest.er1 >conftest.err |
22106 | rm -f conftest.er1 | |
22107 | cat conftest.err >&5 | |
a848cd7e SC |
22108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22109 | (exit $ac_status); } && | |
c9a66001 | 22110 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22112 | (eval $ac_try) 2>&5 | |
22113 | ac_status=$? | |
22114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22115 | (exit $ac_status); }; } && | |
22116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22118 | (eval $ac_try) 2>&5 | |
22119 | ac_status=$? | |
22120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22121 | (exit $ac_status); }; }; then | |
22122 | ac_cv_sys_large_files=1 | |
22123 | else | |
22124 | echo "$as_me: failed program was:" >&5 | |
22125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22126 | ||
22127 | ac_cv_sys_large_files=no | |
22128 | fi | |
ac1cb8d3 | 22129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22130 | |
22131 | ||
22132 | fi | |
22133 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
22134 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
22135 | ||
22136 | if test "$ac_cv_sys_large_files" != no; then | |
22137 | wx_largefile=yes | |
22138 | cat >>confdefs.h <<_ACEOF | |
22139 | #define _LARGE_FILES $ac_cv_sys_large_files | |
22140 | _ACEOF | |
22141 | ||
22142 | fi | |
22143 | ||
22144 | fi | |
22145 | ||
22146 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
22147 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
22148 | if test "x$wx_largefile" = "xyes"; then | |
22149 | cat >>confdefs.h <<\_ACEOF | |
22150 | #define HAVE_LARGEFILE_SUPPORT 1 | |
22151 | _ACEOF | |
22152 | ||
22153 | fi | |
22154 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
22155 | echo "${ECHO_T}$wx_largefile" >&6 | |
22156 | fi | |
22157 | ||
5b674b9d DE |
22158 | |
22159 | if test "x$wx_largefile" = "xyes"; then | |
22160 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 22161 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
22162 | |
22163 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
22164 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
22165 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
22166 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
22167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22168 | else | |
22169 | ||
00421666 MW |
22170 | cat >conftest.$ac_ext <<_ACEOF |
22171 | /* confdefs.h. */ | |
22172 | _ACEOF | |
22173 | cat confdefs.h >>conftest.$ac_ext | |
22174 | cat >>conftest.$ac_ext <<_ACEOF | |
22175 | /* end confdefs.h. */ | |
22176 | ||
22177 | int | |
22178 | main () | |
22179 | { | |
22180 | ||
22181 | #ifndef __STDC_EXT__ | |
22182 | choke me | |
22183 | #endif | |
22184 | ||
22185 | ; | |
22186 | return 0; | |
22187 | } | |
22188 | _ACEOF | |
22189 | rm -f conftest.$ac_objext | |
22190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22191 | (eval $ac_compile) 2>conftest.er1 | |
22192 | ac_status=$? | |
22193 | grep -v '^ *+' conftest.er1 >conftest.err | |
22194 | rm -f conftest.er1 | |
22195 | cat conftest.err >&5 | |
22196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22197 | (exit $ac_status); } && | |
c9a66001 | 22198 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
00421666 MW |
22199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22200 | (eval $ac_try) 2>&5 | |
22201 | ac_status=$? | |
22202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22203 | (exit $ac_status); }; } && | |
22204 | { ac_try='test -s conftest.$ac_objext' | |
22205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22206 | (eval $ac_try) 2>&5 | |
22207 | ac_status=$? | |
22208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22209 | (exit $ac_status); }; }; then | |
22210 | wx_cv_STDC_EXT_required=no | |
22211 | else | |
22212 | echo "$as_me: failed program was:" >&5 | |
22213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22214 | ||
22215 | wx_cv_STDC_EXT_required=yes | |
22216 | ||
22217 | fi | |
22218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
00421666 MW |
22219 | |
22220 | ||
22221 | fi | |
22222 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
22223 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
22224 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 22225 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
22226 | fi |
22227 | fi | |
5b674b9d | 22228 | else |
5ff751d6 | 22229 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
22230 | fi |
22231 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
22232 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
22233 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
22234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22235 | else | |
22236 | while :; do | |
22237 | ac_cv_sys_largefile_source=no | |
22238 | cat >conftest.$ac_ext <<_ACEOF | |
22239 | /* confdefs.h. */ | |
22240 | _ACEOF | |
22241 | cat confdefs.h >>conftest.$ac_ext | |
22242 | cat >>conftest.$ac_ext <<_ACEOF | |
22243 | /* end confdefs.h. */ | |
22244 | #include <stdio.h> | |
22245 | int | |
22246 | main () | |
22247 | { | |
22248 | return !fseeko; | |
22249 | ; | |
22250 | return 0; | |
22251 | } | |
22252 | _ACEOF | |
22253 | rm -f conftest.$ac_objext | |
22254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22255 | (eval $ac_compile) 2>conftest.er1 | |
22256 | ac_status=$? | |
22257 | grep -v '^ *+' conftest.er1 >conftest.err | |
22258 | rm -f conftest.er1 | |
22259 | cat conftest.err >&5 | |
22260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22261 | (exit $ac_status); } && | |
c9a66001 | 22262 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22264 | (eval $ac_try) 2>&5 | |
22265 | ac_status=$? | |
22266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22267 | (exit $ac_status); }; } && | |
22268 | { ac_try='test -s conftest.$ac_objext' | |
22269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22270 | (eval $ac_try) 2>&5 | |
22271 | ac_status=$? | |
22272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22273 | (exit $ac_status); }; }; then | |
22274 | break | |
22275 | else | |
22276 | echo "$as_me: failed program was:" >&5 | |
22277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22278 | ||
22279 | fi | |
22280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22281 | cat >conftest.$ac_ext <<_ACEOF | |
22282 | /* confdefs.h. */ | |
22283 | _ACEOF | |
22284 | cat confdefs.h >>conftest.$ac_ext | |
22285 | cat >>conftest.$ac_ext <<_ACEOF | |
22286 | /* end confdefs.h. */ | |
22287 | #define _LARGEFILE_SOURCE 1 | |
22288 | #include <stdio.h> | |
22289 | int | |
22290 | main () | |
22291 | { | |
22292 | return !fseeko; | |
22293 | ; | |
22294 | return 0; | |
22295 | } | |
22296 | _ACEOF | |
22297 | rm -f conftest.$ac_objext | |
22298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22299 | (eval $ac_compile) 2>conftest.er1 | |
22300 | ac_status=$? | |
22301 | grep -v '^ *+' conftest.er1 >conftest.err | |
22302 | rm -f conftest.er1 | |
22303 | cat conftest.err >&5 | |
22304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22305 | (exit $ac_status); } && | |
c9a66001 | 22306 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22308 | (eval $ac_try) 2>&5 | |
22309 | ac_status=$? | |
22310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22311 | (exit $ac_status); }; } && | |
22312 | { ac_try='test -s conftest.$ac_objext' | |
22313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22314 | (eval $ac_try) 2>&5 | |
22315 | ac_status=$? | |
22316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22317 | (exit $ac_status); }; }; then | |
22318 | ac_cv_sys_largefile_source=1; break | |
22319 | else | |
22320 | echo "$as_me: failed program was:" >&5 | |
22321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22322 | ||
22323 | fi | |
22324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22325 | break | |
22326 | done | |
22327 | fi | |
22328 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
22329 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
22330 | if test "$ac_cv_sys_largefile_source" != no; then | |
22331 | ||
22332 | cat >>confdefs.h <<_ACEOF | |
22333 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
22334 | _ACEOF | |
22335 | ||
22336 | fi | |
22337 | rm -f conftest* | |
22338 | ||
22339 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
22340 | # in glibc 2.1.3, but that breaks too many other things. | |
22341 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
22342 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
22343 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
22344 | if test "${ac_cv_func_fseeko+set}" = set; then | |
22345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22346 | else | |
22347 | cat >conftest.$ac_ext <<_ACEOF | |
22348 | /* confdefs.h. */ | |
22349 | _ACEOF | |
22350 | cat confdefs.h >>conftest.$ac_ext | |
22351 | cat >>conftest.$ac_ext <<_ACEOF | |
22352 | /* end confdefs.h. */ | |
22353 | #include <stdio.h> | |
22354 | int | |
22355 | main () | |
22356 | { | |
22357 | return fseeko && fseeko (stdin, 0, 0); | |
22358 | ; | |
22359 | return 0; | |
22360 | } | |
22361 | _ACEOF | |
22362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22364 | (eval $ac_link) 2>conftest.er1 | |
22365 | ac_status=$? | |
22366 | grep -v '^ *+' conftest.er1 >conftest.err | |
22367 | rm -f conftest.er1 | |
22368 | cat conftest.err >&5 | |
22369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22370 | (exit $ac_status); } && | |
c9a66001 | 22371 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22373 | (eval $ac_try) 2>&5 | |
22374 | ac_status=$? | |
22375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22376 | (exit $ac_status); }; } && | |
22377 | { ac_try='test -s conftest$ac_exeext' | |
22378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22379 | (eval $ac_try) 2>&5 | |
22380 | ac_status=$? | |
22381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22382 | (exit $ac_status); }; }; then | |
22383 | ac_cv_func_fseeko=yes | |
22384 | else | |
22385 | echo "$as_me: failed program was:" >&5 | |
22386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22387 | ||
22388 | ac_cv_func_fseeko=no | |
22389 | fi | |
22390 | rm -f conftest.err conftest.$ac_objext \ | |
22391 | conftest$ac_exeext conftest.$ac_ext | |
22392 | fi | |
22393 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
22394 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
22395 | if test $ac_cv_func_fseeko = yes; then | |
22396 | ||
22397 | cat >>confdefs.h <<\_ACEOF | |
22398 | #define HAVE_FSEEKO 1 | |
22399 | _ACEOF | |
22400 | ||
22401 | fi | |
22402 | ||
5b674b9d | 22403 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 22404 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 22405 | fi |
a848cd7e SC |
22406 | fi |
22407 | ||
22408 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
22409 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
22410 | if test "${ac_cv_c_bigendian+set}" = set; then | |
22411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22412 | else | |
22413 | ac_cv_c_bigendian=unknown | |
22414 | # See if sys/param.h defines the BYTE_ORDER macro. | |
22415 | cat >conftest.$ac_ext <<_ACEOF | |
22416 | /* confdefs.h. */ | |
22417 | _ACEOF | |
22418 | cat confdefs.h >>conftest.$ac_ext | |
22419 | cat >>conftest.$ac_ext <<_ACEOF | |
22420 | /* end confdefs.h. */ | |
22421 | #include <sys/types.h> | |
22422 | #include <sys/param.h> | |
22423 | int | |
22424 | main () | |
22425 | { | |
22426 | ||
22427 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
22428 | bogus endian macros | |
22429 | #endif | |
22430 | ; | |
22431 | return 0; | |
22432 | } | |
22433 | _ACEOF | |
22434 | rm -f conftest.$ac_objext | |
22435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22436 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22437 | ac_status=$? |
ac1cb8d3 VS |
22438 | grep -v '^ *+' conftest.er1 >conftest.err |
22439 | rm -f conftest.er1 | |
22440 | cat conftest.err >&5 | |
a848cd7e SC |
22441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22442 | (exit $ac_status); } && | |
c9a66001 | 22443 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22445 | (eval $ac_try) 2>&5 | |
22446 | ac_status=$? | |
22447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22448 | (exit $ac_status); }; } && | |
22449 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22451 | (eval $ac_try) 2>&5 | |
22452 | ac_status=$? | |
22453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22454 | (exit $ac_status); }; }; then | |
22455 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
22456 | cat >conftest.$ac_ext <<_ACEOF | |
22457 | /* confdefs.h. */ | |
22458 | _ACEOF | |
22459 | cat confdefs.h >>conftest.$ac_ext | |
22460 | cat >>conftest.$ac_ext <<_ACEOF | |
22461 | /* end confdefs.h. */ | |
22462 | #include <sys/types.h> | |
22463 | #include <sys/param.h> | |
22464 | int | |
22465 | main () | |
22466 | { | |
22467 | ||
22468 | #if BYTE_ORDER != BIG_ENDIAN | |
22469 | not big endian | |
22470 | #endif | |
22471 | ; | |
22472 | return 0; | |
22473 | } | |
22474 | _ACEOF | |
22475 | rm -f conftest.$ac_objext | |
22476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22477 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22478 | ac_status=$? |
ac1cb8d3 VS |
22479 | grep -v '^ *+' conftest.er1 >conftest.err |
22480 | rm -f conftest.er1 | |
22481 | cat conftest.err >&5 | |
a848cd7e SC |
22482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22483 | (exit $ac_status); } && | |
c9a66001 | 22484 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22486 | (eval $ac_try) 2>&5 | |
22487 | ac_status=$? | |
22488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22489 | (exit $ac_status); }; } && | |
22490 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22492 | (eval $ac_try) 2>&5 | |
22493 | ac_status=$? | |
22494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22495 | (exit $ac_status); }; }; then | |
22496 | ac_cv_c_bigendian=yes | |
22497 | else | |
22498 | echo "$as_me: failed program was:" >&5 | |
22499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22500 | ||
22501 | ac_cv_c_bigendian=no | |
22502 | fi | |
ac1cb8d3 | 22503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22504 | else |
22505 | echo "$as_me: failed program was:" >&5 | |
22506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22507 | ||
22508 | fi | |
ac1cb8d3 | 22509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22510 | if test $ac_cv_c_bigendian = unknown; then |
22511 | if test "$cross_compiling" = yes; then | |
22512 | ac_cv_c_bigendian=unknown | |
22513 | else | |
22514 | cat >conftest.$ac_ext <<_ACEOF | |
22515 | /* confdefs.h. */ | |
22516 | _ACEOF | |
22517 | cat confdefs.h >>conftest.$ac_ext | |
22518 | cat >>conftest.$ac_ext <<_ACEOF | |
22519 | /* end confdefs.h. */ | |
22520 | main () { | |
22521 | /* Are we little or big endian? From Harbison&Steele. */ | |
22522 | union | |
22523 | { | |
22524 | long l; | |
22525 | char c[sizeof (long)]; | |
22526 | } u; | |
22527 | u.l = 1; | |
22528 | exit (u.c[sizeof (long) - 1] == 1); | |
22529 | } | |
22530 | _ACEOF | |
22531 | rm -f conftest$ac_exeext | |
22532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22533 | (eval $ac_link) 2>&5 | |
22534 | ac_status=$? | |
22535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22538 | (eval $ac_try) 2>&5 | |
22539 | ac_status=$? | |
22540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22541 | (exit $ac_status); }; }; then | |
22542 | ac_cv_c_bigendian=no | |
22543 | else | |
22544 | echo "$as_me: program exited with status $ac_status" >&5 | |
22545 | echo "$as_me: failed program was:" >&5 | |
22546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22547 | ||
22548 | ( exit $ac_status ) | |
22549 | ac_cv_c_bigendian=yes | |
22550 | fi | |
ac1cb8d3 | 22551 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22552 | fi |
22553 | fi | |
22554 | fi | |
22555 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
22556 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
22557 | if test $ac_cv_c_bigendian = unknown; then | |
22558 | { 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 | |
22559 | 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;} | |
22560 | fi | |
22561 | if test $ac_cv_c_bigendian = yes; then | |
22562 | cat >>confdefs.h <<\_ACEOF | |
22563 | #define WORDS_BIGENDIAN 1 | |
22564 | _ACEOF | |
22565 | ||
22566 | fi | |
22567 | ||
22568 | ||
a848cd7e SC |
22569 | |
22570 | ||
22571 | ||
22572 | ac_ext=cc | |
22573 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22574 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22575 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22576 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22577 | ||
22578 | ||
22579 | ||
22580 | for ac_header in iostream | |
22581 | do | |
22582 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22584 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22588 | fi | |
22589 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22590 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22591 | else | |
22592 | # Is the header compilable? | |
22593 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22594 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22595 | cat >conftest.$ac_ext <<_ACEOF | |
22596 | /* confdefs.h. */ | |
22597 | _ACEOF | |
22598 | cat confdefs.h >>conftest.$ac_ext | |
22599 | cat >>conftest.$ac_ext <<_ACEOF | |
22600 | /* end confdefs.h. */ | |
22601 | $ac_includes_default | |
22602 | #include <$ac_header> | |
22603 | _ACEOF | |
22604 | rm -f conftest.$ac_objext | |
22605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22606 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22607 | ac_status=$? |
ac1cb8d3 VS |
22608 | grep -v '^ *+' conftest.er1 >conftest.err |
22609 | rm -f conftest.er1 | |
22610 | cat conftest.err >&5 | |
a848cd7e SC |
22611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22612 | (exit $ac_status); } && | |
c9a66001 | 22613 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22615 | (eval $ac_try) 2>&5 | |
22616 | ac_status=$? | |
22617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22618 | (exit $ac_status); }; } && | |
22619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22621 | (eval $ac_try) 2>&5 | |
22622 | ac_status=$? | |
22623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22624 | (exit $ac_status); }; }; then | |
22625 | ac_header_compiler=yes | |
22626 | else | |
22627 | echo "$as_me: failed program was:" >&5 | |
22628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22629 | ||
22630 | ac_header_compiler=no | |
22631 | fi | |
ac1cb8d3 | 22632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22633 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22634 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22635 | ||
22636 | # Is the header present? | |
22637 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22638 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22639 | cat >conftest.$ac_ext <<_ACEOF | |
22640 | /* confdefs.h. */ | |
22641 | _ACEOF | |
22642 | cat confdefs.h >>conftest.$ac_ext | |
22643 | cat >>conftest.$ac_ext <<_ACEOF | |
22644 | /* end confdefs.h. */ | |
22645 | #include <$ac_header> | |
22646 | _ACEOF | |
22647 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22648 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22649 | ac_status=$? | |
22650 | grep -v '^ *+' conftest.er1 >conftest.err | |
22651 | rm -f conftest.er1 | |
22652 | cat conftest.err >&5 | |
22653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22654 | (exit $ac_status); } >/dev/null; then | |
22655 | if test -s conftest.err; then | |
22656 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22657 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22658 | else |
22659 | ac_cpp_err= | |
22660 | fi | |
22661 | else | |
22662 | ac_cpp_err=yes | |
22663 | fi | |
22664 | if test -z "$ac_cpp_err"; then | |
22665 | ac_header_preproc=yes | |
22666 | else | |
22667 | echo "$as_me: failed program was:" >&5 | |
22668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22669 | ||
22670 | ac_header_preproc=no | |
22671 | fi | |
22672 | rm -f conftest.err conftest.$ac_ext | |
22673 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22674 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22675 | ||
22676 | # So? What about this header? | |
ac1cb8d3 VS |
22677 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22678 | yes:no: ) | |
a848cd7e SC |
22679 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22680 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22682 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22683 | ac_header_preproc=yes | |
a848cd7e | 22684 | ;; |
ac1cb8d3 | 22685 | no:yes:* ) |
a848cd7e SC |
22686 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22687 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22688 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22689 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22690 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22691 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22692 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22693 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22695 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22696 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22697 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22698 | ( |
22699 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22700 | ## ----------------------------------------- ## |
22701 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22702 | ## ----------------------------------------- ## | |
a848cd7e SC |
22703 | _ASBOX |
22704 | ) | | |
22705 | sed "s/^/$as_me: WARNING: /" >&2 | |
22706 | ;; | |
22707 | esac | |
22708 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22710 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22712 | else | |
ac1cb8d3 | 22713 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22714 | fi |
22715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22716 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22717 | ||
22718 | fi | |
22719 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22720 | cat >>confdefs.h <<_ACEOF | |
22721 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22722 | _ACEOF | |
22723 | ||
22724 | fi | |
22725 | ||
22726 | done | |
22727 | ||
22728 | ||
22729 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22730 | : | |
22731 | else | |
22732 | cat >>confdefs.h <<\_ACEOF | |
22733 | #define wxUSE_IOSTREAMH 1 | |
22734 | _ACEOF | |
22735 | ||
22736 | fi | |
22737 | ||
5d7b7554 VZ |
22738 | ac_ext=cc |
22739 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22740 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22741 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22742 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22743 | |
22744 | ||
22745 | ||
22746 | ||
22747 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22748 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22749 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22751 | else | |
22752 | ||
22753 | ||
22754 | ||
22755 | ac_ext=cc | |
22756 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22757 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22758 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22759 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22760 | ||
22761 | ||
22762 | cat >conftest.$ac_ext <<_ACEOF | |
22763 | /* confdefs.h. */ | |
22764 | _ACEOF | |
22765 | cat confdefs.h >>conftest.$ac_ext | |
22766 | cat >>conftest.$ac_ext <<_ACEOF | |
22767 | /* end confdefs.h. */ | |
22768 | ||
22769 | ||
22770 | int | |
22771 | main () | |
22772 | { | |
22773 | ||
22774 | bool b = true; | |
22775 | ||
22776 | return 0; | |
22777 | ||
22778 | ; | |
22779 | return 0; | |
22780 | } | |
22781 | _ACEOF | |
22782 | rm -f conftest.$ac_objext | |
22783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22785 | ac_status=$? |
ac1cb8d3 VS |
22786 | grep -v '^ *+' conftest.er1 >conftest.err |
22787 | rm -f conftest.er1 | |
22788 | cat conftest.err >&5 | |
a848cd7e SC |
22789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22790 | (exit $ac_status); } && | |
c9a66001 | 22791 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22793 | (eval $ac_try) 2>&5 | |
22794 | ac_status=$? | |
22795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22796 | (exit $ac_status); }; } && | |
22797 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22799 | (eval $ac_try) 2>&5 | |
22800 | ac_status=$? | |
22801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22802 | (exit $ac_status); }; }; then | |
22803 | ||
22804 | wx_cv_cpp_bool=yes | |
22805 | ||
22806 | else | |
22807 | echo "$as_me: failed program was:" >&5 | |
22808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22809 | ||
22810 | ||
22811 | wx_cv_cpp_bool=no | |
22812 | ||
22813 | ||
22814 | fi | |
ac1cb8d3 | 22815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22816 | |
5d7b7554 VZ |
22817 | ac_ext=cc |
22818 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22819 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22820 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22821 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22822 | |
22823 | ||
22824 | fi | |
22825 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22826 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22827 | ||
22828 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22829 | cat >>confdefs.h <<\_ACEOF | |
22830 | #define HAVE_BOOL 1 | |
22831 | _ACEOF | |
22832 | ||
22833 | fi | |
22834 | ||
22835 | ||
22836 | ||
22837 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22838 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22839 | if test "${wx_cv_explicit+set}" = set; then | |
22840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22841 | else | |
22842 | ||
22843 | ||
22844 | ||
22845 | ac_ext=cc | |
22846 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22847 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22848 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22849 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22850 | ||
22851 | ||
22852 | cat >conftest.$ac_ext <<_ACEOF | |
22853 | /* confdefs.h. */ | |
22854 | _ACEOF | |
22855 | cat confdefs.h >>conftest.$ac_ext | |
22856 | cat >>conftest.$ac_ext <<_ACEOF | |
22857 | /* end confdefs.h. */ | |
22858 | ||
22859 | class Foo { public: explicit Foo(int) {} }; | |
22860 | ||
22861 | int | |
22862 | main () | |
22863 | { | |
22864 | ||
22865 | return 0; | |
22866 | ||
22867 | ; | |
22868 | return 0; | |
22869 | } | |
22870 | _ACEOF | |
22871 | rm -f conftest.$ac_objext | |
22872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22873 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22874 | ac_status=$? |
ac1cb8d3 VS |
22875 | grep -v '^ *+' conftest.er1 >conftest.err |
22876 | rm -f conftest.er1 | |
22877 | cat conftest.err >&5 | |
a848cd7e SC |
22878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22879 | (exit $ac_status); } && | |
c9a66001 | 22880 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22882 | (eval $ac_try) 2>&5 | |
22883 | ac_status=$? | |
22884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22885 | (exit $ac_status); }; } && | |
22886 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22888 | (eval $ac_try) 2>&5 | |
22889 | ac_status=$? | |
22890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22891 | (exit $ac_status); }; }; then | |
22892 | ||
22893 | cat >conftest.$ac_ext <<_ACEOF | |
22894 | /* confdefs.h. */ | |
22895 | _ACEOF | |
22896 | cat confdefs.h >>conftest.$ac_ext | |
22897 | cat >>conftest.$ac_ext <<_ACEOF | |
22898 | /* end confdefs.h. */ | |
22899 | ||
22900 | class Foo { public: explicit Foo(int) {} }; | |
22901 | static void TakeFoo(const Foo& foo) { } | |
22902 | ||
22903 | int | |
22904 | main () | |
22905 | { | |
22906 | ||
22907 | TakeFoo(17); | |
22908 | return 0; | |
22909 | ||
22910 | ; | |
22911 | return 0; | |
22912 | } | |
22913 | _ACEOF | |
22914 | rm -f conftest.$ac_objext | |
22915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22916 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22917 | ac_status=$? |
ac1cb8d3 VS |
22918 | grep -v '^ *+' conftest.er1 >conftest.err |
22919 | rm -f conftest.er1 | |
22920 | cat conftest.err >&5 | |
a848cd7e SC |
22921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22922 | (exit $ac_status); } && | |
c9a66001 | 22923 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22925 | (eval $ac_try) 2>&5 | |
22926 | ac_status=$? | |
22927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22928 | (exit $ac_status); }; } && | |
22929 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22931 | (eval $ac_try) 2>&5 | |
22932 | ac_status=$? | |
22933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22934 | (exit $ac_status); }; }; then | |
22935 | wx_cv_explicit=no | |
22936 | else | |
22937 | echo "$as_me: failed program was:" >&5 | |
22938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22939 | ||
22940 | wx_cv_explicit=yes | |
22941 | ||
22942 | fi | |
ac1cb8d3 | 22943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22944 | |
22945 | else | |
22946 | echo "$as_me: failed program was:" >&5 | |
22947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22948 | ||
22949 | wx_cv_explicit=no | |
22950 | ||
22951 | fi | |
ac1cb8d3 | 22952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22953 | |
5d7b7554 VZ |
22954 | ac_ext=cc |
22955 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22956 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22957 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22958 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22959 | |
22960 | ||
22961 | fi | |
22962 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22963 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22964 | ||
22965 | if test "$wx_cv_explicit" = "yes"; then | |
22966 | cat >>confdefs.h <<\_ACEOF | |
22967 | #define HAVE_EXPLICIT 1 | |
22968 | _ACEOF | |
22969 | ||
22970 | fi | |
22971 | ||
22972 | ||
22973 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22974 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22975 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22977 | else | |
22978 | ||
22979 | ||
22980 | ac_ext=cc | |
22981 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22982 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22983 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22984 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22985 | ||
22986 | cat >conftest.$ac_ext <<_ACEOF | |
22987 | /* confdefs.h. */ | |
22988 | _ACEOF | |
22989 | cat confdefs.h >>conftest.$ac_ext | |
22990 | cat >>conftest.$ac_ext <<_ACEOF | |
22991 | /* end confdefs.h. */ | |
22992 | ||
22993 | int | |
22994 | main () | |
22995 | { | |
22996 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22997 | ; | |
22998 | return 0; | |
22999 | } | |
23000 | _ACEOF | |
23001 | rm -f conftest.$ac_objext | |
23002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23004 | ac_status=$? |
ac1cb8d3 VS |
23005 | grep -v '^ *+' conftest.er1 >conftest.err |
23006 | rm -f conftest.er1 | |
23007 | cat conftest.err >&5 | |
a848cd7e SC |
23008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23009 | (exit $ac_status); } && | |
c9a66001 | 23010 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23012 | (eval $ac_try) 2>&5 | |
23013 | ac_status=$? | |
23014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23015 | (exit $ac_status); }; } && | |
23016 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23018 | (eval $ac_try) 2>&5 | |
23019 | ac_status=$? | |
23020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23021 | (exit $ac_status); }; }; then | |
23022 | ac_cv_cxx_const_cast=yes | |
23023 | else | |
23024 | echo "$as_me: failed program was:" >&5 | |
23025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23026 | ||
23027 | ac_cv_cxx_const_cast=no | |
23028 | fi | |
ac1cb8d3 | 23029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23030 | ac_ext=cc |
23031 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23032 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23033 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23034 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23035 | |
23036 | ||
23037 | fi | |
23038 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
23039 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
23040 | if test "$ac_cv_cxx_const_cast" = yes; then | |
23041 | ||
23042 | cat >>confdefs.h <<\_ACEOF | |
23043 | #define HAVE_CONST_CAST | |
23044 | _ACEOF | |
23045 | ||
23046 | fi | |
23047 | ||
7714864e RL |
23048 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
23049 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
23050 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
23051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23052 | else | |
23053 | ||
23054 | ||
23055 | ac_ext=cc | |
23056 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23057 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23058 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23059 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23060 | ||
23061 | cat >conftest.$ac_ext <<_ACEOF | |
23062 | /* confdefs.h. */ | |
23063 | _ACEOF | |
23064 | cat confdefs.h >>conftest.$ac_ext | |
23065 | cat >>conftest.$ac_ext <<_ACEOF | |
23066 | /* end confdefs.h. */ | |
23067 | #include <typeinfo> | |
23068 | class Base { public : Base () {} virtual void f () = 0;}; | |
23069 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23070 | class Unrelated { public : Unrelated () {} }; | |
23071 | int g (Unrelated&) { return 0; } | |
23072 | int | |
23073 | main () | |
23074 | { | |
23075 | ||
23076 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
23077 | ; | |
23078 | return 0; | |
23079 | } | |
23080 | _ACEOF | |
23081 | rm -f conftest.$ac_objext | |
23082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23083 | (eval $ac_compile) 2>conftest.er1 | |
23084 | ac_status=$? | |
23085 | grep -v '^ *+' conftest.er1 >conftest.err | |
23086 | rm -f conftest.er1 | |
23087 | cat conftest.err >&5 | |
23088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23089 | (exit $ac_status); } && | |
c9a66001 | 23090 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
23091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23092 | (eval $ac_try) 2>&5 | |
23093 | ac_status=$? | |
23094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23095 | (exit $ac_status); }; } && | |
23096 | { ac_try='test -s conftest.$ac_objext' | |
23097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23098 | (eval $ac_try) 2>&5 | |
23099 | ac_status=$? | |
23100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23101 | (exit $ac_status); }; }; then | |
23102 | ac_cv_cxx_reinterpret_cast=yes | |
23103 | else | |
23104 | echo "$as_me: failed program was:" >&5 | |
23105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23106 | ||
23107 | ac_cv_cxx_reinterpret_cast=no | |
23108 | fi | |
23109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
23110 | ac_ext=cc |
23111 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23112 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23113 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23114 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7714864e RL |
23115 | |
23116 | ||
23117 | fi | |
23118 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
23119 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
23120 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
23121 | ||
23122 | cat >>confdefs.h <<\_ACEOF | |
23123 | #define HAVE_REINTERPRET_CAST | |
23124 | _ACEOF | |
23125 | ||
23126 | fi | |
23127 | ||
a848cd7e SC |
23128 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
23129 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
23130 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
23131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23132 | else | |
23133 | ||
23134 | ||
23135 | ac_ext=cc | |
23136 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23137 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23138 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23139 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23140 | ||
23141 | cat >conftest.$ac_ext <<_ACEOF | |
23142 | /* confdefs.h. */ | |
23143 | _ACEOF | |
23144 | cat confdefs.h >>conftest.$ac_ext | |
23145 | cat >>conftest.$ac_ext <<_ACEOF | |
23146 | /* end confdefs.h. */ | |
23147 | #include <typeinfo> | |
23148 | class Base { public : Base () {} virtual void f () = 0; }; | |
23149 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23150 | int g (Derived&) { return 0; } | |
23151 | int | |
23152 | main () | |
23153 | { | |
23154 | ||
23155 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
23156 | ; | |
23157 | return 0; | |
23158 | } | |
23159 | _ACEOF | |
23160 | rm -f conftest.$ac_objext | |
23161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23163 | ac_status=$? |
ac1cb8d3 VS |
23164 | grep -v '^ *+' conftest.er1 >conftest.err |
23165 | rm -f conftest.er1 | |
23166 | cat conftest.err >&5 | |
a848cd7e SC |
23167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23168 | (exit $ac_status); } && | |
c9a66001 | 23169 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23171 | (eval $ac_try) 2>&5 | |
23172 | ac_status=$? | |
23173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23174 | (exit $ac_status); }; } && | |
23175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23177 | (eval $ac_try) 2>&5 | |
23178 | ac_status=$? | |
23179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23180 | (exit $ac_status); }; }; then | |
23181 | ac_cv_cxx_static_cast=yes | |
23182 | else | |
23183 | echo "$as_me: failed program was:" >&5 | |
23184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23185 | ||
23186 | ac_cv_cxx_static_cast=no | |
23187 | fi | |
ac1cb8d3 | 23188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23189 | ac_ext=cc |
23190 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23191 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23192 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23193 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23194 | |
23195 | ||
23196 | fi | |
23197 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
23198 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
23199 | if test "$ac_cv_cxx_static_cast" = yes; then | |
23200 | ||
23201 | cat >>confdefs.h <<\_ACEOF | |
23202 | #define HAVE_STATIC_CAST | |
23203 | _ACEOF | |
23204 | ||
23205 | fi | |
23206 | ||
23207 | ||
3c28b7cb | 23208 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 23209 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
23210 | fi |
23211 | ||
9122d155 | 23212 | if test "x$SUNCC" = xyes; then |
c92ad099 | 23213 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
23214 | fi |
23215 | ||
0ad5d837 | 23216 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 23217 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
23218 | fi |
23219 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 23220 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
23221 | fi |
23222 | ||
2eef8513 | 23223 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 23224 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
23225 | fi |
23226 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 23227 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
23228 | fi |
23229 | ||
23230 | if test "x$COMPAQCXX" = "xyes"; then | |
23231 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
23232 | fi | |
23233 | ||
f56c22b4 | 23234 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
23235 | if test "$wxUSE_UNICODE" = "yes"; then |
23236 | std_string="std::wstring" | |
23237 | char_type="wchar_t" | |
23238 | else | |
23239 | std_string="std::string" | |
23240 | char_type="char" | |
23241 | fi | |
23242 | ||
23243 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
23244 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
23245 | cat >conftest.$ac_ext <<_ACEOF |
23246 | /* confdefs.h. */ | |
23247 | _ACEOF | |
23248 | cat confdefs.h >>conftest.$ac_ext | |
23249 | cat >>conftest.$ac_ext <<_ACEOF | |
23250 | /* end confdefs.h. */ | |
23251 | #include <string> | |
a848cd7e SC |
23252 | int |
23253 | main () | |
23254 | { | |
f56c22b4 | 23255 | $std_string foo; |
a848cd7e SC |
23256 | ; |
23257 | return 0; | |
23258 | } | |
23259 | _ACEOF | |
23260 | rm -f conftest.$ac_objext | |
23261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23262 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23263 | ac_status=$? |
ac1cb8d3 VS |
23264 | grep -v '^ *+' conftest.er1 >conftest.err |
23265 | rm -f conftest.er1 | |
23266 | cat conftest.err >&5 | |
a848cd7e SC |
23267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23268 | (exit $ac_status); } && | |
c9a66001 | 23269 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23271 | (eval $ac_try) 2>&5 | |
23272 | ac_status=$? | |
23273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23274 | (exit $ac_status); }; } && | |
23275 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23277 | (eval $ac_try) 2>&5 | |
23278 | ac_status=$? | |
23279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23280 | (exit $ac_status); }; }; then | |
23281 | echo "$as_me:$LINENO: result: yes" >&5 | |
23282 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
23283 | cat >>confdefs.h <<\_ACEOF |
23284 | #define HAVE_STD_WSTRING 1 | |
23285 | _ACEOF | |
23286 | ||
a848cd7e SC |
23287 | else |
23288 | echo "$as_me: failed program was:" >&5 | |
23289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23290 | ||
23291 | echo "$as_me:$LINENO: result: no" >&5 | |
23292 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
23293 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
23294 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
23295 | cat >conftest.$ac_ext <<_ACEOF |
23296 | /* confdefs.h. */ | |
23297 | _ACEOF | |
23298 | cat confdefs.h >>conftest.$ac_ext | |
23299 | cat >>conftest.$ac_ext <<_ACEOF | |
23300 | /* end confdefs.h. */ | |
23301 | ||
23302 | #ifdef HAVE_WCHAR_H | |
23303 | # ifdef __CYGWIN__ | |
23304 | # include <stddef.h> | |
23305 | # endif | |
23306 | # include <wchar.h> | |
23307 | #endif | |
23308 | #ifdef HAVE_STDLIB_H | |
23309 | # include <stdlib.h> | |
23310 | #endif | |
23311 | #include <stdio.h> | |
23312 | #include <string> | |
23313 | ||
23314 | int | |
23315 | main () | |
23316 | { | |
f56c22b4 MW |
23317 | std::basic_string<$char_type> foo; |
23318 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
23319 | ; |
23320 | return 0; | |
23321 | } | |
23322 | _ACEOF | |
23323 | rm -f conftest.$ac_objext | |
23324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23325 | (eval $ac_compile) 2>conftest.er1 | |
23326 | ac_status=$? | |
23327 | grep -v '^ *+' conftest.er1 >conftest.err | |
23328 | rm -f conftest.er1 | |
23329 | cat conftest.err >&5 | |
23330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23331 | (exit $ac_status); } && | |
c9a66001 | 23332 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
23333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23334 | (eval $ac_try) 2>&5 | |
23335 | ac_status=$? | |
23336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23337 | (exit $ac_status); }; } && | |
23338 | { ac_try='test -s conftest.$ac_objext' | |
23339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23340 | (eval $ac_try) 2>&5 | |
23341 | ac_status=$? | |
23342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23343 | (exit $ac_status); }; }; then | |
23344 | echo "$as_me:$LINENO: result: yes" >&5 | |
23345 | echo "${ECHO_T}yes" >&6 | |
23346 | else | |
23347 | echo "$as_me: failed program was:" >&5 | |
23348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23349 | ||
23350 | echo "$as_me:$LINENO: result: no" >&5 | |
23351 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 23352 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
23353 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
23354 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
23355 | { (exit 1); exit 1; }; } | |
23356 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
23357 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
23358 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 23359 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
23360 | else |
23361 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
23362 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
23363 | wxUSE_STD_STRING=no | |
23364 | fi | |
23365 | ||
0a08f02a | 23366 | |
a848cd7e | 23367 | fi |
ac1cb8d3 | 23368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23369 | |
0a08f02a MB |
23370 | fi |
23371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 MW |
23372 | fi |
23373 | ||
23374 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
f56c22b4 MW |
23375 | echo "$as_me:$LINENO: checking for std::istream" >&5 |
23376 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
23377 | if test "${ac_cv_type_std__istream+set}" = set; then | |
23378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23379 | else | |
23380 | cat >conftest.$ac_ext <<_ACEOF | |
23381 | /* confdefs.h. */ | |
23382 | _ACEOF | |
23383 | cat confdefs.h >>conftest.$ac_ext | |
23384 | cat >>conftest.$ac_ext <<_ACEOF | |
23385 | /* end confdefs.h. */ | |
23386 | #include <iostream> | |
23387 | ||
23388 | int | |
23389 | main () | |
23390 | { | |
23391 | if ((std::istream *) 0) | |
23392 | return 0; | |
23393 | if (sizeof (std::istream)) | |
23394 | return 0; | |
23395 | ; | |
23396 | return 0; | |
23397 | } | |
23398 | _ACEOF | |
23399 | rm -f conftest.$ac_objext | |
23400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23401 | (eval $ac_compile) 2>conftest.er1 | |
23402 | ac_status=$? | |
23403 | grep -v '^ *+' conftest.er1 >conftest.err | |
23404 | rm -f conftest.er1 | |
23405 | cat conftest.err >&5 | |
23406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23407 | (exit $ac_status); } && | |
c9a66001 | 23408 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
23409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23410 | (eval $ac_try) 2>&5 | |
23411 | ac_status=$? | |
23412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23413 | (exit $ac_status); }; } && | |
23414 | { ac_try='test -s conftest.$ac_objext' | |
23415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23416 | (eval $ac_try) 2>&5 | |
23417 | ac_status=$? | |
23418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23419 | (exit $ac_status); }; }; then | |
23420 | ac_cv_type_std__istream=yes | |
23421 | else | |
23422 | echo "$as_me: failed program was:" >&5 | |
23423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23424 | ||
23425 | ac_cv_type_std__istream=no | |
23426 | fi | |
23427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23428 | fi | |
23429 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
23430 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
23431 | if test $ac_cv_type_std__istream = yes; then | |
23432 | ||
23433 | cat >>confdefs.h <<_ACEOF | |
23434 | #define HAVE_STD__ISTREAM 1 | |
23435 | _ACEOF | |
23436 | ||
23437 | ||
23438 | else | |
23439 | wxUSE_STD_IOSTREAM=no | |
23440 | fi | |
23441 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
23442 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
23443 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
23444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23445 | else | |
23446 | cat >conftest.$ac_ext <<_ACEOF | |
23447 | /* confdefs.h. */ | |
23448 | _ACEOF | |
23449 | cat confdefs.h >>conftest.$ac_ext | |
23450 | cat >>conftest.$ac_ext <<_ACEOF | |
23451 | /* end confdefs.h. */ | |
23452 | #include <iostream> | |
23453 | ||
23454 | int | |
23455 | main () | |
23456 | { | |
23457 | if ((std::ostream *) 0) | |
23458 | return 0; | |
23459 | if (sizeof (std::ostream)) | |
23460 | return 0; | |
23461 | ; | |
23462 | return 0; | |
23463 | } | |
23464 | _ACEOF | |
23465 | rm -f conftest.$ac_objext | |
23466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23467 | (eval $ac_compile) 2>conftest.er1 | |
23468 | ac_status=$? | |
23469 | grep -v '^ *+' conftest.er1 >conftest.err | |
23470 | rm -f conftest.er1 | |
23471 | cat conftest.err >&5 | |
23472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23473 | (exit $ac_status); } && | |
c9a66001 | 23474 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
23475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23476 | (eval $ac_try) 2>&5 | |
23477 | ac_status=$? | |
23478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23479 | (exit $ac_status); }; } && | |
23480 | { ac_try='test -s conftest.$ac_objext' | |
23481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23482 | (eval $ac_try) 2>&5 | |
23483 | ac_status=$? | |
23484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23485 | (exit $ac_status); }; }; then | |
23486 | ac_cv_type_std__ostream=yes | |
23487 | else | |
23488 | echo "$as_me: failed program was:" >&5 | |
23489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23490 | ||
23491 | ac_cv_type_std__ostream=no | |
23492 | fi | |
23493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23494 | fi | |
23495 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23496 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23497 | if test $ac_cv_type_std__ostream = yes; then | |
23498 | ||
23499 | cat >>confdefs.h <<_ACEOF | |
23500 | #define HAVE_STD__OSTREAM 1 | |
23501 | _ACEOF | |
23502 | ||
23503 | ||
23504 | else | |
23505 | wxUSE_STD_IOSTREAM=no | |
23506 | fi | |
23507 | ||
23508 | ||
23509 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23510 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23511 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23512 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23513 | { (exit 1); exit 1; }; } | |
23514 | else | |
23515 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23516 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23517 | fi |
f56c22b4 | 23518 | fi |
0a08f02a MB |
23519 | fi |
23520 | ||
23521 | if test "$wxUSE_STL" = "yes"; then | |
0a08f02a MB |
23522 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
23523 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23524 | cat >conftest.$ac_ext <<_ACEOF |
23525 | /* confdefs.h. */ | |
23526 | _ACEOF | |
23527 | cat confdefs.h >>conftest.$ac_ext | |
23528 | cat >>conftest.$ac_ext <<_ACEOF | |
23529 | /* end confdefs.h. */ | |
23530 | #include <string> | |
0a08f02a MB |
23531 | #include <functional> |
23532 | #include <algorithm> | |
23533 | #include <vector> | |
23534 | #include <list> | |
a848cd7e SC |
23535 | int |
23536 | main () | |
23537 | { | |
0a08f02a MB |
23538 | std::vector<int> moo; |
23539 | std::list<int> foo; | |
23540 | std::vector<int>::iterator it = | |
23541 | std::find_if(moo.begin(), moo.end(), | |
23542 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23543 | ; |
23544 | return 0; | |
23545 | } | |
23546 | _ACEOF | |
23547 | rm -f conftest.$ac_objext | |
23548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23549 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23550 | ac_status=$? |
ac1cb8d3 VS |
23551 | grep -v '^ *+' conftest.er1 >conftest.err |
23552 | rm -f conftest.er1 | |
23553 | cat conftest.err >&5 | |
a848cd7e SC |
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23555 | (exit $ac_status); } && | |
c9a66001 | 23556 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23558 | (eval $ac_try) 2>&5 | |
23559 | ac_status=$? | |
23560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23561 | (exit $ac_status); }; } && | |
23562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23564 | (eval $ac_try) 2>&5 | |
23565 | ac_status=$? | |
23566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23567 | (exit $ac_status); }; }; then | |
23568 | echo "$as_me:$LINENO: result: yes" >&5 | |
23569 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23570 | else |
23571 | echo "$as_me: failed program was:" >&5 | |
23572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23573 | ||
23574 | echo "$as_me:$LINENO: result: no" >&5 | |
23575 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23576 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23577 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23578 | { (exit 1); exit 1; }; } | |
a848cd7e | 23579 | fi |
ac1cb8d3 | 23580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23581 | |
23582 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23583 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23584 | cat >conftest.$ac_ext <<_ACEOF | |
23585 | /* confdefs.h. */ | |
23586 | _ACEOF | |
23587 | cat confdefs.h >>conftest.$ac_ext | |
23588 | cat >>conftest.$ac_ext <<_ACEOF | |
23589 | /* end confdefs.h. */ | |
23590 | #include <string> | |
23591 | int | |
23592 | main () | |
23593 | { | |
23594 | std::string foo, bar; | |
23595 | foo.compare(bar); | |
23596 | foo.compare(1, 1, bar); | |
23597 | foo.compare(1, 1, bar, 1, 1); | |
23598 | foo.compare(""); | |
23599 | foo.compare(1, 1, ""); | |
23600 | foo.compare(1, 1, "", 2); | |
23601 | ; | |
23602 | return 0; | |
23603 | } | |
23604 | _ACEOF | |
23605 | rm -f conftest.$ac_objext | |
23606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23607 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23608 | ac_status=$? |
ac1cb8d3 VS |
23609 | grep -v '^ *+' conftest.er1 >conftest.err |
23610 | rm -f conftest.er1 | |
23611 | cat conftest.err >&5 | |
a848cd7e SC |
23612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23613 | (exit $ac_status); } && | |
c9a66001 | 23614 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23616 | (eval $ac_try) 2>&5 | |
23617 | ac_status=$? | |
23618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23619 | (exit $ac_status); }; } && | |
23620 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23622 | (eval $ac_try) 2>&5 | |
23623 | ac_status=$? | |
23624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23625 | (exit $ac_status); }; }; then | |
23626 | echo "$as_me:$LINENO: result: yes" >&5 | |
23627 | echo "${ECHO_T}yes" >&6 | |
23628 | cat >>confdefs.h <<\_ACEOF | |
23629 | #define HAVE_STD_STRING_COMPARE 1 | |
23630 | _ACEOF | |
23631 | ||
23632 | else | |
23633 | echo "$as_me: failed program was:" >&5 | |
23634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23635 | ||
23636 | echo "$as_me:$LINENO: result: no" >&5 | |
23637 | echo "${ECHO_T}no" >&6 | |
23638 | fi | |
ac1cb8d3 | 23639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23640 | |
23641 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23642 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23643 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23644 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23646 | fi | |
23647 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23648 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23649 | else | |
23650 | # Is the header compilable? | |
23651 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23652 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23653 | cat >conftest.$ac_ext <<_ACEOF | |
23654 | /* confdefs.h. */ | |
23655 | _ACEOF | |
23656 | cat confdefs.h >>conftest.$ac_ext | |
23657 | cat >>conftest.$ac_ext <<_ACEOF | |
23658 | /* end confdefs.h. */ | |
23659 | $ac_includes_default | |
23660 | #include <hash_map> | |
23661 | _ACEOF | |
23662 | rm -f conftest.$ac_objext | |
23663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23664 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23665 | ac_status=$? |
ac1cb8d3 VS |
23666 | grep -v '^ *+' conftest.er1 >conftest.err |
23667 | rm -f conftest.er1 | |
23668 | cat conftest.err >&5 | |
bdcade0a MB |
23669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23670 | (exit $ac_status); } && | |
c9a66001 | 23671 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23673 | (eval $ac_try) 2>&5 | |
23674 | ac_status=$? | |
23675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23676 | (exit $ac_status); }; } && | |
23677 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23679 | (eval $ac_try) 2>&5 | |
23680 | ac_status=$? | |
23681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23682 | (exit $ac_status); }; }; then | |
23683 | ac_header_compiler=yes | |
23684 | else | |
23685 | echo "$as_me: failed program was:" >&5 | |
23686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23687 | ||
23688 | ac_header_compiler=no | |
23689 | fi | |
ac1cb8d3 | 23690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23691 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23692 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23693 | ||
23694 | # Is the header present? | |
23695 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23696 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23697 | cat >conftest.$ac_ext <<_ACEOF | |
23698 | /* confdefs.h. */ | |
23699 | _ACEOF | |
23700 | cat confdefs.h >>conftest.$ac_ext | |
23701 | cat >>conftest.$ac_ext <<_ACEOF | |
23702 | /* end confdefs.h. */ | |
23703 | #include <hash_map> | |
23704 | _ACEOF | |
23705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23707 | ac_status=$? | |
23708 | grep -v '^ *+' conftest.er1 >conftest.err | |
23709 | rm -f conftest.er1 | |
23710 | cat conftest.err >&5 | |
23711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23712 | (exit $ac_status); } >/dev/null; then | |
23713 | if test -s conftest.err; then | |
23714 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23715 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23716 | else |
23717 | ac_cpp_err= | |
23718 | fi | |
23719 | else | |
23720 | ac_cpp_err=yes | |
23721 | fi | |
23722 | if test -z "$ac_cpp_err"; then | |
23723 | ac_header_preproc=yes | |
23724 | else | |
23725 | echo "$as_me: failed program was:" >&5 | |
23726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23727 | ||
23728 | ac_header_preproc=no | |
23729 | fi | |
23730 | rm -f conftest.err conftest.$ac_ext | |
23731 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23732 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23733 | ||
23734 | # So? What about this header? | |
ac1cb8d3 VS |
23735 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23736 | yes:no: ) | |
bdcade0a MB |
23737 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23738 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23739 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23740 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23741 | ac_header_preproc=yes | |
bdcade0a | 23742 | ;; |
ac1cb8d3 | 23743 | no:yes:* ) |
bdcade0a MB |
23744 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23745 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23746 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23747 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23748 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23749 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23750 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23751 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23752 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23753 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23754 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23755 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23756 | ( |
23757 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23758 | ## ----------------------------------------- ## |
23759 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23760 | ## ----------------------------------------- ## | |
bdcade0a MB |
23761 | _ASBOX |
23762 | ) | | |
23763 | sed "s/^/$as_me: WARNING: /" >&2 | |
23764 | ;; | |
23765 | esac | |
23766 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23767 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23768 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23770 | else | |
23771 | ac_cv_header_hash_map=$ac_header_preproc | |
23772 | fi | |
23773 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23774 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23775 | ||
23776 | fi | |
23777 | if test $ac_cv_header_hash_map = yes; then | |
23778 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23779 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23780 | cat >conftest.$ac_ext <<_ACEOF | |
23781 | /* confdefs.h. */ | |
23782 | _ACEOF | |
23783 | cat confdefs.h >>conftest.$ac_ext | |
23784 | cat >>conftest.$ac_ext <<_ACEOF | |
23785 | /* end confdefs.h. */ | |
23786 | #include <hash_map> | |
23787 | #include <hash_set> | |
23788 | int | |
23789 | main () | |
23790 | { | |
23791 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23792 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23793 | ; | |
23794 | return 0; | |
23795 | } | |
23796 | _ACEOF | |
23797 | rm -f conftest.$ac_objext | |
23798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23799 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23800 | ac_status=$? |
ac1cb8d3 VS |
23801 | grep -v '^ *+' conftest.er1 >conftest.err |
23802 | rm -f conftest.er1 | |
23803 | cat conftest.err >&5 | |
bdcade0a MB |
23804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23805 | (exit $ac_status); } && | |
c9a66001 | 23806 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23808 | (eval $ac_try) 2>&5 | |
23809 | ac_status=$? | |
23810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23811 | (exit $ac_status); }; } && | |
23812 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23814 | (eval $ac_try) 2>&5 | |
23815 | ac_status=$? | |
23816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23817 | (exit $ac_status); }; }; then | |
23818 | echo "$as_me:$LINENO: result: yes" >&5 | |
23819 | echo "${ECHO_T}yes" >&6 | |
23820 | cat >>confdefs.h <<\_ACEOF | |
23821 | #define HAVE_HASH_MAP 1 | |
23822 | _ACEOF | |
23823 | ||
23824 | cat >>confdefs.h <<\_ACEOF | |
23825 | #define HAVE_STD_HASH_MAP 1 | |
23826 | _ACEOF | |
23827 | ||
23828 | else | |
23829 | echo "$as_me: failed program was:" >&5 | |
23830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23831 | ||
23832 | echo "$as_me:$LINENO: result: no" >&5 | |
23833 | echo "${ECHO_T}no" >&6 | |
23834 | fi | |
ac1cb8d3 | 23835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23836 | |
23837 | fi | |
23838 | ||
23839 | ||
23840 | ||
23841 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23842 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23843 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23844 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23846 | fi | |
23847 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23848 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23849 | else | |
23850 | # Is the header compilable? | |
23851 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23852 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23853 | cat >conftest.$ac_ext <<_ACEOF | |
23854 | /* confdefs.h. */ | |
23855 | _ACEOF | |
23856 | cat confdefs.h >>conftest.$ac_ext | |
23857 | cat >>conftest.$ac_ext <<_ACEOF | |
23858 | /* end confdefs.h. */ | |
23859 | $ac_includes_default | |
23860 | #include <ext/hash_map> | |
23861 | _ACEOF | |
23862 | rm -f conftest.$ac_objext | |
23863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23864 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23865 | ac_status=$? |
ac1cb8d3 VS |
23866 | grep -v '^ *+' conftest.er1 >conftest.err |
23867 | rm -f conftest.er1 | |
23868 | cat conftest.err >&5 | |
bdcade0a MB |
23869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23870 | (exit $ac_status); } && | |
c9a66001 | 23871 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23873 | (eval $ac_try) 2>&5 | |
23874 | ac_status=$? | |
23875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23876 | (exit $ac_status); }; } && | |
23877 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23879 | (eval $ac_try) 2>&5 | |
23880 | ac_status=$? | |
23881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23882 | (exit $ac_status); }; }; then | |
23883 | ac_header_compiler=yes | |
23884 | else | |
23885 | echo "$as_me: failed program was:" >&5 | |
23886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23887 | ||
23888 | ac_header_compiler=no | |
23889 | fi | |
ac1cb8d3 | 23890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23891 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23892 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23893 | ||
23894 | # Is the header present? | |
23895 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23896 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23897 | cat >conftest.$ac_ext <<_ACEOF | |
23898 | /* confdefs.h. */ | |
23899 | _ACEOF | |
23900 | cat confdefs.h >>conftest.$ac_ext | |
23901 | cat >>conftest.$ac_ext <<_ACEOF | |
23902 | /* end confdefs.h. */ | |
23903 | #include <ext/hash_map> | |
23904 | _ACEOF | |
23905 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23907 | ac_status=$? | |
23908 | grep -v '^ *+' conftest.er1 >conftest.err | |
23909 | rm -f conftest.er1 | |
23910 | cat conftest.err >&5 | |
23911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23912 | (exit $ac_status); } >/dev/null; then | |
23913 | if test -s conftest.err; then | |
23914 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23915 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23916 | else |
23917 | ac_cpp_err= | |
23918 | fi | |
23919 | else | |
23920 | ac_cpp_err=yes | |
23921 | fi | |
23922 | if test -z "$ac_cpp_err"; then | |
23923 | ac_header_preproc=yes | |
23924 | else | |
23925 | echo "$as_me: failed program was:" >&5 | |
23926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23927 | ||
23928 | ac_header_preproc=no | |
23929 | fi | |
23930 | rm -f conftest.err conftest.$ac_ext | |
23931 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23932 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23933 | ||
23934 | # So? What about this header? | |
ac1cb8d3 VS |
23935 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23936 | yes:no: ) | |
bdcade0a MB |
23937 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23938 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23939 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23940 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23941 | ac_header_preproc=yes | |
bdcade0a | 23942 | ;; |
ac1cb8d3 | 23943 | no:yes:* ) |
bdcade0a MB |
23944 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23945 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23946 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23947 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23948 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23949 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23950 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23951 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23952 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23953 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23954 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23955 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23956 | ( |
23957 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23958 | ## ----------------------------------------- ## |
23959 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23960 | ## ----------------------------------------- ## | |
bdcade0a MB |
23961 | _ASBOX |
23962 | ) | | |
23963 | sed "s/^/$as_me: WARNING: /" >&2 | |
23964 | ;; | |
23965 | esac | |
23966 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23967 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23968 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23970 | else | |
23971 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23972 | fi | |
23973 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23974 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23975 | ||
23976 | fi | |
23977 | if test $ac_cv_header_ext_hash_map = yes; then | |
23978 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23979 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23980 | cat >conftest.$ac_ext <<_ACEOF | |
23981 | /* confdefs.h. */ | |
23982 | _ACEOF | |
23983 | cat confdefs.h >>conftest.$ac_ext | |
23984 | cat >>conftest.$ac_ext <<_ACEOF | |
23985 | /* end confdefs.h. */ | |
23986 | #include <ext/hash_map> | |
23987 | #include <ext/hash_set> | |
23988 | int | |
23989 | main () | |
23990 | { | |
23991 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23992 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23993 | ; | |
23994 | return 0; | |
23995 | } | |
23996 | _ACEOF | |
23997 | rm -f conftest.$ac_objext | |
23998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23999 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24000 | ac_status=$? |
ac1cb8d3 VS |
24001 | grep -v '^ *+' conftest.er1 >conftest.err |
24002 | rm -f conftest.er1 | |
24003 | cat conftest.err >&5 | |
bdcade0a MB |
24004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24005 | (exit $ac_status); } && | |
c9a66001 | 24006 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24008 | (eval $ac_try) 2>&5 | |
24009 | ac_status=$? | |
24010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24011 | (exit $ac_status); }; } && | |
24012 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24014 | (eval $ac_try) 2>&5 | |
24015 | ac_status=$? | |
24016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24017 | (exit $ac_status); }; }; then | |
24018 | echo "$as_me:$LINENO: result: yes" >&5 | |
24019 | echo "${ECHO_T}yes" >&6 | |
24020 | cat >>confdefs.h <<\_ACEOF | |
24021 | #define HAVE_EXT_HASH_MAP 1 | |
24022 | _ACEOF | |
24023 | ||
24024 | cat >>confdefs.h <<\_ACEOF | |
24025 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
24026 | _ACEOF | |
24027 | ||
24028 | else | |
24029 | echo "$as_me: failed program was:" >&5 | |
24030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24031 | ||
24032 | echo "$as_me:$LINENO: result: no" >&5 | |
24033 | echo "${ECHO_T}no" >&6 | |
24034 | fi | |
ac1cb8d3 | 24035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24036 | |
24037 | fi | |
24038 | ||
24039 | ||
a848cd7e SC |
24040 | fi |
24041 | ||
24042 | ||
24043 | SEARCH_INCLUDE="\ | |
24044 | /usr/local/include \ | |
24045 | \ | |
24046 | /usr/Motif-2.1/include \ | |
24047 | /usr/Motif-1.2/include \ | |
24048 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
24049 | \ |
24050 | /usr/dt/include \ | |
24051 | /usr/openwin/include \ | |
24052 | \ | |
24053 | /usr/include/Xm \ | |
24054 | \ | |
24055 | /usr/X11R6/include \ | |
24056 | /usr/X11R6.4/include \ | |
24057 | /usr/X11R5/include \ | |
24058 | /usr/X11R4/include \ | |
24059 | \ | |
24060 | /usr/include/X11R6 \ | |
24061 | /usr/include/X11R5 \ | |
24062 | /usr/include/X11R4 \ | |
24063 | \ | |
24064 | /usr/local/X11R6/include \ | |
24065 | /usr/local/X11R5/include \ | |
24066 | /usr/local/X11R4/include \ | |
24067 | \ | |
24068 | /usr/local/include/X11R6 \ | |
24069 | /usr/local/include/X11R5 \ | |
24070 | /usr/local/include/X11R4 \ | |
24071 | \ | |
24072 | /usr/X11/include \ | |
24073 | /usr/include/X11 \ | |
24074 | /usr/local/X11/include \ | |
24075 | /usr/local/include/X11 \ | |
24076 | \ | |
a848cd7e | 24077 | /usr/XFree86/include/X11 \ |
e051b34e MW |
24078 | /usr/pkg/include \ |
24079 | \ | |
a848cd7e SC |
24080 | /usr/openwin/share/include" |
24081 | ||
6f9cf1e6 | 24082 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 24083 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
24084 | |
24085 | case "${host}" in | |
24086 | *-*-irix6* ) | |
24087 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
24088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24089 | else | |
24090 | ||
c687b303 VZ |
24091 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
24092 | for e in a so sl dylib dll.a; do | |
24093 | libc="$d/libc.$e" | |
24094 | if test -f $libc; then | |
24095 | save_LIBS="$LIBS" | |
24096 | LIBS="$libc" | |
24097 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
24098 | int main() { return 0; } |
24099 | _ACEOF | |
24100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24102 | (eval $ac_link) 2>conftest.er1 | |
24103 | ac_status=$? | |
24104 | grep -v '^ *+' conftest.er1 >conftest.err | |
24105 | rm -f conftest.er1 | |
24106 | cat conftest.err >&5 | |
24107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24108 | (exit $ac_status); } && | |
c9a66001 | 24109 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
24110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24111 | (eval $ac_try) 2>&5 | |
24112 | ac_status=$? | |
24113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24114 | (exit $ac_status); }; } && | |
24115 | { ac_try='test -s conftest$ac_exeext' | |
24116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24117 | (eval $ac_try) 2>&5 | |
24118 | ac_status=$? | |
24119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24120 | (exit $ac_status); }; }; then | |
24121 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
24122 | else | |
24123 | echo "$as_me: failed program was:" >&5 | |
24124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24125 | ||
24126 | fi | |
24127 | rm -f conftest.err conftest.$ac_objext \ | |
24128 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
24129 | LIBS="$save_LIBS" |
24130 | if test "x$wx_cv_std_libpath" != "x"; then | |
24131 | break 2 | |
24132 | fi | |
24133 | fi | |
24134 | done | |
24135 | done | |
24136 | if test "x$wx_cv_std_libpath" = "x"; then | |
24137 | wx_cv_std_libpath="lib" | |
0ad5d837 | 24138 | fi |
0ad5d837 VZ |
24139 | |
24140 | ||
24141 | fi | |
6f9cf1e6 MW |
24142 | |
24143 | ;; | |
24144 | ||
24145 | *-*-solaris2* ) | |
24146 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
24147 | wx_cv_std_libpath="lib/64" | |
24148 | else | |
24149 | wx_cv_std_libpath="lib" | |
24150 | fi | |
24151 | ;; | |
24152 | ||
24153 | *-*-linux* ) | |
24154 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
24155 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
24156 | wx_cv_std_libpath="lib64" | |
24157 | else | |
24158 | wx_cv_std_libpath="lib" | |
24159 | fi | |
c687b303 VZ |
24160 | ;; |
24161 | ||
24162 | *) | |
24163 | wx_cv_std_libpath="lib"; | |
24164 | ;; | |
24165 | esac | |
0ad5d837 | 24166 | |
6f9cf1e6 MW |
24167 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
24168 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
24169 | ||
24170 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 24171 | |
3eca31dc MW |
24172 | if test "$build" != "$host" -a "$GCC" = yes; then |
24173 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
24174 | cross_root=`dirname $cross_root` | |
24175 | cross_root=`dirname $cross_root` | |
24176 | ||
24177 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
24178 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 24179 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
24180 | |
24181 | if test -z "$PKG_CONFIG_PATH"; then | |
24182 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
24183 | export PKG_CONFIG_PATH | |
24184 | fi | |
24185 | ||
24186 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
24187 | ||
24188 | ac_find_includes= | |
24189 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24190 | do | |
24191 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
24192 | ac_find_includes=$ac_dir | |
24193 | break | |
24194 | fi | |
24195 | done | |
24196 | ||
24197 | x_includes=$ac_find_includes | |
24198 | fi | |
24199 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
24200 | ||
0ad5d837 VZ |
24201 | ac_find_libraries= |
24202 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
24203 | do |
24204 | for ac_extension in a so sl dylib dll.a; do | |
24205 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
24206 | ac_find_libraries=$ac_dir | |
24207 | break 2 | |
24208 | fi | |
24209 | done | |
24210 | done | |
24211 | ||
24212 | x_libraries=$ac_find_libraries | |
24213 | fi | |
24214 | fi | |
24215 | fi | |
24216 | ||
a848cd7e SC |
24217 | |
24218 | cat >confcache <<\_ACEOF | |
24219 | # This file is a shell script that caches the results of configure | |
24220 | # tests run on this system so they can be shared between configure | |
24221 | # scripts and configure runs, see configure's option --config-cache. | |
24222 | # It is not useful on other systems. If it contains results you don't | |
24223 | # want to keep, you may remove or edit it. | |
24224 | # | |
24225 | # config.status only pays attention to the cache file if you give it | |
24226 | # the --recheck option to rerun configure. | |
24227 | # | |
24228 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24229 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24230 | # following values. | |
24231 | ||
24232 | _ACEOF | |
24233 | ||
24234 | # The following way of writing the cache mishandles newlines in values, | |
24235 | # but we know of no workaround that is simple, portable, and efficient. | |
24236 | # So, don't put newlines in cache variables' values. | |
24237 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24238 | # and sets the high bit in the cache file unless we assign to the vars. | |
24239 | { | |
24240 | (set) 2>&1 | | |
24241 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
24242 | *ac_space=\ *) | |
24243 | # `set' does not quote correctly, so add quotes (double-quote | |
24244 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24245 | sed -n \ | |
ac1cb8d3 VS |
24246 | "s/'/'\\\\''/g; |
24247 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
24248 | ;; |
24249 | *) | |
24250 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24251 | sed -n \ | |
ac1cb8d3 | 24252 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
24253 | ;; |
24254 | esac; | |
24255 | } | | |
24256 | sed ' | |
24257 | t clear | |
24258 | : clear | |
24259 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24260 | t end | |
24261 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24262 | : end' >>confcache | |
24263 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
24264 | if test -w $cache_file; then | |
24265 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
24266 | cat confcache >$cache_file | |
24267 | else | |
24268 | echo "not updating unwritable cache $cache_file" | |
24269 | fi | |
24270 | fi | |
24271 | rm -f confcache | |
24272 | ||
24273 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
24274 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
24275 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
24276 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
24277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24278 | else | |
24279 | ||
24280 | cat >conftest.$ac_ext <<_ACEOF | |
24281 | /* confdefs.h. */ | |
24282 | _ACEOF | |
24283 | cat confdefs.h >>conftest.$ac_ext | |
24284 | cat >>conftest.$ac_ext <<_ACEOF | |
24285 | /* end confdefs.h. */ | |
24286 | #include <features.h> | |
24287 | int | |
24288 | main () | |
24289 | { | |
24290 | ||
24291 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 24292 | not glibc 2.1 |
a848cd7e SC |
24293 | #endif |
24294 | ||
24295 | ; | |
24296 | return 0; | |
24297 | } | |
24298 | _ACEOF | |
24299 | rm -f conftest.$ac_objext | |
24300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24301 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24302 | ac_status=$? |
ac1cb8d3 VS |
24303 | grep -v '^ *+' conftest.er1 >conftest.err |
24304 | rm -f conftest.er1 | |
24305 | cat conftest.err >&5 | |
a848cd7e SC |
24306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24307 | (exit $ac_status); } && | |
c9a66001 | 24308 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
24314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24316 | (eval $ac_try) 2>&5 | |
24317 | ac_status=$? | |
24318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24319 | (exit $ac_status); }; }; then | |
24320 | ||
24321 | wx_cv_lib_glibc21=yes | |
24322 | ||
24323 | else | |
24324 | echo "$as_me: failed program was:" >&5 | |
24325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24326 | ||
24327 | ||
24328 | wx_cv_lib_glibc21=no | |
24329 | ||
24330 | ||
24331 | fi | |
ac1cb8d3 | 24332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24333 | |
24334 | fi | |
24335 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
24336 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
24337 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
24338 | cat >>confdefs.h <<\_ACEOF | |
24339 | #define wxHAVE_GLIBC2 1 | |
24340 | _ACEOF | |
24341 | ||
24342 | fi | |
24343 | fi | |
24344 | ||
24345 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
24346 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
24347 | cat >>confdefs.h <<\_ACEOF | |
24348 | #define _GNU_SOURCE 1 | |
24349 | _ACEOF | |
24350 | ||
24351 | fi | |
24352 | fi | |
24353 | ||
5d7b7554 VZ |
24354 | have_cos=0 |
24355 | have_floor=0 | |
a848cd7e | 24356 | |
5d7b7554 VZ |
24357 | for ac_func in cos |
24358 | do | |
24359 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24360 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24361 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24362 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a848cd7e | 24363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 24364 | else |
5d7b7554 | 24365 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
24366 | /* confdefs.h. */ |
24367 | _ACEOF | |
24368 | cat confdefs.h >>conftest.$ac_ext | |
24369 | cat >>conftest.$ac_ext <<_ACEOF | |
24370 | /* end confdefs.h. */ | |
5d7b7554 VZ |
24371 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24372 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24373 | #define $ac_func innocuous_$ac_func | |
24374 | ||
24375 | /* System header to define __stub macros and hopefully few prototypes, | |
24376 | which can conflict with char $ac_func (); below. | |
24377 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24378 | <limits.h> exists even on freestanding compilers. */ | |
24379 | ||
24380 | #ifdef __STDC__ | |
24381 | # include <limits.h> | |
24382 | #else | |
24383 | # include <assert.h> | |
24384 | #endif | |
24385 | ||
24386 | #undef $ac_func | |
24387 | ||
24388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24389 | #ifdef __cplusplus | |
24390 | extern "C" | |
24391 | { | |
24392 | #endif | |
24393 | /* We use char because int might match the return type of a gcc2 | |
24394 | builtin and then its argument prototype would still apply. */ | |
24395 | char $ac_func (); | |
24396 | /* The GNU C library defines this for functions which it implements | |
24397 | to always fail with ENOSYS. Some functions are actually named | |
24398 | something starting with __ and the normal name is an alias. */ | |
24399 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24400 | choke me | |
24401 | #else | |
24402 | char (*f) () = $ac_func; | |
24403 | #endif | |
24404 | #ifdef __cplusplus | |
24405 | } | |
24406 | #endif | |
24407 | ||
24408 | int | |
24409 | main () | |
24410 | { | |
24411 | return f != $ac_func; | |
24412 | ; | |
24413 | return 0; | |
24414 | } | |
a848cd7e | 24415 | _ACEOF |
5d7b7554 VZ |
24416 | rm -f conftest.$ac_objext conftest$ac_exeext |
24417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24418 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24419 | ac_status=$? |
ac1cb8d3 VS |
24420 | grep -v '^ *+' conftest.er1 >conftest.err |
24421 | rm -f conftest.er1 | |
24422 | cat conftest.err >&5 | |
a848cd7e SC |
24423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24424 | (exit $ac_status); } && | |
c9a66001 | 24425 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24427 | (eval $ac_try) 2>&5 | |
24428 | ac_status=$? | |
24429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24430 | (exit $ac_status); }; } && | |
5d7b7554 | 24431 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24433 | (eval $ac_try) 2>&5 | |
24434 | ac_status=$? | |
24435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24436 | (exit $ac_status); }; }; then | |
5d7b7554 | 24437 | eval "$as_ac_var=yes" |
a848cd7e SC |
24438 | else |
24439 | echo "$as_me: failed program was:" >&5 | |
24440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24441 | ||
5d7b7554 | 24442 | eval "$as_ac_var=no" |
a848cd7e | 24443 | fi |
5d7b7554 VZ |
24444 | rm -f conftest.err conftest.$ac_objext \ |
24445 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 24446 | fi |
5d7b7554 VZ |
24447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
24448 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24449 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24450 | cat >>confdefs.h <<_ACEOF | |
24451 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24452 | _ACEOF | |
24453 | have_cos=1 | |
a848cd7e | 24454 | fi |
5d7b7554 | 24455 | done |
a848cd7e | 24456 | |
ab0f0edd | 24457 | |
5d7b7554 | 24458 | for ac_func in floor |
a848cd7e SC |
24459 | do |
24460 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24461 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24462 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24463 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24465 | else | |
24466 | cat >conftest.$ac_ext <<_ACEOF | |
24467 | /* confdefs.h. */ | |
24468 | _ACEOF | |
24469 | cat confdefs.h >>conftest.$ac_ext | |
24470 | cat >>conftest.$ac_ext <<_ACEOF | |
24471 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24472 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24473 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24474 | #define $ac_func innocuous_$ac_func | |
24475 | ||
a848cd7e SC |
24476 | /* System header to define __stub macros and hopefully few prototypes, |
24477 | which can conflict with char $ac_func (); below. | |
24478 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24479 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24480 | |
a848cd7e SC |
24481 | #ifdef __STDC__ |
24482 | # include <limits.h> | |
24483 | #else | |
24484 | # include <assert.h> | |
24485 | #endif | |
ac1cb8d3 VS |
24486 | |
24487 | #undef $ac_func | |
24488 | ||
a848cd7e SC |
24489 | /* Override any gcc2 internal prototype to avoid an error. */ |
24490 | #ifdef __cplusplus | |
24491 | extern "C" | |
24492 | { | |
24493 | #endif | |
24494 | /* We use char because int might match the return type of a gcc2 | |
24495 | builtin and then its argument prototype would still apply. */ | |
24496 | char $ac_func (); | |
24497 | /* The GNU C library defines this for functions which it implements | |
24498 | to always fail with ENOSYS. Some functions are actually named | |
24499 | something starting with __ and the normal name is an alias. */ | |
24500 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24501 | choke me | |
24502 | #else | |
24503 | char (*f) () = $ac_func; | |
24504 | #endif | |
24505 | #ifdef __cplusplus | |
24506 | } | |
24507 | #endif | |
24508 | ||
24509 | int | |
24510 | main () | |
24511 | { | |
24512 | return f != $ac_func; | |
24513 | ; | |
24514 | return 0; | |
24515 | } | |
24516 | _ACEOF | |
24517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24519 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24520 | ac_status=$? |
ac1cb8d3 VS |
24521 | grep -v '^ *+' conftest.er1 >conftest.err |
24522 | rm -f conftest.er1 | |
24523 | cat conftest.err >&5 | |
a848cd7e SC |
24524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24525 | (exit $ac_status); } && | |
c9a66001 | 24526 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
24527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24528 | (eval $ac_try) 2>&5 | |
24529 | ac_status=$? | |
24530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24531 | (exit $ac_status); }; } && | |
24532 | { ac_try='test -s conftest$ac_exeext' | |
24533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24534 | (eval $ac_try) 2>&5 | |
24535 | ac_status=$? | |
24536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24537 | (exit $ac_status); }; }; then | |
24538 | eval "$as_ac_var=yes" | |
24539 | else | |
24540 | echo "$as_me: failed program was:" >&5 | |
24541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24542 | ||
24543 | eval "$as_ac_var=no" | |
24544 | fi | |
24545 | rm -f conftest.err conftest.$ac_objext \ | |
24546 | conftest$ac_exeext conftest.$ac_ext | |
24547 | fi | |
24548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24549 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24550 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24551 | cat >>confdefs.h <<_ACEOF | |
24552 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24553 | _ACEOF | |
24554 | have_floor=1 | |
24555 | fi | |
24556 | done | |
24557 | ||
24558 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
24559 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
24560 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
24561 | echo "$as_me:$LINENO: result: yes" >&5 | |
24562 | echo "${ECHO_T}yes" >&6 | |
24563 | else | |
24564 | echo "$as_me:$LINENO: result: no" >&5 | |
24565 | echo "${ECHO_T}no" >&6 | |
24566 | LIBS="$LIBS -lm" | |
24567 | # use different functions to avoid configure caching | |
24568 | have_sin=0 | |
24569 | have_ceil=0 | |
24570 | ||
24571 | for ac_func in sin | |
24572 | do | |
24573 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24574 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24575 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24576 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24578 | else | |
24579 | cat >conftest.$ac_ext <<_ACEOF | |
24580 | /* confdefs.h. */ | |
24581 | _ACEOF | |
24582 | cat confdefs.h >>conftest.$ac_ext | |
24583 | cat >>conftest.$ac_ext <<_ACEOF | |
24584 | /* end confdefs.h. */ | |
24585 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24587 | #define $ac_func innocuous_$ac_func | |
24588 | ||
24589 | /* System header to define __stub macros and hopefully few prototypes, | |
24590 | which can conflict with char $ac_func (); below. | |
24591 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24592 | <limits.h> exists even on freestanding compilers. */ | |
24593 | ||
24594 | #ifdef __STDC__ | |
24595 | # include <limits.h> | |
24596 | #else | |
24597 | # include <assert.h> | |
24598 | #endif | |
24599 | ||
24600 | #undef $ac_func | |
24601 | ||
24602 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24603 | #ifdef __cplusplus | |
24604 | extern "C" | |
24605 | { | |
24606 | #endif | |
24607 | /* We use char because int might match the return type of a gcc2 | |
24608 | builtin and then its argument prototype would still apply. */ | |
24609 | char $ac_func (); | |
24610 | /* The GNU C library defines this for functions which it implements | |
24611 | to always fail with ENOSYS. Some functions are actually named | |
24612 | something starting with __ and the normal name is an alias. */ | |
24613 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24614 | choke me | |
24615 | #else | |
24616 | char (*f) () = $ac_func; | |
24617 | #endif | |
24618 | #ifdef __cplusplus | |
24619 | } | |
24620 | #endif | |
24621 | ||
24622 | int | |
24623 | main () | |
24624 | { | |
24625 | return f != $ac_func; | |
24626 | ; | |
24627 | return 0; | |
24628 | } | |
24629 | _ACEOF | |
24630 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24632 | (eval $ac_link) 2>conftest.er1 | |
24633 | ac_status=$? | |
24634 | grep -v '^ *+' conftest.er1 >conftest.err | |
24635 | rm -f conftest.er1 | |
24636 | cat conftest.err >&5 | |
24637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24638 | (exit $ac_status); } && | |
c9a66001 | 24639 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
24640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24641 | (eval $ac_try) 2>&5 | |
24642 | ac_status=$? | |
24643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24644 | (exit $ac_status); }; } && | |
24645 | { ac_try='test -s conftest$ac_exeext' | |
24646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24647 | (eval $ac_try) 2>&5 | |
24648 | ac_status=$? | |
24649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24650 | (exit $ac_status); }; }; then | |
24651 | eval "$as_ac_var=yes" | |
24652 | else | |
24653 | echo "$as_me: failed program was:" >&5 | |
24654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24655 | ||
24656 | eval "$as_ac_var=no" | |
24657 | fi | |
24658 | rm -f conftest.err conftest.$ac_objext \ | |
24659 | conftest$ac_exeext conftest.$ac_ext | |
24660 | fi | |
24661 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24662 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24663 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24664 | cat >>confdefs.h <<_ACEOF | |
24665 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24666 | _ACEOF | |
24667 | have_sin=1 | |
24668 | fi | |
24669 | done | |
24670 | ||
24671 | ||
24672 | for ac_func in ceil | |
24673 | do | |
24674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24675 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24677 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24679 | else | |
24680 | cat >conftest.$ac_ext <<_ACEOF | |
24681 | /* confdefs.h. */ | |
24682 | _ACEOF | |
24683 | cat confdefs.h >>conftest.$ac_ext | |
24684 | cat >>conftest.$ac_ext <<_ACEOF | |
24685 | /* end confdefs.h. */ | |
24686 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24687 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24688 | #define $ac_func innocuous_$ac_func | |
24689 | ||
24690 | /* System header to define __stub macros and hopefully few prototypes, | |
24691 | which can conflict with char $ac_func (); below. | |
24692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24693 | <limits.h> exists even on freestanding compilers. */ | |
24694 | ||
24695 | #ifdef __STDC__ | |
24696 | # include <limits.h> | |
24697 | #else | |
24698 | # include <assert.h> | |
24699 | #endif | |
24700 | ||
24701 | #undef $ac_func | |
24702 | ||
24703 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24704 | #ifdef __cplusplus | |
24705 | extern "C" | |
24706 | { | |
24707 | #endif | |
24708 | /* We use char because int might match the return type of a gcc2 | |
24709 | builtin and then its argument prototype would still apply. */ | |
24710 | char $ac_func (); | |
24711 | /* The GNU C library defines this for functions which it implements | |
24712 | to always fail with ENOSYS. Some functions are actually named | |
24713 | something starting with __ and the normal name is an alias. */ | |
24714 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24715 | choke me | |
24716 | #else | |
24717 | char (*f) () = $ac_func; | |
24718 | #endif | |
24719 | #ifdef __cplusplus | |
24720 | } | |
24721 | #endif | |
24722 | ||
24723 | int | |
24724 | main () | |
24725 | { | |
24726 | return f != $ac_func; | |
24727 | ; | |
24728 | return 0; | |
24729 | } | |
24730 | _ACEOF | |
24731 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24733 | (eval $ac_link) 2>conftest.er1 | |
24734 | ac_status=$? | |
24735 | grep -v '^ *+' conftest.er1 >conftest.err | |
24736 | rm -f conftest.er1 | |
24737 | cat conftest.err >&5 | |
24738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24739 | (exit $ac_status); } && | |
c9a66001 | 24740 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
24741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24742 | (eval $ac_try) 2>&5 | |
24743 | ac_status=$? | |
24744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24745 | (exit $ac_status); }; } && | |
24746 | { ac_try='test -s conftest$ac_exeext' | |
24747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24748 | (eval $ac_try) 2>&5 | |
24749 | ac_status=$? | |
24750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24751 | (exit $ac_status); }; }; then | |
24752 | eval "$as_ac_var=yes" | |
24753 | else | |
24754 | echo "$as_me: failed program was:" >&5 | |
24755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24756 | ||
24757 | eval "$as_ac_var=no" | |
24758 | fi | |
24759 | rm -f conftest.err conftest.$ac_objext \ | |
24760 | conftest$ac_exeext conftest.$ac_ext | |
24761 | fi | |
24762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24763 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24764 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24765 | cat >>confdefs.h <<_ACEOF | |
24766 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24767 | _ACEOF | |
24768 | have_ceil=1 | |
24769 | fi | |
24770 | done | |
24771 | ||
24772 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
24773 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
24774 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
24775 | echo "$as_me:$LINENO: result: yes" >&5 | |
24776 | echo "${ECHO_T}yes" >&6 | |
24777 | else | |
24778 | echo "$as_me:$LINENO: result: no" >&5 | |
24779 | echo "${ECHO_T}no" >&6 | |
24780 | # not sure we should warn the user, crash, etc. | |
24781 | fi | |
24782 | fi | |
24783 | ||
24784 | ||
24785 | ||
24786 | if test "$wxUSE_REGEX" != "no"; then | |
24787 | cat >>confdefs.h <<\_ACEOF | |
24788 | #define wxUSE_REGEX 1 | |
24789 | _ACEOF | |
24790 | ||
24791 | ||
24792 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
24793 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
24794 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
24795 | wxUSE_REGEX=builtin | |
24796 | fi | |
24797 | ||
24798 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
24799 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24800 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24801 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24802 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24804 | fi | |
24805 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24806 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24807 | else | |
24808 | # Is the header compilable? | |
24809 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
24810 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
24811 | cat >conftest.$ac_ext <<_ACEOF | |
24812 | /* confdefs.h. */ | |
24813 | _ACEOF | |
24814 | cat confdefs.h >>conftest.$ac_ext | |
24815 | cat >>conftest.$ac_ext <<_ACEOF | |
24816 | /* end confdefs.h. */ | |
24817 | $ac_includes_default | |
24818 | #include <regex.h> | |
24819 | _ACEOF | |
24820 | rm -f conftest.$ac_objext | |
24821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24822 | (eval $ac_compile) 2>conftest.er1 | |
24823 | ac_status=$? | |
24824 | grep -v '^ *+' conftest.er1 >conftest.err | |
24825 | rm -f conftest.er1 | |
24826 | cat conftest.err >&5 | |
24827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24828 | (exit $ac_status); } && | |
c9a66001 | 24829 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
24830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24831 | (eval $ac_try) 2>&5 | |
24832 | ac_status=$? | |
24833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24834 | (exit $ac_status); }; } && | |
24835 | { ac_try='test -s conftest.$ac_objext' | |
24836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24837 | (eval $ac_try) 2>&5 | |
24838 | ac_status=$? | |
24839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24840 | (exit $ac_status); }; }; then | |
24841 | ac_header_compiler=yes | |
24842 | else | |
24843 | echo "$as_me: failed program was:" >&5 | |
24844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24845 | ||
24846 | ac_header_compiler=no | |
24847 | fi | |
24848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24849 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24850 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24851 | ||
24852 | # Is the header present? | |
24853 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
24854 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
24855 | cat >conftest.$ac_ext <<_ACEOF | |
24856 | /* confdefs.h. */ | |
24857 | _ACEOF | |
24858 | cat confdefs.h >>conftest.$ac_ext | |
24859 | cat >>conftest.$ac_ext <<_ACEOF | |
24860 | /* end confdefs.h. */ | |
24861 | #include <regex.h> | |
24862 | _ACEOF | |
24863 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24864 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24865 | ac_status=$? | |
24866 | grep -v '^ *+' conftest.er1 >conftest.err | |
24867 | rm -f conftest.er1 | |
24868 | cat conftest.err >&5 | |
24869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24870 | (exit $ac_status); } >/dev/null; then | |
24871 | if test -s conftest.err; then | |
24872 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
24873 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
24874 | else | |
24875 | ac_cpp_err= | |
24876 | fi | |
24877 | else | |
24878 | ac_cpp_err=yes | |
24879 | fi | |
24880 | if test -z "$ac_cpp_err"; then | |
24881 | ac_header_preproc=yes | |
24882 | else | |
24883 | echo "$as_me: failed program was:" >&5 | |
24884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24885 | ||
24886 | ac_header_preproc=no | |
24887 | fi | |
24888 | rm -f conftest.err conftest.$ac_ext | |
24889 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24890 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24891 | ||
24892 | # So? What about this header? | |
24893 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
24894 | yes:no: ) | |
24895 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24896 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24897 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 | |
24898 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24899 | ac_header_preproc=yes | |
24900 | ;; | |
24901 | no:yes:* ) | |
24902 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
24903 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
24904 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
24905 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24906 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24907 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24908 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24909 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24910 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
24911 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
24912 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 | |
24913 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
24914 | ( | |
24915 | cat <<\_ASBOX | |
24916 | ## ----------------------------------------- ## | |
24917 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24918 | ## ----------------------------------------- ## | |
24919 | _ASBOX | |
24920 | ) | | |
24921 | sed "s/^/$as_me: WARNING: /" >&2 | |
24922 | ;; | |
24923 | esac | |
24924 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24925 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24926 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24928 | else | |
24929 | ac_cv_header_regex_h=$ac_header_preproc | |
24930 | fi | |
24931 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24932 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24933 | ||
24934 | fi | |
24935 | if test $ac_cv_header_regex_h = yes; then | |
24936 | ||
24937 | ||
24938 | for ac_func in regcomp re_search | |
24939 | do | |
24940 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24941 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24942 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24943 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24945 | else | |
24946 | cat >conftest.$ac_ext <<_ACEOF | |
24947 | /* confdefs.h. */ | |
24948 | _ACEOF | |
24949 | cat confdefs.h >>conftest.$ac_ext | |
24950 | cat >>conftest.$ac_ext <<_ACEOF | |
24951 | /* end confdefs.h. */ | |
24952 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24953 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24954 | #define $ac_func innocuous_$ac_func | |
24955 | ||
24956 | /* System header to define __stub macros and hopefully few prototypes, | |
24957 | which can conflict with char $ac_func (); below. | |
24958 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24959 | <limits.h> exists even on freestanding compilers. */ | |
24960 | ||
24961 | #ifdef __STDC__ | |
24962 | # include <limits.h> | |
24963 | #else | |
24964 | # include <assert.h> | |
24965 | #endif | |
24966 | ||
24967 | #undef $ac_func | |
24968 | ||
24969 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24970 | #ifdef __cplusplus | |
24971 | extern "C" | |
24972 | { | |
24973 | #endif | |
24974 | /* We use char because int might match the return type of a gcc2 | |
24975 | builtin and then its argument prototype would still apply. */ | |
24976 | char $ac_func (); | |
24977 | /* The GNU C library defines this for functions which it implements | |
24978 | to always fail with ENOSYS. Some functions are actually named | |
24979 | something starting with __ and the normal name is an alias. */ | |
24980 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24981 | choke me | |
24982 | #else | |
24983 | char (*f) () = $ac_func; | |
24984 | #endif | |
24985 | #ifdef __cplusplus | |
24986 | } | |
24987 | #endif | |
24988 | ||
24989 | int | |
24990 | main () | |
24991 | { | |
24992 | return f != $ac_func; | |
24993 | ; | |
24994 | return 0; | |
24995 | } | |
24996 | _ACEOF | |
24997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24999 | (eval $ac_link) 2>conftest.er1 | |
25000 | ac_status=$? | |
25001 | grep -v '^ *+' conftest.er1 >conftest.err | |
25002 | rm -f conftest.er1 | |
25003 | cat conftest.err >&5 | |
25004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25005 | (exit $ac_status); } && | |
c9a66001 | 25006 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25008 | (eval $ac_try) 2>&5 | |
25009 | ac_status=$? | |
25010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25011 | (exit $ac_status); }; } && | |
25012 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25014 | (eval $ac_try) 2>&5 | |
25015 | ac_status=$? | |
25016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25017 | (exit $ac_status); }; }; then | |
25018 | eval "$as_ac_var=yes" | |
25019 | else | |
25020 | echo "$as_me: failed program was:" >&5 | |
25021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25022 | ||
25023 | eval "$as_ac_var=no" | |
25024 | fi | |
ac1cb8d3 VS |
25025 | rm -f conftest.err conftest.$ac_objext \ |
25026 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25027 | fi |
25028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25029 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25030 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25031 | cat >>confdefs.h <<_ACEOF | |
25032 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25033 | _ACEOF | |
25034 | ||
25035 | fi | |
25036 | done | |
25037 | ||
25038 | fi | |
25039 | ||
25040 | ||
25041 | ||
25042 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
25043 | if test "$wxUSE_REGEX" = "sys" ; then | |
25044 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
25045 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
25046 | { (exit 1); exit 1; }; } | |
25047 | else | |
25048 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
25049 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
25050 | wxUSE_REGEX=builtin | |
25051 | fi | |
25052 | else | |
25053 | wxUSE_REGEX=sys | |
25054 | cat >>confdefs.h <<\_ACEOF | |
25055 | #define WX_NO_REGEX_ADVANCED 1 | |
25056 | _ACEOF | |
25057 | ||
25058 | fi | |
25059 | fi | |
25060 | fi | |
25061 | ||
25062 | ||
25063 | ZLIB_LINK= | |
25064 | if test "$wxUSE_ZLIB" != "no" ; then | |
25065 | cat >>confdefs.h <<\_ACEOF | |
25066 | #define wxUSE_ZLIB 1 | |
25067 | _ACEOF | |
25068 | ||
25069 | ||
25070 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
25071 | if test "$USE_DARWIN" = 1; then | |
25072 | system_zlib_h_ok="yes" | |
25073 | else | |
25074 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
25075 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
25076 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25078 | else | |
25079 | if test "$cross_compiling" = yes; then | |
25080 | unset ac_cv_header_zlib_h | |
25081 | ||
25082 | else | |
25083 | cat >conftest.$ac_ext <<_ACEOF | |
25084 | /* confdefs.h. */ | |
25085 | _ACEOF | |
25086 | cat confdefs.h >>conftest.$ac_ext | |
25087 | cat >>conftest.$ac_ext <<_ACEOF | |
25088 | /* end confdefs.h. */ | |
25089 | ||
25090 | #include <zlib.h> | |
25091 | #include <stdio.h> | |
25092 | ||
25093 | int main() | |
25094 | { | |
25095 | FILE *f=fopen("conftestval", "w"); | |
25096 | if (!f) exit(1); | |
25097 | fprintf(f, "%s", | |
25098 | ZLIB_VERSION[0] == '1' && | |
25099 | (ZLIB_VERSION[2] > '1' || | |
25100 | (ZLIB_VERSION[2] == '1' && | |
25101 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
25102 | exit(0); | |
25103 | } | |
25104 | ||
25105 | _ACEOF | |
25106 | rm -f conftest$ac_exeext | |
25107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25108 | (eval $ac_link) 2>&5 | |
25109 | ac_status=$? | |
25110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25111 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25113 | (eval $ac_try) 2>&5 | |
25114 | ac_status=$? | |
25115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25116 | (exit $ac_status); }; }; then | |
25117 | ac_cv_header_zlib_h=`cat conftestval` | |
25118 | else | |
25119 | echo "$as_me: program exited with status $ac_status" >&5 | |
25120 | echo "$as_me: failed program was:" >&5 | |
25121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25122 | ||
25123 | ( exit $ac_status ) | |
25124 | ac_cv_header_zlib_h=no | |
25125 | fi | |
ac1cb8d3 | 25126 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25127 | fi |
25128 | ||
25129 | fi | |
25130 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25131 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25132 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25133 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
25134 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
25135 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25137 | fi | |
25138 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25139 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25140 | else | |
25141 | # Is the header compilable? | |
25142 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
25143 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
25144 | cat >conftest.$ac_ext <<_ACEOF | |
25145 | /* confdefs.h. */ | |
25146 | _ACEOF | |
25147 | cat confdefs.h >>conftest.$ac_ext | |
25148 | cat >>conftest.$ac_ext <<_ACEOF | |
25149 | /* end confdefs.h. */ | |
25150 | $ac_includes_default | |
25151 | #include <zlib.h> | |
25152 | _ACEOF | |
25153 | rm -f conftest.$ac_objext | |
25154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25155 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25156 | ac_status=$? |
ac1cb8d3 VS |
25157 | grep -v '^ *+' conftest.er1 >conftest.err |
25158 | rm -f conftest.er1 | |
25159 | cat conftest.err >&5 | |
a848cd7e SC |
25160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25161 | (exit $ac_status); } && | |
c9a66001 | 25162 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25164 | (eval $ac_try) 2>&5 | |
25165 | ac_status=$? | |
25166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25167 | (exit $ac_status); }; } && | |
25168 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
25174 | ac_header_compiler=yes | |
25175 | else | |
25176 | echo "$as_me: failed program was:" >&5 | |
25177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25178 | ||
25179 | ac_header_compiler=no | |
25180 | fi | |
ac1cb8d3 | 25181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25183 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25184 | ||
25185 | # Is the header present? | |
25186 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
25187 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
25188 | cat >conftest.$ac_ext <<_ACEOF | |
25189 | /* confdefs.h. */ | |
25190 | _ACEOF | |
25191 | cat confdefs.h >>conftest.$ac_ext | |
25192 | cat >>conftest.$ac_ext <<_ACEOF | |
25193 | /* end confdefs.h. */ | |
25194 | #include <zlib.h> | |
25195 | _ACEOF | |
25196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25198 | ac_status=$? | |
25199 | grep -v '^ *+' conftest.er1 >conftest.err | |
25200 | rm -f conftest.er1 | |
25201 | cat conftest.err >&5 | |
25202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25203 | (exit $ac_status); } >/dev/null; then | |
25204 | if test -s conftest.err; then | |
5d7b7554 VZ |
25205 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25206 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25207 | else |
25208 | ac_cpp_err= | |
25209 | fi | |
25210 | else | |
25211 | ac_cpp_err=yes | |
25212 | fi | |
25213 | if test -z "$ac_cpp_err"; then | |
25214 | ac_header_preproc=yes | |
25215 | else | |
25216 | echo "$as_me: failed program was:" >&5 | |
25217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25218 | ||
25219 | ac_header_preproc=no | |
25220 | fi | |
25221 | rm -f conftest.err conftest.$ac_ext | |
25222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25223 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25224 | ||
25225 | # So? What about this header? | |
5d7b7554 | 25226 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25227 | yes:no: ) |
a848cd7e SC |
25228 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25229 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25230 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
25231 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
25232 | ac_header_preproc=yes | |
a848cd7e | 25233 | ;; |
ac1cb8d3 | 25234 | no:yes:* ) |
a848cd7e SC |
25235 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
25236 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25237 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
25238 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
25239 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
25240 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
25241 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25242 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25243 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
25244 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25245 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
25246 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25247 | ( |
25248 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25249 | ## ----------------------------------------- ## |
25250 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25251 | ## ----------------------------------------- ## | |
a848cd7e SC |
25252 | _ASBOX |
25253 | ) | | |
25254 | sed "s/^/$as_me: WARNING: /" >&2 | |
25255 | ;; | |
25256 | esac | |
25257 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
25258 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
25259 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25261 | else | |
25262 | ac_cv_header_zlib_h=$ac_header_preproc | |
25263 | fi | |
25264 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25265 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25266 | ||
25267 | fi | |
25268 | ||
25269 | ||
25270 | ||
25271 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
25272 | fi | |
25273 | ||
25274 | if test "$system_zlib_h_ok" = "yes"; then | |
25275 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
25276 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
25277 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
25278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25279 | else | |
25280 | ac_check_lib_save_LIBS=$LIBS | |
25281 | LIBS="-lz $LIBS" | |
25282 | cat >conftest.$ac_ext <<_ACEOF | |
25283 | /* confdefs.h. */ | |
25284 | _ACEOF | |
25285 | cat confdefs.h >>conftest.$ac_ext | |
25286 | cat >>conftest.$ac_ext <<_ACEOF | |
25287 | /* end confdefs.h. */ | |
25288 | ||
25289 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25290 | #ifdef __cplusplus | |
25291 | extern "C" | |
25292 | #endif | |
25293 | /* We use char because int might match the return type of a gcc2 | |
25294 | builtin and then its argument prototype would still apply. */ | |
25295 | char deflate (); | |
25296 | int | |
25297 | main () | |
25298 | { | |
25299 | deflate (); | |
25300 | ; | |
25301 | return 0; | |
25302 | } | |
25303 | _ACEOF | |
25304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25306 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25307 | ac_status=$? |
ac1cb8d3 VS |
25308 | grep -v '^ *+' conftest.er1 >conftest.err |
25309 | rm -f conftest.er1 | |
25310 | cat conftest.err >&5 | |
a848cd7e SC |
25311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25312 | (exit $ac_status); } && | |
c9a66001 | 25313 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25315 | (eval $ac_try) 2>&5 | |
25316 | ac_status=$? | |
25317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25318 | (exit $ac_status); }; } && | |
25319 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25321 | (eval $ac_try) 2>&5 | |
25322 | ac_status=$? | |
25323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25324 | (exit $ac_status); }; }; then | |
25325 | ac_cv_lib_z_deflate=yes | |
25326 | else | |
25327 | echo "$as_me: failed program was:" >&5 | |
25328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25329 | ||
25330 | ac_cv_lib_z_deflate=no | |
25331 | fi | |
ac1cb8d3 VS |
25332 | rm -f conftest.err conftest.$ac_objext \ |
25333 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25334 | LIBS=$ac_check_lib_save_LIBS |
25335 | fi | |
25336 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
25337 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
25338 | if test $ac_cv_lib_z_deflate = yes; then | |
25339 | ZLIB_LINK=" -lz" | |
25340 | fi | |
25341 | ||
25342 | fi | |
25343 | ||
25344 | if test "x$ZLIB_LINK" = "x" ; then | |
25345 | if test "$wxUSE_ZLIB" = "sys" ; then | |
25346 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
25347 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
25348 | { (exit 1); exit 1; }; } | |
25349 | else | |
25350 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
25351 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
25352 | wxUSE_ZLIB=builtin | |
25353 | fi | |
25354 | else | |
25355 | wxUSE_ZLIB=sys | |
25356 | fi | |
25357 | fi | |
25358 | fi | |
25359 | ||
25360 | ||
25361 | PNG_LINK= | |
25362 | if test "$wxUSE_LIBPNG" != "no" ; then | |
25363 | cat >>confdefs.h <<\_ACEOF | |
25364 | #define wxUSE_LIBPNG 1 | |
25365 | _ACEOF | |
25366 | ||
25367 | ||
25368 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
25369 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
25370 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
25371 | wxUSE_LIBPNG=sys | |
25372 | fi | |
25373 | ||
25374 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
25375 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
25376 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
25377 | wxUSE_LIBPNG=builtin | |
25378 | fi | |
25379 | ||
25380 | if test "$wxUSE_MGL" != 1 ; then | |
25381 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
25382 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
25383 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
25384 | if test "${ac_cv_header_png_h+set}" = set; then | |
25385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25386 | else | |
25387 | if test "$cross_compiling" = yes; then | |
25388 | unset ac_cv_header_png_h | |
25389 | ||
25390 | else | |
25391 | cat >conftest.$ac_ext <<_ACEOF | |
25392 | /* confdefs.h. */ | |
25393 | _ACEOF | |
25394 | cat confdefs.h >>conftest.$ac_ext | |
25395 | cat >>conftest.$ac_ext <<_ACEOF | |
25396 | /* end confdefs.h. */ | |
25397 | ||
25398 | #include <png.h> | |
25399 | #include <stdio.h> | |
25400 | ||
25401 | int main() | |
25402 | { | |
25403 | FILE *f=fopen("conftestval", "w"); | |
25404 | if (!f) exit(1); | |
25405 | fprintf(f, "%s", | |
25406 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
25407 | exit(0); | |
25408 | } | |
25409 | ||
25410 | _ACEOF | |
25411 | rm -f conftest$ac_exeext | |
25412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25413 | (eval $ac_link) 2>&5 | |
25414 | ac_status=$? | |
25415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25416 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25418 | (eval $ac_try) 2>&5 | |
25419 | ac_status=$? | |
25420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25421 | (exit $ac_status); }; }; then | |
25422 | ac_cv_header_png_h=`cat conftestval` | |
25423 | else | |
25424 | echo "$as_me: program exited with status $ac_status" >&5 | |
25425 | echo "$as_me: failed program was:" >&5 | |
25426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25427 | ||
25428 | ( exit $ac_status ) | |
25429 | ac_cv_header_png_h=no | |
25430 | fi | |
ac1cb8d3 | 25431 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25432 | fi |
25433 | ||
25434 | fi | |
25435 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25436 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25437 | if test "${ac_cv_header_png_h+set}" = set; then | |
25438 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25439 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25440 | if test "${ac_cv_header_png_h+set}" = set; then | |
25441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25442 | fi | |
25443 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25444 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25445 | else | |
25446 | # Is the header compilable? | |
25447 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
25448 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
25449 | cat >conftest.$ac_ext <<_ACEOF | |
25450 | /* confdefs.h. */ | |
25451 | _ACEOF | |
25452 | cat confdefs.h >>conftest.$ac_ext | |
25453 | cat >>conftest.$ac_ext <<_ACEOF | |
25454 | /* end confdefs.h. */ | |
25455 | $ac_includes_default | |
25456 | #include <png.h> | |
25457 | _ACEOF | |
25458 | rm -f conftest.$ac_objext | |
25459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25460 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25461 | ac_status=$? |
ac1cb8d3 VS |
25462 | grep -v '^ *+' conftest.er1 >conftest.err |
25463 | rm -f conftest.er1 | |
25464 | cat conftest.err >&5 | |
a848cd7e SC |
25465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25466 | (exit $ac_status); } && | |
c9a66001 | 25467 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25469 | (eval $ac_try) 2>&5 | |
25470 | ac_status=$? | |
25471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25472 | (exit $ac_status); }; } && | |
25473 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25475 | (eval $ac_try) 2>&5 | |
25476 | ac_status=$? | |
25477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25478 | (exit $ac_status); }; }; then | |
25479 | ac_header_compiler=yes | |
25480 | else | |
25481 | echo "$as_me: failed program was:" >&5 | |
25482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25483 | ||
25484 | ac_header_compiler=no | |
25485 | fi | |
ac1cb8d3 | 25486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25487 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25488 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25489 | ||
25490 | # Is the header present? | |
25491 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
25492 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
25493 | cat >conftest.$ac_ext <<_ACEOF | |
25494 | /* confdefs.h. */ | |
25495 | _ACEOF | |
25496 | cat confdefs.h >>conftest.$ac_ext | |
25497 | cat >>conftest.$ac_ext <<_ACEOF | |
25498 | /* end confdefs.h. */ | |
25499 | #include <png.h> | |
25500 | _ACEOF | |
25501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25503 | ac_status=$? | |
25504 | grep -v '^ *+' conftest.er1 >conftest.err | |
25505 | rm -f conftest.er1 | |
25506 | cat conftest.err >&5 | |
25507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25508 | (exit $ac_status); } >/dev/null; then | |
25509 | if test -s conftest.err; then | |
5d7b7554 VZ |
25510 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25511 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25512 | else |
25513 | ac_cpp_err= | |
25514 | fi | |
25515 | else | |
25516 | ac_cpp_err=yes | |
25517 | fi | |
25518 | if test -z "$ac_cpp_err"; then | |
25519 | ac_header_preproc=yes | |
25520 | else | |
25521 | echo "$as_me: failed program was:" >&5 | |
25522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25523 | ||
25524 | ac_header_preproc=no | |
25525 | fi | |
25526 | rm -f conftest.err conftest.$ac_ext | |
25527 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25528 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25529 | ||
25530 | # So? What about this header? | |
5d7b7554 | 25531 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25532 | yes:no: ) |
a848cd7e SC |
25533 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25534 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25535 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
25536 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
25537 | ac_header_preproc=yes | |
a848cd7e | 25538 | ;; |
ac1cb8d3 | 25539 | no:yes:* ) |
a848cd7e SC |
25540 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
25541 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25542 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
25543 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
25544 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
25545 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
25546 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25547 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25548 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
25549 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25550 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
25551 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25552 | ( |
25553 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25554 | ## ----------------------------------------- ## |
25555 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25556 | ## ----------------------------------------- ## | |
a848cd7e SC |
25557 | _ASBOX |
25558 | ) | | |
25559 | sed "s/^/$as_me: WARNING: /" >&2 | |
25560 | ;; | |
25561 | esac | |
25562 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25563 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25564 | if test "${ac_cv_header_png_h+set}" = set; then | |
25565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25566 | else | |
25567 | ac_cv_header_png_h=$ac_header_preproc | |
25568 | fi | |
25569 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25570 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25571 | ||
25572 | fi | |
25573 | ||
25574 | ||
25575 | ||
25576 | if test "$ac_cv_header_png_h" = "yes"; then | |
25577 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
25578 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
25579 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
25580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25581 | else | |
25582 | ac_check_lib_save_LIBS=$LIBS | |
25583 | LIBS="-lpng -lz -lm $LIBS" | |
25584 | cat >conftest.$ac_ext <<_ACEOF | |
25585 | /* confdefs.h. */ | |
25586 | _ACEOF | |
25587 | cat confdefs.h >>conftest.$ac_ext | |
25588 | cat >>conftest.$ac_ext <<_ACEOF | |
25589 | /* end confdefs.h. */ | |
25590 | ||
25591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25592 | #ifdef __cplusplus | |
25593 | extern "C" | |
25594 | #endif | |
25595 | /* We use char because int might match the return type of a gcc2 | |
25596 | builtin and then its argument prototype would still apply. */ | |
25597 | char png_check_sig (); | |
25598 | int | |
25599 | main () | |
25600 | { | |
25601 | png_check_sig (); | |
25602 | ; | |
25603 | return 0; | |
25604 | } | |
25605 | _ACEOF | |
25606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25608 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25609 | ac_status=$? |
ac1cb8d3 VS |
25610 | grep -v '^ *+' conftest.er1 >conftest.err |
25611 | rm -f conftest.er1 | |
25612 | cat conftest.err >&5 | |
a848cd7e SC |
25613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25614 | (exit $ac_status); } && | |
c9a66001 | 25615 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25617 | (eval $ac_try) 2>&5 | |
25618 | ac_status=$? | |
25619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25620 | (exit $ac_status); }; } && | |
25621 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25623 | (eval $ac_try) 2>&5 | |
25624 | ac_status=$? | |
25625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25626 | (exit $ac_status); }; }; then | |
25627 | ac_cv_lib_png_png_check_sig=yes | |
25628 | else | |
25629 | echo "$as_me: failed program was:" >&5 | |
25630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25631 | ||
25632 | ac_cv_lib_png_png_check_sig=no | |
25633 | fi | |
ac1cb8d3 VS |
25634 | rm -f conftest.err conftest.$ac_objext \ |
25635 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25636 | LIBS=$ac_check_lib_save_LIBS |
25637 | fi | |
25638 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
25639 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
25640 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
25641 | PNG_LINK=" -lpng -lz" | |
25642 | fi | |
25643 | ||
25644 | fi | |
25645 | ||
25646 | if test "x$PNG_LINK" = "x" ; then | |
25647 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
25648 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
25649 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
25650 | { (exit 1); exit 1; }; } | |
25651 | else | |
25652 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
25653 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
25654 | wxUSE_LIBPNG=builtin | |
25655 | fi | |
25656 | else | |
25657 | wxUSE_LIBPNG=sys | |
25658 | fi | |
25659 | fi | |
25660 | fi | |
25661 | ||
25662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
25663 | fi | |
25664 | ||
25665 | ||
25666 | JPEG_LINK= | |
25667 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
25668 | cat >>confdefs.h <<\_ACEOF | |
25669 | #define wxUSE_LIBJPEG 1 | |
25670 | _ACEOF | |
25671 | ||
25672 | ||
25673 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
25674 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
25675 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
25676 | wxUSE_LIBJPEG=sys | |
25677 | fi | |
25678 | ||
25679 | if test "$wxUSE_MGL" != 1 ; then | |
25680 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
25681 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
25682 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
25683 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
25684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25685 | else | |
25686 | cat >conftest.$ac_ext <<_ACEOF | |
25687 | /* confdefs.h. */ | |
25688 | _ACEOF | |
25689 | cat confdefs.h >>conftest.$ac_ext | |
25690 | cat >>conftest.$ac_ext <<_ACEOF | |
25691 | /* end confdefs.h. */ | |
25692 | ||
25693 | #undef HAVE_STDLIB_H | |
25694 | #include <stdio.h> | |
25695 | #include <jpeglib.h> | |
25696 | ||
25697 | int | |
25698 | main () | |
25699 | { | |
25700 | ||
25701 | ||
25702 | ; | |
25703 | return 0; | |
25704 | } | |
25705 | _ACEOF | |
25706 | rm -f conftest.$ac_objext | |
25707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25709 | ac_status=$? |
ac1cb8d3 VS |
25710 | grep -v '^ *+' conftest.er1 >conftest.err |
25711 | rm -f conftest.er1 | |
25712 | cat conftest.err >&5 | |
a848cd7e SC |
25713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25714 | (exit $ac_status); } && | |
c9a66001 | 25715 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25717 | (eval $ac_try) 2>&5 | |
25718 | ac_status=$? | |
25719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25720 | (exit $ac_status); }; } && | |
25721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25723 | (eval $ac_try) 2>&5 | |
25724 | ac_status=$? | |
25725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25726 | (exit $ac_status); }; }; then | |
25727 | ac_cv_header_jpeglib_h=yes | |
25728 | else | |
25729 | echo "$as_me: failed program was:" >&5 | |
25730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25731 | ||
25732 | ac_cv_header_jpeglib_h=no | |
25733 | ||
25734 | fi | |
ac1cb8d3 | 25735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25736 | |
25737 | fi | |
25738 | ||
25739 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
25740 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
25741 | ||
25742 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
25743 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
25744 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
25745 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
25746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25747 | else | |
25748 | ac_check_lib_save_LIBS=$LIBS | |
25749 | LIBS="-ljpeg $LIBS" | |
25750 | cat >conftest.$ac_ext <<_ACEOF | |
25751 | /* confdefs.h. */ | |
25752 | _ACEOF | |
25753 | cat confdefs.h >>conftest.$ac_ext | |
25754 | cat >>conftest.$ac_ext <<_ACEOF | |
25755 | /* end confdefs.h. */ | |
25756 | ||
25757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25758 | #ifdef __cplusplus | |
25759 | extern "C" | |
25760 | #endif | |
25761 | /* We use char because int might match the return type of a gcc2 | |
25762 | builtin and then its argument prototype would still apply. */ | |
25763 | char jpeg_read_header (); | |
25764 | int | |
25765 | main () | |
25766 | { | |
25767 | jpeg_read_header (); | |
25768 | ; | |
25769 | return 0; | |
25770 | } | |
25771 | _ACEOF | |
25772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25774 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25775 | ac_status=$? |
ac1cb8d3 VS |
25776 | grep -v '^ *+' conftest.er1 >conftest.err |
25777 | rm -f conftest.er1 | |
25778 | cat conftest.err >&5 | |
a848cd7e SC |
25779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25780 | (exit $ac_status); } && | |
c9a66001 | 25781 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25783 | (eval $ac_try) 2>&5 | |
25784 | ac_status=$? | |
25785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25786 | (exit $ac_status); }; } && | |
25787 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25789 | (eval $ac_try) 2>&5 | |
25790 | ac_status=$? | |
25791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25792 | (exit $ac_status); }; }; then | |
25793 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
25794 | else | |
25795 | echo "$as_me: failed program was:" >&5 | |
25796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25797 | ||
25798 | ac_cv_lib_jpeg_jpeg_read_header=no | |
25799 | fi | |
ac1cb8d3 VS |
25800 | rm -f conftest.err conftest.$ac_objext \ |
25801 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25802 | LIBS=$ac_check_lib_save_LIBS |
25803 | fi | |
25804 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
25805 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
25806 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
25807 | JPEG_LINK=" -ljpeg" | |
25808 | fi | |
25809 | ||
25810 | fi | |
25811 | ||
25812 | if test "x$JPEG_LINK" = "x" ; then | |
25813 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
25814 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
25815 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
25816 | { (exit 1); exit 1; }; } | |
25817 | else | |
25818 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
25819 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
25820 | wxUSE_LIBJPEG=builtin | |
25821 | fi | |
25822 | else | |
25823 | wxUSE_LIBJPEG=sys | |
25824 | fi | |
25825 | fi | |
25826 | fi | |
25827 | fi | |
25828 | ||
25829 | ||
25830 | TIFF_LINK= | |
25831 | TIFF_PREREQ_LINKS=-lm | |
25832 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
25833 | cat >>confdefs.h <<\_ACEOF | |
25834 | #define wxUSE_LIBTIFF 1 | |
25835 | _ACEOF | |
25836 | ||
25837 | ||
25838 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
25839 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
25840 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
25841 | fi | |
25842 | if test "$wxUSE_ZLIB" = "sys"; then | |
25843 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
25844 | fi | |
25845 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25846 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25847 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25848 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25850 | fi | |
25851 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25852 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25853 | else | |
25854 | # Is the header compilable? | |
25855 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25856 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25857 | cat >conftest.$ac_ext <<_ACEOF | |
25858 | /* confdefs.h. */ | |
25859 | _ACEOF | |
25860 | cat confdefs.h >>conftest.$ac_ext | |
25861 | cat >>conftest.$ac_ext <<_ACEOF | |
25862 | /* end confdefs.h. */ | |
25863 | $ac_includes_default | |
25864 | #include <tiffio.h> | |
25865 | _ACEOF | |
25866 | rm -f conftest.$ac_objext | |
25867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25869 | ac_status=$? |
ac1cb8d3 VS |
25870 | grep -v '^ *+' conftest.er1 >conftest.err |
25871 | rm -f conftest.er1 | |
25872 | cat conftest.err >&5 | |
a848cd7e SC |
25873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25874 | (exit $ac_status); } && | |
c9a66001 | 25875 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25877 | (eval $ac_try) 2>&5 | |
25878 | ac_status=$? | |
25879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25880 | (exit $ac_status); }; } && | |
25881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25883 | (eval $ac_try) 2>&5 | |
25884 | ac_status=$? | |
25885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25886 | (exit $ac_status); }; }; then | |
25887 | ac_header_compiler=yes | |
25888 | else | |
25889 | echo "$as_me: failed program was:" >&5 | |
25890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25891 | ||
25892 | ac_header_compiler=no | |
25893 | fi | |
ac1cb8d3 | 25894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25895 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25896 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25897 | ||
25898 | # Is the header present? | |
25899 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25900 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25901 | cat >conftest.$ac_ext <<_ACEOF | |
25902 | /* confdefs.h. */ | |
25903 | _ACEOF | |
25904 | cat confdefs.h >>conftest.$ac_ext | |
25905 | cat >>conftest.$ac_ext <<_ACEOF | |
25906 | /* end confdefs.h. */ | |
25907 | #include <tiffio.h> | |
25908 | _ACEOF | |
25909 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25910 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25911 | ac_status=$? | |
25912 | grep -v '^ *+' conftest.er1 >conftest.err | |
25913 | rm -f conftest.er1 | |
25914 | cat conftest.err >&5 | |
25915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25916 | (exit $ac_status); } >/dev/null; then | |
25917 | if test -s conftest.err; then | |
5d7b7554 VZ |
25918 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25919 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25920 | else |
25921 | ac_cpp_err= | |
25922 | fi | |
25923 | else | |
25924 | ac_cpp_err=yes | |
25925 | fi | |
25926 | if test -z "$ac_cpp_err"; then | |
25927 | ac_header_preproc=yes | |
25928 | else | |
25929 | echo "$as_me: failed program was:" >&5 | |
25930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25931 | ||
25932 | ac_header_preproc=no | |
25933 | fi | |
25934 | rm -f conftest.err conftest.$ac_ext | |
25935 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25936 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25937 | ||
25938 | # So? What about this header? | |
5d7b7554 | 25939 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25940 | yes:no: ) |
a848cd7e SC |
25941 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25942 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25943 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25944 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25945 | ac_header_preproc=yes | |
a848cd7e | 25946 | ;; |
ac1cb8d3 | 25947 | no:yes:* ) |
a848cd7e SC |
25948 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25949 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25950 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25951 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25952 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25953 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25954 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25955 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25956 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25957 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25958 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25959 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25960 | ( |
25961 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25962 | ## ----------------------------------------- ## |
25963 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25964 | ## ----------------------------------------- ## | |
a848cd7e SC |
25965 | _ASBOX |
25966 | ) | | |
25967 | sed "s/^/$as_me: WARNING: /" >&2 | |
25968 | ;; | |
25969 | esac | |
25970 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25971 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25972 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25974 | else | |
25975 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25976 | fi | |
25977 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25978 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25979 | ||
25980 | fi | |
25981 | if test $ac_cv_header_tiffio_h = yes; then | |
25982 | ||
25983 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
25984 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
25985 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
25986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25987 | else | |
25988 | ac_check_lib_save_LIBS=$LIBS | |
25989 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
25990 | cat >conftest.$ac_ext <<_ACEOF | |
25991 | /* confdefs.h. */ | |
25992 | _ACEOF | |
25993 | cat confdefs.h >>conftest.$ac_ext | |
25994 | cat >>conftest.$ac_ext <<_ACEOF | |
25995 | /* end confdefs.h. */ | |
25996 | ||
25997 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25998 | #ifdef __cplusplus | |
25999 | extern "C" | |
26000 | #endif | |
26001 | /* We use char because int might match the return type of a gcc2 | |
26002 | builtin and then its argument prototype would still apply. */ | |
26003 | char TIFFError (); | |
26004 | int | |
26005 | main () | |
26006 | { | |
26007 | TIFFError (); | |
26008 | ; | |
26009 | return 0; | |
26010 | } | |
26011 | _ACEOF | |
26012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26014 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26015 | ac_status=$? |
ac1cb8d3 VS |
26016 | grep -v '^ *+' conftest.er1 >conftest.err |
26017 | rm -f conftest.er1 | |
26018 | cat conftest.err >&5 | |
a848cd7e SC |
26019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26020 | (exit $ac_status); } && | |
c9a66001 | 26021 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26023 | (eval $ac_try) 2>&5 | |
26024 | ac_status=$? | |
26025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26026 | (exit $ac_status); }; } && | |
26027 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26029 | (eval $ac_try) 2>&5 | |
26030 | ac_status=$? | |
26031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26032 | (exit $ac_status); }; }; then | |
26033 | ac_cv_lib_tiff_TIFFError=yes | |
26034 | else | |
26035 | echo "$as_me: failed program was:" >&5 | |
26036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26037 | ||
26038 | ac_cv_lib_tiff_TIFFError=no | |
26039 | fi | |
ac1cb8d3 VS |
26040 | rm -f conftest.err conftest.$ac_objext \ |
26041 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26042 | LIBS=$ac_check_lib_save_LIBS |
26043 | fi | |
26044 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
26045 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
26046 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
26047 | TIFF_LINK=" -ltiff" | |
26048 | fi | |
26049 | ||
26050 | ||
26051 | ||
26052 | fi | |
26053 | ||
26054 | ||
26055 | ||
26056 | if test "x$TIFF_LINK" = "x" ; then | |
26057 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
26058 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
26059 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
26060 | { (exit 1); exit 1; }; } | |
26061 | else | |
26062 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
26063 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
26064 | wxUSE_LIBTIFF=builtin | |
26065 | fi | |
26066 | else | |
26067 | wxUSE_LIBTIFF=sys | |
26068 | fi | |
26069 | fi | |
26070 | fi | |
26071 | ||
26072 | ||
47a7e797 MW |
26073 | if test "$wxUSE_WCHAR_T" != "yes"; then |
26074 | if test "$wxUSE_EXPAT" != "no"; then | |
26075 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
26076 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
26077 | wxUSE_EXPAT=no | |
26078 | fi | |
26079 | if test "$wxUSE_XML" != "no"; then | |
26080 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
26081 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
26082 | wxUSE_XML=no | |
26083 | fi | |
26084 | fi | |
26085 | ||
a848cd7e SC |
26086 | if test "$wxUSE_EXPAT" != "no"; then |
26087 | wxUSE_XML=yes | |
26088 | cat >>confdefs.h <<\_ACEOF | |
26089 | #define wxUSE_EXPAT 1 | |
26090 | _ACEOF | |
26091 | ||
26092 | cat >>confdefs.h <<\_ACEOF | |
26093 | #define wxUSE_XML 1 | |
26094 | _ACEOF | |
26095 | ||
26096 | ||
26097 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
26098 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26099 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26100 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26101 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26103 | fi | |
26104 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26105 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26106 | else | |
26107 | # Is the header compilable? | |
26108 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
26109 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
26110 | cat >conftest.$ac_ext <<_ACEOF | |
26111 | /* confdefs.h. */ | |
26112 | _ACEOF | |
26113 | cat confdefs.h >>conftest.$ac_ext | |
26114 | cat >>conftest.$ac_ext <<_ACEOF | |
26115 | /* end confdefs.h. */ | |
26116 | $ac_includes_default | |
26117 | #include <expat.h> | |
26118 | _ACEOF | |
26119 | rm -f conftest.$ac_objext | |
26120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26122 | ac_status=$? |
ac1cb8d3 VS |
26123 | grep -v '^ *+' conftest.er1 >conftest.err |
26124 | rm -f conftest.er1 | |
26125 | cat conftest.err >&5 | |
a848cd7e SC |
26126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26127 | (exit $ac_status); } && | |
c9a66001 | 26128 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26130 | (eval $ac_try) 2>&5 | |
26131 | ac_status=$? | |
26132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26133 | (exit $ac_status); }; } && | |
26134 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26136 | (eval $ac_try) 2>&5 | |
26137 | ac_status=$? | |
26138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26139 | (exit $ac_status); }; }; then | |
26140 | ac_header_compiler=yes | |
26141 | else | |
26142 | echo "$as_me: failed program was:" >&5 | |
26143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26144 | ||
26145 | ac_header_compiler=no | |
26146 | fi | |
ac1cb8d3 | 26147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26148 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26149 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26150 | ||
26151 | # Is the header present? | |
26152 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
26153 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
26154 | cat >conftest.$ac_ext <<_ACEOF | |
26155 | /* confdefs.h. */ | |
26156 | _ACEOF | |
26157 | cat confdefs.h >>conftest.$ac_ext | |
26158 | cat >>conftest.$ac_ext <<_ACEOF | |
26159 | /* end confdefs.h. */ | |
26160 | #include <expat.h> | |
26161 | _ACEOF | |
26162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26164 | ac_status=$? | |
26165 | grep -v '^ *+' conftest.er1 >conftest.err | |
26166 | rm -f conftest.er1 | |
26167 | cat conftest.err >&5 | |
26168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26169 | (exit $ac_status); } >/dev/null; then | |
26170 | if test -s conftest.err; then | |
5d7b7554 VZ |
26171 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26172 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26173 | else |
26174 | ac_cpp_err= | |
26175 | fi | |
26176 | else | |
26177 | ac_cpp_err=yes | |
26178 | fi | |
26179 | if test -z "$ac_cpp_err"; then | |
26180 | ac_header_preproc=yes | |
26181 | else | |
26182 | echo "$as_me: failed program was:" >&5 | |
26183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26184 | ||
26185 | ac_header_preproc=no | |
26186 | fi | |
26187 | rm -f conftest.err conftest.$ac_ext | |
26188 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26189 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26190 | ||
26191 | # So? What about this header? | |
5d7b7554 | 26192 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26193 | yes:no: ) |
a848cd7e SC |
26194 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26195 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26196 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
26197 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
26198 | ac_header_preproc=yes | |
a848cd7e | 26199 | ;; |
ac1cb8d3 | 26200 | no:yes:* ) |
a848cd7e SC |
26201 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
26202 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26203 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
26204 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
26205 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
26206 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
26207 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26208 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26209 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
26210 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26211 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
26212 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26213 | ( |
26214 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26215 | ## ----------------------------------------- ## |
26216 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26217 | ## ----------------------------------------- ## | |
a848cd7e SC |
26218 | _ASBOX |
26219 | ) | | |
26220 | sed "s/^/$as_me: WARNING: /" >&2 | |
26221 | ;; | |
26222 | esac | |
26223 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26224 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26225 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26227 | else | |
26228 | ac_cv_header_expat_h=$ac_header_preproc | |
26229 | fi | |
26230 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26231 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26232 | ||
26233 | fi | |
26234 | if test $ac_cv_header_expat_h = yes; then | |
26235 | found_expat_h=1 | |
26236 | fi | |
26237 | ||
26238 | ||
26239 | if test "x$found_expat_h" = "x1"; then | |
26240 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
26241 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
26242 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
26243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26244 | else | |
26245 | ||
a848cd7e SC |
26246 | cat >conftest.$ac_ext <<_ACEOF |
26247 | /* confdefs.h. */ | |
26248 | _ACEOF | |
26249 | cat confdefs.h >>conftest.$ac_ext | |
26250 | cat >>conftest.$ac_ext <<_ACEOF | |
26251 | /* end confdefs.h. */ | |
26252 | #include <expat.h> | |
26253 | int | |
26254 | main () | |
26255 | { | |
26256 | ||
26257 | ; | |
26258 | return 0; | |
26259 | } | |
26260 | _ACEOF | |
26261 | rm -f conftest.$ac_objext | |
26262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26264 | ac_status=$? |
ac1cb8d3 VS |
26265 | grep -v '^ *+' conftest.er1 >conftest.err |
26266 | rm -f conftest.er1 | |
26267 | cat conftest.err >&5 | |
a848cd7e SC |
26268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26269 | (exit $ac_status); } && | |
c9a66001 | 26270 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26272 | (eval $ac_try) 2>&5 | |
26273 | ac_status=$? | |
26274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26275 | (exit $ac_status); }; } && | |
26276 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26278 | (eval $ac_try) 2>&5 | |
26279 | ac_status=$? | |
26280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26281 | (exit $ac_status); }; }; then | |
26282 | wx_cv_expat_is_not_broken=yes | |
26283 | else | |
26284 | echo "$as_me: failed program was:" >&5 | |
26285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26286 | ||
26287 | wx_cv_expat_is_not_broken=no | |
26288 | ||
26289 | fi | |
ac1cb8d3 | 26290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26291 | |
26292 | ||
26293 | fi | |
26294 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
26295 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
26296 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
26297 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
26298 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
26299 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
26300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26301 | else | |
26302 | ac_check_lib_save_LIBS=$LIBS | |
26303 | LIBS="-lexpat $LIBS" | |
26304 | cat >conftest.$ac_ext <<_ACEOF | |
26305 | /* confdefs.h. */ | |
26306 | _ACEOF | |
26307 | cat confdefs.h >>conftest.$ac_ext | |
26308 | cat >>conftest.$ac_ext <<_ACEOF | |
26309 | /* end confdefs.h. */ | |
26310 | ||
26311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26312 | #ifdef __cplusplus | |
26313 | extern "C" | |
26314 | #endif | |
26315 | /* We use char because int might match the return type of a gcc2 | |
26316 | builtin and then its argument prototype would still apply. */ | |
26317 | char XML_ParserCreate (); | |
26318 | int | |
26319 | main () | |
26320 | { | |
26321 | XML_ParserCreate (); | |
26322 | ; | |
26323 | return 0; | |
26324 | } | |
26325 | _ACEOF | |
26326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26328 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26329 | ac_status=$? |
ac1cb8d3 VS |
26330 | grep -v '^ *+' conftest.er1 >conftest.err |
26331 | rm -f conftest.er1 | |
26332 | cat conftest.err >&5 | |
a848cd7e SC |
26333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26334 | (exit $ac_status); } && | |
c9a66001 | 26335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26337 | (eval $ac_try) 2>&5 | |
26338 | ac_status=$? | |
26339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26340 | (exit $ac_status); }; } && | |
26341 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26343 | (eval $ac_try) 2>&5 | |
26344 | ac_status=$? | |
26345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26346 | (exit $ac_status); }; }; then | |
26347 | ac_cv_lib_expat_XML_ParserCreate=yes | |
26348 | else | |
26349 | echo "$as_me: failed program was:" >&5 | |
26350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26351 | ||
26352 | ac_cv_lib_expat_XML_ParserCreate=no | |
26353 | fi | |
ac1cb8d3 VS |
26354 | rm -f conftest.err conftest.$ac_objext \ |
26355 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26356 | LIBS=$ac_check_lib_save_LIBS |
26357 | fi | |
26358 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
26359 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
26360 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
26361 | EXPAT_LINK=" -lexpat" | |
26362 | fi | |
26363 | ||
26364 | fi | |
26365 | fi | |
26366 | if test "x$EXPAT_LINK" = "x" ; then | |
26367 | if test "$wxUSE_EXPAT" = "sys" ; then | |
26368 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
26369 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
26370 | { (exit 1); exit 1; }; } | |
26371 | else | |
26372 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
26373 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
26374 | wxUSE_EXPAT=builtin | |
26375 | fi | |
26376 | else | |
26377 | wxUSE_EXPAT=sys | |
26378 | fi | |
26379 | fi | |
26380 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
26381 | ||
26382 | ||
26383 | subdirs="$subdirs src/expat" | |
26384 | ||
26385 | fi | |
26386 | fi | |
26387 | ||
26388 | ||
26389 | ||
26390 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
26391 | if test "${ac_cv_header_mspack_h+set}" = set; then |
26392 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26393 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26394 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26396 | fi | |
26397 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26398 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26399 | else | |
26400 | # Is the header compilable? | |
26401 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
26402 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
26403 | cat >conftest.$ac_ext <<_ACEOF | |
26404 | /* confdefs.h. */ | |
26405 | _ACEOF | |
26406 | cat confdefs.h >>conftest.$ac_ext | |
26407 | cat >>conftest.$ac_ext <<_ACEOF | |
26408 | /* end confdefs.h. */ | |
26409 | $ac_includes_default | |
26410 | #include <mspack.h> | |
26411 | _ACEOF | |
26412 | rm -f conftest.$ac_objext | |
26413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26414 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26415 | ac_status=$? |
ac1cb8d3 VS |
26416 | grep -v '^ *+' conftest.er1 >conftest.err |
26417 | rm -f conftest.er1 | |
26418 | cat conftest.err >&5 | |
a848cd7e SC |
26419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26420 | (exit $ac_status); } && | |
c9a66001 | 26421 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26423 | (eval $ac_try) 2>&5 | |
26424 | ac_status=$? | |
26425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26426 | (exit $ac_status); }; } && | |
26427 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26429 | (eval $ac_try) 2>&5 | |
26430 | ac_status=$? | |
26431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26432 | (exit $ac_status); }; }; then | |
26433 | ac_header_compiler=yes | |
26434 | else | |
26435 | echo "$as_me: failed program was:" >&5 | |
26436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26437 | ||
26438 | ac_header_compiler=no | |
26439 | fi | |
ac1cb8d3 | 26440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26441 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26442 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26443 | ||
26444 | # Is the header present? | |
26445 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
26446 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
26447 | cat >conftest.$ac_ext <<_ACEOF | |
26448 | /* confdefs.h. */ | |
26449 | _ACEOF | |
26450 | cat confdefs.h >>conftest.$ac_ext | |
26451 | cat >>conftest.$ac_ext <<_ACEOF | |
26452 | /* end confdefs.h. */ | |
26453 | #include <mspack.h> | |
26454 | _ACEOF | |
26455 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26457 | ac_status=$? | |
26458 | grep -v '^ *+' conftest.er1 >conftest.err | |
26459 | rm -f conftest.er1 | |
26460 | cat conftest.err >&5 | |
26461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26462 | (exit $ac_status); } >/dev/null; then | |
26463 | if test -s conftest.err; then | |
5d7b7554 VZ |
26464 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26465 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26466 | else |
26467 | ac_cpp_err= | |
26468 | fi | |
26469 | else | |
26470 | ac_cpp_err=yes | |
26471 | fi | |
26472 | if test -z "$ac_cpp_err"; then | |
26473 | ac_header_preproc=yes | |
26474 | else | |
26475 | echo "$as_me: failed program was:" >&5 | |
26476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26477 | ||
26478 | ac_header_preproc=no | |
26479 | fi | |
26480 | rm -f conftest.err conftest.$ac_ext | |
26481 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26482 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26483 | ||
26484 | # So? What about this header? | |
5d7b7554 | 26485 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26486 | yes:no: ) |
a848cd7e SC |
26487 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26488 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26489 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
26490 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
26491 | ac_header_preproc=yes | |
a848cd7e | 26492 | ;; |
ac1cb8d3 | 26493 | no:yes:* ) |
a848cd7e SC |
26494 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
26495 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26496 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
26497 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
26498 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
26499 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
26500 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26501 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26502 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
26503 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26504 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
26505 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26506 | ( |
26507 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26508 | ## ----------------------------------------- ## |
26509 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26510 | ## ----------------------------------------- ## | |
a848cd7e SC |
26511 | _ASBOX |
26512 | ) | | |
26513 | sed "s/^/$as_me: WARNING: /" >&2 | |
26514 | ;; | |
26515 | esac | |
26516 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26517 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26518 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26520 | else | |
26521 | ac_cv_header_mspack_h=$ac_header_preproc | |
26522 | fi | |
26523 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26524 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26525 | ||
26526 | fi | |
26527 | if test $ac_cv_header_mspack_h = yes; then | |
26528 | found_mspack_h=1 | |
26529 | fi | |
26530 | ||
26531 | ||
26532 | if test "x$found_mspack_h" = "x1"; then | |
26533 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
26534 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
26535 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
26536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26537 | else | |
26538 | ac_check_lib_save_LIBS=$LIBS | |
26539 | LIBS="-lmspack $LIBS" | |
26540 | cat >conftest.$ac_ext <<_ACEOF | |
26541 | /* confdefs.h. */ | |
26542 | _ACEOF | |
26543 | cat confdefs.h >>conftest.$ac_ext | |
26544 | cat >>conftest.$ac_ext <<_ACEOF | |
26545 | /* end confdefs.h. */ | |
26546 | ||
26547 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26548 | #ifdef __cplusplus | |
26549 | extern "C" | |
26550 | #endif | |
26551 | /* We use char because int might match the return type of a gcc2 | |
26552 | builtin and then its argument prototype would still apply. */ | |
26553 | char mspack_create_chm_decompressor (); | |
26554 | int | |
26555 | main () | |
26556 | { | |
26557 | mspack_create_chm_decompressor (); | |
26558 | ; | |
26559 | return 0; | |
26560 | } | |
26561 | _ACEOF | |
26562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26564 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26565 | ac_status=$? |
ac1cb8d3 VS |
26566 | grep -v '^ *+' conftest.er1 >conftest.err |
26567 | rm -f conftest.er1 | |
26568 | cat conftest.err >&5 | |
a848cd7e SC |
26569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26570 | (exit $ac_status); } && | |
c9a66001 | 26571 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26573 | (eval $ac_try) 2>&5 | |
26574 | ac_status=$? | |
26575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26576 | (exit $ac_status); }; } && | |
26577 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26579 | (eval $ac_try) 2>&5 | |
26580 | ac_status=$? | |
26581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26582 | (exit $ac_status); }; }; then | |
26583 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
26584 | else | |
26585 | echo "$as_me: failed program was:" >&5 | |
26586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26587 | ||
26588 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
26589 | fi | |
ac1cb8d3 VS |
26590 | rm -f conftest.err conftest.$ac_objext \ |
26591 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26592 | LIBS=$ac_check_lib_save_LIBS |
26593 | fi | |
26594 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
26595 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
26596 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
26597 | MSPACK_LINK=" -lmspack" | |
26598 | fi | |
26599 | ||
26600 | fi | |
26601 | if test "x$MSPACK_LINK" = "x" ; then | |
26602 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
26603 | fi |
26604 | fi | |
26605 | ||
26606 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
26607 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
26608 | #define wxUSE_LIBMSPACK 1 |
26609 | _ACEOF | |
26610 | ||
a848cd7e SC |
26611 | fi |
26612 | ||
26613 | ||
26614 | ||
26615 | AFMINSTALL= | |
26616 | WIN32INSTALL= | |
26617 | ||
26618 | TOOLKIT= | |
26619 | TOOLKIT_INCLUDE= | |
26620 | WIDGET_SET= | |
26621 | ||
26622 | if test "$USE_WIN32" = 1 ; then | |
26623 | ||
26624 | for ac_header in w32api.h | |
26625 | do | |
26626 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26627 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26628 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26630 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26632 | fi | |
26633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26634 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26635 | else | |
26636 | # Is the header compilable? | |
26637 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26638 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26639 | cat >conftest.$ac_ext <<_ACEOF | |
26640 | /* confdefs.h. */ | |
26641 | _ACEOF | |
26642 | cat confdefs.h >>conftest.$ac_ext | |
26643 | cat >>conftest.$ac_ext <<_ACEOF | |
26644 | /* end confdefs.h. */ | |
26645 | $ac_includes_default | |
26646 | #include <$ac_header> | |
26647 | _ACEOF | |
26648 | rm -f conftest.$ac_objext | |
26649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26650 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26651 | ac_status=$? |
ac1cb8d3 VS |
26652 | grep -v '^ *+' conftest.er1 >conftest.err |
26653 | rm -f conftest.er1 | |
26654 | cat conftest.err >&5 | |
a848cd7e SC |
26655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26656 | (exit $ac_status); } && | |
c9a66001 | 26657 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26659 | (eval $ac_try) 2>&5 | |
26660 | ac_status=$? | |
26661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26662 | (exit $ac_status); }; } && | |
26663 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26665 | (eval $ac_try) 2>&5 | |
26666 | ac_status=$? | |
26667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26668 | (exit $ac_status); }; }; then | |
26669 | ac_header_compiler=yes | |
26670 | else | |
26671 | echo "$as_me: failed program was:" >&5 | |
26672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26673 | ||
26674 | ac_header_compiler=no | |
26675 | fi | |
ac1cb8d3 | 26676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26677 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26678 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26679 | ||
26680 | # Is the header present? | |
26681 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26682 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26683 | cat >conftest.$ac_ext <<_ACEOF | |
26684 | /* confdefs.h. */ | |
26685 | _ACEOF | |
26686 | cat confdefs.h >>conftest.$ac_ext | |
26687 | cat >>conftest.$ac_ext <<_ACEOF | |
26688 | /* end confdefs.h. */ | |
26689 | #include <$ac_header> | |
26690 | _ACEOF | |
26691 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26692 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26693 | ac_status=$? | |
26694 | grep -v '^ *+' conftest.er1 >conftest.err | |
26695 | rm -f conftest.er1 | |
26696 | cat conftest.err >&5 | |
26697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26698 | (exit $ac_status); } >/dev/null; then | |
26699 | if test -s conftest.err; then | |
5d7b7554 VZ |
26700 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26701 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26702 | else |
26703 | ac_cpp_err= | |
26704 | fi | |
26705 | else | |
26706 | ac_cpp_err=yes | |
26707 | fi | |
26708 | if test -z "$ac_cpp_err"; then | |
26709 | ac_header_preproc=yes | |
26710 | else | |
26711 | echo "$as_me: failed program was:" >&5 | |
26712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26713 | ||
26714 | ac_header_preproc=no | |
26715 | fi | |
26716 | rm -f conftest.err conftest.$ac_ext | |
26717 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26718 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26719 | ||
26720 | # So? What about this header? | |
5d7b7554 | 26721 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26722 | yes:no: ) |
a848cd7e SC |
26723 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26724 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
26726 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
26727 | ac_header_preproc=yes | |
a848cd7e | 26728 | ;; |
ac1cb8d3 | 26729 | no:yes:* ) |
a848cd7e SC |
26730 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
26731 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26732 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
26733 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
26734 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
26735 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
26736 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
26737 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26738 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
26739 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26740 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
26741 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26742 | ( |
26743 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26744 | ## ----------------------------------------- ## |
26745 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26746 | ## ----------------------------------------- ## | |
a848cd7e SC |
26747 | _ASBOX |
26748 | ) | | |
26749 | sed "s/^/$as_me: WARNING: /" >&2 | |
26750 | ;; | |
26751 | esac | |
26752 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26753 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26754 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26756 | else | |
ac1cb8d3 | 26757 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
26758 | fi |
26759 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26760 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26761 | ||
26762 | fi | |
26763 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26764 | cat >>confdefs.h <<_ACEOF | |
26765 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26766 | _ACEOF | |
26767 | ||
26768 | fi | |
26769 | ||
26770 | done | |
26771 | ||
26772 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26773 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26774 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26775 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26777 | fi | |
26778 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26779 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26780 | else | |
26781 | # Is the header compilable? | |
26782 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
26783 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
26784 | cat >conftest.$ac_ext <<_ACEOF | |
26785 | /* confdefs.h. */ | |
26786 | _ACEOF | |
26787 | cat confdefs.h >>conftest.$ac_ext | |
26788 | cat >>conftest.$ac_ext <<_ACEOF | |
26789 | /* end confdefs.h. */ | |
26790 | $ac_includes_default | |
26791 | #include <windows.h> | |
26792 | _ACEOF | |
26793 | rm -f conftest.$ac_objext | |
26794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26796 | ac_status=$? |
ac1cb8d3 VS |
26797 | grep -v '^ *+' conftest.er1 >conftest.err |
26798 | rm -f conftest.er1 | |
26799 | cat conftest.err >&5 | |
a848cd7e SC |
26800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26801 | (exit $ac_status); } && | |
c9a66001 | 26802 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26804 | (eval $ac_try) 2>&5 | |
26805 | ac_status=$? | |
26806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26807 | (exit $ac_status); }; } && | |
26808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26810 | (eval $ac_try) 2>&5 | |
26811 | ac_status=$? | |
26812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26813 | (exit $ac_status); }; }; then | |
26814 | ac_header_compiler=yes | |
26815 | else | |
26816 | echo "$as_me: failed program was:" >&5 | |
26817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26818 | ||
26819 | ac_header_compiler=no | |
26820 | fi | |
ac1cb8d3 | 26821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26822 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26823 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26824 | ||
26825 | # Is the header present? | |
26826 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
26827 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
26828 | cat >conftest.$ac_ext <<_ACEOF | |
26829 | /* confdefs.h. */ | |
26830 | _ACEOF | |
26831 | cat confdefs.h >>conftest.$ac_ext | |
26832 | cat >>conftest.$ac_ext <<_ACEOF | |
26833 | /* end confdefs.h. */ | |
26834 | #include <windows.h> | |
26835 | _ACEOF | |
26836 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26837 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26838 | ac_status=$? | |
26839 | grep -v '^ *+' conftest.er1 >conftest.err | |
26840 | rm -f conftest.er1 | |
26841 | cat conftest.err >&5 | |
26842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26843 | (exit $ac_status); } >/dev/null; then | |
26844 | if test -s conftest.err; then | |
5d7b7554 VZ |
26845 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26846 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26847 | else |
26848 | ac_cpp_err= | |
26849 | fi | |
26850 | else | |
26851 | ac_cpp_err=yes | |
26852 | fi | |
26853 | if test -z "$ac_cpp_err"; then | |
26854 | ac_header_preproc=yes | |
26855 | else | |
26856 | echo "$as_me: failed program was:" >&5 | |
26857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26858 | ||
26859 | ac_header_preproc=no | |
26860 | fi | |
26861 | rm -f conftest.err conftest.$ac_ext | |
26862 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26863 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26864 | ||
26865 | # So? What about this header? | |
5d7b7554 | 26866 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26867 | yes:no: ) |
a848cd7e SC |
26868 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26869 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26870 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26871 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26872 | ac_header_preproc=yes | |
a848cd7e | 26873 | ;; |
ac1cb8d3 | 26874 | no:yes:* ) |
a848cd7e SC |
26875 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26876 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26877 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26878 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26879 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26880 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26881 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26882 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26883 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26884 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26885 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26886 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26887 | ( |
26888 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26889 | ## ----------------------------------------- ## |
26890 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26891 | ## ----------------------------------------- ## | |
a848cd7e SC |
26892 | _ASBOX |
26893 | ) | | |
26894 | sed "s/^/$as_me: WARNING: /" >&2 | |
26895 | ;; | |
26896 | esac | |
26897 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26898 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26899 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26901 | else | |
26902 | ac_cv_header_windows_h=$ac_header_preproc | |
26903 | fi | |
26904 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26905 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26906 | ||
26907 | fi | |
26908 | if test $ac_cv_header_windows_h = yes; then | |
26909 | : | |
26910 | else | |
26911 | ||
26912 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26913 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26914 | { (exit 1); exit 1; }; } | |
26915 | ||
26916 | fi | |
26917 | ||
26918 | ||
26919 | ||
26920 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26921 | ||
26922 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26923 | LIBS="$LIBS -loleacc" | |
26924 | fi | |
26925 | ||
26926 | case "${host}" in | |
26927 | *-*-cygwin* ) | |
26928 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26929 | esac |
26930 | ||
26931 | if test "$wxUSE_ODBC" = "sys" ; then | |
26932 | wxUSE_ODBC = "yes" | |
26933 | fi | |
26934 | if test "$wxUSE_ODBC" = "yes" ; then | |
26935 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26936 | cat >>confdefs.h <<\_ACEOF | |
26937 | #define wxUSE_ODBC 1 | |
26938 | _ACEOF | |
26939 | ||
26940 | fi | |
26941 | ||
370d2fd7 | 26942 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26943 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26944 | ||
004ee6da | 26945 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26946 | |
a848cd7e SC |
26947 | WIN32INSTALL=win32install |
26948 | fi | |
26949 | ||
26950 | if test "$wxUSE_GUI" = "yes"; then | |
26951 | USE_GUI=1 | |
26952 | ||
26953 | GUI_TK_LIBRARY= | |
26954 | ||
26955 | WXGTK12= | |
26956 | WXGTK127= | |
26957 | WXGTK20= | |
26958 | WXGPE= | |
26959 | ||
207bc66c RN |
26960 | if test "$wxUSE_COCOA" = 1 ; then |
26961 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26962 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26963 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26964 | wxUSE_PRINTING_ARCHITECTURE=no | |
26965 | fi | |
26966 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26967 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26968 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26969 | wxUSE_DRAG_AND_DROP=no | |
26970 | fi | |
26971 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
26972 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
26973 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
26974 | wxUSE_DRAGIMAGE=no | |
26975 | fi | |
26976 | fi | |
26977 | ||
a848cd7e SC |
26978 | if test "$wxUSE_MSW" = 1 ; then |
26979 | TOOLKIT=MSW | |
26980 | GUIDIST=MSW_DIST | |
26981 | ||
ceec2216 | 26982 | case "${host}" in |
a848cd7e SC |
26983 | *-*-mingw32* ) |
26984 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
26985 | esac | |
26986 | fi | |
26987 | ||
26988 | if test "$wxUSE_GTK" = 1; then | |
5d7b7554 VZ |
26989 | ac_ext=c |
26990 | ac_cpp='$CPP $CPPFLAGS' | |
26991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26994 | ||
26995 | ||
a848cd7e SC |
26996 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
26997 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
26998 | ||
26999 | gtk_version_cached=1 | |
27000 | if test "${wx_cv_lib_gtk+set}" = set; then | |
27001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27002 | else | |
27003 | ||
27004 | gtk_version_cached=0 | |
27005 | echo "$as_me:$LINENO: result: " >&5 | |
27006 | echo "${ECHO_T}" >&6 | |
27007 | ||
27008 | GTK_MODULES= | |
27009 | if test "$wxUSE_THREADS" = "yes"; then | |
27010 | GTK_MODULES=gthread | |
27011 | fi | |
27012 | ||
f597b41c | 27013 | wx_cv_lib_gtk= |
5001df0d MW |
27014 | if test "x$wxGTK_VERSION" != "x1" |
27015 | then | |
27016 | case "${host}" in | |
27017 | *-*-solaris2* ) | |
27018 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 27019 | enable_gtktest=no |
5001df0d MW |
27020 | fi |
27021 | esac | |
27022 | ||
a848cd7e SC |
27023 | # Check whether --enable-gtktest or --disable-gtktest was given. |
27024 | if test "${enable_gtktest+set}" = set; then | |
27025 | enableval="$enable_gtktest" | |
27026 | ||
27027 | else | |
27028 | enable_gtktest=yes | |
27029 | fi; | |
27030 | ||
27031 | pkg_config_args=gtk+-2.0 | |
27032 | for module in . $GTK_MODULES | |
27033 | do | |
27034 | case "$module" in | |
27035 | gthread) | |
27036 | pkg_config_args="$pkg_config_args gthread-2.0" | |
27037 | ;; | |
27038 | esac | |
27039 | done | |
27040 | ||
27041 | no_gtk="" | |
27042 | ||
27043 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27044 | set dummy pkg-config; ac_word=$2 | |
27045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27047 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27049 | else | |
27050 | case $PKG_CONFIG in | |
27051 | [\\/]* | ?:[\\/]*) | |
27052 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27053 | ;; | |
27054 | *) | |
27055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27056 | for as_dir in $PATH | |
27057 | do | |
27058 | IFS=$as_save_IFS | |
27059 | test -z "$as_dir" && as_dir=. | |
27060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27061 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27062 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27064 | break 2 | |
27065 | fi | |
27066 | done | |
27067 | done | |
27068 | ||
27069 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27070 | ;; | |
27071 | esac | |
27072 | fi | |
27073 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27074 | ||
27075 | if test -n "$PKG_CONFIG"; then | |
27076 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27077 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27078 | else | |
27079 | echo "$as_me:$LINENO: result: no" >&5 | |
27080 | echo "${ECHO_T}no" >&6 | |
27081 | fi | |
27082 | ||
27083 | ||
27084 | if test x$PKG_CONFIG != xno ; then | |
27085 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
27086 | : | |
27087 | else | |
c2218763 | 27088 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
27089 | no_gtk=yes |
27090 | PKG_CONFIG=no | |
27091 | fi | |
27092 | else | |
27093 | no_gtk=yes | |
27094 | fi | |
27095 | ||
27096 | min_gtk_version=2.0.0 | |
27097 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
27098 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
27099 | ||
27100 | if test x$PKG_CONFIG != xno ; then | |
27101 | ## don't try to run the test against uninstalled libtool libs | |
27102 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
27103 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
27104 | enable_gtktest=no | |
27105 | fi | |
27106 | ||
27107 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
27108 | : | |
27109 | else | |
27110 | no_gtk=yes | |
27111 | fi | |
27112 | fi | |
27113 | ||
27114 | if test x"$no_gtk" = x ; then | |
27115 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
27116 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
27117 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27118 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27119 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27120 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27121 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27122 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27123 | if test "x$enable_gtktest" = "xyes" ; then | |
27124 | ac_save_CFLAGS="$CFLAGS" | |
27125 | ac_save_LIBS="$LIBS" | |
27126 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27127 | LIBS="$GTK_LIBS $LIBS" | |
27128 | rm -f conf.gtktest | |
27129 | if test "$cross_compiling" = yes; then | |
27130 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27131 | else | |
27132 | cat >conftest.$ac_ext <<_ACEOF | |
27133 | /* confdefs.h. */ | |
27134 | _ACEOF | |
27135 | cat confdefs.h >>conftest.$ac_ext | |
27136 | cat >>conftest.$ac_ext <<_ACEOF | |
27137 | /* end confdefs.h. */ | |
27138 | ||
27139 | #include <gtk/gtk.h> | |
27140 | #include <stdio.h> | |
27141 | #include <stdlib.h> | |
27142 | ||
27143 | int | |
27144 | main () | |
27145 | { | |
27146 | int major, minor, micro; | |
27147 | char *tmp_version; | |
27148 | ||
27149 | system ("touch conf.gtktest"); | |
27150 | ||
27151 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27152 | tmp_version = g_strdup("$min_gtk_version"); | |
27153 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27154 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27155 | exit(1); | |
27156 | } | |
27157 | ||
27158 | if ((gtk_major_version != $gtk_config_major_version) || | |
27159 | (gtk_minor_version != $gtk_config_minor_version) || | |
27160 | (gtk_micro_version != $gtk_config_micro_version)) | |
27161 | { | |
27162 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27163 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27164 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27165 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
27166 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27167 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27168 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27169 | printf("*** required on your system.\n"); | |
27170 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
27171 | printf("*** to point to the correct configuration files\n"); | |
27172 | } | |
27173 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27174 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27175 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27176 | { | |
27177 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27178 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27179 | printf("*** library (version %d.%d.%d)\n", | |
27180 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27181 | } | |
27182 | else | |
27183 | { | |
27184 | if ((gtk_major_version > major) || | |
27185 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27186 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27187 | { | |
27188 | return 0; | |
27189 | } | |
27190 | else | |
27191 | { | |
27192 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27193 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27194 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27195 | major, minor, micro); | |
27196 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27197 | printf("***\n"); | |
27198 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27199 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
27200 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27201 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
27202 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
27203 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27204 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27205 | } | |
27206 | } | |
27207 | return 1; | |
27208 | } | |
27209 | ||
27210 | _ACEOF | |
27211 | rm -f conftest$ac_exeext | |
27212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27213 | (eval $ac_link) 2>&5 | |
27214 | ac_status=$? | |
27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27216 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27218 | (eval $ac_try) 2>&5 | |
27219 | ac_status=$? | |
27220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27221 | (exit $ac_status); }; }; then | |
27222 | : | |
27223 | else | |
27224 | echo "$as_me: program exited with status $ac_status" >&5 | |
27225 | echo "$as_me: failed program was:" >&5 | |
27226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27227 | ||
27228 | ( exit $ac_status ) | |
27229 | no_gtk=yes | |
27230 | fi | |
ac1cb8d3 | 27231 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27232 | fi |
27233 | CFLAGS="$ac_save_CFLAGS" | |
27234 | LIBS="$ac_save_LIBS" | |
27235 | fi | |
27236 | fi | |
27237 | if test "x$no_gtk" = x ; then | |
27238 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
27239 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
27240 | wx_cv_lib_gtk=2.0 | |
27241 | else | |
27242 | echo "$as_me:$LINENO: result: no" >&5 | |
27243 | echo "${ECHO_T}no" >&6 | |
27244 | if test "$PKG_CONFIG" = "no" ; then | |
27245 | echo "*** A new enough version of pkg-config was not found." | |
27246 | echo "*** See http://pkgconfig.sourceforge.net" | |
27247 | else | |
27248 | if test -f conf.gtktest ; then | |
27249 | : | |
27250 | else | |
27251 | echo "*** Could not run GTK+ test program, checking why..." | |
27252 | ac_save_CFLAGS="$CFLAGS" | |
27253 | ac_save_LIBS="$LIBS" | |
27254 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27255 | LIBS="$LIBS $GTK_LIBS" | |
27256 | cat >conftest.$ac_ext <<_ACEOF | |
27257 | /* confdefs.h. */ | |
27258 | _ACEOF | |
27259 | cat confdefs.h >>conftest.$ac_ext | |
27260 | cat >>conftest.$ac_ext <<_ACEOF | |
27261 | /* end confdefs.h. */ | |
27262 | ||
27263 | #include <gtk/gtk.h> | |
27264 | #include <stdio.h> | |
27265 | ||
27266 | int | |
27267 | main () | |
27268 | { | |
27269 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27270 | ; | |
27271 | return 0; | |
27272 | } | |
27273 | _ACEOF | |
27274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27276 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27277 | ac_status=$? |
ac1cb8d3 VS |
27278 | grep -v '^ *+' conftest.er1 >conftest.err |
27279 | rm -f conftest.er1 | |
27280 | cat conftest.err >&5 | |
a848cd7e SC |
27281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27282 | (exit $ac_status); } && | |
c9a66001 | 27283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27285 | (eval $ac_try) 2>&5 | |
27286 | ac_status=$? | |
27287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27288 | (exit $ac_status); }; } && | |
27289 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27291 | (eval $ac_try) 2>&5 | |
27292 | ac_status=$? | |
27293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27294 | (exit $ac_status); }; }; then | |
27295 | echo "*** The test program compiled, but did not run. This usually means" | |
27296 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
27297 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
27298 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27299 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27300 | echo "*** is required on your system" | |
27301 | echo "***" | |
27302 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27303 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27304 | else | |
27305 | echo "$as_me: failed program was:" >&5 | |
27306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27307 | ||
27308 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27309 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
27310 | fi | |
ac1cb8d3 VS |
27311 | rm -f conftest.err conftest.$ac_objext \ |
27312 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27313 | CFLAGS="$ac_save_CFLAGS" |
27314 | LIBS="$ac_save_LIBS" | |
27315 | fi | |
27316 | fi | |
27317 | GTK_CFLAGS="" | |
27318 | GTK_LIBS="" | |
27319 | : | |
27320 | fi | |
27321 | ||
27322 | ||
27323 | rm -f conf.gtktest | |
27324 | ||
5001df0d MW |
27325 | |
27326 | case "${host}" in | |
27327 | *-*-solaris2* ) | |
27328 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
27329 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
27330 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
27331 | fi | |
27332 | if test "$wxUSE_SHARED" != "yes"; then | |
27333 | GTK_LIBS="$GTK_LIBS -lX11" | |
27334 | fi | |
27335 | esac | |
f597b41c MW |
27336 | fi |
27337 | ||
f34ca037 MW |
27338 | if test -z "$wx_cv_lib_gtk"; then |
27339 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
27340 | |
27341 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27342 | if test "${with_gtk_prefix+set}" = set; then | |
27343 | withval="$with_gtk_prefix" | |
27344 | gtk_config_prefix="$withval" | |
27345 | else | |
27346 | gtk_config_prefix="" | |
27347 | fi; | |
27348 | ||
27349 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27350 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27351 | withval="$with_gtk_exec_prefix" | |
27352 | gtk_config_exec_prefix="$withval" | |
27353 | else | |
27354 | gtk_config_exec_prefix="" | |
27355 | fi; | |
27356 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27357 | if test "${enable_gtktest+set}" = set; then | |
27358 | enableval="$enable_gtktest" | |
27359 | ||
27360 | else | |
27361 | enable_gtktest=yes | |
27362 | fi; | |
27363 | ||
27364 | for module in . $GTK_MODULES | |
27365 | do | |
27366 | case "$module" in | |
27367 | gthread) | |
27368 | gtk_config_args="$gtk_config_args gthread" | |
27369 | ;; | |
27370 | esac | |
27371 | done | |
27372 | ||
27373 | if test x$gtk_config_exec_prefix != x ; then | |
27374 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27375 | if test x${GTK_CONFIG+set} != xset ; then | |
27376 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27377 | fi | |
27378 | fi | |
27379 | if test x$gtk_config_prefix != x ; then | |
27380 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27381 | if test x${GTK_CONFIG+set} != xset ; then | |
27382 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27383 | fi | |
27384 | fi | |
27385 | ||
27386 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27387 | set dummy gtk-config; ac_word=$2 | |
27388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27390 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27392 | else | |
27393 | case $GTK_CONFIG in | |
27394 | [\\/]* | ?:[\\/]*) | |
27395 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27396 | ;; | |
27397 | *) | |
27398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27399 | for as_dir in $PATH | |
27400 | do | |
27401 | IFS=$as_save_IFS | |
27402 | test -z "$as_dir" && as_dir=. | |
27403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27405 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27407 | break 2 | |
27408 | fi | |
27409 | done | |
27410 | done | |
27411 | ||
27412 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27413 | ;; | |
27414 | esac | |
27415 | fi | |
27416 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27417 | ||
27418 | if test -n "$GTK_CONFIG"; then | |
27419 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27420 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27421 | else | |
27422 | echo "$as_me:$LINENO: result: no" >&5 | |
27423 | echo "${ECHO_T}no" >&6 | |
27424 | fi | |
27425 | ||
27426 | min_gtk_version=1.2.7 | |
27427 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27428 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27429 | no_gtk="" | |
27430 | if test "$GTK_CONFIG" = "no" ; then | |
27431 | no_gtk=yes | |
27432 | else | |
27433 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27434 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27435 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27436 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27437 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27438 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27439 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27440 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27441 | if test "x$enable_gtktest" = "xyes" ; then | |
27442 | ac_save_CFLAGS="$CFLAGS" | |
27443 | ac_save_LIBS="$LIBS" | |
27444 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27445 | LIBS="$GTK_LIBS $LIBS" | |
27446 | rm -f conf.gtktest | |
27447 | if test "$cross_compiling" = yes; then | |
27448 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27449 | else | |
27450 | cat >conftest.$ac_ext <<_ACEOF | |
27451 | /* confdefs.h. */ | |
27452 | _ACEOF | |
27453 | cat confdefs.h >>conftest.$ac_ext | |
27454 | cat >>conftest.$ac_ext <<_ACEOF | |
27455 | /* end confdefs.h. */ | |
27456 | ||
27457 | #include <gtk/gtk.h> | |
27458 | #include <stdio.h> | |
27459 | #include <stdlib.h> | |
27460 | ||
27461 | int | |
27462 | main () | |
27463 | { | |
27464 | int major, minor, micro; | |
27465 | char *tmp_version; | |
27466 | ||
27467 | system ("touch conf.gtktest"); | |
27468 | ||
27469 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27470 | tmp_version = g_strdup("$min_gtk_version"); | |
27471 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27472 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27473 | exit(1); | |
27474 | } | |
27475 | ||
27476 | if ((gtk_major_version != $gtk_config_major_version) || | |
27477 | (gtk_minor_version != $gtk_config_minor_version) || | |
27478 | (gtk_micro_version != $gtk_config_micro_version)) | |
27479 | { | |
27480 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27481 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27482 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27483 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27484 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27485 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27486 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27487 | printf("*** required on your system.\n"); | |
27488 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27489 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27490 | printf("*** before re-running configure\n"); | |
27491 | } | |
27492 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27493 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27494 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27495 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27496 | { | |
27497 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27498 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27499 | printf("*** library (version %d.%d.%d)\n", | |
27500 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27501 | } | |
27502 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27503 | else | |
27504 | { | |
27505 | if ((gtk_major_version > major) || | |
27506 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27507 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27508 | { | |
27509 | return 0; | |
27510 | } | |
27511 | else | |
27512 | { | |
27513 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27514 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27515 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27516 | major, minor, micro); | |
27517 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27518 | printf("***\n"); | |
27519 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27520 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27521 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27522 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27523 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27524 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27525 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27526 | } | |
27527 | } | |
27528 | return 1; | |
27529 | } | |
27530 | ||
27531 | _ACEOF | |
27532 | rm -f conftest$ac_exeext | |
27533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27534 | (eval $ac_link) 2>&5 | |
27535 | ac_status=$? | |
27536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27537 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27539 | (eval $ac_try) 2>&5 | |
27540 | ac_status=$? | |
27541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27542 | (exit $ac_status); }; }; then | |
27543 | : | |
27544 | else | |
27545 | echo "$as_me: program exited with status $ac_status" >&5 | |
27546 | echo "$as_me: failed program was:" >&5 | |
27547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27548 | ||
27549 | ( exit $ac_status ) | |
27550 | no_gtk=yes | |
27551 | fi | |
ac1cb8d3 | 27552 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27553 | fi |
27554 | CFLAGS="$ac_save_CFLAGS" | |
27555 | LIBS="$ac_save_LIBS" | |
27556 | fi | |
27557 | fi | |
27558 | if test "x$no_gtk" = x ; then | |
27559 | echo "$as_me:$LINENO: result: yes" >&5 | |
27560 | echo "${ECHO_T}yes" >&6 | |
27561 | wx_cv_lib_gtk=1.2.7 | |
27562 | else | |
27563 | echo "$as_me:$LINENO: result: no" >&5 | |
27564 | echo "${ECHO_T}no" >&6 | |
27565 | if test "$GTK_CONFIG" = "no" ; then | |
27566 | echo "*** The gtk-config script installed by GTK could not be found" | |
27567 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27568 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27569 | echo "*** full path to gtk-config." | |
27570 | else | |
27571 | if test -f conf.gtktest ; then | |
27572 | : | |
27573 | else | |
27574 | echo "*** Could not run GTK test program, checking why..." | |
27575 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27576 | LIBS="$LIBS $GTK_LIBS" | |
27577 | cat >conftest.$ac_ext <<_ACEOF | |
27578 | /* confdefs.h. */ | |
27579 | _ACEOF | |
27580 | cat confdefs.h >>conftest.$ac_ext | |
27581 | cat >>conftest.$ac_ext <<_ACEOF | |
27582 | /* end confdefs.h. */ | |
27583 | ||
27584 | #include <gtk/gtk.h> | |
27585 | #include <stdio.h> | |
27586 | ||
27587 | int | |
27588 | main () | |
27589 | { | |
27590 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27591 | ; | |
27592 | return 0; | |
27593 | } | |
27594 | _ACEOF | |
27595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27597 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27598 | ac_status=$? |
ac1cb8d3 VS |
27599 | grep -v '^ *+' conftest.er1 >conftest.err |
27600 | rm -f conftest.er1 | |
27601 | cat conftest.err >&5 | |
a848cd7e SC |
27602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27603 | (exit $ac_status); } && | |
c9a66001 | 27604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27606 | (eval $ac_try) 2>&5 | |
27607 | ac_status=$? | |
27608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27609 | (exit $ac_status); }; } && | |
27610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27612 | (eval $ac_try) 2>&5 | |
27613 | ac_status=$? | |
27614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27615 | (exit $ac_status); }; }; then | |
27616 | echo "*** The test program compiled, but did not run. This usually means" | |
27617 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27618 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27619 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27620 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27621 | echo "*** is required on your system" | |
27622 | echo "***" | |
27623 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27624 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27625 | echo "***" | |
27626 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27627 | echo "*** came with the system with the command" | |
27628 | echo "***" | |
27629 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27630 | else | |
27631 | echo "$as_me: failed program was:" >&5 | |
27632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27633 | ||
27634 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27635 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27636 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27637 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27638 | fi | |
ac1cb8d3 VS |
27639 | rm -f conftest.err conftest.$ac_objext \ |
27640 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27641 | CFLAGS="$ac_save_CFLAGS" |
27642 | LIBS="$ac_save_LIBS" | |
27643 | fi | |
27644 | fi | |
27645 | GTK_CFLAGS="" | |
27646 | GTK_LIBS="" | |
27647 | : | |
27648 | fi | |
27649 | ||
27650 | ||
27651 | rm -f conf.gtktest | |
27652 | ||
27653 | ||
f34ca037 | 27654 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
27655 | |
27656 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27657 | if test "${with_gtk_prefix+set}" = set; then | |
27658 | withval="$with_gtk_prefix" | |
27659 | gtk_config_prefix="$withval" | |
27660 | else | |
27661 | gtk_config_prefix="" | |
27662 | fi; | |
27663 | ||
27664 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27665 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27666 | withval="$with_gtk_exec_prefix" | |
27667 | gtk_config_exec_prefix="$withval" | |
27668 | else | |
27669 | gtk_config_exec_prefix="" | |
27670 | fi; | |
27671 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27672 | if test "${enable_gtktest+set}" = set; then | |
27673 | enableval="$enable_gtktest" | |
27674 | ||
27675 | else | |
27676 | enable_gtktest=yes | |
27677 | fi; | |
27678 | ||
27679 | for module in . $GTK_MODULES | |
27680 | do | |
27681 | case "$module" in | |
27682 | gthread) | |
27683 | gtk_config_args="$gtk_config_args gthread" | |
27684 | ;; | |
27685 | esac | |
27686 | done | |
27687 | ||
27688 | if test x$gtk_config_exec_prefix != x ; then | |
27689 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27690 | if test x${GTK_CONFIG+set} != xset ; then | |
27691 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27692 | fi | |
27693 | fi | |
27694 | if test x$gtk_config_prefix != x ; then | |
27695 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27696 | if test x${GTK_CONFIG+set} != xset ; then | |
27697 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27698 | fi | |
27699 | fi | |
27700 | ||
27701 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27702 | set dummy gtk-config; ac_word=$2 | |
27703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27705 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27707 | else | |
27708 | case $GTK_CONFIG in | |
27709 | [\\/]* | ?:[\\/]*) | |
27710 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27711 | ;; | |
27712 | *) | |
27713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27714 | for as_dir in $PATH | |
27715 | do | |
27716 | IFS=$as_save_IFS | |
27717 | test -z "$as_dir" && as_dir=. | |
27718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27720 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27722 | break 2 | |
27723 | fi | |
27724 | done | |
27725 | done | |
27726 | ||
27727 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27728 | ;; | |
27729 | esac | |
27730 | fi | |
27731 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27732 | ||
27733 | if test -n "$GTK_CONFIG"; then | |
27734 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27735 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27736 | else | |
27737 | echo "$as_me:$LINENO: result: no" >&5 | |
27738 | echo "${ECHO_T}no" >&6 | |
27739 | fi | |
27740 | ||
27741 | min_gtk_version=1.2.3 | |
27742 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27743 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27744 | no_gtk="" | |
27745 | if test "$GTK_CONFIG" = "no" ; then | |
27746 | no_gtk=yes | |
27747 | else | |
27748 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27749 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27750 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27751 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27752 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27753 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27754 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27755 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27756 | if test "x$enable_gtktest" = "xyes" ; then | |
27757 | ac_save_CFLAGS="$CFLAGS" | |
27758 | ac_save_LIBS="$LIBS" | |
27759 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27760 | LIBS="$GTK_LIBS $LIBS" | |
27761 | rm -f conf.gtktest | |
27762 | if test "$cross_compiling" = yes; then | |
27763 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27764 | else | |
27765 | cat >conftest.$ac_ext <<_ACEOF | |
27766 | /* confdefs.h. */ | |
27767 | _ACEOF | |
27768 | cat confdefs.h >>conftest.$ac_ext | |
27769 | cat >>conftest.$ac_ext <<_ACEOF | |
27770 | /* end confdefs.h. */ | |
27771 | ||
27772 | #include <gtk/gtk.h> | |
27773 | #include <stdio.h> | |
27774 | #include <stdlib.h> | |
27775 | ||
27776 | int | |
27777 | main () | |
27778 | { | |
27779 | int major, minor, micro; | |
27780 | char *tmp_version; | |
27781 | ||
27782 | system ("touch conf.gtktest"); | |
27783 | ||
27784 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27785 | tmp_version = g_strdup("$min_gtk_version"); | |
27786 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27787 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27788 | exit(1); | |
27789 | } | |
27790 | ||
27791 | if ((gtk_major_version != $gtk_config_major_version) || | |
27792 | (gtk_minor_version != $gtk_config_minor_version) || | |
27793 | (gtk_micro_version != $gtk_config_micro_version)) | |
27794 | { | |
27795 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27796 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27797 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27798 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27799 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27800 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27801 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27802 | printf("*** required on your system.\n"); | |
27803 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27804 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27805 | printf("*** before re-running configure\n"); | |
27806 | } | |
27807 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27808 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27809 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27810 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27811 | { | |
27812 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27813 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27814 | printf("*** library (version %d.%d.%d)\n", | |
27815 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27816 | } | |
27817 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27818 | else | |
27819 | { | |
27820 | if ((gtk_major_version > major) || | |
27821 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27822 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27823 | { | |
27824 | return 0; | |
27825 | } | |
27826 | else | |
27827 | { | |
27828 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27829 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27830 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27831 | major, minor, micro); | |
27832 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27833 | printf("***\n"); | |
27834 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27835 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27836 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27837 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27838 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27839 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27840 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27841 | } | |
27842 | } | |
27843 | return 1; | |
27844 | } | |
27845 | ||
27846 | _ACEOF | |
27847 | rm -f conftest$ac_exeext | |
27848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27849 | (eval $ac_link) 2>&5 | |
27850 | ac_status=$? | |
27851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27852 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27854 | (eval $ac_try) 2>&5 | |
27855 | ac_status=$? | |
27856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27857 | (exit $ac_status); }; }; then | |
27858 | : | |
27859 | else | |
27860 | echo "$as_me: program exited with status $ac_status" >&5 | |
27861 | echo "$as_me: failed program was:" >&5 | |
27862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27863 | ||
27864 | ( exit $ac_status ) | |
27865 | no_gtk=yes | |
27866 | fi | |
ac1cb8d3 | 27867 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27868 | fi |
27869 | CFLAGS="$ac_save_CFLAGS" | |
27870 | LIBS="$ac_save_LIBS" | |
27871 | fi | |
27872 | fi | |
27873 | if test "x$no_gtk" = x ; then | |
27874 | echo "$as_me:$LINENO: result: yes" >&5 | |
27875 | echo "${ECHO_T}yes" >&6 | |
27876 | wx_cv_lib_gtk=1.2.3 | |
27877 | else | |
27878 | echo "$as_me:$LINENO: result: no" >&5 | |
27879 | echo "${ECHO_T}no" >&6 | |
27880 | if test "$GTK_CONFIG" = "no" ; then | |
27881 | echo "*** The gtk-config script installed by GTK could not be found" | |
27882 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27883 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27884 | echo "*** full path to gtk-config." | |
27885 | else | |
27886 | if test -f conf.gtktest ; then | |
27887 | : | |
27888 | else | |
27889 | echo "*** Could not run GTK test program, checking why..." | |
27890 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27891 | LIBS="$LIBS $GTK_LIBS" | |
27892 | cat >conftest.$ac_ext <<_ACEOF | |
27893 | /* confdefs.h. */ | |
27894 | _ACEOF | |
27895 | cat confdefs.h >>conftest.$ac_ext | |
27896 | cat >>conftest.$ac_ext <<_ACEOF | |
27897 | /* end confdefs.h. */ | |
27898 | ||
27899 | #include <gtk/gtk.h> | |
27900 | #include <stdio.h> | |
27901 | ||
27902 | int | |
27903 | main () | |
27904 | { | |
27905 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27906 | ; | |
27907 | return 0; | |
27908 | } | |
27909 | _ACEOF | |
27910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27912 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27913 | ac_status=$? |
ac1cb8d3 VS |
27914 | grep -v '^ *+' conftest.er1 >conftest.err |
27915 | rm -f conftest.er1 | |
27916 | cat conftest.err >&5 | |
a848cd7e SC |
27917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27918 | (exit $ac_status); } && | |
c9a66001 | 27919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27921 | (eval $ac_try) 2>&5 | |
27922 | ac_status=$? | |
27923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27924 | (exit $ac_status); }; } && | |
27925 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27927 | (eval $ac_try) 2>&5 | |
27928 | ac_status=$? | |
27929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27930 | (exit $ac_status); }; }; then | |
27931 | echo "*** The test program compiled, but did not run. This usually means" | |
27932 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27933 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27934 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27935 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27936 | echo "*** is required on your system" | |
27937 | echo "***" | |
27938 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27939 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27940 | echo "***" | |
27941 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27942 | echo "*** came with the system with the command" | |
27943 | echo "***" | |
27944 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27945 | else | |
27946 | echo "$as_me: failed program was:" >&5 | |
27947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27948 | ||
27949 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27950 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27951 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27952 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27953 | fi | |
ac1cb8d3 VS |
27954 | rm -f conftest.err conftest.$ac_objext \ |
27955 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27956 | CFLAGS="$ac_save_CFLAGS" |
27957 | LIBS="$ac_save_LIBS" | |
27958 | fi | |
27959 | fi | |
27960 | GTK_CFLAGS="" | |
27961 | GTK_LIBS="" | |
27962 | : | |
27963 | fi | |
27964 | ||
27965 | ||
27966 | rm -f conf.gtktest | |
27967 | ||
f34ca037 | 27968 | fi |
a848cd7e SC |
27969 | fi |
27970 | fi | |
27971 | ||
27972 | if test -z "$wx_cv_lib_gtk"; then | |
27973 | wx_cv_lib_gtk=none | |
27974 | else | |
27975 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 27976 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
27977 | fi |
27978 | ||
27979 | ||
27980 | fi | |
27981 | ||
27982 | ||
27983 | if test "$gtk_version_cached" = 1; then | |
27984 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
27985 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
27986 | fi | |
27987 | ||
27988 | case "$wx_cv_lib_gtk" in | |
27989 | 2.0) WXGTK20=1 | |
27990 | TOOLKIT_VERSION=2 | |
27991 | ;; | |
27992 | 1.2.7) WXGTK127=1 | |
27993 | WXGTK12=1 | |
27994 | ;; | |
27995 | 1.2.3) WXGTK12=1 | |
27996 | ;; | |
27997 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
27998 | The development files for GTK+ were not found. For GTK+ 2, please |
27999 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
28000 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
28001 | and that the version is 1.2.3 or above. Also check that the | |
28002 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
28003 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
28004 | " >&5 |
28005 | echo "$as_me: error: | |
f597b41c MW |
28006 | The development files for GTK+ were not found. For GTK+ 2, please |
28007 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
28008 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
28009 | and that the version is 1.2.3 or above. Also check that the | |
28010 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
28011 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
28012 | " >&2;} |
28013 | { (exit 1); exit 1; }; } | |
28014 | ;; | |
28015 | esac | |
28016 | ||
28017 | if test "$WXGTK20" = 1; then | |
6954625c | 28018 | save_CFLAGS="$CFLAGS" |
304205f1 | 28019 | save_LIBS="$LIBS" |
6954625c | 28020 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 28021 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 28022 | |
d12aef51 VZ |
28023 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
28024 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
28025 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
28026 | /* confdefs.h. */ |
28027 | _ACEOF | |
28028 | cat confdefs.h >>conftest.$ac_ext | |
28029 | cat >>conftest.$ac_ext <<_ACEOF | |
28030 | /* end confdefs.h. */ | |
304205f1 | 28031 | |
d12aef51 | 28032 | #include <gtk/gtk.h> |
304205f1 | 28033 | |
d12aef51 VZ |
28034 | int |
28035 | main () | |
28036 | { | |
304205f1 | 28037 | |
d12aef51 | 28038 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
28039 | |
28040 | ; | |
28041 | return 0; | |
28042 | } | |
28043 | _ACEOF | |
28044 | rm -f conftest.$ac_objext | |
28045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28046 | (eval $ac_compile) 2>conftest.er1 | |
28047 | ac_status=$? | |
28048 | grep -v '^ *+' conftest.er1 >conftest.err | |
28049 | rm -f conftest.er1 | |
28050 | cat conftest.err >&5 | |
28051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28052 | (exit $ac_status); } && | |
c9a66001 | 28053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
28054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28055 | (eval $ac_try) 2>&5 | |
28056 | ac_status=$? | |
28057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28058 | (exit $ac_status); }; } && | |
28059 | { ac_try='test -s conftest.$ac_objext' | |
28060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28061 | (eval $ac_try) 2>&5 | |
28062 | ac_status=$? | |
28063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28064 | (exit $ac_status); }; }; then | |
28065 | ||
28066 | echo "$as_me:$LINENO: result: no" >&5 | |
28067 | echo "${ECHO_T}no" >&6 | |
28068 | ||
28069 | else | |
28070 | echo "$as_me: failed program was:" >&5 | |
28071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28072 | ||
28073 | ||
28074 | cat >>confdefs.h <<\_ACEOF | |
28075 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
28076 | _ACEOF | |
28077 | ||
28078 | echo "$as_me:$LINENO: result: yes" >&5 | |
28079 | echo "${ECHO_T}yes" >&6 | |
28080 | ||
28081 | fi | |
28082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28083 | ||
e9263684 VZ |
28084 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5 |
28085 | echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6 | |
28086 | cat >conftest.$ac_ext <<_ACEOF | |
28087 | /* confdefs.h. */ | |
28088 | _ACEOF | |
28089 | cat confdefs.h >>conftest.$ac_ext | |
28090 | cat >>conftest.$ac_ext <<_ACEOF | |
28091 | /* end confdefs.h. */ | |
28092 | ||
28093 | #include <gtk/gtk.h> | |
28094 | ||
28095 | int | |
28096 | main () | |
28097 | { | |
28098 | ||
28099 | #if !GTK_CHECK_VERSION(2,6,0) | |
28100 | Not GTK+ 2.6 | |
28101 | #endif | |
28102 | ||
28103 | ; | |
28104 | return 0; | |
28105 | } | |
28106 | _ACEOF | |
28107 | rm -f conftest.$ac_objext | |
28108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28109 | (eval $ac_compile) 2>conftest.er1 | |
28110 | ac_status=$? | |
28111 | grep -v '^ *+' conftest.er1 >conftest.err | |
28112 | rm -f conftest.er1 | |
28113 | cat conftest.err >&5 | |
28114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28115 | (exit $ac_status); } && | |
c9a66001 | 28116 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e9263684 VZ |
28117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28118 | (eval $ac_try) 2>&5 | |
28119 | ac_status=$? | |
28120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28121 | (exit $ac_status); }; } && | |
28122 | { ac_try='test -s conftest.$ac_objext' | |
28123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28124 | (eval $ac_try) 2>&5 | |
28125 | ac_status=$? | |
28126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28127 | (exit $ac_status); }; }; then | |
28128 | ||
28129 | cat >>confdefs.h <<\_ACEOF | |
28130 | #define __WXGTK26__ 1 | |
28131 | _ACEOF | |
28132 | ||
28133 | cat >>confdefs.h <<\_ACEOF | |
28134 | #define __WXGTK24__ 1 | |
28135 | _ACEOF | |
28136 | ||
28137 | echo "$as_me:$LINENO: result: yes" >&5 | |
28138 | echo "${ECHO_T}yes" >&6 | |
28139 | ac_wxgtk26=1 | |
28140 | ||
28141 | else | |
28142 | echo "$as_me: failed program was:" >&5 | |
28143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28144 | ||
28145 | ||
28146 | echo "$as_me:$LINENO: result: no" >&5 | |
28147 | echo "${ECHO_T}no" >&6 | |
28148 | ac_wxgtk26=0 | |
28149 | ||
28150 | fi | |
28151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28152 | ||
28153 | if test "$ac_wxgtk26" = 0; then | |
9755e73b VS |
28154 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
28155 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
28156 | cat >conftest.$ac_ext <<_ACEOF | |
28157 | /* confdefs.h. */ | |
28158 | _ACEOF | |
28159 | cat confdefs.h >>conftest.$ac_ext | |
28160 | cat >>conftest.$ac_ext <<_ACEOF | |
28161 | /* end confdefs.h. */ | |
28162 | ||
28163 | #include <gtk/gtk.h> | |
28164 | ||
28165 | int | |
28166 | main () | |
28167 | { | |
28168 | ||
28169 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 28170 | Not GTK+ 2.4 |
9755e73b VS |
28171 | #endif |
28172 | ||
28173 | ; | |
28174 | return 0; | |
28175 | } | |
28176 | _ACEOF | |
28177 | rm -f conftest.$ac_objext | |
28178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28179 | (eval $ac_compile) 2>conftest.er1 | |
28180 | ac_status=$? | |
28181 | grep -v '^ *+' conftest.er1 >conftest.err | |
28182 | rm -f conftest.er1 | |
28183 | cat conftest.err >&5 | |
28184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28185 | (exit $ac_status); } && | |
c9a66001 | 28186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
28187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28188 | (eval $ac_try) 2>&5 | |
28189 | ac_status=$? | |
28190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28191 | (exit $ac_status); }; } && | |
28192 | { ac_try='test -s conftest.$ac_objext' | |
28193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28194 | (eval $ac_try) 2>&5 | |
28195 | ac_status=$? | |
28196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28197 | (exit $ac_status); }; }; then | |
28198 | ||
28199 | cat >>confdefs.h <<\_ACEOF | |
28200 | #define __WXGTK24__ 1 | |
28201 | _ACEOF | |
28202 | ||
28203 | echo "$as_me:$LINENO: result: yes" >&5 | |
28204 | echo "${ECHO_T}yes" >&6 | |
28205 | ||
28206 | else | |
28207 | echo "$as_me: failed program was:" >&5 | |
28208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28209 | ||
28210 | ||
28211 | echo "$as_me:$LINENO: result: no" >&5 | |
28212 | echo "${ECHO_T}no" >&6 | |
28213 | ||
28214 | fi | |
28215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
e9263684 | 28216 | fi |
9755e73b | 28217 | |
6954625c | 28218 | CFLAGS="$save_CFLAGS" |
304205f1 | 28219 | LIBS="$save_LIBS" |
a848cd7e SC |
28220 | else |
28221 | if test "$wxUSE_UNICODE" = "yes"; then | |
28222 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
28223 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
28224 | wxUSE_UNICODE=no | |
28225 | fi | |
28226 | fi | |
28227 | ||
e56f4f9e VZ |
28228 | ac_ext=cc |
28229 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28230 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28231 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28232 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28233 | ||
28234 | ||
a848cd7e SC |
28235 | if test "$USE_DARWIN" != 1; then |
28236 | ||
28237 | for ac_func in poll | |
28238 | do | |
28239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28240 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28242 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28244 | else | |
28245 | cat >conftest.$ac_ext <<_ACEOF | |
28246 | /* confdefs.h. */ | |
28247 | _ACEOF | |
28248 | cat confdefs.h >>conftest.$ac_ext | |
28249 | cat >>conftest.$ac_ext <<_ACEOF | |
28250 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28251 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28252 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28253 | #define $ac_func innocuous_$ac_func | |
28254 | ||
a848cd7e SC |
28255 | /* System header to define __stub macros and hopefully few prototypes, |
28256 | which can conflict with char $ac_func (); below. | |
28257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28258 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28259 | |
a848cd7e SC |
28260 | #ifdef __STDC__ |
28261 | # include <limits.h> | |
28262 | #else | |
28263 | # include <assert.h> | |
28264 | #endif | |
ac1cb8d3 VS |
28265 | |
28266 | #undef $ac_func | |
28267 | ||
a848cd7e SC |
28268 | /* Override any gcc2 internal prototype to avoid an error. */ |
28269 | #ifdef __cplusplus | |
28270 | extern "C" | |
28271 | { | |
28272 | #endif | |
28273 | /* We use char because int might match the return type of a gcc2 | |
28274 | builtin and then its argument prototype would still apply. */ | |
28275 | char $ac_func (); | |
28276 | /* The GNU C library defines this for functions which it implements | |
28277 | to always fail with ENOSYS. Some functions are actually named | |
28278 | something starting with __ and the normal name is an alias. */ | |
28279 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28280 | choke me | |
28281 | #else | |
28282 | char (*f) () = $ac_func; | |
28283 | #endif | |
28284 | #ifdef __cplusplus | |
28285 | } | |
28286 | #endif | |
28287 | ||
28288 | int | |
28289 | main () | |
28290 | { | |
28291 | return f != $ac_func; | |
28292 | ; | |
28293 | return 0; | |
28294 | } | |
28295 | _ACEOF | |
28296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28298 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28299 | ac_status=$? |
ac1cb8d3 VS |
28300 | grep -v '^ *+' conftest.er1 >conftest.err |
28301 | rm -f conftest.er1 | |
28302 | cat conftest.err >&5 | |
a848cd7e SC |
28303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28304 | (exit $ac_status); } && | |
c9a66001 | 28305 | { ac_try='test -z "$ac_cxx_werror_flag" || 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 | eval "$as_ac_var=yes" | |
28318 | else | |
28319 | echo "$as_me: failed program was:" >&5 | |
28320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28321 | ||
28322 | eval "$as_ac_var=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: `eval echo '${'$as_ac_var'}'`" >&5 | |
28328 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28329 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28330 | cat >>confdefs.h <<_ACEOF | |
28331 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28332 | _ACEOF | |
28333 | ||
28334 | fi | |
28335 | done | |
28336 | ||
28337 | fi | |
28338 | ||
28339 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
28340 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
28341 | ||
28342 | AFMINSTALL=afminstall | |
28343 | TOOLKIT=GTK | |
28344 | GUIDIST=GTK_DIST | |
28345 | ||
28346 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
28347 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
28348 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
28349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28350 | else | |
28351 | ac_check_lib_save_LIBS=$LIBS | |
28352 | LIBS="-lgdk $LIBS" | |
28353 | cat >conftest.$ac_ext <<_ACEOF | |
28354 | /* confdefs.h. */ | |
28355 | _ACEOF | |
28356 | cat confdefs.h >>conftest.$ac_ext | |
28357 | cat >>conftest.$ac_ext <<_ACEOF | |
28358 | /* end confdefs.h. */ | |
28359 | ||
28360 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28361 | #ifdef __cplusplus | |
28362 | extern "C" | |
28363 | #endif | |
28364 | /* We use char because int might match the return type of a gcc2 | |
28365 | builtin and then its argument prototype would still apply. */ | |
28366 | char gdk_im_open (); | |
28367 | int | |
28368 | main () | |
28369 | { | |
28370 | gdk_im_open (); | |
28371 | ; | |
28372 | return 0; | |
28373 | } | |
28374 | _ACEOF | |
28375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28377 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28378 | ac_status=$? |
ac1cb8d3 VS |
28379 | grep -v '^ *+' conftest.er1 >conftest.err |
28380 | rm -f conftest.er1 | |
28381 | cat conftest.err >&5 | |
a848cd7e SC |
28382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28383 | (exit $ac_status); } && | |
c9a66001 | 28384 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28386 | (eval $ac_try) 2>&5 | |
28387 | ac_status=$? | |
28388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28389 | (exit $ac_status); }; } && | |
28390 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28392 | (eval $ac_try) 2>&5 | |
28393 | ac_status=$? | |
28394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28395 | (exit $ac_status); }; }; then | |
28396 | ac_cv_lib_gdk_gdk_im_open=yes | |
28397 | else | |
28398 | echo "$as_me: failed program was:" >&5 | |
28399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28400 | ||
28401 | ac_cv_lib_gdk_gdk_im_open=no | |
28402 | fi | |
ac1cb8d3 VS |
28403 | rm -f conftest.err conftest.$ac_objext \ |
28404 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28405 | LIBS=$ac_check_lib_save_LIBS |
28406 | fi | |
28407 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
28408 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
28409 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
28410 | cat >>confdefs.h <<\_ACEOF | |
28411 | #define HAVE_XIM 1 | |
28412 | _ACEOF | |
28413 | ||
28414 | fi | |
28415 | ||
28416 | ||
28417 | ||
28418 | if test "$wxUSE_GPE" = "yes"; then | |
28419 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
28420 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
28421 | ||
0ad5d837 VZ |
28422 | ac_find_libraries= |
28423 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 28424 | do |
3eca31dc | 28425 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
28426 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
28427 | ac_find_libraries=$ac_dir | |
28428 | break 2 | |
28429 | fi | |
28430 | done | |
28431 | done | |
28432 | ||
28433 | if test "$ac_find_libraries" != "" ; then | |
28434 | ||
0ad5d837 | 28435 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
28436 | ac_path_to_link="" |
28437 | else | |
0ad5d837 VZ |
28438 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28439 | result=$? | |
28440 | if test $result = 0; then | |
28441 | ac_path_to_link="" | |
28442 | else | |
28443 | ac_path_to_link=" -L$ac_find_libraries" | |
28444 | fi | |
a848cd7e SC |
28445 | fi |
28446 | ||
28447 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
28448 | WXGPE=1 | |
0ad5d837 VZ |
28449 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
28450 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
28451 | else |
28452 | echo "$as_me:$LINENO: result: not found" >&5 | |
28453 | echo "${ECHO_T}not found" >&6 | |
28454 | fi | |
28455 | ||
28456 | fi | |
28457 | fi | |
28458 | ||
28459 | if test "$wxUSE_MGL" = 1; then | |
28460 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
28461 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
28462 | if test "x$MGL_ROOT" = x ; then | |
28463 | echo "$as_me:$LINENO: result: not found" >&5 | |
28464 | echo "${ECHO_T}not found" >&6 | |
28465 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
28466 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
28467 | { (exit 1); exit 1; }; } | |
28468 | else | |
28469 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
28470 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
28471 | fi | |
28472 | ||
28473 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
28474 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
28475 | case "${host}" in | |
28476 | *-*-linux* ) | |
28477 | if test "x$wxUSE_SHARED" = xyes ; then | |
28478 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
28479 | else | |
28480 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
28481 | fi | |
28482 | ;; | |
28483 | *-pc-msdosdjgpp ) | |
28484 | mgl_os_candidates="dos32/dj2" | |
28485 | ;; | |
28486 | *) | |
28487 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
28488 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
28489 | { (exit 1); exit 1; }; } | |
28490 | esac | |
28491 | ||
28492 | mgl_lib_type="" | |
28493 | mgl_os="" | |
28494 | ||
28495 | for mgl_os_i in $mgl_os_candidates ; do | |
28496 | if test "x$mgl_os" = x ; then | |
28497 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
28498 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
28499 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
28500 | mgl_lib_type=debug | |
28501 | mgl_os=$mgl_os_i | |
28502 | fi | |
28503 | fi | |
28504 | if test "x$mgl_lib_type" = x ; then | |
28505 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
28506 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
28507 | mgl_lib_type=release | |
28508 | mgl_os=$mgl_os_i | |
28509 | fi | |
28510 | fi | |
28511 | fi | |
28512 | done | |
28513 | ||
28514 | if test "x$mgl_os" = x ; then | |
28515 | echo "$as_me:$LINENO: result: not found" >&5 | |
28516 | echo "${ECHO_T}not found" >&6 | |
28517 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
28518 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
28519 | { (exit 1); exit 1; }; } | |
28520 | fi | |
28521 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
28522 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
28523 | ||
28524 | wxUSE_UNIVERSAL="yes" | |
28525 | ||
28526 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
28527 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
28528 | ||
28529 | AFMINSTALL=afminstall | |
28530 | TOOLKIT=MGL | |
28531 | GUIDIST=MGL_DIST | |
28532 | fi | |
28533 | ||
28534 | if test "$wxUSE_MICROWIN" = 1; then | |
28535 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
28536 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
28537 | if test "x$MICROWINDOWS" = x ; then | |
28538 | echo "$as_me:$LINENO: result: not found" >&5 | |
28539 | echo "${ECHO_T}not found" >&6 | |
28540 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
28541 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
28542 | { (exit 1); exit 1; }; } | |
28543 | else | |
28544 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
28545 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
28546 | fi | |
28547 | ||
28548 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
28549 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
28550 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
28551 | else | |
28552 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
28553 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
28554 | { (exit 1); exit 1; }; } | |
28555 | fi | |
28556 | ||
28557 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
28558 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
28559 | ||
28560 | wxUSE_UNIVERSAL="yes" | |
28561 | ||
28562 | AFMINSTALL=afminstall | |
28563 | TOOLKIT=MICROWIN | |
28564 | GUIDIST=MICROWIN_DIST | |
28565 | ||
28566 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
28567 | fi | |
28568 | ||
74b84332 | 28569 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
c9a66001 VZ |
28570 | |
28571 | if test "x$ac_path_x_has_been_run" != xyes; then | |
28572 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
28573 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
28574 | ||
c9a66001 | 28575 | ac_path_x_has_been_run=yes |
a848cd7e SC |
28576 | |
28577 | # Check whether --with-x or --without-x was given. | |
28578 | if test "${with_x+set}" = set; then | |
28579 | withval="$with_x" | |
28580 | ||
28581 | fi; | |
28582 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
28583 | if test "x$with_x" = xno; then | |
28584 | # The user explicitly disabled X. | |
28585 | have_x=disabled | |
28586 | else | |
28587 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
28588 | # Both variables are already set. | |
28589 | have_x=yes | |
28590 | else | |
28591 | if test "${ac_cv_have_x+set}" = set; then | |
28592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28593 | else | |
28594 | # One or both of the vars are not set, and there is no cached value. | |
28595 | ac_x_includes=no ac_x_libraries=no | |
28596 | rm -fr conftest.dir | |
28597 | if mkdir conftest.dir; then | |
28598 | cd conftest.dir | |
28599 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
28600 | cat >Imakefile <<'_ACEOF' | |
28601 | acfindx: | |
28602 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
28603 | _ACEOF | |
28604 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
28605 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
28606 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
28607 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
28608 | for ac_extension in a so sl; do | |
28609 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
28610 | test -f $ac_im_libdir/libX11.$ac_extension; then |
28611 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
28612 | fi |
28613 | done | |
28614 | # Screen out bogus values from the imake configuration. They are | |
28615 | # bogus both because they are the default anyway, and because | |
28616 | # using them would break gcc on systems where it needs fixed includes. | |
28617 | case $ac_im_incroot in | |
28618 | /usr/include) ;; | |
28619 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
28620 | esac | |
28621 | case $ac_im_usrlibdir in | |
28622 | /usr/lib | /lib) ;; | |
28623 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
28624 | esac | |
28625 | fi | |
28626 | cd .. | |
28627 | rm -fr conftest.dir | |
28628 | fi | |
28629 | ||
28630 | # Standard set of common directories for X headers. | |
28631 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
28632 | ac_x_header_dirs=' | |
28633 | /usr/X11/include | |
28634 | /usr/X11R6/include | |
28635 | /usr/X11R5/include | |
28636 | /usr/X11R4/include | |
28637 | ||
28638 | /usr/include/X11 | |
28639 | /usr/include/X11R6 | |
28640 | /usr/include/X11R5 | |
28641 | /usr/include/X11R4 | |
28642 | ||
28643 | /usr/local/X11/include | |
28644 | /usr/local/X11R6/include | |
28645 | /usr/local/X11R5/include | |
28646 | /usr/local/X11R4/include | |
28647 | ||
28648 | /usr/local/include/X11 | |
28649 | /usr/local/include/X11R6 | |
28650 | /usr/local/include/X11R5 | |
28651 | /usr/local/include/X11R4 | |
28652 | ||
28653 | /usr/X386/include | |
28654 | /usr/x386/include | |
28655 | /usr/XFree86/include/X11 | |
28656 | ||
28657 | /usr/include | |
28658 | /usr/local/include | |
28659 | /usr/unsupported/include | |
28660 | /usr/athena/include | |
28661 | /usr/local/x11r5/include | |
28662 | /usr/lpp/Xamples/include | |
28663 | ||
28664 | /usr/openwin/include | |
28665 | /usr/openwin/share/include' | |
28666 | ||
28667 | if test "$ac_x_includes" = no; then | |
c9a66001 | 28668 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
28669 | # First, try using that file with no special directory specified. |
28670 | cat >conftest.$ac_ext <<_ACEOF | |
28671 | /* confdefs.h. */ | |
28672 | _ACEOF | |
28673 | cat confdefs.h >>conftest.$ac_ext | |
28674 | cat >>conftest.$ac_ext <<_ACEOF | |
28675 | /* end confdefs.h. */ | |
bc023abb | 28676 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28677 | _ACEOF |
28678 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28679 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28680 | ac_status=$? | |
28681 | grep -v '^ *+' conftest.er1 >conftest.err | |
28682 | rm -f conftest.er1 | |
28683 | cat conftest.err >&5 | |
28684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28685 | (exit $ac_status); } >/dev/null; then | |
28686 | if test -s conftest.err; then | |
5d7b7554 VZ |
28687 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
28688 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
28689 | else |
28690 | ac_cpp_err= | |
28691 | fi | |
28692 | else | |
28693 | ac_cpp_err=yes | |
28694 | fi | |
28695 | if test -z "$ac_cpp_err"; then | |
28696 | # We can compile using X headers with no special include directory. | |
28697 | ac_x_includes= | |
28698 | else | |
28699 | echo "$as_me: failed program was:" >&5 | |
28700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28701 | ||
28702 | for ac_dir in $ac_x_header_dirs; do | |
bc023abb | 28703 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
a848cd7e SC |
28704 | ac_x_includes=$ac_dir |
28705 | break | |
28706 | fi | |
28707 | done | |
28708 | fi | |
28709 | rm -f conftest.err conftest.$ac_ext | |
28710 | fi # $ac_x_includes = no | |
28711 | ||
28712 | if test "$ac_x_libraries" = no; then | |
28713 | # Check for the libraries. | |
28714 | # See if we find them without any special options. | |
28715 | # Don't add to $LIBS permanently. | |
28716 | ac_save_LIBS=$LIBS | |
bc023abb | 28717 | LIBS="-lXt $LIBS" |
a848cd7e SC |
28718 | cat >conftest.$ac_ext <<_ACEOF |
28719 | /* confdefs.h. */ | |
28720 | _ACEOF | |
28721 | cat confdefs.h >>conftest.$ac_ext | |
28722 | cat >>conftest.$ac_ext <<_ACEOF | |
28723 | /* end confdefs.h. */ | |
bc023abb | 28724 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28725 | int |
28726 | main () | |
28727 | { | |
bc023abb | 28728 | XtMalloc (0) |
a848cd7e SC |
28729 | ; |
28730 | return 0; | |
28731 | } | |
28732 | _ACEOF | |
28733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28735 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28736 | ac_status=$? |
ac1cb8d3 VS |
28737 | grep -v '^ *+' conftest.er1 >conftest.err |
28738 | rm -f conftest.er1 | |
28739 | cat conftest.err >&5 | |
a848cd7e SC |
28740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28741 | (exit $ac_status); } && | |
c9a66001 | 28742 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28744 | (eval $ac_try) 2>&5 | |
28745 | ac_status=$? | |
28746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28747 | (exit $ac_status); }; } && | |
28748 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28750 | (eval $ac_try) 2>&5 | |
28751 | ac_status=$? | |
28752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28753 | (exit $ac_status); }; }; then | |
28754 | LIBS=$ac_save_LIBS | |
28755 | # We can link X programs with no special library path. | |
28756 | ac_x_libraries= | |
28757 | else | |
28758 | echo "$as_me: failed program was:" >&5 | |
28759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28760 | ||
28761 | LIBS=$ac_save_LIBS | |
28762 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
28763 | do | |
28764 | # Don't even attempt the hair of trying to link an X program! | |
28765 | for ac_extension in a so sl; do | |
bc023abb | 28766 | if test -r $ac_dir/libXt.$ac_extension; then |
a848cd7e SC |
28767 | ac_x_libraries=$ac_dir |
28768 | break 2 | |
28769 | fi | |
28770 | done | |
28771 | done | |
28772 | fi | |
ac1cb8d3 VS |
28773 | rm -f conftest.err conftest.$ac_objext \ |
28774 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28775 | fi # $ac_x_libraries = no |
28776 | ||
28777 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
28778 | # Didn't find X anywhere. Cache the known absence of X. | |
28779 | ac_cv_have_x="have_x=no" | |
28780 | else | |
28781 | # Record where we found X for the cache. | |
28782 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 28783 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
28784 | fi |
28785 | fi | |
28786 | ||
28787 | fi | |
28788 | eval "$ac_cv_have_x" | |
28789 | fi # $with_x != no | |
28790 | ||
28791 | if test "$have_x" != yes; then | |
28792 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
28793 | echo "${ECHO_T}$have_x" >&6 | |
28794 | no_x=yes | |
28795 | else | |
28796 | # If each of the values was on the command line, it overrides each guess. | |
28797 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
28798 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
28799 | # Update the cache value to reflect the command line values. | |
28800 | ac_cv_have_x="have_x=yes \ | |
28801 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
c9a66001 VZ |
28802 | # It might be that x_includes is empty (headers are found in the |
28803 | # standard search path. Then output the corresponding message | |
28804 | ac_out_x_includes=$x_includes | |
28805 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
28806 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
28807 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
28808 | fi |
28809 | ||
c9a66001 | 28810 | fi |
a848cd7e SC |
28811 | if test "$no_x" = yes; then |
28812 | # Not all programs may use this symbol, but it does not hurt to define it. | |
28813 | ||
28814 | cat >>confdefs.h <<\_ACEOF | |
28815 | #define X_DISPLAY_MISSING 1 | |
28816 | _ACEOF | |
28817 | ||
28818 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
28819 | else | |
28820 | if test -n "$x_includes"; then | |
28821 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
28822 | fi | |
28823 | ||
28824 | # It would also be nice to do this for all -L options, not just this one. | |
28825 | if test -n "$x_libraries"; then | |
28826 | X_LIBS="$X_LIBS -L$x_libraries" | |
28827 | # For Solaris; some versions of Sun CC require a space after -R and | |
28828 | # others require no space. Words are not sufficient . . . . | |
28829 | case `(uname -sr) 2>/dev/null` in | |
28830 | "SunOS 5"*) | |
28831 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
28832 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
28833 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
28834 | cat >conftest.$ac_ext <<_ACEOF | |
28835 | /* confdefs.h. */ | |
28836 | _ACEOF | |
28837 | cat confdefs.h >>conftest.$ac_ext | |
28838 | cat >>conftest.$ac_ext <<_ACEOF | |
28839 | /* end confdefs.h. */ | |
28840 | ||
28841 | int | |
28842 | main () | |
28843 | { | |
28844 | ||
28845 | ; | |
28846 | return 0; | |
28847 | } | |
28848 | _ACEOF | |
28849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28851 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28852 | ac_status=$? |
ac1cb8d3 VS |
28853 | grep -v '^ *+' conftest.er1 >conftest.err |
28854 | rm -f conftest.er1 | |
28855 | cat conftest.err >&5 | |
a848cd7e SC |
28856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28857 | (exit $ac_status); } && | |
c9a66001 | 28858 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28860 | (eval $ac_try) 2>&5 | |
28861 | ac_status=$? | |
28862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28863 | (exit $ac_status); }; } && | |
28864 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28866 | (eval $ac_try) 2>&5 | |
28867 | ac_status=$? | |
28868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28869 | (exit $ac_status); }; }; then | |
28870 | ac_R_nospace=yes | |
28871 | else | |
28872 | echo "$as_me: failed program was:" >&5 | |
28873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28874 | ||
28875 | ac_R_nospace=no | |
28876 | fi | |
ac1cb8d3 VS |
28877 | rm -f conftest.err conftest.$ac_objext \ |
28878 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28879 | if test $ac_R_nospace = yes; then |
28880 | echo "$as_me:$LINENO: result: no" >&5 | |
28881 | echo "${ECHO_T}no" >&6 | |
28882 | X_LIBS="$X_LIBS -R$x_libraries" | |
28883 | else | |
28884 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
28885 | cat >conftest.$ac_ext <<_ACEOF | |
28886 | /* confdefs.h. */ | |
28887 | _ACEOF | |
28888 | cat confdefs.h >>conftest.$ac_ext | |
28889 | cat >>conftest.$ac_ext <<_ACEOF | |
28890 | /* end confdefs.h. */ | |
28891 | ||
28892 | int | |
28893 | main () | |
28894 | { | |
28895 | ||
28896 | ; | |
28897 | return 0; | |
28898 | } | |
28899 | _ACEOF | |
28900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28902 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28903 | ac_status=$? |
ac1cb8d3 VS |
28904 | grep -v '^ *+' conftest.er1 >conftest.err |
28905 | rm -f conftest.er1 | |
28906 | cat conftest.err >&5 | |
a848cd7e SC |
28907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28908 | (exit $ac_status); } && | |
c9a66001 | 28909 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28911 | (eval $ac_try) 2>&5 | |
28912 | ac_status=$? | |
28913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28914 | (exit $ac_status); }; } && | |
28915 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28917 | (eval $ac_try) 2>&5 | |
28918 | ac_status=$? | |
28919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28920 | (exit $ac_status); }; }; then | |
28921 | ac_R_space=yes | |
28922 | else | |
28923 | echo "$as_me: failed program was:" >&5 | |
28924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28925 | ||
28926 | ac_R_space=no | |
28927 | fi | |
ac1cb8d3 VS |
28928 | rm -f conftest.err conftest.$ac_objext \ |
28929 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28930 | if test $ac_R_space = yes; then |
28931 | echo "$as_me:$LINENO: result: yes" >&5 | |
28932 | echo "${ECHO_T}yes" >&6 | |
28933 | X_LIBS="$X_LIBS -R $x_libraries" | |
28934 | else | |
28935 | echo "$as_me:$LINENO: result: neither works" >&5 | |
28936 | echo "${ECHO_T}neither works" >&6 | |
28937 | fi | |
28938 | fi | |
28939 | LIBS=$ac_xsave_LIBS | |
28940 | esac | |
28941 | fi | |
28942 | ||
28943 | # Check for system-dependent libraries X programs must link with. | |
28944 | # Do this before checking for the system-independent R6 libraries | |
28945 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
28946 | ||
28947 | if test "$ISC" = yes; then | |
28948 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
28949 | else | |
28950 | # Martyn Johnson says this is needed for Ultrix, if the X | |
28951 | # libraries were built with DECnet support. And Karl Berry says | |
28952 | # the Alpha needs dnet_stub (dnet does not exist). | |
28953 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
28954 | cat >conftest.$ac_ext <<_ACEOF | |
28955 | /* confdefs.h. */ | |
28956 | _ACEOF | |
28957 | cat confdefs.h >>conftest.$ac_ext | |
28958 | cat >>conftest.$ac_ext <<_ACEOF | |
28959 | /* end confdefs.h. */ | |
28960 | ||
28961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28962 | #ifdef __cplusplus | |
28963 | extern "C" | |
28964 | #endif | |
28965 | /* We use char because int might match the return type of a gcc2 | |
28966 | builtin and then its argument prototype would still apply. */ | |
28967 | char XOpenDisplay (); | |
28968 | int | |
28969 | main () | |
28970 | { | |
28971 | XOpenDisplay (); | |
28972 | ; | |
28973 | return 0; | |
28974 | } | |
28975 | _ACEOF | |
28976 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28978 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28979 | ac_status=$? |
ac1cb8d3 VS |
28980 | grep -v '^ *+' conftest.er1 >conftest.err |
28981 | rm -f conftest.er1 | |
28982 | cat conftest.err >&5 | |
a848cd7e SC |
28983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28984 | (exit $ac_status); } && | |
c9a66001 | 28985 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28987 | (eval $ac_try) 2>&5 | |
28988 | ac_status=$? | |
28989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28990 | (exit $ac_status); }; } && | |
28991 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28993 | (eval $ac_try) 2>&5 | |
28994 | ac_status=$? | |
28995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28996 | (exit $ac_status); }; }; then | |
28997 | : | |
28998 | else | |
28999 | echo "$as_me: failed program was:" >&5 | |
29000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29001 | ||
29002 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
29003 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
29004 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
29005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29006 | else | |
29007 | ac_check_lib_save_LIBS=$LIBS | |
29008 | LIBS="-ldnet $LIBS" | |
29009 | cat >conftest.$ac_ext <<_ACEOF | |
29010 | /* confdefs.h. */ | |
29011 | _ACEOF | |
29012 | cat confdefs.h >>conftest.$ac_ext | |
29013 | cat >>conftest.$ac_ext <<_ACEOF | |
29014 | /* end confdefs.h. */ | |
29015 | ||
29016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29017 | #ifdef __cplusplus | |
29018 | extern "C" | |
29019 | #endif | |
29020 | /* We use char because int might match the return type of a gcc2 | |
29021 | builtin and then its argument prototype would still apply. */ | |
29022 | char dnet_ntoa (); | |
29023 | int | |
29024 | main () | |
29025 | { | |
29026 | dnet_ntoa (); | |
29027 | ; | |
29028 | return 0; | |
29029 | } | |
29030 | _ACEOF | |
29031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29033 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29034 | ac_status=$? |
ac1cb8d3 VS |
29035 | grep -v '^ *+' conftest.er1 >conftest.err |
29036 | rm -f conftest.er1 | |
29037 | cat conftest.err >&5 | |
a848cd7e SC |
29038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29039 | (exit $ac_status); } && | |
c9a66001 | 29040 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29042 | (eval $ac_try) 2>&5 | |
29043 | ac_status=$? | |
29044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29045 | (exit $ac_status); }; } && | |
29046 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29048 | (eval $ac_try) 2>&5 | |
29049 | ac_status=$? | |
29050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29051 | (exit $ac_status); }; }; then | |
29052 | ac_cv_lib_dnet_dnet_ntoa=yes | |
29053 | else | |
29054 | echo "$as_me: failed program was:" >&5 | |
29055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29056 | ||
29057 | ac_cv_lib_dnet_dnet_ntoa=no | |
29058 | fi | |
ac1cb8d3 VS |
29059 | rm -f conftest.err conftest.$ac_objext \ |
29060 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29061 | LIBS=$ac_check_lib_save_LIBS |
29062 | fi | |
29063 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
29064 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
29065 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
29066 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
29067 | fi | |
29068 | ||
29069 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
29070 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
29071 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
29072 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
29073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29074 | else | |
29075 | ac_check_lib_save_LIBS=$LIBS | |
29076 | LIBS="-ldnet_stub $LIBS" | |
29077 | cat >conftest.$ac_ext <<_ACEOF | |
29078 | /* confdefs.h. */ | |
29079 | _ACEOF | |
29080 | cat confdefs.h >>conftest.$ac_ext | |
29081 | cat >>conftest.$ac_ext <<_ACEOF | |
29082 | /* end confdefs.h. */ | |
29083 | ||
29084 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29085 | #ifdef __cplusplus | |
29086 | extern "C" | |
29087 | #endif | |
29088 | /* We use char because int might match the return type of a gcc2 | |
29089 | builtin and then its argument prototype would still apply. */ | |
29090 | char dnet_ntoa (); | |
29091 | int | |
29092 | main () | |
29093 | { | |
29094 | dnet_ntoa (); | |
29095 | ; | |
29096 | return 0; | |
29097 | } | |
29098 | _ACEOF | |
29099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29101 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29102 | ac_status=$? |
ac1cb8d3 VS |
29103 | grep -v '^ *+' conftest.er1 >conftest.err |
29104 | rm -f conftest.er1 | |
29105 | cat conftest.err >&5 | |
a848cd7e SC |
29106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29107 | (exit $ac_status); } && | |
c9a66001 | 29108 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29110 | (eval $ac_try) 2>&5 | |
29111 | ac_status=$? | |
29112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29113 | (exit $ac_status); }; } && | |
29114 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29116 | (eval $ac_try) 2>&5 | |
29117 | ac_status=$? | |
29118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29119 | (exit $ac_status); }; }; then | |
29120 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
29121 | else | |
29122 | echo "$as_me: failed program was:" >&5 | |
29123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29124 | ||
29125 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
29126 | fi | |
ac1cb8d3 VS |
29127 | rm -f conftest.err conftest.$ac_objext \ |
29128 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29129 | LIBS=$ac_check_lib_save_LIBS |
29130 | fi | |
29131 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
29132 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
29133 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
29134 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
29135 | fi | |
29136 | ||
29137 | fi | |
29138 | fi | |
ac1cb8d3 VS |
29139 | rm -f conftest.err conftest.$ac_objext \ |
29140 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29141 | LIBS="$ac_xsave_LIBS" |
29142 | ||
29143 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
29144 | # to get the SysV transport functions. | |
29145 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
29146 | # needs -lnsl. | |
29147 | # The nsl library prevents programs from opening the X display | |
29148 | # on Irix 5.2, according to T.E. Dickey. | |
29149 | # The functions gethostbyname, getservbyname, and inet_addr are | |
29150 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
29151 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
29152 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
29153 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
29154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29155 | else | |
29156 | cat >conftest.$ac_ext <<_ACEOF | |
29157 | /* confdefs.h. */ | |
29158 | _ACEOF | |
29159 | cat confdefs.h >>conftest.$ac_ext | |
29160 | cat >>conftest.$ac_ext <<_ACEOF | |
29161 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29162 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
29163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29164 | #define gethostbyname innocuous_gethostbyname | |
29165 | ||
a848cd7e SC |
29166 | /* System header to define __stub macros and hopefully few prototypes, |
29167 | which can conflict with char gethostbyname (); below. | |
29168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29169 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29170 | |
a848cd7e SC |
29171 | #ifdef __STDC__ |
29172 | # include <limits.h> | |
29173 | #else | |
29174 | # include <assert.h> | |
29175 | #endif | |
ac1cb8d3 VS |
29176 | |
29177 | #undef gethostbyname | |
29178 | ||
a848cd7e SC |
29179 | /* Override any gcc2 internal prototype to avoid an error. */ |
29180 | #ifdef __cplusplus | |
29181 | extern "C" | |
29182 | { | |
29183 | #endif | |
29184 | /* We use char because int might match the return type of a gcc2 | |
29185 | builtin and then its argument prototype would still apply. */ | |
29186 | char gethostbyname (); | |
29187 | /* The GNU C library defines this for functions which it implements | |
29188 | to always fail with ENOSYS. Some functions are actually named | |
29189 | something starting with __ and the normal name is an alias. */ | |
29190 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
29191 | choke me | |
29192 | #else | |
29193 | char (*f) () = gethostbyname; | |
29194 | #endif | |
29195 | #ifdef __cplusplus | |
29196 | } | |
29197 | #endif | |
29198 | ||
29199 | int | |
29200 | main () | |
29201 | { | |
29202 | return f != gethostbyname; | |
29203 | ; | |
29204 | return 0; | |
29205 | } | |
29206 | _ACEOF | |
29207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29209 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29210 | ac_status=$? |
ac1cb8d3 VS |
29211 | grep -v '^ *+' conftest.er1 >conftest.err |
29212 | rm -f conftest.er1 | |
29213 | cat conftest.err >&5 | |
a848cd7e SC |
29214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29215 | (exit $ac_status); } && | |
c9a66001 | 29216 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29218 | (eval $ac_try) 2>&5 | |
29219 | ac_status=$? | |
29220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29221 | (exit $ac_status); }; } && | |
29222 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29224 | (eval $ac_try) 2>&5 | |
29225 | ac_status=$? | |
29226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29227 | (exit $ac_status); }; }; then | |
29228 | ac_cv_func_gethostbyname=yes | |
29229 | else | |
29230 | echo "$as_me: failed program was:" >&5 | |
29231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29232 | ||
29233 | ac_cv_func_gethostbyname=no | |
29234 | fi | |
ac1cb8d3 VS |
29235 | rm -f conftest.err conftest.$ac_objext \ |
29236 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29237 | fi |
29238 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
29239 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
29240 | ||
29241 | if test $ac_cv_func_gethostbyname = no; then | |
29242 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
29243 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
29244 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
29245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29246 | else | |
29247 | ac_check_lib_save_LIBS=$LIBS | |
29248 | LIBS="-lnsl $LIBS" | |
29249 | cat >conftest.$ac_ext <<_ACEOF | |
29250 | /* confdefs.h. */ | |
29251 | _ACEOF | |
29252 | cat confdefs.h >>conftest.$ac_ext | |
29253 | cat >>conftest.$ac_ext <<_ACEOF | |
29254 | /* end confdefs.h. */ | |
29255 | ||
29256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29257 | #ifdef __cplusplus | |
29258 | extern "C" | |
29259 | #endif | |
29260 | /* We use char because int might match the return type of a gcc2 | |
29261 | builtin and then its argument prototype would still apply. */ | |
29262 | char gethostbyname (); | |
29263 | int | |
29264 | main () | |
29265 | { | |
29266 | gethostbyname (); | |
29267 | ; | |
29268 | return 0; | |
29269 | } | |
29270 | _ACEOF | |
29271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
29273 | (eval $ac_link) 2>conftest.er1 |
29274 | ac_status=$? | |
29275 | grep -v '^ *+' conftest.er1 >conftest.err | |
29276 | rm -f conftest.er1 | |
29277 | cat conftest.err >&5 | |
29278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29279 | (exit $ac_status); } && | |
c9a66001 | 29280 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29282 | (eval $ac_try) 2>&5 | |
29283 | ac_status=$? | |
29284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29285 | (exit $ac_status); }; } && | |
29286 | { ac_try='test -s conftest$ac_exeext' | |
29287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29288 | (eval $ac_try) 2>&5 | |
29289 | ac_status=$? | |
29290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29291 | (exit $ac_status); }; }; then | |
29292 | ac_cv_lib_nsl_gethostbyname=yes | |
29293 | else | |
29294 | echo "$as_me: failed program was:" >&5 | |
29295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29296 | ||
29297 | ac_cv_lib_nsl_gethostbyname=no | |
29298 | fi | |
29299 | rm -f conftest.err conftest.$ac_objext \ | |
29300 | conftest$ac_exeext conftest.$ac_ext | |
29301 | LIBS=$ac_check_lib_save_LIBS | |
29302 | fi | |
29303 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
29304 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
29305 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
29306 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
29307 | fi | |
29308 | ||
29309 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
29310 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
29311 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
29312 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
29313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29314 | else | |
29315 | ac_check_lib_save_LIBS=$LIBS | |
29316 | LIBS="-lbsd $LIBS" | |
29317 | cat >conftest.$ac_ext <<_ACEOF | |
29318 | /* confdefs.h. */ | |
29319 | _ACEOF | |
29320 | cat confdefs.h >>conftest.$ac_ext | |
29321 | cat >>conftest.$ac_ext <<_ACEOF | |
29322 | /* end confdefs.h. */ | |
29323 | ||
29324 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29325 | #ifdef __cplusplus | |
29326 | extern "C" | |
29327 | #endif | |
29328 | /* We use char because int might match the return type of a gcc2 | |
29329 | builtin and then its argument prototype would still apply. */ | |
29330 | char gethostbyname (); | |
29331 | int | |
29332 | main () | |
29333 | { | |
29334 | gethostbyname (); | |
29335 | ; | |
29336 | return 0; | |
29337 | } | |
29338 | _ACEOF | |
29339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29341 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29342 | ac_status=$? |
ac1cb8d3 VS |
29343 | grep -v '^ *+' conftest.er1 >conftest.err |
29344 | rm -f conftest.er1 | |
29345 | cat conftest.err >&5 | |
a848cd7e SC |
29346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29347 | (exit $ac_status); } && | |
c9a66001 | 29348 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
29349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29350 | (eval $ac_try) 2>&5 | |
29351 | ac_status=$? | |
29352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
29353 | (exit $ac_status); }; } && |
29354 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29356 | (eval $ac_try) 2>&5 | |
29357 | ac_status=$? | |
29358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29359 | (exit $ac_status); }; }; then | |
29360 | ac_cv_lib_bsd_gethostbyname=yes | |
29361 | else | |
29362 | echo "$as_me: failed program was:" >&5 | |
29363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29364 | ||
29365 | ac_cv_lib_bsd_gethostbyname=no | |
29366 | fi | |
ac1cb8d3 VS |
29367 | rm -f conftest.err conftest.$ac_objext \ |
29368 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29369 | LIBS=$ac_check_lib_save_LIBS |
29370 | fi | |
29371 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
29372 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
29373 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
29374 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
29375 | fi | |
29376 | ||
29377 | fi | |
29378 | fi | |
29379 | ||
29380 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
29381 | # socket/setsockopt and other routines are undefined under SCO ODT | |
29382 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
29383 | # on later versions), says Simon Leinen: it contains gethostby* | |
29384 | # variants that don't use the name server (or something). -lsocket | |
29385 | # must be given before -lnsl if both are needed. We assume that | |
29386 | # if connect needs -lnsl, so does gethostbyname. | |
29387 | echo "$as_me:$LINENO: checking for connect" >&5 | |
29388 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
29389 | if test "${ac_cv_func_connect+set}" = set; then | |
29390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29391 | else | |
29392 | cat >conftest.$ac_ext <<_ACEOF | |
29393 | /* confdefs.h. */ | |
29394 | _ACEOF | |
29395 | cat confdefs.h >>conftest.$ac_ext | |
29396 | cat >>conftest.$ac_ext <<_ACEOF | |
29397 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29398 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
29399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29400 | #define connect innocuous_connect | |
29401 | ||
a848cd7e SC |
29402 | /* System header to define __stub macros and hopefully few prototypes, |
29403 | which can conflict with char connect (); below. | |
29404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29405 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29406 | |
a848cd7e SC |
29407 | #ifdef __STDC__ |
29408 | # include <limits.h> | |
29409 | #else | |
29410 | # include <assert.h> | |
29411 | #endif | |
ac1cb8d3 VS |
29412 | |
29413 | #undef connect | |
29414 | ||
a848cd7e SC |
29415 | /* Override any gcc2 internal prototype to avoid an error. */ |
29416 | #ifdef __cplusplus | |
29417 | extern "C" | |
29418 | { | |
29419 | #endif | |
29420 | /* We use char because int might match the return type of a gcc2 | |
29421 | builtin and then its argument prototype would still apply. */ | |
29422 | char connect (); | |
29423 | /* The GNU C library defines this for functions which it implements | |
29424 | to always fail with ENOSYS. Some functions are actually named | |
29425 | something starting with __ and the normal name is an alias. */ | |
29426 | #if defined (__stub_connect) || defined (__stub___connect) | |
29427 | choke me | |
29428 | #else | |
29429 | char (*f) () = connect; | |
29430 | #endif | |
29431 | #ifdef __cplusplus | |
29432 | } | |
29433 | #endif | |
29434 | ||
29435 | int | |
29436 | main () | |
29437 | { | |
29438 | return f != connect; | |
29439 | ; | |
29440 | return 0; | |
29441 | } | |
29442 | _ACEOF | |
29443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29446 | ac_status=$? |
ac1cb8d3 VS |
29447 | grep -v '^ *+' conftest.er1 >conftest.err |
29448 | rm -f conftest.er1 | |
29449 | cat conftest.err >&5 | |
a848cd7e SC |
29450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29451 | (exit $ac_status); } && | |
c9a66001 | 29452 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29454 | (eval $ac_try) 2>&5 | |
29455 | ac_status=$? | |
29456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29457 | (exit $ac_status); }; } && | |
29458 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29460 | (eval $ac_try) 2>&5 | |
29461 | ac_status=$? | |
29462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29463 | (exit $ac_status); }; }; then | |
29464 | ac_cv_func_connect=yes | |
29465 | else | |
29466 | echo "$as_me: failed program was:" >&5 | |
29467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29468 | ||
29469 | ac_cv_func_connect=no | |
29470 | fi | |
ac1cb8d3 VS |
29471 | rm -f conftest.err conftest.$ac_objext \ |
29472 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29473 | fi |
29474 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
29475 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
29476 | ||
29477 | if test $ac_cv_func_connect = no; then | |
29478 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
29479 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
29480 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
29481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29482 | else | |
29483 | ac_check_lib_save_LIBS=$LIBS | |
29484 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
29485 | cat >conftest.$ac_ext <<_ACEOF | |
29486 | /* confdefs.h. */ | |
29487 | _ACEOF | |
29488 | cat confdefs.h >>conftest.$ac_ext | |
29489 | cat >>conftest.$ac_ext <<_ACEOF | |
29490 | /* end confdefs.h. */ | |
29491 | ||
29492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29493 | #ifdef __cplusplus | |
29494 | extern "C" | |
29495 | #endif | |
29496 | /* We use char because int might match the return type of a gcc2 | |
29497 | builtin and then its argument prototype would still apply. */ | |
29498 | char connect (); | |
29499 | int | |
29500 | main () | |
29501 | { | |
29502 | connect (); | |
29503 | ; | |
29504 | return 0; | |
29505 | } | |
29506 | _ACEOF | |
29507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29509 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29510 | ac_status=$? |
ac1cb8d3 VS |
29511 | grep -v '^ *+' conftest.er1 >conftest.err |
29512 | rm -f conftest.er1 | |
29513 | cat conftest.err >&5 | |
a848cd7e SC |
29514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29515 | (exit $ac_status); } && | |
c9a66001 | 29516 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29518 | (eval $ac_try) 2>&5 | |
29519 | ac_status=$? | |
29520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29521 | (exit $ac_status); }; } && | |
29522 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29524 | (eval $ac_try) 2>&5 | |
29525 | ac_status=$? | |
29526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29527 | (exit $ac_status); }; }; then | |
29528 | ac_cv_lib_socket_connect=yes | |
29529 | else | |
29530 | echo "$as_me: failed program was:" >&5 | |
29531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29532 | ||
29533 | ac_cv_lib_socket_connect=no | |
29534 | fi | |
ac1cb8d3 VS |
29535 | rm -f conftest.err conftest.$ac_objext \ |
29536 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29537 | LIBS=$ac_check_lib_save_LIBS |
29538 | fi | |
29539 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
29540 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
29541 | if test $ac_cv_lib_socket_connect = yes; then | |
29542 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
29543 | fi | |
29544 | ||
29545 | fi | |
29546 | ||
29547 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
29548 | echo "$as_me:$LINENO: checking for remove" >&5 | |
29549 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
29550 | if test "${ac_cv_func_remove+set}" = set; then | |
29551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29552 | else | |
29553 | cat >conftest.$ac_ext <<_ACEOF | |
29554 | /* confdefs.h. */ | |
29555 | _ACEOF | |
29556 | cat confdefs.h >>conftest.$ac_ext | |
29557 | cat >>conftest.$ac_ext <<_ACEOF | |
29558 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29559 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
29560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29561 | #define remove innocuous_remove | |
29562 | ||
a848cd7e SC |
29563 | /* System header to define __stub macros and hopefully few prototypes, |
29564 | which can conflict with char remove (); below. | |
29565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29566 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29567 | |
a848cd7e SC |
29568 | #ifdef __STDC__ |
29569 | # include <limits.h> | |
29570 | #else | |
29571 | # include <assert.h> | |
29572 | #endif | |
ac1cb8d3 VS |
29573 | |
29574 | #undef remove | |
29575 | ||
a848cd7e SC |
29576 | /* Override any gcc2 internal prototype to avoid an error. */ |
29577 | #ifdef __cplusplus | |
29578 | extern "C" | |
29579 | { | |
29580 | #endif | |
29581 | /* We use char because int might match the return type of a gcc2 | |
29582 | builtin and then its argument prototype would still apply. */ | |
29583 | char remove (); | |
29584 | /* The GNU C library defines this for functions which it implements | |
29585 | to always fail with ENOSYS. Some functions are actually named | |
29586 | something starting with __ and the normal name is an alias. */ | |
29587 | #if defined (__stub_remove) || defined (__stub___remove) | |
29588 | choke me | |
29589 | #else | |
29590 | char (*f) () = remove; | |
29591 | #endif | |
29592 | #ifdef __cplusplus | |
29593 | } | |
29594 | #endif | |
29595 | ||
29596 | int | |
29597 | main () | |
29598 | { | |
29599 | return f != remove; | |
29600 | ; | |
29601 | return 0; | |
29602 | } | |
29603 | _ACEOF | |
29604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29606 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29607 | ac_status=$? |
ac1cb8d3 VS |
29608 | grep -v '^ *+' conftest.er1 >conftest.err |
29609 | rm -f conftest.er1 | |
29610 | cat conftest.err >&5 | |
a848cd7e SC |
29611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29612 | (exit $ac_status); } && | |
c9a66001 | 29613 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29615 | (eval $ac_try) 2>&5 | |
29616 | ac_status=$? | |
29617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29618 | (exit $ac_status); }; } && | |
29619 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29621 | (eval $ac_try) 2>&5 | |
29622 | ac_status=$? | |
29623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29624 | (exit $ac_status); }; }; then | |
29625 | ac_cv_func_remove=yes | |
29626 | else | |
29627 | echo "$as_me: failed program was:" >&5 | |
29628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29629 | ||
29630 | ac_cv_func_remove=no | |
29631 | fi | |
ac1cb8d3 VS |
29632 | rm -f conftest.err conftest.$ac_objext \ |
29633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29634 | fi |
29635 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
29636 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
29637 | ||
29638 | if test $ac_cv_func_remove = no; then | |
29639 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
29640 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
29641 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
29642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29643 | else | |
29644 | ac_check_lib_save_LIBS=$LIBS | |
29645 | LIBS="-lposix $LIBS" | |
29646 | cat >conftest.$ac_ext <<_ACEOF | |
29647 | /* confdefs.h. */ | |
29648 | _ACEOF | |
29649 | cat confdefs.h >>conftest.$ac_ext | |
29650 | cat >>conftest.$ac_ext <<_ACEOF | |
29651 | /* end confdefs.h. */ | |
29652 | ||
29653 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29654 | #ifdef __cplusplus | |
29655 | extern "C" | |
29656 | #endif | |
29657 | /* We use char because int might match the return type of a gcc2 | |
29658 | builtin and then its argument prototype would still apply. */ | |
29659 | char remove (); | |
29660 | int | |
29661 | main () | |
29662 | { | |
29663 | remove (); | |
29664 | ; | |
29665 | return 0; | |
29666 | } | |
29667 | _ACEOF | |
29668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29670 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29671 | ac_status=$? |
ac1cb8d3 VS |
29672 | grep -v '^ *+' conftest.er1 >conftest.err |
29673 | rm -f conftest.er1 | |
29674 | cat conftest.err >&5 | |
a848cd7e SC |
29675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29676 | (exit $ac_status); } && | |
c9a66001 | 29677 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29679 | (eval $ac_try) 2>&5 | |
29680 | ac_status=$? | |
29681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29682 | (exit $ac_status); }; } && | |
29683 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29685 | (eval $ac_try) 2>&5 | |
29686 | ac_status=$? | |
29687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29688 | (exit $ac_status); }; }; then | |
29689 | ac_cv_lib_posix_remove=yes | |
29690 | else | |
29691 | echo "$as_me: failed program was:" >&5 | |
29692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29693 | ||
29694 | ac_cv_lib_posix_remove=no | |
29695 | fi | |
ac1cb8d3 VS |
29696 | rm -f conftest.err conftest.$ac_objext \ |
29697 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29698 | LIBS=$ac_check_lib_save_LIBS |
29699 | fi | |
29700 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
29701 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
29702 | if test $ac_cv_lib_posix_remove = yes; then | |
29703 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
29704 | fi | |
29705 | ||
29706 | fi | |
29707 | ||
29708 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
29709 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
29710 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
29711 | if test "${ac_cv_func_shmat+set}" = set; then | |
29712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29713 | else | |
29714 | cat >conftest.$ac_ext <<_ACEOF | |
29715 | /* confdefs.h. */ | |
29716 | _ACEOF | |
29717 | cat confdefs.h >>conftest.$ac_ext | |
29718 | cat >>conftest.$ac_ext <<_ACEOF | |
29719 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29720 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
29721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29722 | #define shmat innocuous_shmat | |
29723 | ||
a848cd7e SC |
29724 | /* System header to define __stub macros and hopefully few prototypes, |
29725 | which can conflict with char shmat (); below. | |
29726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29727 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29728 | |
a848cd7e SC |
29729 | #ifdef __STDC__ |
29730 | # include <limits.h> | |
29731 | #else | |
29732 | # include <assert.h> | |
29733 | #endif | |
ac1cb8d3 VS |
29734 | |
29735 | #undef shmat | |
29736 | ||
a848cd7e SC |
29737 | /* Override any gcc2 internal prototype to avoid an error. */ |
29738 | #ifdef __cplusplus | |
29739 | extern "C" | |
29740 | { | |
29741 | #endif | |
29742 | /* We use char because int might match the return type of a gcc2 | |
29743 | builtin and then its argument prototype would still apply. */ | |
29744 | char shmat (); | |
29745 | /* The GNU C library defines this for functions which it implements | |
29746 | to always fail with ENOSYS. Some functions are actually named | |
29747 | something starting with __ and the normal name is an alias. */ | |
29748 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
29749 | choke me | |
29750 | #else | |
29751 | char (*f) () = shmat; | |
29752 | #endif | |
29753 | #ifdef __cplusplus | |
29754 | } | |
29755 | #endif | |
29756 | ||
29757 | int | |
29758 | main () | |
29759 | { | |
29760 | return f != shmat; | |
29761 | ; | |
29762 | return 0; | |
29763 | } | |
29764 | _ACEOF | |
29765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29767 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29768 | ac_status=$? |
ac1cb8d3 VS |
29769 | grep -v '^ *+' conftest.er1 >conftest.err |
29770 | rm -f conftest.er1 | |
29771 | cat conftest.err >&5 | |
a848cd7e SC |
29772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29773 | (exit $ac_status); } && | |
c9a66001 | 29774 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29776 | (eval $ac_try) 2>&5 | |
29777 | ac_status=$? | |
29778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29779 | (exit $ac_status); }; } && | |
29780 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29782 | (eval $ac_try) 2>&5 | |
29783 | ac_status=$? | |
29784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29785 | (exit $ac_status); }; }; then | |
29786 | ac_cv_func_shmat=yes | |
29787 | else | |
29788 | echo "$as_me: failed program was:" >&5 | |
29789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29790 | ||
29791 | ac_cv_func_shmat=no | |
29792 | fi | |
ac1cb8d3 VS |
29793 | rm -f conftest.err conftest.$ac_objext \ |
29794 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29795 | fi |
29796 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
29797 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
29798 | ||
29799 | if test $ac_cv_func_shmat = no; then | |
29800 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
29801 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
29802 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
29803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29804 | else | |
29805 | ac_check_lib_save_LIBS=$LIBS | |
29806 | LIBS="-lipc $LIBS" | |
29807 | cat >conftest.$ac_ext <<_ACEOF | |
29808 | /* confdefs.h. */ | |
29809 | _ACEOF | |
29810 | cat confdefs.h >>conftest.$ac_ext | |
29811 | cat >>conftest.$ac_ext <<_ACEOF | |
29812 | /* end confdefs.h. */ | |
29813 | ||
29814 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29815 | #ifdef __cplusplus | |
29816 | extern "C" | |
29817 | #endif | |
29818 | /* We use char because int might match the return type of a gcc2 | |
29819 | builtin and then its argument prototype would still apply. */ | |
29820 | char shmat (); | |
29821 | int | |
29822 | main () | |
29823 | { | |
29824 | shmat (); | |
29825 | ; | |
29826 | return 0; | |
29827 | } | |
29828 | _ACEOF | |
29829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29831 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29832 | ac_status=$? |
ac1cb8d3 VS |
29833 | grep -v '^ *+' conftest.er1 >conftest.err |
29834 | rm -f conftest.er1 | |
29835 | cat conftest.err >&5 | |
a848cd7e SC |
29836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29837 | (exit $ac_status); } && | |
c9a66001 | 29838 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29840 | (eval $ac_try) 2>&5 | |
29841 | ac_status=$? | |
29842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29843 | (exit $ac_status); }; } && | |
29844 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29846 | (eval $ac_try) 2>&5 | |
29847 | ac_status=$? | |
29848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29849 | (exit $ac_status); }; }; then | |
29850 | ac_cv_lib_ipc_shmat=yes | |
29851 | else | |
29852 | echo "$as_me: failed program was:" >&5 | |
29853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29854 | ||
29855 | ac_cv_lib_ipc_shmat=no | |
29856 | fi | |
ac1cb8d3 VS |
29857 | rm -f conftest.err conftest.$ac_objext \ |
29858 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29859 | LIBS=$ac_check_lib_save_LIBS |
29860 | fi | |
29861 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
29862 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
29863 | if test $ac_cv_lib_ipc_shmat = yes; then | |
29864 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
29865 | fi | |
29866 | ||
29867 | fi | |
29868 | fi | |
29869 | ||
29870 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
29871 | ac_save_LDFLAGS=$LDFLAGS | |
29872 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
29873 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
29874 | # check for ICE first), but we must link in the order -lSM -lICE or | |
29875 | # we get undefined symbols. So assume we have SM if we have ICE. | |
29876 | # These have to be linked with before -lX11, unlike the other | |
29877 | # libraries we check for below, so use a different variable. | |
29878 | # John Interrante, Karl Berry | |
29879 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
29880 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
29881 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
29882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29883 | else | |
29884 | ac_check_lib_save_LIBS=$LIBS | |
29885 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
29886 | cat >conftest.$ac_ext <<_ACEOF | |
29887 | /* confdefs.h. */ | |
29888 | _ACEOF | |
29889 | cat confdefs.h >>conftest.$ac_ext | |
29890 | cat >>conftest.$ac_ext <<_ACEOF | |
29891 | /* end confdefs.h. */ | |
29892 | ||
29893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29894 | #ifdef __cplusplus | |
29895 | extern "C" | |
29896 | #endif | |
29897 | /* We use char because int might match the return type of a gcc2 | |
29898 | builtin and then its argument prototype would still apply. */ | |
29899 | char IceConnectionNumber (); | |
29900 | int | |
29901 | main () | |
29902 | { | |
29903 | IceConnectionNumber (); | |
29904 | ; | |
29905 | return 0; | |
29906 | } | |
29907 | _ACEOF | |
29908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29910 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29911 | ac_status=$? |
ac1cb8d3 VS |
29912 | grep -v '^ *+' conftest.er1 >conftest.err |
29913 | rm -f conftest.er1 | |
29914 | cat conftest.err >&5 | |
a848cd7e SC |
29915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29916 | (exit $ac_status); } && | |
c9a66001 | 29917 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29919 | (eval $ac_try) 2>&5 | |
29920 | ac_status=$? | |
29921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29922 | (exit $ac_status); }; } && | |
29923 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29925 | (eval $ac_try) 2>&5 | |
29926 | ac_status=$? | |
29927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29928 | (exit $ac_status); }; }; then | |
29929 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
29930 | else | |
29931 | echo "$as_me: failed program was:" >&5 | |
29932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29933 | ||
29934 | ac_cv_lib_ICE_IceConnectionNumber=no | |
29935 | fi | |
ac1cb8d3 VS |
29936 | rm -f conftest.err conftest.$ac_objext \ |
29937 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29938 | LIBS=$ac_check_lib_save_LIBS |
29939 | fi | |
29940 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
29941 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
29942 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
29943 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
29944 | fi | |
29945 | ||
29946 | LDFLAGS=$ac_save_LDFLAGS | |
29947 | ||
29948 | fi | |
29949 | ||
29950 | ||
29951 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
29952 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
29953 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
29954 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
29955 | fi |
29956 | ||
74b84332 VS |
29957 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
29958 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
29959 | AFMINSTALL=afminstall |
29960 | COMPILED_X_PROGRAM=0 | |
29961 | ||
74b84332 VS |
29962 | fi |
29963 | ||
29964 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
29965 | if test "$wxUSE_NANOX" = "yes"; then |
29966 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
29967 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
29968 | if test "x$MICROWIN" = x ; then | |
29969 | echo "$as_me:$LINENO: result: not found" >&5 | |
29970 | echo "${ECHO_T}not found" >&6 | |
29971 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
29972 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
29973 | { (exit 1); exit 1; }; } | |
29974 | else | |
29975 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
29976 | echo "${ECHO_T}$MICROWIN" >&6 | |
29977 | cat >>confdefs.h <<\_ACEOF | |
29978 | #define wxUSE_NANOX 1 | |
29979 | _ACEOF | |
29980 | ||
29981 | fi | |
29982 | fi | |
29983 | ||
29984 | if test "$wxUSE_UNICODE" = "yes"; then | |
29985 | ||
29986 | succeeded=no | |
29987 | ||
29988 | if test -z "$PKG_CONFIG"; then | |
29989 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29990 | set dummy pkg-config; ac_word=$2 | |
29991 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29993 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29995 | else | |
29996 | case $PKG_CONFIG in | |
29997 | [\\/]* | ?:[\\/]*) | |
29998 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29999 | ;; | |
30000 | *) | |
30001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30002 | for as_dir in $PATH | |
30003 | do | |
30004 | IFS=$as_save_IFS | |
30005 | test -z "$as_dir" && as_dir=. | |
30006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30008 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
30009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30010 | break 2 | |
30011 | fi | |
30012 | done | |
30013 | done | |
30014 | ||
30015 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
30016 | ;; | |
30017 | esac | |
30018 | fi | |
30019 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
30020 | ||
30021 | if test -n "$PKG_CONFIG"; then | |
30022 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
30023 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
30024 | else | |
30025 | echo "$as_me:$LINENO: result: no" >&5 | |
30026 | echo "${ECHO_T}no" >&6 | |
30027 | fi | |
30028 | ||
30029 | fi | |
30030 | ||
30031 | if test "$PKG_CONFIG" = "no" ; then | |
30032 | echo "*** The pkg-config script could not be found. Make sure it is" | |
30033 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
30034 | echo "*** to the full path to pkg-config." | |
30035 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
30036 | else | |
30037 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
30038 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
30039 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
30040 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
30041 | ||
30042 | if $PKG_CONFIG --exists "pangox" ; then | |
30043 | echo "$as_me:$LINENO: result: yes" >&5 | |
30044 | echo "${ECHO_T}yes" >&6 | |
30045 | succeeded=yes | |
30046 | ||
30047 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
30048 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
30049 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
30050 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
30051 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
30052 | ||
30053 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
30054 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
30055 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
30056 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
30057 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
30058 | else | |
30059 | PANGOX_CFLAGS="" | |
30060 | PANGOX_LIBS="" | |
30061 | ## If we have a custom action on failure, don't print errors, but | |
30062 | ## do set a variable so people can do so. | |
30063 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
30064 | ||
30065 | fi | |
30066 | ||
30067 | ||
30068 | ||
30069 | else | |
30070 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
30071 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
30072 | fi | |
30073 | fi | |
30074 | ||
30075 | if test $succeeded = yes; then | |
30076 | ||
c92ad099 | 30077 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
30078 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
30079 | ||
30080 | else | |
30081 | ||
30082 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
30083 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
30084 | { (exit 1); exit 1; }; } | |
30085 | ||
30086 | ||
30087 | fi | |
30088 | ||
30089 | ||
30090 | succeeded=no | |
30091 | ||
30092 | if test -z "$PKG_CONFIG"; then | |
30093 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
30094 | set dummy pkg-config; ac_word=$2 | |
30095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30097 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
30098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30099 | else | |
30100 | case $PKG_CONFIG in | |
30101 | [\\/]* | ?:[\\/]*) | |
30102 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
30103 | ;; | |
30104 | *) | |
30105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30106 | for as_dir in $PATH | |
30107 | do | |
30108 | IFS=$as_save_IFS | |
30109 | test -z "$as_dir" && as_dir=. | |
30110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30112 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
30113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30114 | break 2 | |
30115 | fi | |
30116 | done | |
30117 | done | |
30118 | ||
30119 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
30120 | ;; | |
30121 | esac | |
30122 | fi | |
30123 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
30124 | ||
30125 | if test -n "$PKG_CONFIG"; then | |
30126 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
30127 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
30128 | else | |
30129 | echo "$as_me:$LINENO: result: no" >&5 | |
30130 | echo "${ECHO_T}no" >&6 | |
30131 | fi | |
30132 | ||
30133 | fi | |
30134 | ||
30135 | if test "$PKG_CONFIG" = "no" ; then | |
30136 | echo "*** The pkg-config script could not be found. Make sure it is" | |
30137 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
30138 | echo "*** to the full path to pkg-config." | |
30139 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
30140 | else | |
30141 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
30142 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
30143 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
30144 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
30145 | ||
30146 | if $PKG_CONFIG --exists "pangoft2" ; then | |
30147 | echo "$as_me:$LINENO: result: yes" >&5 | |
30148 | echo "${ECHO_T}yes" >&6 | |
30149 | succeeded=yes | |
30150 | ||
30151 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
30152 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
30153 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
30154 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
30155 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
30156 | ||
30157 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
30158 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
30159 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
30160 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
30161 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
30162 | else | |
30163 | PANGOFT2_CFLAGS="" | |
30164 | PANGOFT2_LIBS="" | |
30165 | ## If we have a custom action on failure, don't print errors, but | |
30166 | ## do set a variable so people can do so. | |
30167 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
30168 | ||
30169 | fi | |
30170 | ||
30171 | ||
30172 | ||
30173 | else | |
30174 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
30175 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
30176 | fi | |
30177 | fi | |
30178 | ||
30179 | if test $succeeded = yes; then | |
30180 | ||
c92ad099 | 30181 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
30182 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
30183 | ||
30184 | else | |
30185 | ||
30186 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
30187 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
30188 | wxUSE_PRINTING_ARCHITECTURE="no" | |
30189 | ||
30190 | ||
30191 | fi | |
30192 | ||
30193 | ||
30194 | succeeded=no | |
30195 | ||
30196 | if test -z "$PKG_CONFIG"; then | |
30197 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
30198 | set dummy pkg-config; ac_word=$2 | |
30199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30201 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
30202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30203 | else | |
30204 | case $PKG_CONFIG in | |
30205 | [\\/]* | ?:[\\/]*) | |
30206 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
30207 | ;; | |
30208 | *) | |
30209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30210 | for as_dir in $PATH | |
30211 | do | |
30212 | IFS=$as_save_IFS | |
30213 | test -z "$as_dir" && as_dir=. | |
30214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30216 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
30217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30218 | break 2 | |
30219 | fi | |
30220 | done | |
30221 | done | |
30222 | ||
30223 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
30224 | ;; | |
30225 | esac | |
30226 | fi | |
30227 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
30228 | ||
30229 | if test -n "$PKG_CONFIG"; then | |
30230 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
30231 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
30232 | else | |
30233 | echo "$as_me:$LINENO: result: no" >&5 | |
30234 | echo "${ECHO_T}no" >&6 | |
30235 | fi | |
30236 | ||
30237 | fi | |
30238 | ||
30239 | if test "$PKG_CONFIG" = "no" ; then | |
30240 | echo "*** The pkg-config script could not be found. Make sure it is" | |
30241 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
30242 | echo "*** to the full path to pkg-config." | |
30243 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
30244 | else | |
30245 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
30246 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
30247 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
30248 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
30249 | ||
30250 | if $PKG_CONFIG --exists "pangoxft" ; then | |
30251 | echo "$as_me:$LINENO: result: yes" >&5 | |
30252 | echo "${ECHO_T}yes" >&6 | |
30253 | succeeded=yes | |
30254 | ||
30255 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
30256 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
30257 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
30258 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
30259 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
30260 | ||
30261 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
30262 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
30263 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
30264 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
30265 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
30266 | else | |
30267 | PANGOXFT_CFLAGS="" | |
30268 | PANGOXFT_LIBS="" | |
30269 | ## If we have a custom action on failure, don't print errors, but | |
30270 | ## do set a variable so people can do so. | |
30271 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
30272 | ||
30273 | fi | |
30274 | ||
30275 | ||
30276 | ||
30277 | else | |
30278 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
30279 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
30280 | fi | |
30281 | fi | |
30282 | ||
30283 | if test $succeeded = yes; then | |
30284 | ||
4ae1af05 MB |
30285 | cat >>confdefs.h <<\_ACEOF |
30286 | #define HAVE_PANGO_XFT 1 | |
30287 | _ACEOF | |
30288 | ||
c92ad099 | 30289 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
30290 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
30291 | ||
30292 | else | |
30293 | ||
30294 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
30295 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
30296 | ||
30297 | ||
30298 | fi | |
30299 | ||
e56f4f9e | 30300 | save_CXXFLAGS="$CXXFLAGS" |
304205f1 | 30301 | save_LIBS="$LIBS" |
e56f4f9e | 30302 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
304205f1 VS |
30303 | LIBS="$LIBS $PANGOX_LIBS" |
30304 | ||
30305 | for ac_func in pango_font_family_is_monospace | |
30306 | do | |
30307 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30308 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30309 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30310 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30312 | else | |
30313 | cat >conftest.$ac_ext <<_ACEOF | |
30314 | /* confdefs.h. */ | |
30315 | _ACEOF | |
30316 | cat confdefs.h >>conftest.$ac_ext | |
30317 | cat >>conftest.$ac_ext <<_ACEOF | |
30318 | /* end confdefs.h. */ | |
30319 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
30320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30321 | #define $ac_func innocuous_$ac_func | |
30322 | ||
30323 | /* System header to define __stub macros and hopefully few prototypes, | |
30324 | which can conflict with char $ac_func (); below. | |
30325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30326 | <limits.h> exists even on freestanding compilers. */ | |
30327 | ||
30328 | #ifdef __STDC__ | |
30329 | # include <limits.h> | |
30330 | #else | |
30331 | # include <assert.h> | |
30332 | #endif | |
30333 | ||
30334 | #undef $ac_func | |
30335 | ||
30336 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30337 | #ifdef __cplusplus | |
30338 | extern "C" | |
30339 | { | |
30340 | #endif | |
30341 | /* We use char because int might match the return type of a gcc2 | |
30342 | builtin and then its argument prototype would still apply. */ | |
30343 | char $ac_func (); | |
30344 | /* The GNU C library defines this for functions which it implements | |
30345 | to always fail with ENOSYS. Some functions are actually named | |
30346 | something starting with __ and the normal name is an alias. */ | |
30347 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30348 | choke me | |
30349 | #else | |
30350 | char (*f) () = $ac_func; | |
30351 | #endif | |
30352 | #ifdef __cplusplus | |
30353 | } | |
30354 | #endif | |
30355 | ||
30356 | int | |
30357 | main () | |
30358 | { | |
30359 | return f != $ac_func; | |
30360 | ; | |
30361 | return 0; | |
30362 | } | |
30363 | _ACEOF | |
30364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30366 | (eval $ac_link) 2>conftest.er1 | |
30367 | ac_status=$? | |
30368 | grep -v '^ *+' conftest.er1 >conftest.err | |
30369 | rm -f conftest.er1 | |
30370 | cat conftest.err >&5 | |
30371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30372 | (exit $ac_status); } && | |
c9a66001 | 30373 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
30374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30375 | (eval $ac_try) 2>&5 | |
30376 | ac_status=$? | |
30377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30378 | (exit $ac_status); }; } && | |
30379 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
30385 | eval "$as_ac_var=yes" | |
30386 | else | |
30387 | echo "$as_me: failed program was:" >&5 | |
30388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30389 | ||
30390 | eval "$as_ac_var=no" | |
30391 | fi | |
30392 | rm -f conftest.err conftest.$ac_objext \ | |
30393 | conftest$ac_exeext conftest.$ac_ext | |
30394 | fi | |
30395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30396 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30397 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30398 | cat >>confdefs.h <<_ACEOF | |
30399 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30400 | _ACEOF | |
30401 | ||
30402 | fi | |
30403 | done | |
30404 | ||
e56f4f9e | 30405 | CXXFLAGS="$save_CXXFLAGS" |
304205f1 | 30406 | LIBS="$save_LIBS" |
a848cd7e SC |
30407 | fi |
30408 | ||
30409 | wxUSE_UNIVERSAL="yes" | |
30410 | ||
30411 | if test "$wxUSE_NANOX" = "yes"; then | |
30412 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
30413 | 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" | |
30414 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
30415 | else | |
30416 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
30417 | fi | |
30418 | ||
a848cd7e SC |
30419 | TOOLKIT=X11 |
30420 | GUIDIST=X11_DIST | |
30421 | fi | |
30422 | ||
30423 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
30424 | if test "$wxUSE_UNICODE" = "yes"; then |
30425 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
30426 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
30427 | { (exit 1); exit 1; }; } | |
30428 | fi | |
30429 | ||
74b84332 VS |
30430 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
30431 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 30432 | |
74b84332 VS |
30433 | ac_find_includes= |
30434 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30435 | do | |
30436 | if test -f "$ac_dir/Xm/Xm.h"; then | |
30437 | ac_find_includes=$ac_dir | |
30438 | break | |
30439 | fi | |
30440 | done | |
a848cd7e | 30441 | |
74b84332 VS |
30442 | if test "$ac_find_includes" != "" ; then |
30443 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30444 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30445 | ||
30446 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30447 | ac_path_to_include="" | |
30448 | else | |
30449 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
30450 | result=$? | |
30451 | if test $result = 0; then | |
30452 | ac_path_to_include="" | |
30453 | else | |
30454 | ac_path_to_include=" -I$ac_find_includes" | |
30455 | fi | |
a848cd7e SC |
30456 | fi |
30457 | ||
74b84332 VS |
30458 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
30459 | else | |
e56f4f9e VZ |
30460 | save_CXXFLAGS=$CXXFLAGS |
30461 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
e051b34e | 30462 | |
74b84332 | 30463 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30464 | /* confdefs.h. */ |
30465 | _ACEOF | |
30466 | cat confdefs.h >>conftest.$ac_ext | |
30467 | cat >>conftest.$ac_ext <<_ACEOF | |
30468 | /* end confdefs.h. */ | |
30469 | ||
74b84332 VS |
30470 | #include <Xm/Xm.h> |
30471 | ||
a848cd7e SC |
30472 | int |
30473 | main () | |
30474 | { | |
30475 | ||
74b84332 VS |
30476 | int version; |
30477 | version = xmUseVersion; | |
30478 | ||
a848cd7e SC |
30479 | ; |
30480 | return 0; | |
30481 | } | |
30482 | _ACEOF | |
74b84332 VS |
30483 | rm -f conftest.$ac_objext |
30484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30485 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 30486 | ac_status=$? |
ac1cb8d3 VS |
30487 | grep -v '^ *+' conftest.er1 >conftest.err |
30488 | rm -f conftest.er1 | |
30489 | cat conftest.err >&5 | |
a848cd7e SC |
30490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30491 | (exit $ac_status); } && | |
c9a66001 | 30492 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30494 | (eval $ac_try) 2>&5 | |
30495 | ac_status=$? | |
30496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30497 | (exit $ac_status); }; } && | |
74b84332 | 30498 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
30499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30500 | (eval $ac_try) 2>&5 | |
30501 | ac_status=$? | |
30502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30503 | (exit $ac_status); }; }; then | |
74b84332 VS |
30504 | |
30505 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
30506 | echo "${ECHO_T}found in default search path" >&6 | |
30507 | COMPILED_X_PROGRAM=1 | |
30508 | ||
a848cd7e SC |
30509 | else |
30510 | echo "$as_me: failed program was:" >&5 | |
30511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30512 | ||
a848cd7e | 30513 | |
74b84332 VS |
30514 | echo "$as_me:$LINENO: result: no" >&5 |
30515 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
30516 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
30517 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 30518 | { (exit 1); exit 1; }; } |
a848cd7e | 30519 | |
a848cd7e | 30520 | |
a848cd7e | 30521 | fi |
74b84332 | 30522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 30523 | |
e56f4f9e | 30524 | CXXFLAGS=$save_CXXFLAGS |
74b84332 VS |
30525 | fi |
30526 | ||
0ad5d837 VZ |
30527 | |
30528 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
30529 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
30530 | ||
0ad5d837 VZ |
30531 | ac_find_libraries= |
30532 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 30533 | do |
3eca31dc | 30534 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
30535 | if test -f "$ac_dir/libXm.$ac_extension"; then |
30536 | ac_find_libraries=$ac_dir | |
30537 | break 2 | |
a848cd7e | 30538 | fi |
74b84332 VS |
30539 | done |
30540 | done | |
a848cd7e | 30541 | |
0ad5d837 VZ |
30542 | |
30543 | if test "x$ac_find_libraries" != "x" ; then | |
30544 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
30545 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 30546 | |
74b84332 | 30547 | |
0ad5d837 | 30548 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 30549 | ac_path_to_link="" |
a848cd7e | 30550 | else |
0ad5d837 VZ |
30551 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30552 | result=$? | |
30553 | if test $result = 0; then | |
30554 | ac_path_to_link="" | |
30555 | else | |
30556 | ac_path_to_link=" -L$ac_find_libraries" | |
30557 | fi | |
74b84332 VS |
30558 | fi |
30559 | ||
0ad5d837 VZ |
30560 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
30561 | else | |
e56f4f9e VZ |
30562 | save_CXXFLAGS=$CXXFLAGS |
30563 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
6f9cf1e6 MW |
30564 | save_LIBS="$LIBS" |
30565 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 30566 | |
0ad5d837 | 30567 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30568 | /* confdefs.h. */ |
30569 | _ACEOF | |
30570 | cat confdefs.h >>conftest.$ac_ext | |
30571 | cat >>conftest.$ac_ext <<_ACEOF | |
30572 | /* end confdefs.h. */ | |
30573 | ||
0ad5d837 | 30574 | #include <Xm/Xm.h> |
74b84332 | 30575 | |
a848cd7e SC |
30576 | int |
30577 | main () | |
30578 | { | |
74b84332 | 30579 | |
0ad5d837 VZ |
30580 | int version; |
30581 | version = xmUseVersion; | |
74b84332 | 30582 | |
a848cd7e SC |
30583 | ; |
30584 | return 0; | |
30585 | } | |
30586 | _ACEOF | |
0ad5d837 VZ |
30587 | rm -f conftest.$ac_objext conftest$ac_exeext |
30588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30589 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 30590 | ac_status=$? |
ac1cb8d3 VS |
30591 | grep -v '^ *+' conftest.er1 >conftest.err |
30592 | rm -f conftest.er1 | |
30593 | cat conftest.err >&5 | |
a848cd7e SC |
30594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30595 | (exit $ac_status); } && | |
c9a66001 | 30596 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30598 | (eval $ac_try) 2>&5 | |
30599 | ac_status=$? | |
30600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30601 | (exit $ac_status); }; } && | |
0ad5d837 | 30602 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30604 | (eval $ac_try) 2>&5 | |
30605 | ac_status=$? | |
30606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30607 | (exit $ac_status); }; }; then | |
74b84332 | 30608 | |
0ad5d837 | 30609 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 30610 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 30611 | COMPILED_X_PROGRAM=1 |
74b84332 | 30612 | |
a848cd7e SC |
30613 | else |
30614 | echo "$as_me: failed program was:" >&5 | |
30615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30616 | ||
74b84332 | 30617 | |
6f9cf1e6 | 30618 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 30619 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 30620 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
30621 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
30622 | { (exit 1); exit 1; }; } | |
30623 | ||
30624 | ||
30625 | fi | |
0ad5d837 VZ |
30626 | rm -f conftest.err conftest.$ac_objext \ |
30627 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 30628 | |
e56f4f9e | 30629 | CXXFLAGS=$save_CXXFLAGS |
6f9cf1e6 | 30630 | LIBS="$save_LIBS" |
74b84332 VS |
30631 | fi |
30632 | ||
30633 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
30634 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
30635 | libp_link="" | |
30636 | libsm_ice_link="" | |
30637 | libs_found=0 | |
30638 | for libp in "" " -lXp"; do | |
30639 | if test "$libs_found" = "0"; then | |
30640 | for libsm_ice in "" " -lSM -lICE"; do | |
30641 | if test "$libs_found" = "0"; then | |
30642 | save_LIBS="$LIBS" | |
30643 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
e56f4f9e VZ |
30644 | save_CXXFLAGS=$CXXFLAGS |
30645 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
74b84332 VS |
30646 | |
30647 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30648 | /* confdefs.h. */ |
30649 | _ACEOF | |
30650 | cat confdefs.h >>conftest.$ac_ext | |
30651 | cat >>conftest.$ac_ext <<_ACEOF | |
30652 | /* end confdefs.h. */ | |
30653 | ||
74b84332 VS |
30654 | #include <Xm/Xm.h> |
30655 | #include <Xm/List.h> | |
30656 | ||
a848cd7e SC |
30657 | int |
30658 | main () | |
30659 | { | |
74b84332 VS |
30660 | |
30661 | XmString string = NULL; | |
30662 | Widget w = NULL; | |
30663 | int position = 0; | |
30664 | XmListAddItem(w, string, position); | |
30665 | ||
a848cd7e SC |
30666 | ; |
30667 | return 0; | |
30668 | } | |
30669 | _ACEOF | |
30670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30672 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30673 | ac_status=$? |
ac1cb8d3 VS |
30674 | grep -v '^ *+' conftest.er1 >conftest.err |
30675 | rm -f conftest.er1 | |
30676 | cat conftest.err >&5 | |
a848cd7e SC |
30677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30678 | (exit $ac_status); } && | |
c9a66001 | 30679 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30681 | (eval $ac_try) 2>&5 | |
30682 | ac_status=$? | |
30683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30684 | (exit $ac_status); }; } && | |
30685 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30687 | (eval $ac_try) 2>&5 | |
30688 | ac_status=$? | |
30689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30690 | (exit $ac_status); }; }; then | |
30691 | ||
30692 | libp_link="$libp" | |
30693 | libsm_ice_link="$libsm_ice" | |
30694 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
30695 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
30696 | libs_found=1 | |
30697 | ||
30698 | else | |
30699 | echo "$as_me: failed program was:" >&5 | |
30700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30701 | ||
30702 | ||
30703 | ||
30704 | fi | |
ac1cb8d3 VS |
30705 | rm -f conftest.err conftest.$ac_objext \ |
30706 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30707 | |
30708 | LIBS="$save_LIBS" | |
e56f4f9e | 30709 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30710 | fi |
30711 | done | |
30712 | fi | |
30713 | done | |
30714 | ||
30715 | if test "$libs_found" = "0"; then | |
30716 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
30717 | echo "${ECHO_T}can't find the right libraries" >&6 | |
30718 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
30719 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
30720 | { (exit 1); exit 1; }; } | |
30721 | fi | |
30722 | ||
62fa8b3a MW |
30723 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
30724 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
30725 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
30726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30727 | else | |
30728 | ac_check_lib_save_LIBS=$LIBS | |
30729 | LIBS="-lSgm $LIBS" | |
30730 | cat >conftest.$ac_ext <<_ACEOF | |
30731 | /* confdefs.h. */ | |
30732 | _ACEOF | |
30733 | cat confdefs.h >>conftest.$ac_ext | |
30734 | cat >>conftest.$ac_ext <<_ACEOF | |
30735 | /* end confdefs.h. */ | |
30736 | ||
30737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30738 | #ifdef __cplusplus | |
30739 | extern "C" | |
30740 | #endif | |
30741 | /* We use char because int might match the return type of a gcc2 | |
30742 | builtin and then its argument prototype would still apply. */ | |
30743 | char SgCreateList (); | |
30744 | int | |
30745 | main () | |
30746 | { | |
30747 | SgCreateList (); | |
30748 | ; | |
30749 | return 0; | |
30750 | } | |
30751 | _ACEOF | |
30752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30754 | (eval $ac_link) 2>conftest.er1 | |
30755 | ac_status=$? | |
30756 | grep -v '^ *+' conftest.er1 >conftest.err | |
30757 | rm -f conftest.er1 | |
30758 | cat conftest.err >&5 | |
30759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30760 | (exit $ac_status); } && | |
c9a66001 | 30761 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
30762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30763 | (eval $ac_try) 2>&5 | |
30764 | ac_status=$? | |
30765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30766 | (exit $ac_status); }; } && | |
30767 | { ac_try='test -s conftest$ac_exeext' | |
30768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30769 | (eval $ac_try) 2>&5 | |
30770 | ac_status=$? | |
30771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30772 | (exit $ac_status); }; }; then | |
30773 | ac_cv_lib_Sgm_SgCreateList=yes | |
30774 | else | |
30775 | echo "$as_me: failed program was:" >&5 | |
30776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30777 | ||
30778 | ac_cv_lib_Sgm_SgCreateList=no | |
30779 | fi | |
30780 | rm -f conftest.err conftest.$ac_objext \ | |
30781 | conftest$ac_exeext conftest.$ac_ext | |
30782 | LIBS=$ac_check_lib_save_LIBS | |
30783 | fi | |
30784 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
30785 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
30786 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
30787 | libsgm_link=" -lSgm" | |
30788 | fi | |
30789 | ||
30790 | ||
e56f4f9e VZ |
30791 | save_CXXFLAGS=$CXXFLAGS |
30792 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
0ad5d837 | 30793 | |
a848cd7e SC |
30794 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
30795 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
30796 | if test "${wx_cv_lib_motif2+set}" = set; then |
30797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30798 | else | |
30799 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30800 | /* confdefs.h. */ |
30801 | _ACEOF | |
30802 | cat confdefs.h >>conftest.$ac_ext | |
30803 | cat >>conftest.$ac_ext <<_ACEOF | |
30804 | /* end confdefs.h. */ | |
30805 | ||
0ad5d837 | 30806 | #include <Xm/Xm.h> |
a848cd7e SC |
30807 | |
30808 | int | |
30809 | main () | |
30810 | { | |
30811 | ||
0ad5d837 VZ |
30812 | #if XmVersion < 2000 |
30813 | Not Motif 2 | |
30814 | #endif | |
a848cd7e SC |
30815 | |
30816 | ; | |
30817 | return 0; | |
30818 | } | |
30819 | _ACEOF | |
30820 | rm -f conftest.$ac_objext | |
30821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30822 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30823 | ac_status=$? |
ac1cb8d3 VS |
30824 | grep -v '^ *+' conftest.er1 >conftest.err |
30825 | rm -f conftest.er1 | |
30826 | cat conftest.err >&5 | |
a848cd7e SC |
30827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30828 | (exit $ac_status); } && | |
c9a66001 | 30829 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30831 | (eval $ac_try) 2>&5 | |
30832 | ac_status=$? | |
30833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30834 | (exit $ac_status); }; } && | |
30835 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30837 | (eval $ac_try) 2>&5 | |
30838 | ac_status=$? | |
30839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30840 | (exit $ac_status); }; }; then | |
0ad5d837 | 30841 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
30842 | else |
30843 | echo "$as_me: failed program was:" >&5 | |
30844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30845 | ||
0ad5d837 VZ |
30846 | wx_cv_lib_motif2="no" |
30847 | fi | |
30848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30849 | fi | |
30850 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
30851 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
30852 | if test "$wx_cv_lib_motif2" = "yes"; then | |
30853 | cat >>confdefs.h <<\_ACEOF | |
30854 | #define __WXMOTIF20__ 1 | |
30855 | _ACEOF | |
a848cd7e | 30856 | |
0ad5d837 VZ |
30857 | else |
30858 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30859 | #define __WXMOTIF20__ 0 |
30860 | _ACEOF | |
30861 | ||
0ad5d837 | 30862 | fi |
2113bc77 MW |
30863 | |
30864 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
30865 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
30866 | if test "${wx_cv_lib_lesstif+set}" = set; then |
30867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30868 | else | |
30869 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
30870 | /* confdefs.h. */ |
30871 | _ACEOF | |
30872 | cat confdefs.h >>conftest.$ac_ext | |
30873 | cat >>conftest.$ac_ext <<_ACEOF | |
30874 | /* end confdefs.h. */ | |
30875 | ||
0ad5d837 | 30876 | #include <Xm/Xm.h> |
2113bc77 MW |
30877 | |
30878 | int | |
30879 | main () | |
30880 | { | |
30881 | ||
0ad5d837 VZ |
30882 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
30883 | Not Lesstif | |
30884 | #endif | |
2113bc77 MW |
30885 | |
30886 | ; | |
30887 | return 0; | |
30888 | } | |
30889 | _ACEOF | |
30890 | rm -f conftest.$ac_objext | |
30891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30892 | (eval $ac_compile) 2>conftest.er1 | |
30893 | ac_status=$? | |
30894 | grep -v '^ *+' conftest.er1 >conftest.err | |
30895 | rm -f conftest.er1 | |
30896 | cat conftest.err >&5 | |
30897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30898 | (exit $ac_status); } && | |
c9a66001 | 30899 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
30900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30901 | (eval $ac_try) 2>&5 | |
30902 | ac_status=$? | |
30903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30904 | (exit $ac_status); }; } && | |
30905 | { ac_try='test -s conftest.$ac_objext' | |
30906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30907 | (eval $ac_try) 2>&5 | |
30908 | ac_status=$? | |
30909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30910 | (exit $ac_status); }; }; then | |
0ad5d837 | 30911 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
30912 | else |
30913 | echo "$as_me: failed program was:" >&5 | |
30914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30915 | ||
0ad5d837 VZ |
30916 | wx_cv_lib_lesstif="no" |
30917 | fi | |
30918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 30919 | |
0ad5d837 VZ |
30920 | fi |
30921 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
30922 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
30923 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
30924 | cat >>confdefs.h <<\_ACEOF | |
30925 | #define __WXLESSTIF__ 1 | |
30926 | _ACEOF | |
30927 | ||
30928 | else | |
30929 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
30930 | #define __WXLESSTIF__ 0 |
30931 | _ACEOF | |
30932 | ||
0ad5d837 | 30933 | fi |
2113bc77 | 30934 | |
e56f4f9e | 30935 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e | 30936 | |
62fa8b3a | 30937 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
30938 | TOOLKIT=MOTIF |
30939 | GUIDIST=MOTIF_DIST | |
30940 | fi | |
30941 | ||
74b84332 | 30942 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
30943 | if test "$wxUSE_LIBXPM" = "sys"; then |
30944 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
30945 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
30946 | ||
0ad5d837 VZ |
30947 | ac_find_libraries= |
30948 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30949 | do |
3eca31dc | 30950 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30951 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
30952 | ac_find_libraries=$ac_dir | |
30953 | break 2 | |
30954 | fi | |
30955 | done | |
30956 | done | |
30957 | ||
30958 | if test "$ac_find_libraries" != "" ; then | |
30959 | ||
0ad5d837 | 30960 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30961 | ac_path_to_link="" |
30962 | else | |
0ad5d837 VZ |
30963 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30964 | result=$? | |
30965 | if test $result = 0; then | |
30966 | ac_path_to_link="" | |
30967 | else | |
30968 | ac_path_to_link=" -L$ac_find_libraries" | |
30969 | fi | |
a848cd7e SC |
30970 | fi |
30971 | ||
30972 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
30973 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
30974 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
30975 | |
30976 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
30977 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
30978 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
30979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30980 | else | |
30981 | ||
e56f4f9e VZ |
30982 | save_CXXFLAGS=$CXXFLAGS |
30983 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
30984 | |
30985 | cat >conftest.$ac_ext <<_ACEOF | |
30986 | /* confdefs.h. */ | |
30987 | _ACEOF | |
30988 | cat confdefs.h >>conftest.$ac_ext | |
30989 | cat >>conftest.$ac_ext <<_ACEOF | |
30990 | /* end confdefs.h. */ | |
30991 | ||
30992 | #include <X11/xpm.h> | |
30993 | ||
30994 | int | |
30995 | main () | |
30996 | { | |
30997 | ||
30998 | int version; | |
30999 | version = XpmLibraryVersion(); | |
31000 | ||
31001 | ; | |
31002 | return 0; | |
31003 | } | |
31004 | _ACEOF | |
31005 | rm -f conftest.$ac_objext | |
31006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31008 | ac_status=$? |
ac1cb8d3 VS |
31009 | grep -v '^ *+' conftest.er1 >conftest.err |
31010 | rm -f conftest.er1 | |
31011 | cat conftest.err >&5 | |
a848cd7e SC |
31012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31013 | (exit $ac_status); } && | |
c9a66001 | 31014 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31016 | (eval $ac_try) 2>&5 | |
31017 | ac_status=$? | |
31018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31019 | (exit $ac_status); }; } && | |
31020 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31022 | (eval $ac_try) 2>&5 | |
31023 | ac_status=$? | |
31024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31025 | (exit $ac_status); }; }; then | |
31026 | wx_cv_x11_xpm_h=yes | |
31027 | else | |
31028 | echo "$as_me: failed program was:" >&5 | |
31029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31030 | ||
31031 | wx_cv_x11_xpm_h=no | |
31032 | ||
31033 | fi | |
ac1cb8d3 | 31034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 31035 | |
e56f4f9e | 31036 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
31037 | |
31038 | ||
31039 | fi | |
31040 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
31041 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
31042 | ||
31043 | if test $wx_cv_x11_xpm_h = "yes"; then | |
31044 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
31045 | cat >>confdefs.h <<\_ACEOF | |
31046 | #define wxHAVE_LIB_XPM 1 | |
31047 | _ACEOF | |
31048 | ||
31049 | else | |
31050 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
31051 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
31052 | fi | |
31053 | fi | |
31054 | ||
31055 | fi | |
31056 | ||
31057 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
31058 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
31059 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
31060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31061 | else | |
31062 | ac_check_lib_save_LIBS=$LIBS | |
31063 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
31064 | cat >conftest.$ac_ext <<_ACEOF | |
31065 | /* confdefs.h. */ | |
31066 | _ACEOF | |
31067 | cat confdefs.h >>conftest.$ac_ext | |
31068 | cat >>conftest.$ac_ext <<_ACEOF | |
31069 | /* end confdefs.h. */ | |
31070 | ||
31071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31072 | #ifdef __cplusplus | |
31073 | extern "C" | |
31074 | #endif | |
31075 | /* We use char because int might match the return type of a gcc2 | |
31076 | builtin and then its argument prototype would still apply. */ | |
31077 | char XShapeQueryExtension (); | |
31078 | int | |
31079 | main () | |
31080 | { | |
31081 | XShapeQueryExtension (); | |
31082 | ; | |
31083 | return 0; | |
31084 | } | |
31085 | _ACEOF | |
31086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31089 | ac_status=$? |
ac1cb8d3 VS |
31090 | grep -v '^ *+' conftest.er1 >conftest.err |
31091 | rm -f conftest.er1 | |
31092 | cat conftest.err >&5 | |
a848cd7e SC |
31093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31094 | (exit $ac_status); } && | |
c9a66001 | 31095 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31097 | (eval $ac_try) 2>&5 | |
31098 | ac_status=$? | |
31099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31100 | (exit $ac_status); }; } && | |
31101 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31103 | (eval $ac_try) 2>&5 | |
31104 | ac_status=$? | |
31105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31106 | (exit $ac_status); }; }; then | |
31107 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
31108 | else | |
31109 | echo "$as_me: failed program was:" >&5 | |
31110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31111 | ||
31112 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
31113 | fi | |
ac1cb8d3 VS |
31114 | rm -f conftest.err conftest.$ac_objext \ |
31115 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31116 | LIBS=$ac_check_lib_save_LIBS |
31117 | fi | |
31118 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
31119 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
31120 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
31121 | ||
31122 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
31123 | wxHAVE_XEXT_LIB=1 | |
31124 | ||
31125 | fi | |
31126 | ||
31127 | ||
31128 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
e56f4f9e VZ |
31129 | save_CXXFLAGS="$CXXFLAGS" |
31130 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
31131 | |
31132 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
31133 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
31134 | cat >conftest.$ac_ext <<_ACEOF | |
31135 | /* confdefs.h. */ | |
31136 | _ACEOF | |
31137 | cat confdefs.h >>conftest.$ac_ext | |
31138 | cat >>conftest.$ac_ext <<_ACEOF | |
31139 | /* end confdefs.h. */ | |
31140 | ||
31141 | #include <X11/Xlib.h> | |
31142 | #include <X11/extensions/shape.h> | |
31143 | ||
31144 | int | |
31145 | main () | |
31146 | { | |
31147 | ||
31148 | int dummy1, dummy2; | |
31149 | XShapeQueryExtension((Display*)NULL, | |
31150 | (int*)NULL, (int*)NULL); | |
31151 | ||
31152 | ; | |
31153 | return 0; | |
31154 | } | |
31155 | _ACEOF | |
31156 | rm -f conftest.$ac_objext | |
31157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31158 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31159 | ac_status=$? |
ac1cb8d3 VS |
31160 | grep -v '^ *+' conftest.er1 >conftest.err |
31161 | rm -f conftest.er1 | |
31162 | cat conftest.err >&5 | |
a848cd7e SC |
31163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31164 | (exit $ac_status); } && | |
c9a66001 | 31165 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31167 | (eval $ac_try) 2>&5 | |
31168 | ac_status=$? | |
31169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31170 | (exit $ac_status); }; } && | |
31171 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31173 | (eval $ac_try) 2>&5 | |
31174 | ac_status=$? | |
31175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31176 | (exit $ac_status); }; }; then | |
31177 | ||
31178 | cat >>confdefs.h <<\_ACEOF | |
31179 | #define HAVE_XSHAPE 1 | |
31180 | _ACEOF | |
31181 | ||
31182 | echo "$as_me:$LINENO: result: found" >&5 | |
31183 | echo "${ECHO_T}found" >&6 | |
31184 | ||
31185 | else | |
31186 | echo "$as_me: failed program was:" >&5 | |
31187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31188 | ||
31189 | ||
31190 | echo "$as_me:$LINENO: result: not found" >&5 | |
31191 | echo "${ECHO_T}not found" >&6 | |
31192 | ||
31193 | fi | |
ac1cb8d3 | 31194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e56f4f9e | 31195 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
31196 | |
31197 | fi | |
31198 | fi | |
31199 | ||
31200 | if test "$wxUSE_MAC" = 1; then | |
31201 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
31202 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
31203 | if test "$GCC" = yes; then | |
31204 | echo "$as_me:$LINENO: result: gcc" >&5 | |
31205 | echo "${ECHO_T}gcc" >&6 | |
31206 | CPPFLAGS_PASCAL="-fpascal-strings" | |
31207 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
31208 | echo "$as_me:$LINENO: result: xlc" >&5 | |
31209 | echo "${ECHO_T}xlc" >&6 | |
31210 | CPPFLAGS_PASCAL="-qmacpstr" | |
31211 | else | |
31212 | echo "$as_me:$LINENO: result: none" >&5 | |
31213 | echo "${ECHO_T}none" >&6 | |
31214 | fi | |
31215 | ||
1e9e8aba | 31216 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 31217 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 31218 | else |
c92ad099 | 31219 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 31220 | fi |
a848cd7e | 31221 | |
a848cd7e SC |
31222 | TOOLKIT=MAC |
31223 | GUIDIST=MACX_DIST | |
dd21ced8 | 31224 | WXBASEPORT="_carbon" |
a848cd7e SC |
31225 | fi |
31226 | ||
31227 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
31228 | TOOLKIT=COCOA |
31229 | GUIDIST=COCOA_DIST | |
31230 | fi | |
31231 | ||
31232 | if test "$wxUSE_PM" = 1; then | |
31233 | TOOLKIT=PM | |
de59c161 RD |
31234 | GUIDIST=PM_DIST |
31235 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
31236 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
31237 | if test "${wx_cv_spbcdata+set}" = set; then | |
31238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31239 | else | |
31240 | ||
31241 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
31242 | /* confdefs.h. */ |
31243 | _ACEOF | |
31244 | cat confdefs.h >>conftest.$ac_ext | |
31245 | cat >>conftest.$ac_ext <<_ACEOF | |
31246 | /* end confdefs.h. */ | |
31247 | ||
31248 | #define INCL_PM | |
31249 | #include <os2.h> | |
31250 | ||
31251 | int | |
31252 | main () | |
31253 | { | |
31254 | ||
31255 | SPBCDATA test; | |
31256 | ||
31257 | ; | |
31258 | return 0; | |
31259 | } | |
31260 | _ACEOF | |
31261 | rm -f conftest.$ac_objext | |
31262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31263 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 31264 | ac_status=$? |
ac1cb8d3 VS |
31265 | grep -v '^ *+' conftest.er1 >conftest.err |
31266 | rm -f conftest.er1 | |
31267 | cat conftest.err >&5 | |
de59c161 RD |
31268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31269 | (exit $ac_status); } && | |
c9a66001 | 31270 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31272 | (eval $ac_try) 2>&5 | |
31273 | ac_status=$? | |
31274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31275 | (exit $ac_status); }; } && | |
31276 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
31277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31278 | (eval $ac_try) 2>&5 | |
31279 | ac_status=$? | |
31280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31281 | (exit $ac_status); }; }; then | |
31282 | wx_cv_spbcdata=yes | |
31283 | else | |
31284 | echo "$as_me: failed program was:" >&5 | |
31285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31286 | ||
31287 | wx_cv_spbcdata=no | |
31288 | ||
31289 | fi | |
ac1cb8d3 | 31290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
31291 | |
31292 | ||
31293 | fi | |
31294 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
31295 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
31296 | ||
31297 | if test $wx_cv_spbcdata = "yes"; then | |
31298 | cat >>confdefs.h <<\_ACEOF | |
31299 | #define HAVE_SPBCDATA 1 | |
31300 | _ACEOF | |
31301 | ||
31302 | fi | |
a848cd7e SC |
31303 | fi |
31304 | ||
31305 | if test "$TOOLKIT" = "PM" ; then | |
31306 | TOOLKIT_DIR="os2" | |
31307 | else | |
31308 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
31309 | fi | |
31310 | ||
a848cd7e | 31311 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
31312 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
31313 | WIDGET_SET=univ | |
a848cd7e SC |
31314 | fi |
31315 | ||
31316 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
31317 | DISTDIR="wx\$(TOOLKIT)" | |
31318 | else | |
31319 | USE_GUI=0 | |
31320 | ||
31321 | TOOLKIT_DIR="base" | |
31322 | ||
31323 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 31324 | TOOLKIT="MSW" |
a848cd7e SC |
31325 | fi |
31326 | ||
a848cd7e SC |
31327 | GUIDIST="BASE_DIST" |
31328 | DISTDIR="wxBase" | |
31329 | fi | |
31330 | ||
31331 | ||
d12aef51 VZ |
31332 | if test "$wxUSE_GUI" = "yes"; then |
31333 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
31334 | ||
31335 | for ac_header in X11/Xlib.h | |
31336 | do | |
31337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31338 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31343 | fi | |
31344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31346 | else | |
31347 | # Is the header compilable? | |
31348 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31349 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31350 | cat >conftest.$ac_ext <<_ACEOF | |
31351 | /* confdefs.h. */ | |
31352 | _ACEOF | |
31353 | cat confdefs.h >>conftest.$ac_ext | |
31354 | cat >>conftest.$ac_ext <<_ACEOF | |
31355 | /* end confdefs.h. */ | |
31356 | $ac_includes_default | |
31357 | #include <$ac_header> | |
31358 | _ACEOF | |
31359 | rm -f conftest.$ac_objext | |
31360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31361 | (eval $ac_compile) 2>conftest.er1 | |
31362 | ac_status=$? | |
31363 | grep -v '^ *+' conftest.er1 >conftest.err | |
31364 | rm -f conftest.er1 | |
31365 | cat conftest.err >&5 | |
31366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31367 | (exit $ac_status); } && | |
c9a66001 | 31368 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
31369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31370 | (eval $ac_try) 2>&5 | |
31371 | ac_status=$? | |
31372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31373 | (exit $ac_status); }; } && | |
31374 | { ac_try='test -s conftest.$ac_objext' | |
31375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31376 | (eval $ac_try) 2>&5 | |
31377 | ac_status=$? | |
31378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31379 | (exit $ac_status); }; }; then | |
31380 | ac_header_compiler=yes | |
31381 | else | |
31382 | echo "$as_me: failed program was:" >&5 | |
31383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31384 | ||
31385 | ac_header_compiler=no | |
31386 | fi | |
31387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31388 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31389 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31390 | ||
31391 | # Is the header present? | |
31392 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31393 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31394 | cat >conftest.$ac_ext <<_ACEOF | |
31395 | /* confdefs.h. */ | |
31396 | _ACEOF | |
31397 | cat confdefs.h >>conftest.$ac_ext | |
31398 | cat >>conftest.$ac_ext <<_ACEOF | |
31399 | /* end confdefs.h. */ | |
31400 | #include <$ac_header> | |
31401 | _ACEOF | |
31402 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31403 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31404 | ac_status=$? | |
31405 | grep -v '^ *+' conftest.er1 >conftest.err | |
31406 | rm -f conftest.er1 | |
31407 | cat conftest.err >&5 | |
31408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31409 | (exit $ac_status); } >/dev/null; then | |
31410 | if test -s conftest.err; then | |
5d7b7554 VZ |
31411 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31412 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
d12aef51 VZ |
31413 | else |
31414 | ac_cpp_err= | |
31415 | fi | |
31416 | else | |
31417 | ac_cpp_err=yes | |
31418 | fi | |
31419 | if test -z "$ac_cpp_err"; then | |
31420 | ac_header_preproc=yes | |
31421 | else | |
31422 | echo "$as_me: failed program was:" >&5 | |
31423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31424 | ||
31425 | ac_header_preproc=no | |
31426 | fi | |
31427 | rm -f conftest.err conftest.$ac_ext | |
31428 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31429 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31430 | ||
31431 | # So? What about this header? | |
5d7b7554 | 31432 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
d12aef51 VZ |
31433 | yes:no: ) |
31434 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31435 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
31437 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31438 | ac_header_preproc=yes | |
31439 | ;; | |
31440 | no:yes:* ) | |
31441 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31442 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31443 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31444 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31445 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31446 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31447 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31448 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
31449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31450 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31451 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
31452 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
31453 | ( | |
31454 | cat <<\_ASBOX | |
31455 | ## ----------------------------------------- ## | |
31456 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31457 | ## ----------------------------------------- ## | |
31458 | _ASBOX | |
31459 | ) | | |
31460 | sed "s/^/$as_me: WARNING: /" >&2 | |
31461 | ;; | |
31462 | esac | |
31463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31467 | else | |
31468 | eval "$as_ac_Header=\$ac_header_preproc" | |
31469 | fi | |
31470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31472 | ||
31473 | fi | |
31474 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31475 | cat >>confdefs.h <<_ACEOF | |
31476 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31477 | _ACEOF | |
31478 | ||
31479 | fi | |
31480 | ||
31481 | done | |
31482 | ||
31483 | ||
31484 | for ac_header in X11/XKBlib.h | |
31485 | do | |
31486 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31487 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31491 | else | |
31492 | cat >conftest.$ac_ext <<_ACEOF | |
31493 | /* confdefs.h. */ | |
31494 | _ACEOF | |
31495 | cat confdefs.h >>conftest.$ac_ext | |
31496 | cat >>conftest.$ac_ext <<_ACEOF | |
31497 | /* end confdefs.h. */ | |
31498 | ||
31499 | #if HAVE_X11_XLIB_H | |
31500 | #include <X11/Xlib.h> | |
31501 | #endif | |
31502 | ||
31503 | ||
31504 | #include <$ac_header> | |
31505 | _ACEOF | |
31506 | rm -f conftest.$ac_objext | |
31507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31508 | (eval $ac_compile) 2>conftest.er1 | |
31509 | ac_status=$? | |
31510 | grep -v '^ *+' conftest.er1 >conftest.err | |
31511 | rm -f conftest.er1 | |
31512 | cat conftest.err >&5 | |
31513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31514 | (exit $ac_status); } && | |
c9a66001 | 31515 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
31516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31517 | (eval $ac_try) 2>&5 | |
31518 | ac_status=$? | |
31519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31520 | (exit $ac_status); }; } && | |
31521 | { ac_try='test -s conftest.$ac_objext' | |
31522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31523 | (eval $ac_try) 2>&5 | |
31524 | ac_status=$? | |
31525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31526 | (exit $ac_status); }; }; then | |
31527 | eval "$as_ac_Header=yes" | |
31528 | else | |
31529 | echo "$as_me: failed program was:" >&5 | |
31530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31531 | ||
31532 | eval "$as_ac_Header=no" | |
31533 | fi | |
31534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31535 | fi | |
31536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31537 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31538 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31539 | cat >>confdefs.h <<_ACEOF | |
31540 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31541 | _ACEOF | |
31542 | ||
31543 | fi | |
31544 | ||
31545 | done | |
31546 | ||
31547 | fi | |
31548 | fi | |
31549 | ||
a848cd7e SC |
31550 | |
31551 | ||
31552 | IODBC_C_SRC="" | |
31553 | ||
31554 | ||
31555 | if test "$TOOLKIT" != "MSW" ; then | |
31556 | ||
31557 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
31558 | ||
31559 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31560 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31561 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31562 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31564 | fi | |
31565 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31566 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31567 | else | |
31568 | # Is the header compilable? | |
31569 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
31570 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
31571 | cat >conftest.$ac_ext <<_ACEOF | |
31572 | /* confdefs.h. */ | |
31573 | _ACEOF | |
31574 | cat confdefs.h >>conftest.$ac_ext | |
31575 | cat >>conftest.$ac_ext <<_ACEOF | |
31576 | /* end confdefs.h. */ | |
31577 | $ac_includes_default | |
31578 | #include <sql.h> | |
31579 | _ACEOF | |
31580 | rm -f conftest.$ac_objext | |
31581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31582 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31583 | ac_status=$? |
ac1cb8d3 VS |
31584 | grep -v '^ *+' conftest.er1 >conftest.err |
31585 | rm -f conftest.er1 | |
31586 | cat conftest.err >&5 | |
a848cd7e SC |
31587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31588 | (exit $ac_status); } && | |
c9a66001 | 31589 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31591 | (eval $ac_try) 2>&5 | |
31592 | ac_status=$? | |
31593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31594 | (exit $ac_status); }; } && | |
31595 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31597 | (eval $ac_try) 2>&5 | |
31598 | ac_status=$? | |
31599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31600 | (exit $ac_status); }; }; then | |
31601 | ac_header_compiler=yes | |
31602 | else | |
31603 | echo "$as_me: failed program was:" >&5 | |
31604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31605 | ||
31606 | ac_header_compiler=no | |
31607 | fi | |
ac1cb8d3 | 31608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31609 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31610 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31611 | ||
31612 | # Is the header present? | |
31613 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
31614 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
31615 | cat >conftest.$ac_ext <<_ACEOF | |
31616 | /* confdefs.h. */ | |
31617 | _ACEOF | |
31618 | cat confdefs.h >>conftest.$ac_ext | |
31619 | cat >>conftest.$ac_ext <<_ACEOF | |
31620 | /* end confdefs.h. */ | |
31621 | #include <sql.h> | |
31622 | _ACEOF | |
31623 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31624 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31625 | ac_status=$? | |
31626 | grep -v '^ *+' conftest.er1 >conftest.err | |
31627 | rm -f conftest.er1 | |
31628 | cat conftest.err >&5 | |
31629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31630 | (exit $ac_status); } >/dev/null; then | |
31631 | if test -s conftest.err; then | |
5d7b7554 VZ |
31632 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31633 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31634 | else |
31635 | ac_cpp_err= | |
31636 | fi | |
31637 | else | |
31638 | ac_cpp_err=yes | |
31639 | fi | |
31640 | if test -z "$ac_cpp_err"; then | |
31641 | ac_header_preproc=yes | |
31642 | else | |
31643 | echo "$as_me: failed program was:" >&5 | |
31644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31645 | ||
31646 | ac_header_preproc=no | |
31647 | fi | |
31648 | rm -f conftest.err conftest.$ac_ext | |
31649 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31650 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31651 | ||
31652 | # So? What about this header? | |
5d7b7554 | 31653 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31654 | yes:no: ) |
a848cd7e SC |
31655 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31656 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31657 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
31658 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
31659 | ac_header_preproc=yes | |
a848cd7e | 31660 | ;; |
ac1cb8d3 | 31661 | no:yes:* ) |
a848cd7e SC |
31662 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
31663 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31664 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
31665 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
31666 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
31667 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
31668 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31669 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31670 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
31671 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31672 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
31673 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31674 | ( |
31675 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31676 | ## ----------------------------------------- ## |
31677 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31678 | ## ----------------------------------------- ## | |
a848cd7e SC |
31679 | _ASBOX |
31680 | ) | | |
31681 | sed "s/^/$as_me: WARNING: /" >&2 | |
31682 | ;; | |
31683 | esac | |
31684 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31685 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31686 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31688 | else | |
31689 | ac_cv_header_sql_h=$ac_header_preproc | |
31690 | fi | |
31691 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31692 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31693 | ||
31694 | fi | |
31695 | if test $ac_cv_header_sql_h = yes; then | |
31696 | found_sql_h=1 | |
31697 | fi | |
31698 | ||
31699 | ||
31700 | if test "x$found_sql_h" = "x1" ; then | |
31701 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
31702 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
31703 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
31704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31705 | else | |
31706 | ac_check_lib_save_LIBS=$LIBS | |
31707 | LIBS="-liodbc $LIBS" | |
31708 | cat >conftest.$ac_ext <<_ACEOF | |
31709 | /* confdefs.h. */ | |
31710 | _ACEOF | |
31711 | cat confdefs.h >>conftest.$ac_ext | |
31712 | cat >>conftest.$ac_ext <<_ACEOF | |
31713 | /* end confdefs.h. */ | |
31714 | ||
31715 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31716 | #ifdef __cplusplus | |
31717 | extern "C" | |
31718 | #endif | |
31719 | /* We use char because int might match the return type of a gcc2 | |
31720 | builtin and then its argument prototype would still apply. */ | |
31721 | char SQLAllocEnv (); | |
31722 | int | |
31723 | main () | |
31724 | { | |
31725 | SQLAllocEnv (); | |
31726 | ; | |
31727 | return 0; | |
31728 | } | |
31729 | _ACEOF | |
31730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31732 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31733 | ac_status=$? |
ac1cb8d3 VS |
31734 | grep -v '^ *+' conftest.er1 >conftest.err |
31735 | rm -f conftest.er1 | |
31736 | cat conftest.err >&5 | |
a848cd7e SC |
31737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31738 | (exit $ac_status); } && | |
c9a66001 | 31739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31741 | (eval $ac_try) 2>&5 | |
31742 | ac_status=$? | |
31743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31744 | (exit $ac_status); }; } && | |
31745 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31747 | (eval $ac_try) 2>&5 | |
31748 | ac_status=$? | |
31749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31750 | (exit $ac_status); }; }; then | |
31751 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
31752 | else | |
31753 | echo "$as_me: failed program was:" >&5 | |
31754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31755 | ||
31756 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
31757 | fi | |
ac1cb8d3 VS |
31758 | rm -f conftest.err conftest.$ac_objext \ |
31759 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31760 | LIBS=$ac_check_lib_save_LIBS |
31761 | fi | |
31762 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
31763 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
31764 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
31765 | ODBC_LINK=" -liodbc" | |
31766 | else | |
31767 | ||
31768 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
31769 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
31770 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
31771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31772 | else | |
31773 | ac_check_lib_save_LIBS=$LIBS | |
31774 | LIBS="-lunixodbc $LIBS" | |
31775 | cat >conftest.$ac_ext <<_ACEOF | |
31776 | /* confdefs.h. */ | |
31777 | _ACEOF | |
31778 | cat confdefs.h >>conftest.$ac_ext | |
31779 | cat >>conftest.$ac_ext <<_ACEOF | |
31780 | /* end confdefs.h. */ | |
31781 | ||
31782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31783 | #ifdef __cplusplus | |
31784 | extern "C" | |
31785 | #endif | |
31786 | /* We use char because int might match the return type of a gcc2 | |
31787 | builtin and then its argument prototype would still apply. */ | |
31788 | char SQLAllocEnv (); | |
31789 | int | |
31790 | main () | |
31791 | { | |
31792 | SQLAllocEnv (); | |
31793 | ; | |
31794 | return 0; | |
31795 | } | |
31796 | _ACEOF | |
31797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31799 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31800 | ac_status=$? |
ac1cb8d3 VS |
31801 | grep -v '^ *+' conftest.er1 >conftest.err |
31802 | rm -f conftest.er1 | |
31803 | cat conftest.err >&5 | |
a848cd7e SC |
31804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31805 | (exit $ac_status); } && | |
c9a66001 | 31806 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31808 | (eval $ac_try) 2>&5 | |
31809 | ac_status=$? | |
31810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31811 | (exit $ac_status); }; } && | |
31812 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31814 | (eval $ac_try) 2>&5 | |
31815 | ac_status=$? | |
31816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31817 | (exit $ac_status); }; }; then | |
31818 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
31819 | else | |
31820 | echo "$as_me: failed program was:" >&5 | |
31821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31822 | ||
31823 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
31824 | fi | |
ac1cb8d3 VS |
31825 | rm -f conftest.err conftest.$ac_objext \ |
31826 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31827 | LIBS=$ac_check_lib_save_LIBS |
31828 | fi | |
31829 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
31830 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
31831 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
31832 | ODBC_LINK=" -lunixodbc" | |
31833 | else | |
31834 | ||
31835 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
31836 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
31837 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
31838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31839 | else | |
31840 | ac_check_lib_save_LIBS=$LIBS | |
31841 | LIBS="-lodbc $LIBS" | |
31842 | cat >conftest.$ac_ext <<_ACEOF | |
31843 | /* confdefs.h. */ | |
31844 | _ACEOF | |
31845 | cat confdefs.h >>conftest.$ac_ext | |
31846 | cat >>conftest.$ac_ext <<_ACEOF | |
31847 | /* end confdefs.h. */ | |
31848 | ||
31849 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31850 | #ifdef __cplusplus | |
31851 | extern "C" | |
31852 | #endif | |
31853 | /* We use char because int might match the return type of a gcc2 | |
31854 | builtin and then its argument prototype would still apply. */ | |
31855 | char SQLAllocEnv (); | |
31856 | int | |
31857 | main () | |
31858 | { | |
31859 | SQLAllocEnv (); | |
31860 | ; | |
31861 | return 0; | |
31862 | } | |
31863 | _ACEOF | |
31864 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31866 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31867 | ac_status=$? |
ac1cb8d3 VS |
31868 | grep -v '^ *+' conftest.er1 >conftest.err |
31869 | rm -f conftest.er1 | |
31870 | cat conftest.err >&5 | |
a848cd7e SC |
31871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31872 | (exit $ac_status); } && | |
c9a66001 | 31873 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31875 | (eval $ac_try) 2>&5 | |
31876 | ac_status=$? | |
31877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31878 | (exit $ac_status); }; } && | |
31879 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31881 | (eval $ac_try) 2>&5 | |
31882 | ac_status=$? | |
31883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31884 | (exit $ac_status); }; }; then | |
31885 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
31886 | else | |
31887 | echo "$as_me: failed program was:" >&5 | |
31888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31889 | ||
31890 | ac_cv_lib_odbc_SQLAllocEnv=no | |
31891 | fi | |
ac1cb8d3 VS |
31892 | rm -f conftest.err conftest.$ac_objext \ |
31893 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31894 | LIBS=$ac_check_lib_save_LIBS |
31895 | fi | |
31896 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
31897 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
31898 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
31899 | ODBC_LINK=" -lodbc" | |
31900 | fi | |
31901 | ||
31902 | ||
31903 | fi | |
31904 | ||
31905 | ||
31906 | fi | |
31907 | ||
31908 | fi | |
31909 | if test "x$ODBC_LINK" = "x" ; then | |
31910 | if test "$wxUSE_ODBC" = "sys" ; then | |
31911 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
31912 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
31913 | { (exit 1); exit 1; }; } | |
31914 | else | |
31915 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
31916 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
31917 | wxUSE_ODBC=builtin | |
31918 | fi | |
31919 | else | |
31920 | wxUSE_ODBC=sys | |
31921 | fi | |
31922 | fi | |
a848cd7e | 31923 | |
2da0c077 RD |
31924 | if test "$wxUSE_ODBC" = "builtin" ; then |
31925 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31926 | #define wxUSE_BUILTIN_IODBC 1 |
31927 | _ACEOF | |
31928 | ||
a848cd7e SC |
31929 | fi |
31930 | fi | |
31931 | ||
2da0c077 RD |
31932 | if test "$wxUSE_ODBC" != "no" ; then |
31933 | cat >>confdefs.h <<\_ACEOF | |
31934 | #define wxUSE_ODBC 1 | |
31935 | _ACEOF | |
31936 | ||
31937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
31938 | ||
5ff751d6 | 31939 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 31940 | fi |
a848cd7e | 31941 | |
01cb68df | 31942 | |
a848cd7e | 31943 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 31944 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
31945 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
31946 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
31947 | ||
0ad5d837 VZ |
31948 | ac_find_libraries= |
31949 | for ac_dir in $SEARCH_LIB; | |
31950 | do | |
31951 | for ac_extension in a so sl dylib dll.a; do | |
31952 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
31953 | ac_find_libraries=$ac_dir | |
31954 | break 2 | |
31955 | fi | |
31956 | done | |
31957 | done | |
31958 | ||
a848cd7e SC |
31959 | if test "$ac_find_libraries" != "" ; then |
31960 | ||
0ad5d837 | 31961 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31962 | ac_path_to_link="" |
31963 | else | |
0ad5d837 VZ |
31964 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31965 | result=$? | |
31966 | if test $result = 0; then | |
31967 | ac_path_to_link="" | |
31968 | else | |
31969 | ac_path_to_link=" -L$ac_find_libraries" | |
31970 | fi | |
a848cd7e SC |
31971 | fi |
31972 | ||
31973 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31974 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
31975 | fi | |
31976 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
31977 | echo "$as_me:$LINENO: result: yes" >&5 | |
31978 | echo "${ECHO_T}yes" >&6 | |
31979 | ||
31980 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
31981 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
31982 | ||
0ad5d837 VZ |
31983 | ac_find_libraries= |
31984 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31985 | do |
3eca31dc | 31986 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31987 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
31988 | ac_find_libraries=$ac_dir | |
31989 | break 2 | |
31990 | fi | |
31991 | done | |
31992 | done | |
31993 | ||
31994 | if test "$ac_find_libraries" != "" ; then | |
31995 | echo "$as_me:$LINENO: result: yes" >&5 | |
31996 | echo "${ECHO_T}yes" >&6 | |
31997 | ||
31998 | for ac_header in X11/extensions/xf86vmode.h | |
31999 | do | |
32000 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32005 | else | |
32006 | cat >conftest.$ac_ext <<_ACEOF | |
32007 | /* confdefs.h. */ | |
32008 | _ACEOF | |
32009 | cat confdefs.h >>conftest.$ac_ext | |
32010 | cat >>conftest.$ac_ext <<_ACEOF | |
32011 | /* end confdefs.h. */ | |
32012 | ||
32013 | #if HAVE_X11_XLIB_H | |
32014 | #include <X11/Xlib.h> | |
32015 | #endif | |
32016 | ||
32017 | ||
32018 | #include <$ac_header> | |
32019 | _ACEOF | |
32020 | rm -f conftest.$ac_objext | |
32021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32022 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32023 | ac_status=$? |
ac1cb8d3 VS |
32024 | grep -v '^ *+' conftest.er1 >conftest.err |
32025 | rm -f conftest.er1 | |
32026 | cat conftest.err >&5 | |
a848cd7e SC |
32027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32028 | (exit $ac_status); } && | |
c9a66001 | 32029 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32031 | (eval $ac_try) 2>&5 | |
32032 | ac_status=$? | |
32033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32034 | (exit $ac_status); }; } && | |
32035 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32037 | (eval $ac_try) 2>&5 | |
32038 | ac_status=$? | |
32039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32040 | (exit $ac_status); }; }; then | |
32041 | eval "$as_ac_Header=yes" | |
32042 | else | |
32043 | echo "$as_me: failed program was:" >&5 | |
32044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32045 | ||
32046 | eval "$as_ac_Header=no" | |
32047 | fi | |
ac1cb8d3 | 32048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32049 | fi |
32050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32051 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32052 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32053 | cat >>confdefs.h <<_ACEOF | |
32054 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32055 | _ACEOF | |
32056 | ||
32057 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
32058 | ||
32059 | fi | |
32060 | ||
32061 | done | |
32062 | ||
32063 | else | |
32064 | echo "$as_me:$LINENO: result: no" >&5 | |
32065 | echo "${ECHO_T}no" >&6 | |
32066 | fi | |
32067 | ||
32068 | else | |
32069 | echo "$as_me:$LINENO: result: no" >&5 | |
32070 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
32071 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
32072 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
32073 | wxUSE_DISPLAY="no" |
32074 | fi | |
01cb68df RG |
32075 | elif test "$wxUSE_MSW" = 1; then |
32076 | ||
e5efa97e | 32077 | for ac_header in ddraw.h |
01cb68df RG |
32078 | do |
32079 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 32080 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
32081 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
32082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 32084 | else |
5294a27e | 32085 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
32086 | /* confdefs.h. */ |
32087 | _ACEOF | |
32088 | cat confdefs.h >>conftest.$ac_ext | |
32089 | cat >>conftest.$ac_ext <<_ACEOF | |
32090 | /* end confdefs.h. */ | |
5294a27e VZ |
32091 | #include <windows.h> |
32092 | ||
01cb68df RG |
32093 | #include <$ac_header> |
32094 | _ACEOF | |
32095 | rm -f conftest.$ac_objext | |
32096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32097 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 32098 | ac_status=$? |
ac1cb8d3 VS |
32099 | grep -v '^ *+' conftest.er1 >conftest.err |
32100 | rm -f conftest.er1 | |
32101 | cat conftest.err >&5 | |
01cb68df RG |
32102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32103 | (exit $ac_status); } && | |
c9a66001 | 32104 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32106 | (eval $ac_try) 2>&5 | |
32107 | ac_status=$? | |
32108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32109 | (exit $ac_status); }; } && | |
32110 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
32111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32112 | (eval $ac_try) 2>&5 | |
32113 | ac_status=$? | |
32114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32115 | (exit $ac_status); }; }; then | |
5294a27e | 32116 | eval "$as_ac_Header=yes" |
01cb68df RG |
32117 | else |
32118 | echo "$as_me: failed program was:" >&5 | |
32119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32120 | ||
5294a27e | 32121 | eval "$as_ac_Header=no" |
01cb68df | 32122 | fi |
ac1cb8d3 | 32123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
32124 | fi |
32125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32126 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
32127 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32128 | cat >>confdefs.h <<_ACEOF | |
32129 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32130 | _ACEOF | |
32131 | ||
01cb68df RG |
32132 | fi |
32133 | ||
32134 | done | |
32135 | ||
a848cd7e SC |
32136 | fi |
32137 | fi | |
32138 | ||
32139 | ||
32140 | USE_OPENGL=0 | |
32141 | if test "$wxUSE_OPENGL" = "yes"; then | |
32142 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
32143 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
32144 | elif test "$wxUSE_MSW" = 1; then | |
32145 | OPENGL_LIBS="-lopengl32 -lglu32" | |
32146 | else | |
32147 | ||
32148 | ||
32149 | ac_find_includes= | |
32150 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
32151 | do | |
32152 | if test -f "$ac_dir/GL/gl.h"; then | |
32153 | ac_find_includes=$ac_dir | |
32154 | break | |
32155 | fi | |
32156 | done | |
32157 | ||
32158 | if test "$ac_find_includes" != "" ; then | |
32159 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
32160 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
32161 | ||
32162 | if test "x$ac_find_includes" = "x/usr/include"; then | |
32163 | ac_path_to_include="" | |
32164 | else | |
32165 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
32166 | result=$? | |
32167 | if test $result = 0; then | |
32168 | ac_path_to_include="" | |
32169 | else | |
32170 | ac_path_to_include=" -I$ac_find_includes" | |
32171 | fi | |
32172 | fi | |
32173 | ||
c92ad099 | 32174 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
32175 | fi |
32176 | ||
32177 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32178 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32179 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32180 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32182 | fi | |
32183 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32184 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32185 | else | |
32186 | # Is the header compilable? | |
32187 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
32188 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
32189 | cat >conftest.$ac_ext <<_ACEOF | |
32190 | /* confdefs.h. */ | |
32191 | _ACEOF | |
32192 | cat confdefs.h >>conftest.$ac_ext | |
32193 | cat >>conftest.$ac_ext <<_ACEOF | |
32194 | /* end confdefs.h. */ | |
32195 | $ac_includes_default | |
32196 | #include <GL/gl.h> | |
32197 | _ACEOF | |
32198 | rm -f conftest.$ac_objext | |
32199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32200 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32201 | ac_status=$? |
ac1cb8d3 VS |
32202 | grep -v '^ *+' conftest.er1 >conftest.err |
32203 | rm -f conftest.er1 | |
32204 | cat conftest.err >&5 | |
a848cd7e SC |
32205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32206 | (exit $ac_status); } && | |
c9a66001 | 32207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32209 | (eval $ac_try) 2>&5 | |
32210 | ac_status=$? | |
32211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32212 | (exit $ac_status); }; } && | |
32213 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32215 | (eval $ac_try) 2>&5 | |
32216 | ac_status=$? | |
32217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32218 | (exit $ac_status); }; }; then | |
32219 | ac_header_compiler=yes | |
32220 | else | |
32221 | echo "$as_me: failed program was:" >&5 | |
32222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32223 | ||
32224 | ac_header_compiler=no | |
32225 | fi | |
ac1cb8d3 | 32226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32227 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32228 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32229 | ||
32230 | # Is the header present? | |
32231 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
32232 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
32233 | cat >conftest.$ac_ext <<_ACEOF | |
32234 | /* confdefs.h. */ | |
32235 | _ACEOF | |
32236 | cat confdefs.h >>conftest.$ac_ext | |
32237 | cat >>conftest.$ac_ext <<_ACEOF | |
32238 | /* end confdefs.h. */ | |
32239 | #include <GL/gl.h> | |
32240 | _ACEOF | |
32241 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32242 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32243 | ac_status=$? | |
32244 | grep -v '^ *+' conftest.er1 >conftest.err | |
32245 | rm -f conftest.er1 | |
32246 | cat conftest.err >&5 | |
32247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32248 | (exit $ac_status); } >/dev/null; then | |
32249 | if test -s conftest.err; then | |
5d7b7554 VZ |
32250 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
32251 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
32252 | else |
32253 | ac_cpp_err= | |
32254 | fi | |
32255 | else | |
32256 | ac_cpp_err=yes | |
32257 | fi | |
32258 | if test -z "$ac_cpp_err"; then | |
32259 | ac_header_preproc=yes | |
32260 | else | |
32261 | echo "$as_me: failed program was:" >&5 | |
32262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32263 | ||
32264 | ac_header_preproc=no | |
32265 | fi | |
32266 | rm -f conftest.err conftest.$ac_ext | |
32267 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32268 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32269 | ||
32270 | # So? What about this header? | |
5d7b7554 | 32271 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 32272 | yes:no: ) |
a848cd7e SC |
32273 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
32274 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32275 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
32276 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
32277 | ac_header_preproc=yes | |
a848cd7e | 32278 | ;; |
ac1cb8d3 | 32279 | no:yes:* ) |
a848cd7e SC |
32280 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
32281 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32282 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
32283 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
32284 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
32285 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
32286 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
32287 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32288 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
32289 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32290 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
32291 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32292 | ( |
32293 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32294 | ## ----------------------------------------- ## |
32295 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32296 | ## ----------------------------------------- ## | |
a848cd7e SC |
32297 | _ASBOX |
32298 | ) | | |
32299 | sed "s/^/$as_me: WARNING: /" >&2 | |
32300 | ;; | |
32301 | esac | |
32302 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32303 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32304 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32306 | else | |
32307 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
32308 | fi | |
32309 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32310 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32311 | ||
32312 | fi | |
32313 | if test $ac_cv_header_GL_gl_h = yes; then | |
32314 | ||
32315 | found_gl=0 | |
32316 | ||
32317 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
32318 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
32319 | ||
0ad5d837 VZ |
32320 | ac_find_libraries= |
32321 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32322 | do |
3eca31dc | 32323 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32324 | if test -f "$ac_dir/libGL.$ac_extension"; then |
32325 | ac_find_libraries=$ac_dir | |
32326 | break 2 | |
32327 | fi | |
32328 | done | |
32329 | done | |
32330 | ||
32331 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
32332 | echo "$as_me:$LINENO: result: yes" >&5 |
32333 | echo "${ECHO_T}yes" >&6 | |
32334 | ||
a848cd7e | 32335 | |
0ad5d837 | 32336 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32337 | ac_path_to_link="" |
32338 | else | |
0ad5d837 VZ |
32339 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32340 | result=$? | |
32341 | if test $result = 0; then | |
32342 | ac_path_to_link="" | |
32343 | else | |
32344 | ac_path_to_link=" -L$ac_find_libraries" | |
32345 | fi | |
a848cd7e SC |
32346 | fi |
32347 | ||
32348 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
32349 | LDFLAGS_GL="$ac_path_to_link" | |
32350 | fi | |
32351 | ||
69120ee4 VZ |
32352 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
32353 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 32354 | |
0ad5d837 VZ |
32355 | ac_find_libraries= |
32356 | for ac_dir in $SEARCH_LIB; | |
32357 | do | |
32358 | for ac_extension in a so sl dylib dll.a; do | |
32359 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
32360 | ac_find_libraries=$ac_dir | |
32361 | break 2 | |
32362 | fi | |
32363 | done | |
32364 | done | |
32365 | ||
a848cd7e SC |
32366 | if test "$ac_find_libraries" != "" ; then |
32367 | ||
0ad5d837 | 32368 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32369 | ac_path_to_link="" |
32370 | else | |
0ad5d837 VZ |
32371 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32372 | result=$? | |
32373 | if test $result = 0; then | |
32374 | ac_path_to_link="" | |
32375 | else | |
32376 | ac_path_to_link=" -L$ac_find_libraries" | |
32377 | fi | |
a848cd7e SC |
32378 | fi |
32379 | ||
32380 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
32381 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
32382 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
32383 | fi | |
32384 | ||
32385 | found_gl=1 | |
32386 | OPENGL_LIBS="-lGL -lGLU" | |
32387 | echo "$as_me:$LINENO: result: yes" >&5 | |
32388 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
32389 | else |
32390 | echo "$as_me:$LINENO: result: no" >&5 | |
32391 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 32392 | fi |
69120ee4 VZ |
32393 | else |
32394 | echo "$as_me:$LINENO: result: no" >&5 | |
32395 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
32396 | fi |
32397 | ||
32398 | if test "$found_gl" != 1; then | |
a848cd7e SC |
32399 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
32400 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
32401 | ||
0ad5d837 VZ |
32402 | ac_find_libraries= |
32403 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32404 | do |
3eca31dc | 32405 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32406 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
32407 | ac_find_libraries=$ac_dir | |
32408 | break 2 | |
32409 | fi | |
32410 | done | |
32411 | done | |
32412 | ||
32413 | if test "$ac_find_libraries" != "" ; then | |
32414 | ||
0ad5d837 | 32415 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32416 | ac_path_to_link="" |
32417 | else | |
0ad5d837 VZ |
32418 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32419 | result=$? | |
32420 | if test $result = 0; then | |
32421 | ac_path_to_link="" | |
32422 | else | |
32423 | ac_path_to_link=" -L$ac_find_libraries" | |
32424 | fi | |
a848cd7e SC |
32425 | fi |
32426 | ||
32427 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
32428 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
32429 | echo "$as_me:$LINENO: result: yes" >&5 | |
32430 | echo "${ECHO_T}yes" >&6 | |
32431 | else | |
32432 | echo "$as_me:$LINENO: result: no" >&5 | |
32433 | echo "${ECHO_T}no" >&6 | |
32434 | fi | |
32435 | fi | |
32436 | ||
32437 | fi | |
32438 | ||
32439 | ||
32440 | ||
32441 | if test "x$OPENGL_LIBS" = "x"; then | |
32442 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
32443 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
32444 | { (exit 1); exit 1; }; } | |
32445 | fi | |
32446 | fi | |
32447 | ||
32448 | if test "$wxUSE_OPENGL" = "yes"; then | |
32449 | USE_OPENGL=1 | |
32450 | cat >>confdefs.h <<\_ACEOF | |
32451 | #define wxUSE_OPENGL 1 | |
32452 | _ACEOF | |
32453 | ||
32454 | cat >>confdefs.h <<\_ACEOF | |
32455 | #define wxUSE_GLCANVAS 1 | |
32456 | _ACEOF | |
32457 | ||
32458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
32459 | fi | |
32460 | fi | |
32461 | ||
a848cd7e SC |
32462 | |
32463 | if test -n "$TOOLKIT" ; then | |
32464 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
32465 | fi | |
32466 | ||
a848cd7e SC |
32467 | |
32468 | ||
32469 | if test "$wxUSE_SHARED" = "yes"; then | |
32470 | case "${host}" in | |
32471 | *-pc-msdosdjgpp ) | |
32472 | wxUSE_SHARED=no | |
32473 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
32474 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
32475 | ;; | |
32476 | esac | |
32477 | fi | |
32478 | ||
a848cd7e | 32479 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
32480 | |
32481 | ||
32482 | found_versioning=no | |
32483 | ||
32484 | ||
32485 | if test $found_versioning = no ; then | |
32486 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
32487 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
32488 | if test "${wx_cv_version_script+set}" = set; then | |
32489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32490 | else | |
32491 | ||
32492 | echo "VER_1 { *; };" >conftest.sym | |
32493 | echo "int main() { return 0; }" >conftest.cpp | |
32494 | ||
32495 | if { ac_try=' | |
32496 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32497 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
32498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32499 | (eval $ac_try) 2>&5 | |
32500 | ac_status=$? | |
32501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32502 | (exit $ac_status); }; } ; then | |
32503 | if test -s conftest.stderr ; then | |
32504 | wx_cv_version_script=no | |
32505 | else | |
32506 | wx_cv_version_script=yes | |
32507 | fi | |
32508 | else | |
32509 | wx_cv_version_script=no | |
32510 | fi | |
e5d4b470 MW |
32511 | |
32512 | if test $wx_cv_version_script = yes | |
32513 | then | |
32514 | echo "struct B { virtual ~B() { } }; \ | |
32515 | struct D : public B { }; \ | |
32516 | void F() { D d; }" > conftest.cpp | |
32517 | ||
32518 | if { ac_try=' | |
32519 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32520 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
32521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32522 | (eval $ac_try) 2>&5 | |
32523 | ac_status=$? | |
32524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32525 | (exit $ac_status); }; } && | |
32526 | { ac_try=' | |
32527 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32528 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
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); }; } | |
32534 | then | |
32535 | if { ac_try=' | |
32536 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32537 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
32538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32539 | (eval $ac_try) 2>&5 | |
32540 | ac_status=$? | |
32541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32542 | (exit $ac_status); }; } | |
32543 | then | |
32544 | wx_cv_version_script=yes | |
32545 | else | |
32546 | wx_cv_version_script=no | |
32547 | fi | |
32548 | fi | |
32549 | fi | |
32550 | ||
a848cd7e | 32551 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 32552 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
32553 | |
32554 | fi | |
32555 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
32556 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
32557 | if test $wx_cv_version_script = yes ; then | |
32558 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
32559 | fi | |
32560 | fi | |
32561 | ||
32562 | ||
32563 | case "${host}" in | |
32564 | *-*-linux* | *-*-gnu* ) | |
32565 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32566 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 32567 | ;; |
a848cd7e SC |
32568 | |
32569 | *-*-solaris2* ) | |
32570 | if test "$GCC" = yes ; then | |
c92ad099 | 32571 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
32572 | |
32573 | saveLdflags="$LDFLAGS" | |
32574 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
32575 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
32576 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
32577 | cat >conftest.$ac_ext <<_ACEOF | |
32578 | /* confdefs.h. */ | |
32579 | _ACEOF | |
32580 | cat confdefs.h >>conftest.$ac_ext | |
32581 | cat >>conftest.$ac_ext <<_ACEOF | |
32582 | /* end confdefs.h. */ | |
32583 | ||
32584 | int | |
32585 | main () | |
32586 | { | |
32587 | ||
32588 | ; | |
32589 | return 0; | |
32590 | } | |
32591 | _ACEOF | |
32592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32594 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32595 | ac_status=$? |
ac1cb8d3 VS |
32596 | grep -v '^ *+' conftest.er1 >conftest.err |
32597 | rm -f conftest.er1 | |
32598 | cat conftest.err >&5 | |
a848cd7e SC |
32599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32600 | (exit $ac_status); } && | |
c9a66001 | 32601 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32603 | (eval $ac_try) 2>&5 | |
32604 | ac_status=$? | |
32605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32606 | (exit $ac_status); }; } && | |
32607 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32609 | (eval $ac_try) 2>&5 | |
32610 | ac_status=$? | |
32611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32612 | (exit $ac_status); }; }; then | |
32613 | ||
32614 | echo "$as_me:$LINENO: result: yes" >&5 | |
32615 | echo "${ECHO_T}yes" >&6 | |
32616 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32617 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
32618 | |
32619 | else | |
32620 | echo "$as_me: failed program was:" >&5 | |
32621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32622 | ||
32623 | ||
32624 | echo "$as_me:$LINENO: result: no" >&5 | |
32625 | echo "${ECHO_T}no" >&6 | |
32626 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
32627 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
32628 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
32629 | cat >conftest.$ac_ext <<_ACEOF | |
32630 | /* confdefs.h. */ | |
32631 | _ACEOF | |
32632 | cat confdefs.h >>conftest.$ac_ext | |
32633 | cat >>conftest.$ac_ext <<_ACEOF | |
32634 | /* end confdefs.h. */ | |
32635 | ||
32636 | int | |
32637 | main () | |
32638 | { | |
32639 | ||
32640 | ; | |
32641 | return 0; | |
32642 | } | |
32643 | _ACEOF | |
32644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32646 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32647 | ac_status=$? |
ac1cb8d3 VS |
32648 | grep -v '^ *+' conftest.er1 >conftest.err |
32649 | rm -f conftest.er1 | |
32650 | cat conftest.err >&5 | |
a848cd7e SC |
32651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32652 | (exit $ac_status); } && | |
c9a66001 | 32653 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32655 | (eval $ac_try) 2>&5 | |
32656 | ac_status=$? | |
32657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32658 | (exit $ac_status); }; } && | |
32659 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32661 | (eval $ac_try) 2>&5 | |
32662 | ac_status=$? | |
32663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32664 | (exit $ac_status); }; }; then | |
32665 | ||
ffa0583f | 32666 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 32667 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
32668 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
32669 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
32670 | ||
a848cd7e SC |
32671 | else |
32672 | echo "$as_me: failed program was:" >&5 | |
32673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32674 | ||
32675 | ||
32676 | echo "$as_me:$LINENO: result: no" >&5 | |
32677 | echo "${ECHO_T}no" >&6 | |
32678 | ||
32679 | fi | |
ac1cb8d3 VS |
32680 | rm -f conftest.err conftest.$ac_objext \ |
32681 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32682 | |
32683 | fi | |
ac1cb8d3 VS |
32684 | rm -f conftest.err conftest.$ac_objext \ |
32685 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32686 | LDFLAGS="$saveLdflags" |
32687 | else | |
a848cd7e | 32688 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 32689 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
32690 | fi |
32691 | ;; | |
32692 | ||
cfda0ea8 | 32693 | *-*-darwin* ) |
0caebc27 MW |
32694 | install_name_tool=`which install_name_tool` |
32695 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
32696 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
32697 | cat <<EOF >change-install-names | |
a848cd7e SC |
32698 | #!/bin/sh |
32699 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
32700 | inst_cmd="install_name_tool " | |
32701 | for i in \${libnames} ; do | |
32702 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
32703 | done | |
32704 | \${inst_cmd} \${3} | |
32705 | EOF | |
0caebc27 MW |
32706 | chmod +x change-install-names |
32707 | fi | |
a848cd7e SC |
32708 | ;; |
32709 | ||
32710 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
32711 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
32712 | ;; | |
a848cd7e | 32713 | |
81f90336 MW |
32714 | *-*-hpux* ) |
32715 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
32716 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 32717 | ;; |
81f90336 | 32718 | |
a848cd7e | 32719 | esac |
ceec2216 | 32720 | |
ffa0583f RL |
32721 | if test $wxUSE_RPATH = "no"; then |
32722 | SAMPLES_RPATH_FLAG='' | |
32723 | SAMPLES_RPATH_POSTLINK='' | |
32724 | WXCONFIG_RPATH='' | |
32725 | fi | |
32726 | ||
32727 | SHARED=1 | |
32728 | ||
32729 | else | |
32730 | ||
ceec2216 RL |
32731 | config_linkage_component="-static" |
32732 | SHARED=0 | |
ffa0583f | 32733 | |
ceec2216 | 32734 | fi |
a848cd7e | 32735 | |
a848cd7e | 32736 | |
ceec2216 RL |
32737 | UNICODE=0 |
32738 | lib_unicode_suffix= | |
32739 | WX_CHARTYPE="ansi" | |
32740 | if test "$wxUSE_UNICODE" = "yes"; then | |
32741 | lib_unicode_suffix=u | |
32742 | WX_CHARTYPE="unicode" | |
32743 | UNICODE=1 | |
a848cd7e SC |
32744 | fi |
32745 | ||
ceec2216 RL |
32746 | lib_debug_suffix= |
32747 | WX_DEBUGTYPE="release" | |
32748 | DEBUG_FLAG=0 | |
32749 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
32750 | lib_debug_suffix=d | |
32751 | WX_DEBUGTYPE="debug" | |
32752 | DEBUG_FLAG=1 | |
32753 | fi | |
a848cd7e | 32754 | |
ceec2216 RL |
32755 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
32756 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 32757 | |
ceec2216 RL |
32758 | DEBUG_INFO=0 |
32759 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
32760 | DEBUG_INFO=1 | |
32761 | fi | |
a848cd7e | 32762 | |
ceec2216 | 32763 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 32764 | |
ceec2216 | 32765 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 32766 | |
ceec2216 | 32767 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 32768 | |
ceec2216 RL |
32769 | if test "$cross_compiling" = "yes"; then |
32770 | HOST_SUFFIX="-$host_alias" | |
32771 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
32772 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
32773 | fi |
32774 | ||
dd21ced8 | 32775 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
32776 | if test "${TOOLKIT_DIR}" = "os2"; then |
32777 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32778 | else | |
32779 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32780 | fi | |
ceec2216 RL |
32781 | |
32782 | ||
32783 | ||
1d1af5ea DE |
32784 | if test "$wxUSE_COCOA" = 1; then |
32785 | ||
32786 | ||
32787 | ac_ext=c | |
32788 | ac_cpp='$CPP $CPPFLAGS' | |
32789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32792 | ||
32793 | ac_ext=m | |
32794 | ||
32795 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
32796 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
32797 | cat >conftest.$ac_ext <<_ACEOF | |
32798 | /* confdefs.h. */ | |
32799 | _ACEOF | |
32800 | cat confdefs.h >>conftest.$ac_ext | |
32801 | cat >>conftest.$ac_ext <<_ACEOF | |
32802 | /* end confdefs.h. */ | |
32803 | #include <AppKit/NSEvent.h> | |
32804 | #include <CoreFoundation/CoreFoundation.h> | |
32805 | ||
32806 | int | |
32807 | main () | |
32808 | { | |
32809 | ||
32810 | ; | |
32811 | return 0; | |
32812 | } | |
32813 | _ACEOF | |
32814 | rm -f conftest.$ac_objext | |
32815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32816 | (eval $ac_compile) 2>conftest.er1 | |
32817 | ac_status=$? | |
32818 | grep -v '^ *+' conftest.er1 >conftest.err | |
32819 | rm -f conftest.er1 | |
32820 | cat conftest.err >&5 | |
32821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32822 | (exit $ac_status); } && | |
c9a66001 | 32823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
32824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32825 | (eval $ac_try) 2>&5 | |
32826 | ac_status=$? | |
32827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32828 | (exit $ac_status); }; } && | |
32829 | { ac_try='test -s conftest.$ac_objext' | |
32830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32831 | (eval $ac_try) 2>&5 | |
32832 | ac_status=$? | |
32833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32834 | (exit $ac_status); }; }; then | |
32835 | echo "$as_me:$LINENO: result: no" >&5 | |
32836 | echo "${ECHO_T}no" >&6 | |
32837 | else | |
32838 | echo "$as_me: failed program was:" >&5 | |
32839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32840 | ||
32841 | echo "$as_me:$LINENO: result: yes" >&5 | |
32842 | echo "${ECHO_T}yes" >&6 | |
32843 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
32844 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
32845 | cat >conftest.$ac_ext <<_ACEOF | |
32846 | /* confdefs.h. */ | |
32847 | _ACEOF | |
32848 | cat confdefs.h >>conftest.$ac_ext | |
32849 | cat >>conftest.$ac_ext <<_ACEOF | |
32850 | /* end confdefs.h. */ | |
32851 | #define __Point__ 1 | |
32852 | #include <AppKit/NSEvent.h> | |
32853 | #include <CoreFoundation/CoreFoundation.h> | |
32854 | ||
32855 | int | |
32856 | main () | |
32857 | { | |
32858 | ||
32859 | ; | |
32860 | return 0; | |
32861 | } | |
32862 | _ACEOF | |
32863 | rm -f conftest.$ac_objext | |
32864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32865 | (eval $ac_compile) 2>conftest.er1 | |
32866 | ac_status=$? | |
32867 | grep -v '^ *+' conftest.er1 >conftest.err | |
32868 | rm -f conftest.er1 | |
32869 | cat conftest.err >&5 | |
32870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32871 | (exit $ac_status); } && | |
c9a66001 | 32872 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
32873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32874 | (eval $ac_try) 2>&5 | |
32875 | ac_status=$? | |
32876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32877 | (exit $ac_status); }; } && | |
32878 | { ac_try='test -s conftest.$ac_objext' | |
32879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32880 | (eval $ac_try) 2>&5 | |
32881 | ac_status=$? | |
32882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32883 | (exit $ac_status); }; }; then | |
32884 | echo "$as_me:$LINENO: result: yes" >&5 | |
32885 | echo "${ECHO_T}yes" >&6 | |
32886 | cat >>confdefs.h <<\_ACEOF | |
32887 | #define __Point__ 1 | |
32888 | _ACEOF | |
32889 | ||
32890 | ||
32891 | else | |
32892 | echo "$as_me: failed program was:" >&5 | |
32893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32894 | ||
32895 | { { echo "$as_me:$LINENO: error: no | |
32896 | See \`config.log' for more details." >&5 | |
32897 | echo "$as_me: error: no | |
32898 | See \`config.log' for more details." >&2;} | |
32899 | { (exit 1); exit 1; }; } | |
32900 | ||
32901 | fi | |
32902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32903 | ||
32904 | fi | |
32905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
32906 | ac_ext=cc |
32907 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32908 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32909 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32910 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1d1af5ea DE |
32911 | |
32912 | fi | |
32913 | ||
a848cd7e | 32914 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
32915 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
32916 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 32917 | |
a848cd7e | 32918 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
32919 | |
32920 | # Extract the first word of "Rez", so it can be a program name with args. | |
32921 | set dummy Rez; ac_word=$2 | |
32922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 32924 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
32925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32926 | else | |
8ced02f6 DE |
32927 | if test -n "$REZ"; then |
32928 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
32929 | else |
32930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32931 | for as_dir in $PATH | |
32932 | do | |
32933 | IFS=$as_save_IFS | |
32934 | test -z "$as_dir" && as_dir=. | |
32935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32936 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 32937 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
32938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
32939 | break 2 | |
32940 | fi | |
32941 | done | |
32942 | done | |
32943 | ||
8ced02f6 | 32944 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
32945 | fi |
32946 | fi | |
8ced02f6 DE |
32947 | REZ=$ac_cv_prog_REZ |
32948 | if test -n "$REZ"; then | |
32949 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
32950 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
32951 | else |
32952 | echo "$as_me:$LINENO: result: no" >&5 | |
32953 | echo "${ECHO_T}no" >&6 | |
32954 | fi | |
32955 | ||
32956 | # Extract the first word of "DeRez", so it can be a program name with args. | |
32957 | set dummy DeRez; ac_word=$2 | |
32958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32960 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
32961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32962 | else | |
32963 | if test -n "$DEREZ"; then | |
32964 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
32965 | else | |
32966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32967 | for as_dir in $PATH | |
32968 | do | |
32969 | IFS=$as_save_IFS | |
32970 | test -z "$as_dir" && as_dir=. | |
32971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32973 | ac_cv_prog_DEREZ="DeRez" | |
32974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32975 | break 2 | |
32976 | fi | |
32977 | done | |
32978 | done | |
32979 | ||
32980 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
32981 | fi | |
32982 | fi | |
32983 | DEREZ=$ac_cv_prog_DEREZ | |
32984 | if test -n "$DEREZ"; then | |
32985 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
32986 | echo "${ECHO_T}$DEREZ" >&6 | |
32987 | else | |
32988 | echo "$as_me:$LINENO: result: no" >&5 | |
32989 | echo "${ECHO_T}no" >&6 | |
32990 | fi | |
32991 | ||
32992 | # Extract the first word of "SetFile", so it can be a program name with args. | |
32993 | set dummy SetFile; ac_word=$2 | |
32994 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32996 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
32997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32998 | else | |
32999 | if test -n "$SETFILE"; then | |
33000 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
33001 | else | |
33002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33003 | for as_dir in $PATH | |
33004 | do | |
33005 | IFS=$as_save_IFS | |
33006 | test -z "$as_dir" && as_dir=. | |
33007 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33008 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33009 | ac_cv_prog_SETFILE="SetFile" | |
33010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33011 | break 2 | |
33012 | fi | |
33013 | done | |
33014 | done | |
33015 | ||
33016 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
33017 | fi | |
33018 | fi | |
33019 | SETFILE=$ac_cv_prog_SETFILE | |
33020 | if test -n "$SETFILE"; then | |
33021 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
33022 | echo "${ECHO_T}$SETFILE" >&6 | |
33023 | else | |
33024 | echo "$as_me:$LINENO: result: no" >&5 | |
33025 | echo "${ECHO_T}no" >&6 | |
33026 | fi | |
33027 | ||
33028 | ||
33029 | MACSETFILE="\$(SETFILE)" | |
33030 | ||
33031 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 33032 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
33033 | RESCOMP="$REZ" |
33034 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 33035 | else |
004ee6da RL |
33036 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
33037 | RESCOMP="echo -n \| $REZ" | |
33038 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 33039 | fi |
004ee6da | 33040 | |
a848cd7e | 33041 | else |
ffa0583f | 33042 | MACSETFILE="@true" |
a848cd7e | 33043 | |
8ced02f6 | 33044 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
33045 | RESCOMP="emxbind" |
33046 | WXCONFIG_RESFLAGS="-ep" | |
33047 | ||
33048 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 33049 | else |
8ced02f6 | 33050 | POSTLINK_COMMAND="@true" |
a848cd7e | 33051 | fi |
004ee6da | 33052 | |
a848cd7e SC |
33053 | fi |
33054 | ||
33055 | ||
33056 | ||
33057 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
33058 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
33059 | if test "${ac_cv_type_mode_t+set}" = set; then | |
33060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33061 | else | |
33062 | cat >conftest.$ac_ext <<_ACEOF | |
33063 | /* confdefs.h. */ | |
33064 | _ACEOF | |
33065 | cat confdefs.h >>conftest.$ac_ext | |
33066 | cat >>conftest.$ac_ext <<_ACEOF | |
33067 | /* end confdefs.h. */ | |
33068 | $ac_includes_default | |
33069 | int | |
33070 | main () | |
33071 | { | |
33072 | if ((mode_t *) 0) | |
33073 | return 0; | |
33074 | if (sizeof (mode_t)) | |
33075 | return 0; | |
33076 | ; | |
33077 | return 0; | |
33078 | } | |
33079 | _ACEOF | |
33080 | rm -f conftest.$ac_objext | |
33081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33082 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33083 | ac_status=$? |
ac1cb8d3 VS |
33084 | grep -v '^ *+' conftest.er1 >conftest.err |
33085 | rm -f conftest.er1 | |
33086 | cat conftest.err >&5 | |
a848cd7e SC |
33087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33088 | (exit $ac_status); } && | |
c9a66001 | 33089 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33091 | (eval $ac_try) 2>&5 | |
33092 | ac_status=$? | |
33093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33094 | (exit $ac_status); }; } && | |
33095 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33097 | (eval $ac_try) 2>&5 | |
33098 | ac_status=$? | |
33099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33100 | (exit $ac_status); }; }; then | |
33101 | ac_cv_type_mode_t=yes | |
33102 | else | |
33103 | echo "$as_me: failed program was:" >&5 | |
33104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33105 | ||
33106 | ac_cv_type_mode_t=no | |
33107 | fi | |
ac1cb8d3 | 33108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33109 | fi |
33110 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
33111 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
33112 | if test $ac_cv_type_mode_t = yes; then | |
33113 | : | |
33114 | else | |
33115 | ||
33116 | cat >>confdefs.h <<_ACEOF | |
33117 | #define mode_t int | |
33118 | _ACEOF | |
33119 | ||
33120 | fi | |
33121 | ||
33122 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
33123 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
33124 | if test "${ac_cv_type_off_t+set}" = set; then | |
33125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33126 | else | |
33127 | cat >conftest.$ac_ext <<_ACEOF | |
33128 | /* confdefs.h. */ | |
33129 | _ACEOF | |
33130 | cat confdefs.h >>conftest.$ac_ext | |
33131 | cat >>conftest.$ac_ext <<_ACEOF | |
33132 | /* end confdefs.h. */ | |
33133 | $ac_includes_default | |
33134 | int | |
33135 | main () | |
33136 | { | |
33137 | if ((off_t *) 0) | |
33138 | return 0; | |
33139 | if (sizeof (off_t)) | |
33140 | return 0; | |
33141 | ; | |
33142 | return 0; | |
33143 | } | |
33144 | _ACEOF | |
33145 | rm -f conftest.$ac_objext | |
33146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33147 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33148 | ac_status=$? |
ac1cb8d3 VS |
33149 | grep -v '^ *+' conftest.er1 >conftest.err |
33150 | rm -f conftest.er1 | |
33151 | cat conftest.err >&5 | |
a848cd7e SC |
33152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33153 | (exit $ac_status); } && | |
c9a66001 | 33154 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33156 | (eval $ac_try) 2>&5 | |
33157 | ac_status=$? | |
33158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33159 | (exit $ac_status); }; } && | |
33160 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33162 | (eval $ac_try) 2>&5 | |
33163 | ac_status=$? | |
33164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33165 | (exit $ac_status); }; }; then | |
33166 | ac_cv_type_off_t=yes | |
33167 | else | |
33168 | echo "$as_me: failed program was:" >&5 | |
33169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33170 | ||
33171 | ac_cv_type_off_t=no | |
33172 | fi | |
ac1cb8d3 | 33173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33174 | fi |
33175 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
33176 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
33177 | if test $ac_cv_type_off_t = yes; then | |
33178 | : | |
33179 | else | |
33180 | ||
33181 | cat >>confdefs.h <<_ACEOF | |
33182 | #define off_t long | |
33183 | _ACEOF | |
33184 | ||
33185 | fi | |
33186 | ||
33187 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
33188 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
33189 | if test "${ac_cv_type_pid_t+set}" = set; then | |
33190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33191 | else | |
33192 | cat >conftest.$ac_ext <<_ACEOF | |
33193 | /* confdefs.h. */ | |
33194 | _ACEOF | |
33195 | cat confdefs.h >>conftest.$ac_ext | |
33196 | cat >>conftest.$ac_ext <<_ACEOF | |
33197 | /* end confdefs.h. */ | |
33198 | $ac_includes_default | |
33199 | int | |
33200 | main () | |
33201 | { | |
33202 | if ((pid_t *) 0) | |
33203 | return 0; | |
33204 | if (sizeof (pid_t)) | |
33205 | return 0; | |
33206 | ; | |
33207 | return 0; | |
33208 | } | |
33209 | _ACEOF | |
33210 | rm -f conftest.$ac_objext | |
33211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33213 | ac_status=$? |
ac1cb8d3 VS |
33214 | grep -v '^ *+' conftest.er1 >conftest.err |
33215 | rm -f conftest.er1 | |
33216 | cat conftest.err >&5 | |
a848cd7e SC |
33217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33218 | (exit $ac_status); } && | |
c9a66001 | 33219 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33221 | (eval $ac_try) 2>&5 | |
33222 | ac_status=$? | |
33223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33224 | (exit $ac_status); }; } && | |
33225 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33227 | (eval $ac_try) 2>&5 | |
33228 | ac_status=$? | |
33229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33230 | (exit $ac_status); }; }; then | |
33231 | ac_cv_type_pid_t=yes | |
33232 | else | |
33233 | echo "$as_me: failed program was:" >&5 | |
33234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33235 | ||
33236 | ac_cv_type_pid_t=no | |
33237 | fi | |
ac1cb8d3 | 33238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33239 | fi |
33240 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
33241 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
33242 | if test $ac_cv_type_pid_t = yes; then | |
33243 | : | |
33244 | else | |
33245 | ||
33246 | cat >>confdefs.h <<_ACEOF | |
33247 | #define pid_t int | |
33248 | _ACEOF | |
33249 | ||
33250 | fi | |
33251 | ||
33252 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
33253 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
33254 | if test "${ac_cv_type_size_t+set}" = set; then | |
33255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33256 | else | |
33257 | cat >conftest.$ac_ext <<_ACEOF | |
33258 | /* confdefs.h. */ | |
33259 | _ACEOF | |
33260 | cat confdefs.h >>conftest.$ac_ext | |
33261 | cat >>conftest.$ac_ext <<_ACEOF | |
33262 | /* end confdefs.h. */ | |
33263 | $ac_includes_default | |
33264 | int | |
33265 | main () | |
33266 | { | |
33267 | if ((size_t *) 0) | |
33268 | return 0; | |
33269 | if (sizeof (size_t)) | |
33270 | return 0; | |
33271 | ; | |
33272 | return 0; | |
33273 | } | |
33274 | _ACEOF | |
33275 | rm -f conftest.$ac_objext | |
33276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33277 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33278 | ac_status=$? |
ac1cb8d3 VS |
33279 | grep -v '^ *+' conftest.er1 >conftest.err |
33280 | rm -f conftest.er1 | |
33281 | cat conftest.err >&5 | |
a848cd7e SC |
33282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33283 | (exit $ac_status); } && | |
c9a66001 | 33284 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33286 | (eval $ac_try) 2>&5 | |
33287 | ac_status=$? | |
33288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33289 | (exit $ac_status); }; } && | |
33290 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33292 | (eval $ac_try) 2>&5 | |
33293 | ac_status=$? | |
33294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33295 | (exit $ac_status); }; }; then | |
33296 | ac_cv_type_size_t=yes | |
33297 | else | |
33298 | echo "$as_me: failed program was:" >&5 | |
33299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33300 | ||
33301 | ac_cv_type_size_t=no | |
33302 | fi | |
ac1cb8d3 | 33303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33304 | fi |
33305 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
33306 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
33307 | if test $ac_cv_type_size_t = yes; then | |
33308 | : | |
33309 | else | |
33310 | ||
33311 | cat >>confdefs.h <<_ACEOF | |
33312 | #define size_t unsigned | |
33313 | _ACEOF | |
33314 | ||
33315 | fi | |
33316 | ||
33317 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
33318 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
33319 | if test "${ac_cv_type_uid_t+set}" = set; then | |
33320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33321 | else | |
33322 | cat >conftest.$ac_ext <<_ACEOF | |
33323 | /* confdefs.h. */ | |
33324 | _ACEOF | |
33325 | cat confdefs.h >>conftest.$ac_ext | |
33326 | cat >>conftest.$ac_ext <<_ACEOF | |
33327 | /* end confdefs.h. */ | |
33328 | #include <sys/types.h> | |
33329 | ||
33330 | _ACEOF | |
33331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
33332 | $EGREP "uid_t" >/dev/null 2>&1; then | |
33333 | ac_cv_type_uid_t=yes | |
33334 | else | |
33335 | ac_cv_type_uid_t=no | |
33336 | fi | |
33337 | rm -f conftest* | |
33338 | ||
33339 | fi | |
33340 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
33341 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
33342 | if test $ac_cv_type_uid_t = no; then | |
33343 | ||
33344 | cat >>confdefs.h <<\_ACEOF | |
33345 | #define uid_t int | |
33346 | _ACEOF | |
33347 | ||
33348 | ||
33349 | cat >>confdefs.h <<\_ACEOF | |
33350 | #define gid_t int | |
33351 | _ACEOF | |
33352 | ||
33353 | fi | |
33354 | ||
33355 | ||
d51253e8 RL |
33356 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
33357 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
33358 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
33359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33360 | else | |
33361 | cat >conftest.$ac_ext <<_ACEOF | |
33362 | /* confdefs.h. */ | |
33363 | _ACEOF | |
33364 | cat confdefs.h >>conftest.$ac_ext | |
33365 | cat >>conftest.$ac_ext <<_ACEOF | |
33366 | /* end confdefs.h. */ | |
33367 | $ac_includes_default | |
33368 | int | |
33369 | main () | |
33370 | { | |
33371 | if ((ssize_t *) 0) | |
33372 | return 0; | |
33373 | if (sizeof (ssize_t)) | |
33374 | return 0; | |
33375 | ; | |
33376 | return 0; | |
33377 | } | |
33378 | _ACEOF | |
33379 | rm -f conftest.$ac_objext | |
33380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33381 | (eval $ac_compile) 2>conftest.er1 | |
33382 | ac_status=$? | |
33383 | grep -v '^ *+' conftest.er1 >conftest.err | |
33384 | rm -f conftest.er1 | |
33385 | cat conftest.err >&5 | |
33386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33387 | (exit $ac_status); } && | |
c9a66001 | 33388 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
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); }; } && | |
33394 | { ac_try='test -s conftest.$ac_objext' | |
33395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33396 | (eval $ac_try) 2>&5 | |
33397 | ac_status=$? | |
33398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33399 | (exit $ac_status); }; }; then | |
33400 | ac_cv_type_ssize_t=yes | |
33401 | else | |
33402 | echo "$as_me: failed program was:" >&5 | |
33403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33404 | ||
33405 | ac_cv_type_ssize_t=no | |
33406 | fi | |
33407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33408 | fi | |
33409 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
33410 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
33411 | if test $ac_cv_type_ssize_t = yes; then | |
33412 | ||
33413 | cat >>confdefs.h <<_ACEOF | |
33414 | #define HAVE_SSIZE_T 1 | |
33415 | _ACEOF | |
33416 | ||
33417 | ||
33418 | fi | |
33419 | ||
33420 | ||
a848cd7e SC |
33421 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
33422 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
33423 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
33424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33425 | else | |
33426 | ||
33427 | cat >conftest.$ac_ext <<_ACEOF | |
33428 | /* confdefs.h. */ | |
33429 | _ACEOF | |
33430 | cat confdefs.h >>conftest.$ac_ext | |
33431 | cat >>conftest.$ac_ext <<_ACEOF | |
33432 | /* end confdefs.h. */ | |
33433 | #include <stddef.h> | |
33434 | int | |
33435 | main () | |
33436 | { | |
33437 | ||
33438 | return 0; } | |
33439 | ||
33440 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
33441 | ||
33442 | int bar() { | |
33443 | ||
33444 | ; | |
33445 | return 0; | |
33446 | } | |
33447 | _ACEOF | |
33448 | rm -f conftest.$ac_objext | |
33449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33450 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33451 | ac_status=$? |
ac1cb8d3 VS |
33452 | grep -v '^ *+' conftest.er1 >conftest.err |
33453 | rm -f conftest.er1 | |
33454 | cat conftest.err >&5 | |
a848cd7e SC |
33455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33456 | (exit $ac_status); } && | |
c9a66001 | 33457 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33459 | (eval $ac_try) 2>&5 | |
33460 | ac_status=$? | |
33461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33462 | (exit $ac_status); }; } && | |
33463 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33465 | (eval $ac_try) 2>&5 | |
33466 | ac_status=$? | |
33467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33468 | (exit $ac_status); }; }; then | |
33469 | wx_cv_size_t_is_uint=no | |
33470 | else | |
33471 | echo "$as_me: failed program was:" >&5 | |
33472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33473 | ||
33474 | wx_cv_size_t_is_uint=yes | |
33475 | ||
33476 | fi | |
ac1cb8d3 | 33477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33478 | |
33479 | ||
33480 | fi | |
33481 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
33482 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
33483 | ||
33484 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
33485 | cat >>confdefs.h <<\_ACEOF | |
33486 | #define wxSIZE_T_IS_UINT 1 | |
33487 | _ACEOF | |
33488 | ||
33489 | else | |
33490 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
33491 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
33492 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
33493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33494 | else | |
33495 | cat >conftest.$ac_ext <<_ACEOF | |
33496 | /* confdefs.h. */ | |
33497 | _ACEOF | |
33498 | cat confdefs.h >>conftest.$ac_ext | |
33499 | cat >>conftest.$ac_ext <<_ACEOF | |
33500 | /* end confdefs.h. */ | |
33501 | #include <stddef.h> | |
33502 | int | |
33503 | main () | |
33504 | { | |
33505 | ||
33506 | return 0; } | |
33507 | ||
33508 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
33509 | ||
33510 | int bar() { | |
33511 | ||
33512 | ; | |
33513 | return 0; | |
33514 | } | |
33515 | _ACEOF | |
33516 | rm -f conftest.$ac_objext | |
33517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33518 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33519 | ac_status=$? |
ac1cb8d3 VS |
33520 | grep -v '^ *+' conftest.er1 >conftest.err |
33521 | rm -f conftest.er1 | |
33522 | cat conftest.err >&5 | |
a848cd7e SC |
33523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33524 | (exit $ac_status); } && | |
c9a66001 | 33525 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33527 | (eval $ac_try) 2>&5 | |
33528 | ac_status=$? | |
33529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33530 | (exit $ac_status); }; } && | |
33531 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33533 | (eval $ac_try) 2>&5 | |
33534 | ac_status=$? | |
33535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33536 | (exit $ac_status); }; }; then | |
33537 | wx_cv_size_t_is_ulong=no | |
33538 | else | |
33539 | echo "$as_me: failed program was:" >&5 | |
33540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33541 | ||
33542 | wx_cv_size_t_is_ulong=yes | |
33543 | ||
33544 | fi | |
ac1cb8d3 | 33545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33546 | |
33547 | fi | |
33548 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
33549 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
33550 | ||
33551 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
33552 | cat >>confdefs.h <<\_ACEOF | |
33553 | #define wxSIZE_T_IS_ULONG 1 | |
33554 | _ACEOF | |
33555 | ||
33556 | fi | |
33557 | fi | |
33558 | ||
a848cd7e SC |
33559 | |
33560 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
33561 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
33562 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
33563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33564 | else | |
33565 | ||
33566 | cat >conftest.$ac_ext <<_ACEOF | |
33567 | /* confdefs.h. */ | |
33568 | _ACEOF | |
33569 | cat confdefs.h >>conftest.$ac_ext | |
33570 | cat >>conftest.$ac_ext <<_ACEOF | |
33571 | /* end confdefs.h. */ | |
33572 | #include <pwd.h> | |
33573 | int | |
33574 | main () | |
33575 | { | |
33576 | ||
33577 | char *p; | |
33578 | struct passwd *pw; | |
33579 | p = pw->pw_gecos; | |
33580 | ||
33581 | ; | |
33582 | return 0; | |
33583 | } | |
33584 | _ACEOF | |
33585 | rm -f conftest.$ac_objext | |
33586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33587 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33588 | ac_status=$? |
ac1cb8d3 VS |
33589 | grep -v '^ *+' conftest.er1 >conftest.err |
33590 | rm -f conftest.er1 | |
33591 | cat conftest.err >&5 | |
a848cd7e SC |
33592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33593 | (exit $ac_status); } && | |
c9a66001 | 33594 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33596 | (eval $ac_try) 2>&5 | |
33597 | ac_status=$? | |
33598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33599 | (exit $ac_status); }; } && | |
33600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33602 | (eval $ac_try) 2>&5 | |
33603 | ac_status=$? | |
33604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33605 | (exit $ac_status); }; }; then | |
33606 | ||
33607 | wx_cv_struct_pw_gecos=yes | |
33608 | ||
33609 | else | |
33610 | echo "$as_me: failed program was:" >&5 | |
33611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33612 | ||
33613 | ||
33614 | wx_cv_struct_pw_gecos=no | |
33615 | ||
33616 | ||
33617 | fi | |
ac1cb8d3 | 33618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33619 | |
33620 | ||
33621 | fi | |
33622 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
33623 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
33624 | ||
33625 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
33626 | cat >>confdefs.h <<\_ACEOF | |
33627 | #define HAVE_PW_GECOS 1 | |
33628 | _ACEOF | |
33629 | ||
33630 | fi | |
33631 | ||
33632 | ||
47a7e797 | 33633 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
33634 | cat >>confdefs.h <<\_ACEOF |
33635 | #define wxUSE_WCHAR_T 1 | |
33636 | _ACEOF | |
33637 | ||
33638 | ||
33639 | WCSLEN_FOUND=0 | |
33640 | WCHAR_LINK= | |
33641 | ||
33642 | for ac_func in wcslen | |
33643 | do | |
33644 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33645 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33646 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33647 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33649 | else | |
33650 | cat >conftest.$ac_ext <<_ACEOF | |
33651 | /* confdefs.h. */ | |
33652 | _ACEOF | |
33653 | cat confdefs.h >>conftest.$ac_ext | |
33654 | cat >>conftest.$ac_ext <<_ACEOF | |
33655 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33656 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33657 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33658 | #define $ac_func innocuous_$ac_func | |
33659 | ||
a848cd7e SC |
33660 | /* System header to define __stub macros and hopefully few prototypes, |
33661 | which can conflict with char $ac_func (); below. | |
33662 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33663 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33664 | |
a848cd7e SC |
33665 | #ifdef __STDC__ |
33666 | # include <limits.h> | |
33667 | #else | |
33668 | # include <assert.h> | |
33669 | #endif | |
ac1cb8d3 VS |
33670 | |
33671 | #undef $ac_func | |
33672 | ||
a848cd7e SC |
33673 | /* Override any gcc2 internal prototype to avoid an error. */ |
33674 | #ifdef __cplusplus | |
33675 | extern "C" | |
33676 | { | |
33677 | #endif | |
33678 | /* We use char because int might match the return type of a gcc2 | |
33679 | builtin and then its argument prototype would still apply. */ | |
33680 | char $ac_func (); | |
33681 | /* The GNU C library defines this for functions which it implements | |
33682 | to always fail with ENOSYS. Some functions are actually named | |
33683 | something starting with __ and the normal name is an alias. */ | |
33684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33685 | choke me | |
33686 | #else | |
33687 | char (*f) () = $ac_func; | |
33688 | #endif | |
33689 | #ifdef __cplusplus | |
33690 | } | |
33691 | #endif | |
33692 | ||
33693 | int | |
33694 | main () | |
33695 | { | |
33696 | return f != $ac_func; | |
33697 | ; | |
33698 | return 0; | |
33699 | } | |
33700 | _ACEOF | |
33701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33703 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33704 | ac_status=$? |
ac1cb8d3 VS |
33705 | grep -v '^ *+' conftest.er1 >conftest.err |
33706 | rm -f conftest.er1 | |
33707 | cat conftest.err >&5 | |
a848cd7e SC |
33708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33709 | (exit $ac_status); } && | |
c9a66001 | 33710 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33712 | (eval $ac_try) 2>&5 | |
33713 | ac_status=$? | |
33714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33715 | (exit $ac_status); }; } && | |
33716 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33718 | (eval $ac_try) 2>&5 | |
33719 | ac_status=$? | |
33720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33721 | (exit $ac_status); }; }; then | |
33722 | eval "$as_ac_var=yes" | |
33723 | else | |
33724 | echo "$as_me: failed program was:" >&5 | |
33725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33726 | ||
33727 | eval "$as_ac_var=no" | |
33728 | fi | |
ac1cb8d3 VS |
33729 | rm -f conftest.err conftest.$ac_objext \ |
33730 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33731 | fi |
33732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33735 | cat >>confdefs.h <<_ACEOF | |
33736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33737 | _ACEOF | |
33738 | WCSLEN_FOUND=1 | |
33739 | fi | |
33740 | done | |
33741 | ||
33742 | ||
33743 | if test "$WCSLEN_FOUND" = 0; then | |
33744 | if test "$TOOLKIT" = "MSW"; then | |
33745 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
33746 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
33747 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
33748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33749 | else | |
33750 | ac_check_lib_save_LIBS=$LIBS | |
33751 | LIBS="-lmsvcrt $LIBS" | |
33752 | cat >conftest.$ac_ext <<_ACEOF | |
33753 | /* confdefs.h. */ | |
33754 | _ACEOF | |
33755 | cat confdefs.h >>conftest.$ac_ext | |
33756 | cat >>conftest.$ac_ext <<_ACEOF | |
33757 | /* end confdefs.h. */ | |
33758 | ||
33759 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33760 | #ifdef __cplusplus | |
33761 | extern "C" | |
33762 | #endif | |
33763 | /* We use char because int might match the return type of a gcc2 | |
33764 | builtin and then its argument prototype would still apply. */ | |
33765 | char wcslen (); | |
33766 | int | |
33767 | main () | |
33768 | { | |
33769 | wcslen (); | |
33770 | ; | |
33771 | return 0; | |
33772 | } | |
33773 | _ACEOF | |
33774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33776 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33777 | ac_status=$? |
ac1cb8d3 VS |
33778 | grep -v '^ *+' conftest.er1 >conftest.err |
33779 | rm -f conftest.er1 | |
33780 | cat conftest.err >&5 | |
a848cd7e SC |
33781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33782 | (exit $ac_status); } && | |
c9a66001 | 33783 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33785 | (eval $ac_try) 2>&5 | |
33786 | ac_status=$? | |
33787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33788 | (exit $ac_status); }; } && | |
33789 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
33795 | ac_cv_lib_msvcrt_wcslen=yes | |
33796 | else | |
33797 | echo "$as_me: failed program was:" >&5 | |
33798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33799 | ||
33800 | ac_cv_lib_msvcrt_wcslen=no | |
33801 | fi | |
ac1cb8d3 VS |
33802 | rm -f conftest.err conftest.$ac_objext \ |
33803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33804 | LIBS=$ac_check_lib_save_LIBS |
33805 | fi | |
33806 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
33807 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
33808 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
33809 | WCHAR_OK=1 | |
33810 | fi | |
33811 | ||
33812 | else | |
33813 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
33814 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
33815 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
33816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33817 | else | |
33818 | ac_check_lib_save_LIBS=$LIBS | |
33819 | LIBS="-lw $LIBS" | |
33820 | cat >conftest.$ac_ext <<_ACEOF | |
33821 | /* confdefs.h. */ | |
33822 | _ACEOF | |
33823 | cat confdefs.h >>conftest.$ac_ext | |
33824 | cat >>conftest.$ac_ext <<_ACEOF | |
33825 | /* end confdefs.h. */ | |
33826 | ||
33827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33828 | #ifdef __cplusplus | |
33829 | extern "C" | |
33830 | #endif | |
33831 | /* We use char because int might match the return type of a gcc2 | |
33832 | builtin and then its argument prototype would still apply. */ | |
33833 | char wcslen (); | |
33834 | int | |
33835 | main () | |
33836 | { | |
33837 | wcslen (); | |
33838 | ; | |
33839 | return 0; | |
33840 | } | |
33841 | _ACEOF | |
33842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33844 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33845 | ac_status=$? |
ac1cb8d3 VS |
33846 | grep -v '^ *+' conftest.er1 >conftest.err |
33847 | rm -f conftest.er1 | |
33848 | cat conftest.err >&5 | |
a848cd7e SC |
33849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33850 | (exit $ac_status); } && | |
c9a66001 | 33851 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33853 | (eval $ac_try) 2>&5 | |
33854 | ac_status=$? | |
33855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33856 | (exit $ac_status); }; } && | |
33857 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33859 | (eval $ac_try) 2>&5 | |
33860 | ac_status=$? | |
33861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33862 | (exit $ac_status); }; }; then | |
33863 | ac_cv_lib_w_wcslen=yes | |
33864 | else | |
33865 | echo "$as_me: failed program was:" >&5 | |
33866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33867 | ||
33868 | ac_cv_lib_w_wcslen=no | |
33869 | fi | |
ac1cb8d3 VS |
33870 | rm -f conftest.err conftest.$ac_objext \ |
33871 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33872 | LIBS=$ac_check_lib_save_LIBS |
33873 | fi | |
33874 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
33875 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
33876 | if test $ac_cv_lib_w_wcslen = yes; then | |
33877 | ||
33878 | WCHAR_LINK=" -lw" | |
33879 | WCSLEN_FOUND=1 | |
33880 | ||
33881 | fi | |
33882 | ||
33883 | fi | |
33884 | fi | |
33885 | ||
33886 | if test "$WCSLEN_FOUND" = 1; then | |
33887 | cat >>confdefs.h <<\_ACEOF | |
33888 | #define HAVE_WCSLEN 1 | |
33889 | _ACEOF | |
33890 | ||
33891 | fi | |
33892 | ||
efdf6afe | 33893 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 33894 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
33895 | fi |
33896 | ||
efdf6afe VZ |
33897 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
33898 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
33899 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
33900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33901 | else | |
33902 | cat >conftest.$ac_ext <<_ACEOF | |
33903 | /* confdefs.h. */ | |
33904 | _ACEOF | |
33905 | cat confdefs.h >>conftest.$ac_ext | |
33906 | cat >>conftest.$ac_ext <<_ACEOF | |
33907 | /* end confdefs.h. */ | |
33908 | #include <wchar.h> | |
33909 | ||
33910 | int | |
33911 | main () | |
33912 | { | |
33913 | if ((mbstate_t *) 0) | |
33914 | return 0; | |
33915 | if (sizeof (mbstate_t)) | |
33916 | return 0; | |
33917 | ; | |
33918 | return 0; | |
33919 | } | |
33920 | _ACEOF | |
33921 | rm -f conftest.$ac_objext | |
33922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33923 | (eval $ac_compile) 2>conftest.er1 | |
33924 | ac_status=$? | |
33925 | grep -v '^ *+' conftest.er1 >conftest.err | |
33926 | rm -f conftest.er1 | |
33927 | cat conftest.err >&5 | |
33928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33929 | (exit $ac_status); } && | |
c9a66001 | 33930 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
efdf6afe VZ |
33931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33932 | (eval $ac_try) 2>&5 | |
33933 | ac_status=$? | |
33934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33935 | (exit $ac_status); }; } && | |
33936 | { ac_try='test -s conftest.$ac_objext' | |
33937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33938 | (eval $ac_try) 2>&5 | |
33939 | ac_status=$? | |
33940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33941 | (exit $ac_status); }; }; then | |
33942 | ac_cv_type_mbstate_t=yes | |
33943 | else | |
33944 | echo "$as_me: failed program was:" >&5 | |
33945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33946 | ||
33947 | ac_cv_type_mbstate_t=no | |
33948 | fi | |
33949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33950 | fi | |
33951 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
33952 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
33953 | if test $ac_cv_type_mbstate_t = yes; then | |
33954 | ||
33955 | cat >>confdefs.h <<_ACEOF | |
33956 | #define HAVE_MBSTATE_T 1 | |
33957 | _ACEOF | |
33958 | ||
a848cd7e SC |
33959 | |
33960 | for ac_func in wcsrtombs | |
33961 | do | |
33962 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33963 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33964 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33965 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33967 | else | |
33968 | cat >conftest.$ac_ext <<_ACEOF | |
33969 | /* confdefs.h. */ | |
33970 | _ACEOF | |
33971 | cat confdefs.h >>conftest.$ac_ext | |
33972 | cat >>conftest.$ac_ext <<_ACEOF | |
33973 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33974 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33976 | #define $ac_func innocuous_$ac_func | |
33977 | ||
a848cd7e SC |
33978 | /* System header to define __stub macros and hopefully few prototypes, |
33979 | which can conflict with char $ac_func (); below. | |
33980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33981 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33982 | |
a848cd7e SC |
33983 | #ifdef __STDC__ |
33984 | # include <limits.h> | |
33985 | #else | |
33986 | # include <assert.h> | |
33987 | #endif | |
ac1cb8d3 VS |
33988 | |
33989 | #undef $ac_func | |
33990 | ||
a848cd7e SC |
33991 | /* Override any gcc2 internal prototype to avoid an error. */ |
33992 | #ifdef __cplusplus | |
33993 | extern "C" | |
33994 | { | |
33995 | #endif | |
33996 | /* We use char because int might match the return type of a gcc2 | |
33997 | builtin and then its argument prototype would still apply. */ | |
33998 | char $ac_func (); | |
33999 | /* The GNU C library defines this for functions which it implements | |
34000 | to always fail with ENOSYS. Some functions are actually named | |
34001 | something starting with __ and the normal name is an alias. */ | |
34002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34003 | choke me | |
34004 | #else | |
34005 | char (*f) () = $ac_func; | |
34006 | #endif | |
34007 | #ifdef __cplusplus | |
34008 | } | |
34009 | #endif | |
34010 | ||
34011 | int | |
34012 | main () | |
34013 | { | |
34014 | return f != $ac_func; | |
34015 | ; | |
34016 | return 0; | |
34017 | } | |
34018 | _ACEOF | |
34019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34021 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34022 | ac_status=$? |
ac1cb8d3 VS |
34023 | grep -v '^ *+' conftest.er1 >conftest.err |
34024 | rm -f conftest.er1 | |
34025 | cat conftest.err >&5 | |
a848cd7e SC |
34026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34027 | (exit $ac_status); } && | |
c9a66001 | 34028 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34030 | (eval $ac_try) 2>&5 | |
34031 | ac_status=$? | |
34032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34033 | (exit $ac_status); }; } && | |
34034 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34036 | (eval $ac_try) 2>&5 | |
34037 | ac_status=$? | |
34038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34039 | (exit $ac_status); }; }; then | |
34040 | eval "$as_ac_var=yes" | |
34041 | else | |
34042 | echo "$as_me: failed program was:" >&5 | |
34043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34044 | ||
34045 | eval "$as_ac_var=no" | |
34046 | fi | |
ac1cb8d3 VS |
34047 | rm -f conftest.err conftest.$ac_objext \ |
34048 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34049 | fi |
34050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34051 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34052 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34053 | cat >>confdefs.h <<_ACEOF | |
34054 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34055 | _ACEOF | |
34056 | ||
34057 | fi | |
34058 | done | |
34059 | ||
efdf6afe VZ |
34060 | fi |
34061 | ||
a848cd7e SC |
34062 | else |
34063 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
34064 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
34065 | fi | |
34066 | ||
a848cd7e | 34067 | |
4a767dd5 VZ |
34068 | |
34069 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
34070 | do |
34071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34072 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34074 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34076 | else | |
34077 | cat >conftest.$ac_ext <<_ACEOF | |
34078 | /* confdefs.h. */ | |
34079 | _ACEOF | |
34080 | cat confdefs.h >>conftest.$ac_ext | |
34081 | cat >>conftest.$ac_ext <<_ACEOF | |
34082 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34083 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34084 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34085 | #define $ac_func innocuous_$ac_func | |
34086 | ||
a848cd7e SC |
34087 | /* System header to define __stub macros and hopefully few prototypes, |
34088 | which can conflict with char $ac_func (); below. | |
34089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34090 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34091 | |
a848cd7e SC |
34092 | #ifdef __STDC__ |
34093 | # include <limits.h> | |
34094 | #else | |
34095 | # include <assert.h> | |
34096 | #endif | |
ac1cb8d3 VS |
34097 | |
34098 | #undef $ac_func | |
34099 | ||
a848cd7e SC |
34100 | /* Override any gcc2 internal prototype to avoid an error. */ |
34101 | #ifdef __cplusplus | |
34102 | extern "C" | |
34103 | { | |
34104 | #endif | |
34105 | /* We use char because int might match the return type of a gcc2 | |
34106 | builtin and then its argument prototype would still apply. */ | |
34107 | char $ac_func (); | |
34108 | /* The GNU C library defines this for functions which it implements | |
34109 | to always fail with ENOSYS. Some functions are actually named | |
34110 | something starting with __ and the normal name is an alias. */ | |
34111 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34112 | choke me | |
34113 | #else | |
34114 | char (*f) () = $ac_func; | |
34115 | #endif | |
34116 | #ifdef __cplusplus | |
34117 | } | |
34118 | #endif | |
34119 | ||
34120 | int | |
34121 | main () | |
34122 | { | |
34123 | return f != $ac_func; | |
34124 | ; | |
34125 | return 0; | |
34126 | } | |
34127 | _ACEOF | |
34128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34130 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34131 | ac_status=$? |
ac1cb8d3 VS |
34132 | grep -v '^ *+' conftest.er1 >conftest.err |
34133 | rm -f conftest.er1 | |
34134 | cat conftest.err >&5 | |
a848cd7e SC |
34135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34136 | (exit $ac_status); } && | |
c9a66001 | 34137 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34139 | (eval $ac_try) 2>&5 | |
34140 | ac_status=$? | |
34141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34142 | (exit $ac_status); }; } && | |
34143 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34145 | (eval $ac_try) 2>&5 | |
34146 | ac_status=$? | |
34147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34148 | (exit $ac_status); }; }; then | |
34149 | eval "$as_ac_var=yes" | |
34150 | else | |
34151 | echo "$as_me: failed program was:" >&5 | |
34152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34153 | ||
34154 | eval "$as_ac_var=no" | |
34155 | fi | |
ac1cb8d3 VS |
34156 | rm -f conftest.err conftest.$ac_objext \ |
34157 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34158 | fi |
34159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34160 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34161 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34162 | cat >>confdefs.h <<_ACEOF | |
34163 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34164 | _ACEOF | |
34165 | ||
34166 | fi | |
34167 | done | |
34168 | ||
34169 | ||
34170 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
34171 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
34172 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
34173 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
34174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34175 | else | |
34176 | ||
efdf6afe | 34177 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
34178 | /* confdefs.h. */ |
34179 | _ACEOF | |
34180 | cat confdefs.h >>conftest.$ac_ext | |
34181 | cat >>conftest.$ac_ext <<_ACEOF | |
34182 | /* end confdefs.h. */ | |
34183 | ||
34184 | #include <stdio.h> | |
34185 | #include <stdarg.h> | |
efdf6afe VZ |
34186 | #ifdef __MSL__ |
34187 | #if __MSL__ >= 0x6000 | |
34188 | namespace std {} | |
34189 | using namespace std; | |
34190 | #endif | |
34191 | #endif | |
a848cd7e SC |
34192 | |
34193 | int | |
34194 | main () | |
34195 | { | |
34196 | ||
34197 | char *buf; | |
34198 | va_list ap; | |
62fa8b3a | 34199 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
34200 | |
34201 | ; | |
34202 | return 0; | |
34203 | } | |
34204 | _ACEOF | |
34205 | rm -f conftest.$ac_objext | |
34206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34207 | (eval $ac_compile) 2>conftest.er1 | |
34208 | ac_status=$? | |
34209 | grep -v '^ *+' conftest.er1 >conftest.err | |
34210 | rm -f conftest.er1 | |
34211 | cat conftest.err >&5 | |
34212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34213 | (exit $ac_status); } && | |
c9a66001 | 34214 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
34215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34216 | (eval $ac_try) 2>&5 | |
34217 | ac_status=$? | |
34218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34219 | (exit $ac_status); }; } && | |
34220 | { ac_try='test -s conftest.$ac_objext' | |
34221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34222 | (eval $ac_try) 2>&5 | |
34223 | ac_status=$? | |
34224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34225 | (exit $ac_status); }; }; then | |
34226 | wx_cv_func_vsnprintf_decl=yes | |
34227 | else | |
34228 | echo "$as_me: failed program was:" >&5 | |
34229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34230 | ||
a848cd7e SC |
34231 | wx_cv_func_vsnprintf_decl=no |
34232 | ||
34233 | fi | |
ac1cb8d3 | 34234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34235 | |
34236 | ||
34237 | fi | |
34238 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
34239 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
34240 | ||
34241 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
34242 | cat >>confdefs.h <<\_ACEOF | |
34243 | #define HAVE_VSNPRINTF_DECL 1 | |
34244 | _ACEOF | |
34245 | ||
62fa8b3a MW |
34246 | |
34247 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
34248 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
34249 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
34250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34251 | else | |
34252 | ||
34253 | cat >conftest.$ac_ext <<_ACEOF | |
34254 | /* confdefs.h. */ | |
34255 | _ACEOF | |
34256 | cat confdefs.h >>conftest.$ac_ext | |
34257 | cat >>conftest.$ac_ext <<_ACEOF | |
34258 | /* end confdefs.h. */ | |
34259 | ||
34260 | #include <stdio.h> | |
34261 | #include <stdarg.h> | |
34262 | #ifdef __MSL__ | |
34263 | #if __MSL__ >= 0x6000 | |
34264 | namespace std {} | |
34265 | using namespace std; | |
34266 | #endif | |
34267 | #endif | |
34268 | ||
34269 | int | |
34270 | main () | |
34271 | { | |
34272 | ||
34273 | char *buf; | |
34274 | va_list ap; | |
34275 | const char *fmt = "%s"; | |
34276 | vsnprintf(buf, 10u, fmt, ap); | |
34277 | ||
34278 | ; | |
34279 | return 0; | |
34280 | } | |
34281 | _ACEOF | |
34282 | rm -f conftest.$ac_objext | |
34283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34284 | (eval $ac_compile) 2>conftest.er1 | |
34285 | ac_status=$? | |
34286 | grep -v '^ *+' conftest.er1 >conftest.err | |
34287 | rm -f conftest.er1 | |
34288 | cat conftest.err >&5 | |
34289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34290 | (exit $ac_status); } && | |
c9a66001 | 34291 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
34292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34293 | (eval $ac_try) 2>&5 | |
34294 | ac_status=$? | |
34295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34296 | (exit $ac_status); }; } && | |
34297 | { ac_try='test -s conftest.$ac_objext' | |
34298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34299 | (eval $ac_try) 2>&5 | |
34300 | ac_status=$? | |
34301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34302 | (exit $ac_status); }; }; then | |
34303 | wx_cv_func_broken_vsnprintf_decl=no | |
34304 | else | |
34305 | echo "$as_me: failed program was:" >&5 | |
34306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34307 | ||
34308 | wx_cv_func_broken_vsnprintf_decl=yes | |
34309 | ||
34310 | fi | |
34311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34312 | ||
34313 | ||
34314 | fi | |
34315 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
34316 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
34317 | ||
34318 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
34319 | cat >>confdefs.h <<\_ACEOF | |
34320 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
34321 | _ACEOF | |
34322 | ||
34323 | fi | |
a848cd7e SC |
34324 | fi |
34325 | fi | |
34326 | ||
4a767dd5 VZ |
34327 | if test "$ac_cv_func_snprintf" = "yes"; then |
34328 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
34329 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
34330 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
34331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34332 | else | |
34333 | ||
34334 | cat >conftest.$ac_ext <<_ACEOF | |
34335 | /* confdefs.h. */ | |
34336 | _ACEOF | |
34337 | cat confdefs.h >>conftest.$ac_ext | |
34338 | cat >>conftest.$ac_ext <<_ACEOF | |
34339 | /* end confdefs.h. */ | |
34340 | ||
34341 | #include <stdio.h> | |
34342 | #include <stdarg.h> | |
34343 | #ifdef __MSL__ | |
34344 | #if __MSL__ >= 0x6000 | |
34345 | namespace std {} | |
34346 | using namespace std; | |
34347 | #endif | |
34348 | #endif | |
34349 | ||
34350 | int | |
34351 | main () | |
34352 | { | |
34353 | ||
34354 | char *buf; | |
62fa8b3a | 34355 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
34356 | |
34357 | ; | |
34358 | return 0; | |
34359 | } | |
34360 | _ACEOF | |
34361 | rm -f conftest.$ac_objext | |
34362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34363 | (eval $ac_compile) 2>conftest.er1 | |
34364 | ac_status=$? | |
34365 | grep -v '^ *+' conftest.er1 >conftest.err | |
34366 | rm -f conftest.er1 | |
34367 | cat conftest.err >&5 | |
34368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34369 | (exit $ac_status); } && | |
c9a66001 | 34370 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4a767dd5 VZ |
34371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34372 | (eval $ac_try) 2>&5 | |
34373 | ac_status=$? | |
34374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34375 | (exit $ac_status); }; } && | |
34376 | { ac_try='test -s conftest.$ac_objext' | |
34377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34378 | (eval $ac_try) 2>&5 | |
34379 | ac_status=$? | |
34380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34381 | (exit $ac_status); }; }; then | |
34382 | wx_cv_func_snprintf_decl=yes | |
34383 | else | |
34384 | echo "$as_me: failed program was:" >&5 | |
34385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34386 | ||
34387 | wx_cv_func_snprintf_decl=no | |
34388 | ||
34389 | fi | |
34390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34391 | ||
34392 | ||
34393 | fi | |
34394 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
34395 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
34396 | ||
34397 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
34398 | cat >>confdefs.h <<\_ACEOF | |
34399 | #define HAVE_SNPRINTF_DECL 1 | |
34400 | _ACEOF | |
34401 | ||
62fa8b3a MW |
34402 | |
34403 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
34404 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
34405 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
34406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34407 | else | |
34408 | ||
34409 | cat >conftest.$ac_ext <<_ACEOF | |
34410 | /* confdefs.h. */ | |
34411 | _ACEOF | |
34412 | cat confdefs.h >>conftest.$ac_ext | |
34413 | cat >>conftest.$ac_ext <<_ACEOF | |
34414 | /* end confdefs.h. */ | |
34415 | ||
34416 | #include <stdio.h> | |
34417 | #include <stdarg.h> | |
34418 | #ifdef __MSL__ | |
34419 | #if __MSL__ >= 0x6000 | |
34420 | namespace std {} | |
34421 | using namespace std; | |
34422 | #endif | |
34423 | #endif | |
34424 | ||
34425 | int | |
34426 | main () | |
34427 | { | |
34428 | ||
34429 | char *buf; | |
34430 | const char *fmt = "%s"; | |
34431 | snprintf(buf, 10u, fmt, "wx"); | |
34432 | ||
34433 | ; | |
34434 | return 0; | |
34435 | } | |
34436 | _ACEOF | |
34437 | rm -f conftest.$ac_objext | |
34438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34439 | (eval $ac_compile) 2>conftest.er1 | |
34440 | ac_status=$? | |
34441 | grep -v '^ *+' conftest.er1 >conftest.err | |
34442 | rm -f conftest.er1 | |
34443 | cat conftest.err >&5 | |
34444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34445 | (exit $ac_status); } && | |
c9a66001 | 34446 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
34447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34448 | (eval $ac_try) 2>&5 | |
34449 | ac_status=$? | |
34450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34451 | (exit $ac_status); }; } && | |
34452 | { ac_try='test -s conftest.$ac_objext' | |
34453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34454 | (eval $ac_try) 2>&5 | |
34455 | ac_status=$? | |
34456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34457 | (exit $ac_status); }; }; then | |
34458 | wx_cv_func_broken_snprintf_decl=no | |
34459 | else | |
34460 | echo "$as_me: failed program was:" >&5 | |
34461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34462 | ||
34463 | wx_cv_func_broken_snprintf_decl=yes | |
34464 | ||
34465 | fi | |
34466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34467 | ||
34468 | ||
34469 | fi | |
34470 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
34471 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
34472 | ||
34473 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
34474 | cat >>confdefs.h <<\_ACEOF | |
34475 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
8b6682b9 JS |
34476 | _ACEOF |
34477 | ||
34478 | fi | |
34479 | fi | |
34480 | ||
34481 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then | |
34482 | ||
34483 | echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5 | |
34484 | echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6 | |
34485 | if test "${wx_cv_func_snprintf_pos_params+set}" = set; then | |
34486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34487 | else | |
34488 | ||
34489 | if test "$cross_compiling" = yes; then | |
34490 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
34491 | See \`config.log' for more details." >&5 | |
34492 | echo "$as_me: error: cannot run test program while cross compiling | |
34493 | See \`config.log' for more details." >&2;} | |
34494 | { (exit 1); exit 1; }; } | |
34495 | else | |
34496 | cat >conftest.$ac_ext <<_ACEOF | |
34497 | /* confdefs.h. */ | |
34498 | _ACEOF | |
34499 | cat confdefs.h >>conftest.$ac_ext | |
34500 | cat >>conftest.$ac_ext <<_ACEOF | |
34501 | /* end confdefs.h. */ | |
34502 | ||
34503 | #include <stdio.h> | |
34504 | ||
34505 | int main (void) | |
34506 | { | |
34507 | char buffer[128]; | |
34508 | snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3); | |
34509 | if (strcmp ("2 3 1", buffer) == 0) | |
34510 | exit (0); | |
34511 | exit (1); | |
34512 | } | |
34513 | ||
34514 | _ACEOF | |
34515 | rm -f conftest$ac_exeext | |
34516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34517 | (eval $ac_link) 2>&5 | |
34518 | ac_status=$? | |
34519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34522 | (eval $ac_try) 2>&5 | |
34523 | ac_status=$? | |
34524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34525 | (exit $ac_status); }; }; then | |
34526 | wx_cv_func_snprintf_pos_params=no | |
34527 | else | |
34528 | echo "$as_me: program exited with status $ac_status" >&5 | |
34529 | echo "$as_me: failed program was:" >&5 | |
34530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34531 | ||
34532 | ( exit $ac_status ) | |
34533 | wx_cv_func_snprintf_pos_params=yes | |
34534 | ||
34535 | fi | |
34536 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
34537 | fi | |
34538 | ||
34539 | ||
34540 | fi | |
34541 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5 | |
34542 | echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6 | |
34543 | ||
34544 | if test "$wx_cv_func_snprintf_pos_params" = "yes"; then | |
34545 | cat >>confdefs.h <<\_ACEOF | |
34546 | #define HAVE_UNIX98_PRINTF 1 | |
62fa8b3a MW |
34547 | _ACEOF |
34548 | ||
34549 | fi | |
4a767dd5 VZ |
34550 | fi |
34551 | fi | |
34552 | ||
8b6682b9 | 34553 | |
a848cd7e SC |
34554 | if test "$wxUSE_UNICODE" = yes; then |
34555 | ||
34556 | ||
34557 | ||
fbe47c7b VS |
34558 | |
34559 | ||
34560 | ||
34561 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
34562 | do |
34563 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34564 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34565 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34566 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34568 | else | |
34569 | cat >conftest.$ac_ext <<_ACEOF | |
34570 | /* confdefs.h. */ | |
34571 | _ACEOF | |
34572 | cat confdefs.h >>conftest.$ac_ext | |
34573 | cat >>conftest.$ac_ext <<_ACEOF | |
34574 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34575 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34576 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34577 | #define $ac_func innocuous_$ac_func | |
34578 | ||
a848cd7e SC |
34579 | /* System header to define __stub macros and hopefully few prototypes, |
34580 | which can conflict with char $ac_func (); below. | |
34581 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34582 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34583 | |
a848cd7e SC |
34584 | #ifdef __STDC__ |
34585 | # include <limits.h> | |
34586 | #else | |
34587 | # include <assert.h> | |
34588 | #endif | |
ac1cb8d3 VS |
34589 | |
34590 | #undef $ac_func | |
34591 | ||
a848cd7e SC |
34592 | /* Override any gcc2 internal prototype to avoid an error. */ |
34593 | #ifdef __cplusplus | |
34594 | extern "C" | |
34595 | { | |
34596 | #endif | |
34597 | /* We use char because int might match the return type of a gcc2 | |
34598 | builtin and then its argument prototype would still apply. */ | |
34599 | char $ac_func (); | |
34600 | /* The GNU C library defines this for functions which it implements | |
34601 | to always fail with ENOSYS. Some functions are actually named | |
34602 | something starting with __ and the normal name is an alias. */ | |
34603 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34604 | choke me | |
34605 | #else | |
34606 | char (*f) () = $ac_func; | |
34607 | #endif | |
34608 | #ifdef __cplusplus | |
34609 | } | |
34610 | #endif | |
34611 | ||
34612 | int | |
34613 | main () | |
34614 | { | |
34615 | return f != $ac_func; | |
34616 | ; | |
34617 | return 0; | |
34618 | } | |
34619 | _ACEOF | |
34620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34622 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34623 | ac_status=$? |
ac1cb8d3 VS |
34624 | grep -v '^ *+' conftest.er1 >conftest.err |
34625 | rm -f conftest.er1 | |
34626 | cat conftest.err >&5 | |
a848cd7e SC |
34627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34628 | (exit $ac_status); } && | |
c9a66001 | 34629 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34631 | (eval $ac_try) 2>&5 | |
34632 | ac_status=$? | |
34633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34634 | (exit $ac_status); }; } && | |
34635 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34637 | (eval $ac_try) 2>&5 | |
34638 | ac_status=$? | |
34639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34640 | (exit $ac_status); }; }; then | |
34641 | eval "$as_ac_var=yes" | |
34642 | else | |
34643 | echo "$as_me: failed program was:" >&5 | |
34644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34645 | ||
34646 | eval "$as_ac_var=no" | |
34647 | fi | |
ac1cb8d3 VS |
34648 | rm -f conftest.err conftest.$ac_objext \ |
34649 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34650 | fi |
34651 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34652 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34653 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34654 | cat >>confdefs.h <<_ACEOF | |
34655 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34656 | _ACEOF | |
34657 | ||
34658 | fi | |
34659 | done | |
34660 | ||
34661 | ||
34662 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
34663 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
34664 | cat >conftest.$ac_ext <<_ACEOF | |
34665 | /* confdefs.h. */ | |
34666 | _ACEOF | |
34667 | cat confdefs.h >>conftest.$ac_ext | |
34668 | cat >>conftest.$ac_ext <<_ACEOF | |
34669 | /* end confdefs.h. */ | |
34670 | #include <wchar.h> | |
34671 | int | |
34672 | main () | |
34673 | { | |
34674 | &_vsnwprintf; | |
34675 | ; | |
34676 | return 0; | |
34677 | } | |
34678 | _ACEOF | |
34679 | rm -f conftest.$ac_objext | |
34680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34681 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34682 | ac_status=$? |
ac1cb8d3 VS |
34683 | grep -v '^ *+' conftest.er1 >conftest.err |
34684 | rm -f conftest.er1 | |
34685 | cat conftest.err >&5 | |
a848cd7e SC |
34686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34687 | (exit $ac_status); } && | |
c9a66001 | 34688 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34690 | (eval $ac_try) 2>&5 | |
34691 | ac_status=$? | |
34692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34693 | (exit $ac_status); }; } && | |
34694 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34696 | (eval $ac_try) 2>&5 | |
34697 | ac_status=$? | |
34698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34699 | (exit $ac_status); }; }; then | |
34700 | echo "$as_me:$LINENO: result: yes" >&5 | |
34701 | echo "${ECHO_T}yes" >&6 | |
34702 | cat >>confdefs.h <<\_ACEOF | |
34703 | #define HAVE__VSNWPRINTF 1 | |
34704 | _ACEOF | |
34705 | ||
34706 | else | |
34707 | echo "$as_me: failed program was:" >&5 | |
34708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34709 | ||
34710 | echo "$as_me:$LINENO: result: no" >&5 | |
34711 | echo "${ECHO_T}no" >&6 | |
34712 | fi | |
ac1cb8d3 | 34713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
34714 | fi |
34715 | ||
6ebeb4c7 VZ |
34716 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
34717 | ||
34718 | for ac_func in fnmatch | |
34719 | do | |
34720 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34721 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34722 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34723 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34725 | else | |
34726 | cat >conftest.$ac_ext <<_ACEOF | |
34727 | /* confdefs.h. */ | |
34728 | _ACEOF | |
34729 | cat confdefs.h >>conftest.$ac_ext | |
34730 | cat >>conftest.$ac_ext <<_ACEOF | |
34731 | /* end confdefs.h. */ | |
34732 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34733 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34734 | #define $ac_func innocuous_$ac_func | |
34735 | ||
34736 | /* System header to define __stub macros and hopefully few prototypes, | |
34737 | which can conflict with char $ac_func (); below. | |
34738 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34739 | <limits.h> exists even on freestanding compilers. */ | |
34740 | ||
34741 | #ifdef __STDC__ | |
34742 | # include <limits.h> | |
34743 | #else | |
34744 | # include <assert.h> | |
34745 | #endif | |
34746 | ||
34747 | #undef $ac_func | |
34748 | ||
34749 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34750 | #ifdef __cplusplus | |
34751 | extern "C" | |
34752 | { | |
34753 | #endif | |
34754 | /* We use char because int might match the return type of a gcc2 | |
34755 | builtin and then its argument prototype would still apply. */ | |
34756 | char $ac_func (); | |
34757 | /* The GNU C library defines this for functions which it implements | |
34758 | to always fail with ENOSYS. Some functions are actually named | |
34759 | something starting with __ and the normal name is an alias. */ | |
34760 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34761 | choke me | |
34762 | #else | |
34763 | char (*f) () = $ac_func; | |
34764 | #endif | |
34765 | #ifdef __cplusplus | |
34766 | } | |
34767 | #endif | |
34768 | ||
34769 | int | |
34770 | main () | |
34771 | { | |
34772 | return f != $ac_func; | |
34773 | ; | |
34774 | return 0; | |
34775 | } | |
34776 | _ACEOF | |
34777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34779 | (eval $ac_link) 2>conftest.er1 | |
34780 | ac_status=$? | |
34781 | grep -v '^ *+' conftest.er1 >conftest.err | |
34782 | rm -f conftest.er1 | |
34783 | cat conftest.err >&5 | |
34784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34785 | (exit $ac_status); } && | |
c9a66001 | 34786 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
34787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34788 | (eval $ac_try) 2>&5 | |
34789 | ac_status=$? | |
34790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34791 | (exit $ac_status); }; } && | |
34792 | { ac_try='test -s conftest$ac_exeext' | |
34793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34794 | (eval $ac_try) 2>&5 | |
34795 | ac_status=$? | |
34796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34797 | (exit $ac_status); }; }; then | |
34798 | eval "$as_ac_var=yes" | |
34799 | else | |
34800 | echo "$as_me: failed program was:" >&5 | |
34801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34802 | ||
34803 | eval "$as_ac_var=no" | |
34804 | fi | |
34805 | rm -f conftest.err conftest.$ac_objext \ | |
34806 | conftest$ac_exeext conftest.$ac_ext | |
34807 | fi | |
34808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34809 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34810 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34811 | cat >>confdefs.h <<_ACEOF | |
34812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34813 | _ACEOF | |
34814 | ||
34815 | fi | |
34816 | done | |
34817 | ||
34818 | fi | |
34819 | ||
34820 | if test "$wxUSE_FILE" = "yes"; then | |
34821 | ||
34822 | for ac_func in fsync | |
34823 | do | |
34824 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34825 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34826 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34827 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34829 | else | |
34830 | cat >conftest.$ac_ext <<_ACEOF | |
34831 | /* confdefs.h. */ | |
34832 | _ACEOF | |
34833 | cat confdefs.h >>conftest.$ac_ext | |
34834 | cat >>conftest.$ac_ext <<_ACEOF | |
34835 | /* end confdefs.h. */ | |
34836 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34838 | #define $ac_func innocuous_$ac_func | |
34839 | ||
34840 | /* System header to define __stub macros and hopefully few prototypes, | |
34841 | which can conflict with char $ac_func (); below. | |
34842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34843 | <limits.h> exists even on freestanding compilers. */ | |
34844 | ||
34845 | #ifdef __STDC__ | |
34846 | # include <limits.h> | |
34847 | #else | |
34848 | # include <assert.h> | |
34849 | #endif | |
34850 | ||
34851 | #undef $ac_func | |
34852 | ||
34853 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34854 | #ifdef __cplusplus | |
34855 | extern "C" | |
34856 | { | |
34857 | #endif | |
34858 | /* We use char because int might match the return type of a gcc2 | |
34859 | builtin and then its argument prototype would still apply. */ | |
34860 | char $ac_func (); | |
34861 | /* The GNU C library defines this for functions which it implements | |
34862 | to always fail with ENOSYS. Some functions are actually named | |
34863 | something starting with __ and the normal name is an alias. */ | |
34864 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34865 | choke me | |
34866 | #else | |
34867 | char (*f) () = $ac_func; | |
34868 | #endif | |
34869 | #ifdef __cplusplus | |
34870 | } | |
34871 | #endif | |
34872 | ||
34873 | int | |
34874 | main () | |
34875 | { | |
34876 | return f != $ac_func; | |
34877 | ; | |
34878 | return 0; | |
34879 | } | |
34880 | _ACEOF | |
34881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34883 | (eval $ac_link) 2>conftest.er1 | |
34884 | ac_status=$? | |
34885 | grep -v '^ *+' conftest.er1 >conftest.err | |
34886 | rm -f conftest.er1 | |
34887 | cat conftest.err >&5 | |
34888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34889 | (exit $ac_status); } && | |
c9a66001 | 34890 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
34891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34892 | (eval $ac_try) 2>&5 | |
34893 | ac_status=$? | |
34894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34895 | (exit $ac_status); }; } && | |
34896 | { ac_try='test -s conftest$ac_exeext' | |
34897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34898 | (eval $ac_try) 2>&5 | |
34899 | ac_status=$? | |
34900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34901 | (exit $ac_status); }; }; then | |
34902 | eval "$as_ac_var=yes" | |
34903 | else | |
34904 | echo "$as_me: failed program was:" >&5 | |
34905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34906 | ||
34907 | eval "$as_ac_var=no" | |
34908 | fi | |
34909 | rm -f conftest.err conftest.$ac_objext \ | |
34910 | conftest$ac_exeext conftest.$ac_ext | |
34911 | fi | |
34912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34913 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34914 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34915 | cat >>confdefs.h <<_ACEOF | |
34916 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34917 | _ACEOF | |
34918 | ||
34919 | fi | |
34920 | done | |
34921 | ||
34922 | fi | |
a848cd7e SC |
34923 | |
34924 | ||
34925 | if test "$TOOLKIT" != "MSW"; then | |
34926 | ||
34927 | ||
a848cd7e SC |
34928 | |
34929 | ||
34930 | ||
34931 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
34932 | if test "${with_libiconv_prefix+set}" = set; then | |
34933 | withval="$with_libiconv_prefix" | |
34934 | ||
34935 | for dir in `echo "$withval" | tr : ' '`; do | |
34936 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
34937 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
34938 | done | |
34939 | ||
34940 | fi; | |
34941 | ||
34942 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
34943 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
34944 | if test "${am_cv_func_iconv+set}" = set; then | |
34945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34946 | else | |
34947 | ||
34948 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
34949 | am_cv_lib_iconv=no | |
34950 | cat >conftest.$ac_ext <<_ACEOF | |
34951 | /* confdefs.h. */ | |
34952 | _ACEOF | |
34953 | cat confdefs.h >>conftest.$ac_ext | |
34954 | cat >>conftest.$ac_ext <<_ACEOF | |
34955 | /* end confdefs.h. */ | |
34956 | #include <stdlib.h> | |
34957 | #include <iconv.h> | |
34958 | int | |
34959 | main () | |
34960 | { | |
34961 | iconv_t cd = iconv_open("",""); | |
34962 | iconv(cd,NULL,NULL,NULL,NULL); | |
34963 | iconv_close(cd); | |
34964 | ; | |
34965 | return 0; | |
34966 | } | |
34967 | _ACEOF | |
34968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34970 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34971 | ac_status=$? |
ac1cb8d3 VS |
34972 | grep -v '^ *+' conftest.er1 >conftest.err |
34973 | rm -f conftest.er1 | |
34974 | cat conftest.err >&5 | |
a848cd7e SC |
34975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34976 | (exit $ac_status); } && | |
c9a66001 | 34977 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34979 | (eval $ac_try) 2>&5 | |
34980 | ac_status=$? | |
34981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34982 | (exit $ac_status); }; } && | |
34983 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34985 | (eval $ac_try) 2>&5 | |
34986 | ac_status=$? | |
34987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34988 | (exit $ac_status); }; }; then | |
34989 | am_cv_func_iconv=yes | |
34990 | else | |
34991 | echo "$as_me: failed program was:" >&5 | |
34992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34993 | ||
34994 | fi | |
ac1cb8d3 VS |
34995 | rm -f conftest.err conftest.$ac_objext \ |
34996 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34997 | if test "$am_cv_func_iconv" != yes; then |
34998 | am_save_LIBS="$LIBS" | |
34999 | LIBS="$LIBS -liconv" | |
35000 | cat >conftest.$ac_ext <<_ACEOF | |
35001 | /* confdefs.h. */ | |
35002 | _ACEOF | |
35003 | cat confdefs.h >>conftest.$ac_ext | |
35004 | cat >>conftest.$ac_ext <<_ACEOF | |
35005 | /* end confdefs.h. */ | |
35006 | #include <stdlib.h> | |
35007 | #include <iconv.h> | |
35008 | int | |
35009 | main () | |
35010 | { | |
35011 | iconv_t cd = iconv_open("",""); | |
35012 | iconv(cd,NULL,NULL,NULL,NULL); | |
35013 | iconv_close(cd); | |
35014 | ; | |
35015 | return 0; | |
35016 | } | |
35017 | _ACEOF | |
35018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35020 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35021 | ac_status=$? |
ac1cb8d3 VS |
35022 | grep -v '^ *+' conftest.er1 >conftest.err |
35023 | rm -f conftest.er1 | |
35024 | cat conftest.err >&5 | |
a848cd7e SC |
35025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35026 | (exit $ac_status); } && | |
c9a66001 | 35027 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35029 | (eval $ac_try) 2>&5 | |
35030 | ac_status=$? | |
35031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35032 | (exit $ac_status); }; } && | |
35033 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35035 | (eval $ac_try) 2>&5 | |
35036 | ac_status=$? | |
35037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35038 | (exit $ac_status); }; }; then | |
35039 | am_cv_lib_iconv=yes | |
35040 | am_cv_func_iconv=yes | |
35041 | else | |
35042 | echo "$as_me: failed program was:" >&5 | |
35043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35044 | ||
35045 | fi | |
ac1cb8d3 VS |
35046 | rm -f conftest.err conftest.$ac_objext \ |
35047 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35048 | LIBS="$am_save_LIBS" |
35049 | fi | |
35050 | ||
35051 | fi | |
35052 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
35053 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
35054 | if test "$am_cv_func_iconv" = yes; then | |
35055 | ||
35056 | cat >>confdefs.h <<\_ACEOF | |
35057 | #define HAVE_ICONV 1 | |
35058 | _ACEOF | |
35059 | ||
35060 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
35061 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
35062 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
35063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35064 | else | |
35065 | cat >conftest.$ac_ext <<_ACEOF | |
35066 | /* confdefs.h. */ | |
35067 | _ACEOF | |
35068 | cat confdefs.h >>conftest.$ac_ext | |
35069 | cat >>conftest.$ac_ext <<_ACEOF | |
35070 | /* end confdefs.h. */ | |
35071 | ||
35072 | #include <stdlib.h> | |
35073 | #include <iconv.h> | |
35074 | extern | |
35075 | #ifdef __cplusplus | |
35076 | "C" | |
35077 | #endif | |
35078 | #if defined(__STDC__) || defined(__cplusplus) | |
35079 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
35080 | #else | |
35081 | size_t iconv(); | |
35082 | #endif | |
35083 | ||
35084 | int | |
35085 | main () | |
35086 | { | |
35087 | ||
35088 | ; | |
35089 | return 0; | |
35090 | } | |
35091 | _ACEOF | |
35092 | rm -f conftest.$ac_objext | |
35093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35094 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35095 | ac_status=$? |
ac1cb8d3 VS |
35096 | grep -v '^ *+' conftest.er1 >conftest.err |
35097 | rm -f conftest.er1 | |
35098 | cat conftest.err >&5 | |
a848cd7e SC |
35099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35100 | (exit $ac_status); } && | |
c9a66001 | 35101 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35103 | (eval $ac_try) 2>&5 | |
35104 | ac_status=$? | |
35105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35106 | (exit $ac_status); }; } && | |
35107 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35109 | (eval $ac_try) 2>&5 | |
35110 | ac_status=$? | |
35111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35112 | (exit $ac_status); }; }; then | |
35113 | wx_cv_func_iconv_const="no" | |
35114 | else | |
35115 | echo "$as_me: failed program was:" >&5 | |
35116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35117 | ||
35118 | wx_cv_func_iconv_const="yes" | |
35119 | ||
35120 | fi | |
ac1cb8d3 | 35121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35122 | |
35123 | fi | |
35124 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
35125 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
35126 | ||
35127 | iconv_const= | |
35128 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
35129 | iconv_const="const" | |
35130 | fi | |
35131 | ||
35132 | ||
35133 | cat >>confdefs.h <<_ACEOF | |
35134 | #define ICONV_CONST $iconv_const | |
35135 | _ACEOF | |
35136 | ||
35137 | fi | |
35138 | LIBICONV= | |
35139 | if test "$am_cv_lib_iconv" = yes; then | |
35140 | LIBICONV="-liconv" | |
35141 | fi | |
35142 | ||
35143 | ||
35144 | LIBS="$LIBICONV $LIBS" | |
a848cd7e SC |
35145 | |
35146 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
35147 | ||
35148 | for ac_func in sigaction | |
35149 | do | |
35150 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35151 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35152 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35153 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35155 | else | |
35156 | cat >conftest.$ac_ext <<_ACEOF | |
35157 | /* confdefs.h. */ | |
35158 | _ACEOF | |
35159 | cat confdefs.h >>conftest.$ac_ext | |
35160 | cat >>conftest.$ac_ext <<_ACEOF | |
35161 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35162 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35164 | #define $ac_func innocuous_$ac_func | |
35165 | ||
a848cd7e SC |
35166 | /* System header to define __stub macros and hopefully few prototypes, |
35167 | which can conflict with char $ac_func (); below. | |
35168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35169 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35170 | |
a848cd7e SC |
35171 | #ifdef __STDC__ |
35172 | # include <limits.h> | |
35173 | #else | |
35174 | # include <assert.h> | |
35175 | #endif | |
ac1cb8d3 VS |
35176 | |
35177 | #undef $ac_func | |
35178 | ||
a848cd7e SC |
35179 | /* Override any gcc2 internal prototype to avoid an error. */ |
35180 | #ifdef __cplusplus | |
35181 | extern "C" | |
35182 | { | |
35183 | #endif | |
35184 | /* We use char because int might match the return type of a gcc2 | |
35185 | builtin and then its argument prototype would still apply. */ | |
35186 | char $ac_func (); | |
35187 | /* The GNU C library defines this for functions which it implements | |
35188 | to always fail with ENOSYS. Some functions are actually named | |
35189 | something starting with __ and the normal name is an alias. */ | |
35190 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35191 | choke me | |
35192 | #else | |
35193 | char (*f) () = $ac_func; | |
35194 | #endif | |
35195 | #ifdef __cplusplus | |
35196 | } | |
35197 | #endif | |
35198 | ||
35199 | int | |
35200 | main () | |
35201 | { | |
35202 | return f != $ac_func; | |
35203 | ; | |
35204 | return 0; | |
35205 | } | |
35206 | _ACEOF | |
35207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35209 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35210 | ac_status=$? |
ac1cb8d3 VS |
35211 | grep -v '^ *+' conftest.er1 >conftest.err |
35212 | rm -f conftest.er1 | |
35213 | cat conftest.err >&5 | |
a848cd7e SC |
35214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35215 | (exit $ac_status); } && | |
c9a66001 | 35216 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35218 | (eval $ac_try) 2>&5 | |
35219 | ac_status=$? | |
35220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35221 | (exit $ac_status); }; } && | |
35222 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35224 | (eval $ac_try) 2>&5 | |
35225 | ac_status=$? | |
35226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35227 | (exit $ac_status); }; }; then | |
35228 | eval "$as_ac_var=yes" | |
35229 | else | |
35230 | echo "$as_me: failed program was:" >&5 | |
35231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35232 | ||
35233 | eval "$as_ac_var=no" | |
35234 | fi | |
ac1cb8d3 VS |
35235 | rm -f conftest.err conftest.$ac_objext \ |
35236 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35237 | fi |
35238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35239 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35240 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35241 | cat >>confdefs.h <<_ACEOF | |
35242 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35243 | _ACEOF | |
35244 | ||
35245 | fi | |
35246 | done | |
35247 | ||
35248 | ||
35249 | if test "$ac_cv_func_sigaction" = "no"; then | |
35250 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
35251 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
35252 | wxUSE_ON_FATAL_EXCEPTION=no | |
35253 | fi | |
35254 | ||
35255 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
35256 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
35257 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
35258 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
35259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35260 | else | |
35261 | ||
35262 | cat >conftest.$ac_ext <<_ACEOF | |
35263 | /* confdefs.h. */ | |
35264 | _ACEOF | |
35265 | cat confdefs.h >>conftest.$ac_ext | |
35266 | cat >>conftest.$ac_ext <<_ACEOF | |
35267 | /* end confdefs.h. */ | |
35268 | #include <signal.h> | |
35269 | int | |
35270 | main () | |
35271 | { | |
35272 | ||
35273 | extern void testSigHandler(int); | |
35274 | ||
35275 | struct sigaction sa; | |
35276 | sa.sa_handler = testSigHandler; | |
35277 | ||
35278 | ; | |
35279 | return 0; | |
35280 | } | |
35281 | _ACEOF | |
35282 | rm -f conftest.$ac_objext | |
35283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35285 | ac_status=$? |
ac1cb8d3 VS |
35286 | grep -v '^ *+' conftest.er1 >conftest.err |
35287 | rm -f conftest.er1 | |
35288 | cat conftest.err >&5 | |
a848cd7e SC |
35289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35290 | (exit $ac_status); } && | |
c9a66001 | 35291 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35293 | (eval $ac_try) 2>&5 | |
35294 | ac_status=$? | |
35295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35296 | (exit $ac_status); }; } && | |
35297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35299 | (eval $ac_try) 2>&5 | |
35300 | ac_status=$? | |
35301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35302 | (exit $ac_status); }; }; then | |
35303 | ||
35304 | wx_cv_type_sa_handler=int | |
35305 | ||
35306 | else | |
35307 | echo "$as_me: failed program was:" >&5 | |
35308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35309 | ||
35310 | ||
35311 | wx_cv_type_sa_handler=void | |
35312 | ||
35313 | fi | |
ac1cb8d3 | 35314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35315 | |
35316 | fi | |
35317 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
35318 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
35319 | ||
a848cd7e SC |
35320 | cat >>confdefs.h <<_ACEOF |
35321 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
35322 | _ACEOF | |
35323 | ||
35324 | fi | |
35325 | fi | |
35326 | ||
eaff0f0d | 35327 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
35328 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
35329 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
35330 | if test "${wx_cv_func_backtrace+set}" = set; then | |
35331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35332 | else | |
35333 | ||
35334 | cat >conftest.$ac_ext <<_ACEOF | |
35335 | /* confdefs.h. */ | |
35336 | _ACEOF | |
35337 | cat confdefs.h >>conftest.$ac_ext | |
35338 | cat >>conftest.$ac_ext <<_ACEOF | |
35339 | /* end confdefs.h. */ | |
35340 | #include <execinfo.h> | |
35341 | int | |
35342 | main () | |
35343 | { | |
35344 | ||
35345 | void *trace[1]; | |
35346 | char **messages; | |
35347 | ||
35348 | backtrace(trace, 1); | |
35349 | messages = backtrace_symbols(trace, 1); | |
35350 | ||
35351 | ; | |
35352 | return 0; | |
35353 | } | |
35354 | _ACEOF | |
35355 | rm -f conftest.$ac_objext | |
35356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35357 | (eval $ac_compile) 2>conftest.er1 | |
35358 | ac_status=$? | |
35359 | grep -v '^ *+' conftest.er1 >conftest.err | |
35360 | rm -f conftest.er1 | |
35361 | cat conftest.err >&5 | |
35362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35363 | (exit $ac_status); } && | |
c9a66001 | 35364 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
35365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35366 | (eval $ac_try) 2>&5 | |
35367 | ac_status=$? | |
35368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35369 | (exit $ac_status); }; } && | |
35370 | { ac_try='test -s conftest.$ac_objext' | |
35371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35372 | (eval $ac_try) 2>&5 | |
35373 | ac_status=$? | |
35374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35375 | (exit $ac_status); }; }; then | |
35376 | wx_cv_func_backtrace=yes | |
35377 | else | |
35378 | echo "$as_me: failed program was:" >&5 | |
35379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35380 | ||
35381 | wx_cv_func_backtrace=no | |
35382 | ||
35383 | fi | |
35384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35385 | ||
35386 | ||
35387 | fi | |
35388 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
35389 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
35390 | ||
35391 | ||
35392 | if test "$wx_cv_func_backtrace" = "no"; then | |
35393 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
35394 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
35395 | wxUSE_STACKWALKER=no | |
35396 | else | |
35397 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
35398 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
35399 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
35400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35401 | else | |
35402 | ||
35403 | cat >conftest.$ac_ext <<_ACEOF | |
35404 | /* confdefs.h. */ | |
35405 | _ACEOF | |
35406 | cat confdefs.h >>conftest.$ac_ext | |
35407 | cat >>conftest.$ac_ext <<_ACEOF | |
35408 | /* end confdefs.h. */ | |
35409 | #include <cxxabi.h> | |
35410 | int | |
35411 | main () | |
35412 | { | |
35413 | ||
35414 | int rc; | |
35415 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
35416 | ||
35417 | ; | |
35418 | return 0; | |
35419 | } | |
35420 | _ACEOF | |
dfe0c803 JS |
35421 | rm -f conftest.$ac_objext conftest$ac_exeext |
35422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35423 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
35424 | ac_status=$? |
35425 | grep -v '^ *+' conftest.er1 >conftest.err | |
35426 | rm -f conftest.er1 | |
35427 | cat conftest.err >&5 | |
35428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35429 | (exit $ac_status); } && | |
c9a66001 | 35430 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
35431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35432 | (eval $ac_try) 2>&5 | |
35433 | ac_status=$? | |
35434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35435 | (exit $ac_status); }; } && | |
dfe0c803 | 35436 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
35437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35438 | (eval $ac_try) 2>&5 | |
35439 | ac_status=$? | |
35440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35441 | (exit $ac_status); }; }; then | |
35442 | wx_cv_func_cxa_demangle=yes | |
35443 | else | |
35444 | echo "$as_me: failed program was:" >&5 | |
35445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35446 | ||
35447 | wx_cv_func_cxa_demangle=no | |
35448 | ||
35449 | fi | |
dfe0c803 JS |
35450 | rm -f conftest.err conftest.$ac_objext \ |
35451 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
35452 | |
35453 | ||
35454 | fi | |
35455 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
35456 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
35457 | ||
35458 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
35459 | cat >>confdefs.h <<\_ACEOF | |
35460 | #define HAVE_CXA_DEMANGLE 1 | |
35461 | _ACEOF | |
35462 | ||
35463 | fi | |
35464 | fi | |
eaff0f0d VZ |
35465 | fi |
35466 | ||
898beab1 DE |
35467 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
35468 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
35469 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
35470 | wxUSE_STACKWALKER=no | |
35471 | fi | |
35472 | ||
35473 | ||
a848cd7e SC |
35474 | |
35475 | ||
35476 | for ac_func in mkstemp mktemp | |
35477 | do | |
35478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35479 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35481 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35483 | else | |
35484 | cat >conftest.$ac_ext <<_ACEOF | |
35485 | /* confdefs.h. */ | |
35486 | _ACEOF | |
35487 | cat confdefs.h >>conftest.$ac_ext | |
35488 | cat >>conftest.$ac_ext <<_ACEOF | |
35489 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35490 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35491 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35492 | #define $ac_func innocuous_$ac_func | |
35493 | ||
a848cd7e SC |
35494 | /* System header to define __stub macros and hopefully few prototypes, |
35495 | which can conflict with char $ac_func (); below. | |
35496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35497 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35498 | |
a848cd7e SC |
35499 | #ifdef __STDC__ |
35500 | # include <limits.h> | |
35501 | #else | |
35502 | # include <assert.h> | |
35503 | #endif | |
ac1cb8d3 VS |
35504 | |
35505 | #undef $ac_func | |
35506 | ||
a848cd7e SC |
35507 | /* Override any gcc2 internal prototype to avoid an error. */ |
35508 | #ifdef __cplusplus | |
35509 | extern "C" | |
35510 | { | |
35511 | #endif | |
35512 | /* We use char because int might match the return type of a gcc2 | |
35513 | builtin and then its argument prototype would still apply. */ | |
35514 | char $ac_func (); | |
35515 | /* The GNU C library defines this for functions which it implements | |
35516 | to always fail with ENOSYS. Some functions are actually named | |
35517 | something starting with __ and the normal name is an alias. */ | |
35518 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35519 | choke me | |
35520 | #else | |
35521 | char (*f) () = $ac_func; | |
35522 | #endif | |
35523 | #ifdef __cplusplus | |
35524 | } | |
35525 | #endif | |
35526 | ||
35527 | int | |
35528 | main () | |
35529 | { | |
35530 | return f != $ac_func; | |
35531 | ; | |
35532 | return 0; | |
35533 | } | |
35534 | _ACEOF | |
35535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35538 | ac_status=$? |
ac1cb8d3 VS |
35539 | grep -v '^ *+' conftest.er1 >conftest.err |
35540 | rm -f conftest.er1 | |
35541 | cat conftest.err >&5 | |
a848cd7e SC |
35542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35543 | (exit $ac_status); } && | |
c9a66001 | 35544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35546 | (eval $ac_try) 2>&5 | |
35547 | ac_status=$? | |
35548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35549 | (exit $ac_status); }; } && | |
35550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35552 | (eval $ac_try) 2>&5 | |
35553 | ac_status=$? | |
35554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35555 | (exit $ac_status); }; }; then | |
35556 | eval "$as_ac_var=yes" | |
35557 | else | |
35558 | echo "$as_me: failed program was:" >&5 | |
35559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35560 | ||
35561 | eval "$as_ac_var=no" | |
35562 | fi | |
ac1cb8d3 VS |
35563 | rm -f conftest.err conftest.$ac_objext \ |
35564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35565 | fi |
35566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35567 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35568 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35569 | cat >>confdefs.h <<_ACEOF | |
35570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35571 | _ACEOF | |
35572 | break | |
35573 | fi | |
35574 | done | |
35575 | ||
35576 | ||
35577 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
35578 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
35579 | if test "${wx_cv_func_statfs+set}" = set; then | |
35580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35581 | else | |
35582 | cat >conftest.$ac_ext <<_ACEOF | |
35583 | /* confdefs.h. */ | |
35584 | _ACEOF | |
35585 | cat confdefs.h >>conftest.$ac_ext | |
35586 | cat >>conftest.$ac_ext <<_ACEOF | |
35587 | /* end confdefs.h. */ | |
35588 | ||
35589 | #if defined(__BSD__) | |
84ae7ca4 VZ |
35590 | #include <sys/param.h> |
35591 | #include <sys/mount.h> | |
a848cd7e | 35592 | #else |
84ae7ca4 | 35593 | #include <sys/vfs.h> |
a848cd7e SC |
35594 | #endif |
35595 | ||
35596 | int | |
35597 | main () | |
35598 | { | |
35599 | ||
35600 | long l; | |
35601 | struct statfs fs; | |
35602 | statfs("/", &fs); | |
35603 | l = fs.f_bsize; | |
35604 | l += fs.f_blocks; | |
35605 | l += fs.f_bavail; | |
35606 | ||
35607 | ; | |
35608 | return 0; | |
35609 | } | |
35610 | _ACEOF | |
35611 | rm -f conftest.$ac_objext | |
35612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35613 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35614 | ac_status=$? |
ac1cb8d3 VS |
35615 | grep -v '^ *+' conftest.er1 >conftest.err |
35616 | rm -f conftest.er1 | |
35617 | cat conftest.err >&5 | |
a848cd7e SC |
35618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35619 | (exit $ac_status); } && | |
c9a66001 | 35620 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35622 | (eval $ac_try) 2>&5 | |
35623 | ac_status=$? | |
35624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35625 | (exit $ac_status); }; } && | |
35626 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35628 | (eval $ac_try) 2>&5 | |
35629 | ac_status=$? | |
35630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35631 | (exit $ac_status); }; }; then | |
84ae7ca4 | 35632 | wx_cv_func_statfs=yes |
a848cd7e SC |
35633 | else |
35634 | echo "$as_me: failed program was:" >&5 | |
35635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35636 | ||
84ae7ca4 | 35637 | wx_cv_func_statfs=no |
a848cd7e SC |
35638 | |
35639 | fi | |
ac1cb8d3 | 35640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35641 | |
35642 | fi | |
35643 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
35644 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
35645 | ||
35646 | if test "$wx_cv_func_statfs" = "yes"; then | |
5d7b7554 | 35647 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
84ae7ca4 VZ |
35648 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 |
35649 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
35650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35651 | else | |
0683aca6 VZ |
35652 | cat >conftest.$ac_ext <<_ACEOF |
35653 | /* confdefs.h. */ | |
35654 | _ACEOF | |
35655 | cat confdefs.h >>conftest.$ac_ext | |
35656 | cat >>conftest.$ac_ext <<_ACEOF | |
35657 | /* end confdefs.h. */ | |
84ae7ca4 | 35658 | |
0683aca6 VZ |
35659 | #if defined(__BSD__) |
35660 | #include <sys/param.h> | |
35661 | #include <sys/mount.h> | |
35662 | #else | |
35663 | #include <sys/vfs.h> | |
35664 | #endif | |
35665 | ||
35666 | int | |
35667 | main () | |
35668 | { | |
35669 | ||
35670 | struct statfs fs; | |
35671 | statfs("", &fs); | |
35672 | ||
35673 | ; | |
35674 | return 0; | |
35675 | } | |
35676 | _ACEOF | |
35677 | rm -f conftest.$ac_objext | |
35678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35679 | (eval $ac_compile) 2>conftest.er1 | |
35680 | ac_status=$? | |
35681 | grep -v '^ *+' conftest.er1 >conftest.err | |
35682 | rm -f conftest.er1 | |
35683 | cat conftest.err >&5 | |
35684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35685 | (exit $ac_status); } && | |
c9a66001 | 35686 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0683aca6 VZ |
35687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35688 | (eval $ac_try) 2>&5 | |
35689 | ac_status=$? | |
35690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35691 | (exit $ac_status); }; } && | |
35692 | { ac_try='test -s conftest.$ac_objext' | |
35693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35694 | (eval $ac_try) 2>&5 | |
35695 | ac_status=$? | |
35696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35697 | (exit $ac_status); }; }; then | |
35698 | wx_cv_func_statfs_decl=yes | |
35699 | else | |
35700 | echo "$as_me: failed program was:" >&5 | |
35701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35702 | ||
35703 | wx_cv_func_statfs_decl=no | |
35704 | ||
35705 | fi | |
35706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
35707 | |
35708 | fi | |
35709 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
35710 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
84ae7ca4 VZ |
35711 | |
35712 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
35713 | cat >>confdefs.h <<\_ACEOF | |
35714 | #define HAVE_STATFS_DECL 1 | |
35715 | _ACEOF | |
35716 | ||
35717 | fi | |
35718 | ||
a848cd7e SC |
35719 | wx_cv_type_statvfs_t="struct statfs" |
35720 | cat >>confdefs.h <<\_ACEOF | |
35721 | #define HAVE_STATFS 1 | |
35722 | _ACEOF | |
35723 | ||
35724 | else | |
35725 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
35726 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
35727 | if test "${wx_cv_func_statvfs+set}" = set; then | |
35728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35729 | else | |
35730 | cat >conftest.$ac_ext <<_ACEOF | |
35731 | /* confdefs.h. */ | |
35732 | _ACEOF | |
35733 | cat confdefs.h >>conftest.$ac_ext | |
35734 | cat >>conftest.$ac_ext <<_ACEOF | |
35735 | /* end confdefs.h. */ | |
35736 | ||
35737 | #include <stddef.h> | |
35738 | #include <sys/statvfs.h> | |
35739 | ||
35740 | int | |
35741 | main () | |
35742 | { | |
35743 | ||
35744 | statvfs("/", NULL); | |
35745 | ||
35746 | ; | |
35747 | return 0; | |
35748 | } | |
35749 | _ACEOF | |
35750 | rm -f conftest.$ac_objext | |
35751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35752 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35753 | ac_status=$? |
ac1cb8d3 VS |
35754 | grep -v '^ *+' conftest.er1 >conftest.err |
35755 | rm -f conftest.er1 | |
35756 | cat conftest.err >&5 | |
a848cd7e SC |
35757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35758 | (exit $ac_status); } && | |
c9a66001 | 35759 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35761 | (eval $ac_try) 2>&5 | |
35762 | ac_status=$? | |
35763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35764 | (exit $ac_status); }; } && | |
35765 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35767 | (eval $ac_try) 2>&5 | |
35768 | ac_status=$? | |
35769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35770 | (exit $ac_status); }; }; then | |
35771 | wx_cv_func_statvfs=yes | |
35772 | else | |
35773 | echo "$as_me: failed program was:" >&5 | |
35774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35775 | ||
35776 | wx_cv_func_statvfs=no | |
35777 | ||
35778 | fi | |
ac1cb8d3 | 35779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35780 | |
35781 | fi | |
35782 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
35783 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
35784 | ||
35785 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5d7b7554 | 35786 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
a848cd7e SC |
35787 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 |
35788 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
35789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35790 | else | |
35791 | cat >conftest.$ac_ext <<_ACEOF | |
35792 | /* confdefs.h. */ | |
35793 | _ACEOF | |
35794 | cat confdefs.h >>conftest.$ac_ext | |
35795 | cat >>conftest.$ac_ext <<_ACEOF | |
35796 | /* end confdefs.h. */ | |
35797 | ||
35798 | #include <sys/statvfs.h> | |
35799 | ||
35800 | int | |
35801 | main () | |
35802 | { | |
35803 | ||
35804 | long l; | |
35805 | statvfs_t fs; | |
35806 | statvfs("/", &fs); | |
35807 | l = fs.f_bsize; | |
35808 | l += fs.f_blocks; | |
35809 | l += fs.f_bavail; | |
35810 | ||
35811 | ; | |
35812 | return 0; | |
35813 | } | |
35814 | _ACEOF | |
35815 | rm -f conftest.$ac_objext | |
35816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35817 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35818 | ac_status=$? |
ac1cb8d3 VS |
35819 | grep -v '^ *+' conftest.er1 >conftest.err |
35820 | rm -f conftest.er1 | |
35821 | cat conftest.err >&5 | |
a848cd7e SC |
35822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35823 | (exit $ac_status); } && | |
c9a66001 | 35824 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35826 | (eval $ac_try) 2>&5 | |
35827 | ac_status=$? | |
35828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35829 | (exit $ac_status); }; } && | |
35830 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35832 | (eval $ac_try) 2>&5 | |
35833 | ac_status=$? | |
35834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35835 | (exit $ac_status); }; }; then | |
35836 | wx_cv_type_statvfs_t=statvfs_t | |
35837 | else | |
35838 | echo "$as_me: failed program was:" >&5 | |
35839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35840 | ||
35841 | ||
35842 | cat >conftest.$ac_ext <<_ACEOF | |
35843 | /* confdefs.h. */ | |
35844 | _ACEOF | |
35845 | cat confdefs.h >>conftest.$ac_ext | |
35846 | cat >>conftest.$ac_ext <<_ACEOF | |
35847 | /* end confdefs.h. */ | |
35848 | ||
35849 | #include <sys/statvfs.h> | |
35850 | ||
35851 | int | |
35852 | main () | |
35853 | { | |
35854 | ||
35855 | long l; | |
35856 | struct statvfs fs; | |
35857 | statvfs("/", &fs); | |
35858 | l = fs.f_bsize; | |
35859 | l += fs.f_blocks; | |
35860 | l += fs.f_bavail; | |
35861 | ||
35862 | ; | |
35863 | return 0; | |
35864 | } | |
35865 | _ACEOF | |
35866 | rm -f conftest.$ac_objext | |
35867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35869 | ac_status=$? |
ac1cb8d3 VS |
35870 | grep -v '^ *+' conftest.er1 >conftest.err |
35871 | rm -f conftest.er1 | |
35872 | cat conftest.err >&5 | |
a848cd7e SC |
35873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35874 | (exit $ac_status); } && | |
c9a66001 | 35875 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35877 | (eval $ac_try) 2>&5 | |
35878 | ac_status=$? | |
35879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35880 | (exit $ac_status); }; } && | |
35881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35883 | (eval $ac_try) 2>&5 | |
35884 | ac_status=$? | |
35885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35886 | (exit $ac_status); }; }; then | |
35887 | wx_cv_type_statvfs_t="struct statvfs" | |
35888 | else | |
35889 | echo "$as_me: failed program was:" >&5 | |
35890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35891 | ||
35892 | wx_cv_type_statvfs_t="unknown" | |
35893 | ||
35894 | fi | |
ac1cb8d3 | 35895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35896 | |
35897 | ||
35898 | fi | |
ac1cb8d3 | 35899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35900 | |
35901 | fi | |
35902 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
35903 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
35904 | ||
a848cd7e SC |
35905 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
35906 | cat >>confdefs.h <<\_ACEOF | |
35907 | #define HAVE_STATVFS 1 | |
35908 | _ACEOF | |
35909 | ||
35910 | fi | |
35911 | else | |
35912 | wx_cv_type_statvfs_t="unknown" | |
35913 | fi | |
35914 | fi | |
35915 | ||
35916 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35917 | cat >>confdefs.h <<_ACEOF | |
35918 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
35919 | _ACEOF | |
35920 | ||
35921 | else | |
35922 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
35923 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
35924 | fi | |
35925 | ||
35926 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
35927 | ||
35928 | ||
35929 | for ac_func in fcntl flock | |
35930 | do | |
35931 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35932 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35933 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35934 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35936 | else | |
35937 | cat >conftest.$ac_ext <<_ACEOF | |
35938 | /* confdefs.h. */ | |
35939 | _ACEOF | |
35940 | cat confdefs.h >>conftest.$ac_ext | |
35941 | cat >>conftest.$ac_ext <<_ACEOF | |
35942 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35943 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35945 | #define $ac_func innocuous_$ac_func | |
35946 | ||
a848cd7e SC |
35947 | /* System header to define __stub macros and hopefully few prototypes, |
35948 | which can conflict with char $ac_func (); below. | |
35949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35950 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35951 | |
a848cd7e SC |
35952 | #ifdef __STDC__ |
35953 | # include <limits.h> | |
35954 | #else | |
35955 | # include <assert.h> | |
35956 | #endif | |
ac1cb8d3 VS |
35957 | |
35958 | #undef $ac_func | |
35959 | ||
a848cd7e SC |
35960 | /* Override any gcc2 internal prototype to avoid an error. */ |
35961 | #ifdef __cplusplus | |
35962 | extern "C" | |
35963 | { | |
35964 | #endif | |
35965 | /* We use char because int might match the return type of a gcc2 | |
35966 | builtin and then its argument prototype would still apply. */ | |
35967 | char $ac_func (); | |
35968 | /* The GNU C library defines this for functions which it implements | |
35969 | to always fail with ENOSYS. Some functions are actually named | |
35970 | something starting with __ and the normal name is an alias. */ | |
35971 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35972 | choke me | |
35973 | #else | |
35974 | char (*f) () = $ac_func; | |
35975 | #endif | |
35976 | #ifdef __cplusplus | |
35977 | } | |
35978 | #endif | |
35979 | ||
35980 | int | |
35981 | main () | |
35982 | { | |
35983 | return f != $ac_func; | |
35984 | ; | |
35985 | return 0; | |
35986 | } | |
35987 | _ACEOF | |
35988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35990 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35991 | ac_status=$? |
ac1cb8d3 VS |
35992 | grep -v '^ *+' conftest.er1 >conftest.err |
35993 | rm -f conftest.er1 | |
35994 | cat conftest.err >&5 | |
a848cd7e SC |
35995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996 | (exit $ac_status); } && | |
c9a66001 | 35997 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35999 | (eval $ac_try) 2>&5 | |
36000 | ac_status=$? | |
36001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36002 | (exit $ac_status); }; } && | |
36003 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36005 | (eval $ac_try) 2>&5 | |
36006 | ac_status=$? | |
36007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36008 | (exit $ac_status); }; }; then | |
36009 | eval "$as_ac_var=yes" | |
36010 | else | |
36011 | echo "$as_me: failed program was:" >&5 | |
36012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36013 | ||
36014 | eval "$as_ac_var=no" | |
36015 | fi | |
ac1cb8d3 VS |
36016 | rm -f conftest.err conftest.$ac_objext \ |
36017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36018 | fi |
36019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36020 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36021 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36022 | cat >>confdefs.h <<_ACEOF | |
36023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36024 | _ACEOF | |
36025 | break | |
36026 | fi | |
36027 | done | |
36028 | ||
36029 | ||
36030 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
36031 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
36032 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
36033 | wxUSE_SNGLINST_CHECKER=no | |
36034 | fi | |
36035 | fi | |
36036 | ||
36037 | ||
36038 | for ac_func in timegm | |
36039 | do | |
36040 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36041 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36042 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36043 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36045 | else | |
36046 | cat >conftest.$ac_ext <<_ACEOF | |
36047 | /* confdefs.h. */ | |
36048 | _ACEOF | |
36049 | cat confdefs.h >>conftest.$ac_ext | |
36050 | cat >>conftest.$ac_ext <<_ACEOF | |
36051 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36054 | #define $ac_func innocuous_$ac_func | |
36055 | ||
a848cd7e SC |
36056 | /* System header to define __stub macros and hopefully few prototypes, |
36057 | which can conflict with char $ac_func (); below. | |
36058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36059 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36060 | |
a848cd7e SC |
36061 | #ifdef __STDC__ |
36062 | # include <limits.h> | |
36063 | #else | |
36064 | # include <assert.h> | |
36065 | #endif | |
ac1cb8d3 VS |
36066 | |
36067 | #undef $ac_func | |
36068 | ||
a848cd7e SC |
36069 | /* Override any gcc2 internal prototype to avoid an error. */ |
36070 | #ifdef __cplusplus | |
36071 | extern "C" | |
36072 | { | |
36073 | #endif | |
36074 | /* We use char because int might match the return type of a gcc2 | |
36075 | builtin and then its argument prototype would still apply. */ | |
36076 | char $ac_func (); | |
36077 | /* The GNU C library defines this for functions which it implements | |
36078 | to always fail with ENOSYS. Some functions are actually named | |
36079 | something starting with __ and the normal name is an alias. */ | |
36080 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36081 | choke me | |
36082 | #else | |
36083 | char (*f) () = $ac_func; | |
36084 | #endif | |
36085 | #ifdef __cplusplus | |
36086 | } | |
36087 | #endif | |
36088 | ||
36089 | int | |
36090 | main () | |
36091 | { | |
36092 | return f != $ac_func; | |
36093 | ; | |
36094 | return 0; | |
36095 | } | |
36096 | _ACEOF | |
36097 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36099 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36100 | ac_status=$? |
ac1cb8d3 VS |
36101 | grep -v '^ *+' conftest.er1 >conftest.err |
36102 | rm -f conftest.er1 | |
36103 | cat conftest.err >&5 | |
a848cd7e SC |
36104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36105 | (exit $ac_status); } && | |
c9a66001 | 36106 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36108 | (eval $ac_try) 2>&5 | |
36109 | ac_status=$? | |
36110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36111 | (exit $ac_status); }; } && | |
36112 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36114 | (eval $ac_try) 2>&5 | |
36115 | ac_status=$? | |
36116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36117 | (exit $ac_status); }; }; then | |
36118 | eval "$as_ac_var=yes" | |
36119 | else | |
36120 | echo "$as_me: failed program was:" >&5 | |
36121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36122 | ||
36123 | eval "$as_ac_var=no" | |
36124 | fi | |
ac1cb8d3 VS |
36125 | rm -f conftest.err conftest.$ac_objext \ |
36126 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36127 | fi |
36128 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36129 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36130 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36131 | cat >>confdefs.h <<_ACEOF | |
36132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36133 | _ACEOF | |
36134 | ||
36135 | fi | |
36136 | done | |
36137 | ||
36138 | ||
36139 | ||
36140 | ||
36141 | for ac_func in putenv setenv | |
36142 | do | |
36143 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36144 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36145 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36146 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36148 | else | |
36149 | cat >conftest.$ac_ext <<_ACEOF | |
36150 | /* confdefs.h. */ | |
36151 | _ACEOF | |
36152 | cat confdefs.h >>conftest.$ac_ext | |
36153 | cat >>conftest.$ac_ext <<_ACEOF | |
36154 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36155 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36157 | #define $ac_func innocuous_$ac_func | |
36158 | ||
a848cd7e SC |
36159 | /* System header to define __stub macros and hopefully few prototypes, |
36160 | which can conflict with char $ac_func (); below. | |
36161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36162 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36163 | |
a848cd7e SC |
36164 | #ifdef __STDC__ |
36165 | # include <limits.h> | |
36166 | #else | |
36167 | # include <assert.h> | |
36168 | #endif | |
ac1cb8d3 VS |
36169 | |
36170 | #undef $ac_func | |
36171 | ||
a848cd7e SC |
36172 | /* Override any gcc2 internal prototype to avoid an error. */ |
36173 | #ifdef __cplusplus | |
36174 | extern "C" | |
36175 | { | |
36176 | #endif | |
36177 | /* We use char because int might match the return type of a gcc2 | |
36178 | builtin and then its argument prototype would still apply. */ | |
36179 | char $ac_func (); | |
36180 | /* The GNU C library defines this for functions which it implements | |
36181 | to always fail with ENOSYS. Some functions are actually named | |
36182 | something starting with __ and the normal name is an alias. */ | |
36183 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36184 | choke me | |
36185 | #else | |
36186 | char (*f) () = $ac_func; | |
36187 | #endif | |
36188 | #ifdef __cplusplus | |
36189 | } | |
36190 | #endif | |
36191 | ||
36192 | int | |
36193 | main () | |
36194 | { | |
36195 | return f != $ac_func; | |
36196 | ; | |
36197 | return 0; | |
36198 | } | |
36199 | _ACEOF | |
36200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36202 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36203 | ac_status=$? |
ac1cb8d3 VS |
36204 | grep -v '^ *+' conftest.er1 >conftest.err |
36205 | rm -f conftest.er1 | |
36206 | cat conftest.err >&5 | |
a848cd7e SC |
36207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36208 | (exit $ac_status); } && | |
c9a66001 | 36209 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36211 | (eval $ac_try) 2>&5 | |
36212 | ac_status=$? | |
36213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36214 | (exit $ac_status); }; } && | |
36215 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36217 | (eval $ac_try) 2>&5 | |
36218 | ac_status=$? | |
36219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36220 | (exit $ac_status); }; }; then | |
36221 | eval "$as_ac_var=yes" | |
36222 | else | |
36223 | echo "$as_me: failed program was:" >&5 | |
36224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36225 | ||
36226 | eval "$as_ac_var=no" | |
36227 | fi | |
ac1cb8d3 VS |
36228 | rm -f conftest.err conftest.$ac_objext \ |
36229 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36230 | fi |
36231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36232 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36233 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36234 | cat >>confdefs.h <<_ACEOF | |
36235 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36236 | _ACEOF | |
36237 | break | |
36238 | fi | |
36239 | done | |
36240 | ||
36241 | ||
36242 | HAVE_SOME_SLEEP_FUNC=0 | |
36243 | if test "$USE_BEOS" = 1; then | |
36244 | cat >>confdefs.h <<\_ACEOF | |
36245 | #define HAVE_SLEEP 1 | |
36246 | _ACEOF | |
36247 | ||
36248 | HAVE_SOME_SLEEP_FUNC=1 | |
36249 | fi | |
36250 | ||
36251 | if test "$USE_DARWIN" = 1; then | |
36252 | cat >>confdefs.h <<\_ACEOF | |
36253 | #define HAVE_USLEEP 1 | |
36254 | _ACEOF | |
36255 | ||
36256 | HAVE_SOME_SLEEP_FUNC=1 | |
36257 | fi | |
36258 | ||
36259 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
36260 | POSIX4_LINK= | |
36261 | ||
36262 | for ac_func in nanosleep | |
36263 | do | |
36264 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36265 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36266 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36267 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36269 | else | |
36270 | cat >conftest.$ac_ext <<_ACEOF | |
36271 | /* confdefs.h. */ | |
36272 | _ACEOF | |
36273 | cat confdefs.h >>conftest.$ac_ext | |
36274 | cat >>conftest.$ac_ext <<_ACEOF | |
36275 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36276 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36278 | #define $ac_func innocuous_$ac_func | |
36279 | ||
a848cd7e SC |
36280 | /* System header to define __stub macros and hopefully few prototypes, |
36281 | which can conflict with char $ac_func (); below. | |
36282 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36283 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36284 | |
a848cd7e SC |
36285 | #ifdef __STDC__ |
36286 | # include <limits.h> | |
36287 | #else | |
36288 | # include <assert.h> | |
36289 | #endif | |
ac1cb8d3 VS |
36290 | |
36291 | #undef $ac_func | |
36292 | ||
a848cd7e SC |
36293 | /* Override any gcc2 internal prototype to avoid an error. */ |
36294 | #ifdef __cplusplus | |
36295 | extern "C" | |
36296 | { | |
36297 | #endif | |
36298 | /* We use char because int might match the return type of a gcc2 | |
36299 | builtin and then its argument prototype would still apply. */ | |
36300 | char $ac_func (); | |
36301 | /* The GNU C library defines this for functions which it implements | |
36302 | to always fail with ENOSYS. Some functions are actually named | |
36303 | something starting with __ and the normal name is an alias. */ | |
36304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36305 | choke me | |
36306 | #else | |
36307 | char (*f) () = $ac_func; | |
36308 | #endif | |
36309 | #ifdef __cplusplus | |
36310 | } | |
36311 | #endif | |
36312 | ||
36313 | int | |
36314 | main () | |
36315 | { | |
36316 | return f != $ac_func; | |
36317 | ; | |
36318 | return 0; | |
36319 | } | |
36320 | _ACEOF | |
36321 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36323 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36324 | ac_status=$? |
ac1cb8d3 VS |
36325 | grep -v '^ *+' conftest.er1 >conftest.err |
36326 | rm -f conftest.er1 | |
36327 | cat conftest.err >&5 | |
a848cd7e SC |
36328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36329 | (exit $ac_status); } && | |
c9a66001 | 36330 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36332 | (eval $ac_try) 2>&5 | |
36333 | ac_status=$? | |
36334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36335 | (exit $ac_status); }; } && | |
36336 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36338 | (eval $ac_try) 2>&5 | |
36339 | ac_status=$? | |
36340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36341 | (exit $ac_status); }; }; then | |
36342 | eval "$as_ac_var=yes" | |
36343 | else | |
36344 | echo "$as_me: failed program was:" >&5 | |
36345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36346 | ||
36347 | eval "$as_ac_var=no" | |
36348 | fi | |
ac1cb8d3 VS |
36349 | rm -f conftest.err conftest.$ac_objext \ |
36350 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36351 | fi |
36352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36353 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36354 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36355 | cat >>confdefs.h <<_ACEOF | |
36356 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36357 | _ACEOF | |
36358 | cat >>confdefs.h <<\_ACEOF | |
36359 | #define HAVE_NANOSLEEP 1 | |
36360 | _ACEOF | |
36361 | ||
36362 | else | |
36363 | ||
36364 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
36365 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
36366 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
36367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36368 | else | |
36369 | ac_check_lib_save_LIBS=$LIBS | |
36370 | LIBS="-lposix4 $LIBS" | |
36371 | cat >conftest.$ac_ext <<_ACEOF | |
36372 | /* confdefs.h. */ | |
36373 | _ACEOF | |
36374 | cat confdefs.h >>conftest.$ac_ext | |
36375 | cat >>conftest.$ac_ext <<_ACEOF | |
36376 | /* end confdefs.h. */ | |
36377 | ||
36378 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36379 | #ifdef __cplusplus | |
36380 | extern "C" | |
36381 | #endif | |
36382 | /* We use char because int might match the return type of a gcc2 | |
36383 | builtin and then its argument prototype would still apply. */ | |
36384 | char nanosleep (); | |
36385 | int | |
36386 | main () | |
36387 | { | |
36388 | nanosleep (); | |
36389 | ; | |
36390 | return 0; | |
36391 | } | |
36392 | _ACEOF | |
36393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36395 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36396 | ac_status=$? |
ac1cb8d3 VS |
36397 | grep -v '^ *+' conftest.er1 >conftest.err |
36398 | rm -f conftest.er1 | |
36399 | cat conftest.err >&5 | |
a848cd7e SC |
36400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36401 | (exit $ac_status); } && | |
c9a66001 | 36402 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36404 | (eval $ac_try) 2>&5 | |
36405 | ac_status=$? | |
36406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36407 | (exit $ac_status); }; } && | |
36408 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36410 | (eval $ac_try) 2>&5 | |
36411 | ac_status=$? | |
36412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36413 | (exit $ac_status); }; }; then | |
36414 | ac_cv_lib_posix4_nanosleep=yes | |
36415 | else | |
36416 | echo "$as_me: failed program was:" >&5 | |
36417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36418 | ||
36419 | ac_cv_lib_posix4_nanosleep=no | |
36420 | fi | |
ac1cb8d3 VS |
36421 | rm -f conftest.err conftest.$ac_objext \ |
36422 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36423 | LIBS=$ac_check_lib_save_LIBS |
36424 | fi | |
36425 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
36426 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
36427 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
36428 | ||
36429 | cat >>confdefs.h <<\_ACEOF | |
36430 | #define HAVE_NANOSLEEP 1 | |
36431 | _ACEOF | |
36432 | ||
36433 | POSIX4_LINK=" -lposix4" | |
36434 | ||
36435 | else | |
36436 | ||
36437 | ||
36438 | for ac_func in usleep | |
36439 | do | |
36440 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36441 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36442 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36443 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36445 | else | |
36446 | cat >conftest.$ac_ext <<_ACEOF | |
36447 | /* confdefs.h. */ | |
36448 | _ACEOF | |
36449 | cat confdefs.h >>conftest.$ac_ext | |
36450 | cat >>conftest.$ac_ext <<_ACEOF | |
36451 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36452 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36453 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36454 | #define $ac_func innocuous_$ac_func | |
36455 | ||
a848cd7e SC |
36456 | /* System header to define __stub macros and hopefully few prototypes, |
36457 | which can conflict with char $ac_func (); below. | |
36458 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36459 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36460 | |
a848cd7e SC |
36461 | #ifdef __STDC__ |
36462 | # include <limits.h> | |
36463 | #else | |
36464 | # include <assert.h> | |
36465 | #endif | |
ac1cb8d3 VS |
36466 | |
36467 | #undef $ac_func | |
36468 | ||
a848cd7e SC |
36469 | /* Override any gcc2 internal prototype to avoid an error. */ |
36470 | #ifdef __cplusplus | |
36471 | extern "C" | |
36472 | { | |
36473 | #endif | |
36474 | /* We use char because int might match the return type of a gcc2 | |
36475 | builtin and then its argument prototype would still apply. */ | |
36476 | char $ac_func (); | |
36477 | /* The GNU C library defines this for functions which it implements | |
36478 | to always fail with ENOSYS. Some functions are actually named | |
36479 | something starting with __ and the normal name is an alias. */ | |
36480 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36481 | choke me | |
36482 | #else | |
36483 | char (*f) () = $ac_func; | |
36484 | #endif | |
36485 | #ifdef __cplusplus | |
36486 | } | |
36487 | #endif | |
36488 | ||
36489 | int | |
36490 | main () | |
36491 | { | |
36492 | return f != $ac_func; | |
36493 | ; | |
36494 | return 0; | |
36495 | } | |
36496 | _ACEOF | |
36497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36499 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36500 | ac_status=$? |
ac1cb8d3 VS |
36501 | grep -v '^ *+' conftest.er1 >conftest.err |
36502 | rm -f conftest.er1 | |
36503 | cat conftest.err >&5 | |
a848cd7e SC |
36504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36505 | (exit $ac_status); } && | |
c9a66001 | 36506 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36508 | (eval $ac_try) 2>&5 | |
36509 | ac_status=$? | |
36510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36511 | (exit $ac_status); }; } && | |
36512 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36514 | (eval $ac_try) 2>&5 | |
36515 | ac_status=$? | |
36516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36517 | (exit $ac_status); }; }; then | |
36518 | eval "$as_ac_var=yes" | |
36519 | else | |
36520 | echo "$as_me: failed program was:" >&5 | |
36521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36522 | ||
36523 | eval "$as_ac_var=no" | |
36524 | fi | |
ac1cb8d3 VS |
36525 | rm -f conftest.err conftest.$ac_objext \ |
36526 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36527 | fi |
36528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36529 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36530 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36531 | cat >>confdefs.h <<_ACEOF | |
36532 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36533 | _ACEOF | |
36534 | cat >>confdefs.h <<\_ACEOF | |
36535 | #define HAVE_USLEEP 1 | |
36536 | _ACEOF | |
36537 | ||
36538 | else | |
36539 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
36540 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
36541 | ||
36542 | fi | |
36543 | done | |
36544 | ||
36545 | ||
36546 | ||
36547 | fi | |
36548 | ||
36549 | ||
36550 | ||
36551 | fi | |
36552 | done | |
36553 | ||
36554 | fi | |
36555 | ||
36556 | ||
36557 | ||
36558 | for ac_func in uname gethostname | |
36559 | do | |
36560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36565 | else | |
36566 | cat >conftest.$ac_ext <<_ACEOF | |
36567 | /* confdefs.h. */ | |
36568 | _ACEOF | |
36569 | cat confdefs.h >>conftest.$ac_ext | |
36570 | cat >>conftest.$ac_ext <<_ACEOF | |
36571 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36574 | #define $ac_func innocuous_$ac_func | |
36575 | ||
a848cd7e SC |
36576 | /* System header to define __stub macros and hopefully few prototypes, |
36577 | which can conflict with char $ac_func (); below. | |
36578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36579 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36580 | |
a848cd7e SC |
36581 | #ifdef __STDC__ |
36582 | # include <limits.h> | |
36583 | #else | |
36584 | # include <assert.h> | |
36585 | #endif | |
ac1cb8d3 VS |
36586 | |
36587 | #undef $ac_func | |
36588 | ||
a848cd7e SC |
36589 | /* Override any gcc2 internal prototype to avoid an error. */ |
36590 | #ifdef __cplusplus | |
36591 | extern "C" | |
36592 | { | |
36593 | #endif | |
36594 | /* We use char because int might match the return type of a gcc2 | |
36595 | builtin and then its argument prototype would still apply. */ | |
36596 | char $ac_func (); | |
36597 | /* The GNU C library defines this for functions which it implements | |
36598 | to always fail with ENOSYS. Some functions are actually named | |
36599 | something starting with __ and the normal name is an alias. */ | |
36600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36601 | choke me | |
36602 | #else | |
36603 | char (*f) () = $ac_func; | |
36604 | #endif | |
36605 | #ifdef __cplusplus | |
36606 | } | |
36607 | #endif | |
36608 | ||
36609 | int | |
36610 | main () | |
36611 | { | |
36612 | return f != $ac_func; | |
36613 | ; | |
36614 | return 0; | |
36615 | } | |
36616 | _ACEOF | |
36617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36619 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36620 | ac_status=$? |
ac1cb8d3 VS |
36621 | grep -v '^ *+' conftest.er1 >conftest.err |
36622 | rm -f conftest.er1 | |
36623 | cat conftest.err >&5 | |
a848cd7e SC |
36624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36625 | (exit $ac_status); } && | |
c9a66001 | 36626 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36628 | (eval $ac_try) 2>&5 | |
36629 | ac_status=$? | |
36630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36631 | (exit $ac_status); }; } && | |
36632 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36634 | (eval $ac_try) 2>&5 | |
36635 | ac_status=$? | |
36636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36637 | (exit $ac_status); }; }; then | |
36638 | eval "$as_ac_var=yes" | |
36639 | else | |
36640 | echo "$as_me: failed program was:" >&5 | |
36641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36642 | ||
36643 | eval "$as_ac_var=no" | |
36644 | fi | |
ac1cb8d3 VS |
36645 | rm -f conftest.err conftest.$ac_objext \ |
36646 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36647 | fi |
36648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36651 | cat >>confdefs.h <<_ACEOF | |
36652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36653 | _ACEOF | |
36654 | break | |
36655 | fi | |
36656 | done | |
36657 | ||
36658 | ||
a848cd7e SC |
36659 | |
36660 | for ac_func in strtok_r | |
36661 | do | |
36662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36663 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36665 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36667 | else | |
36668 | cat >conftest.$ac_ext <<_ACEOF | |
36669 | /* confdefs.h. */ | |
36670 | _ACEOF | |
36671 | cat confdefs.h >>conftest.$ac_ext | |
36672 | cat >>conftest.$ac_ext <<_ACEOF | |
36673 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36674 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36676 | #define $ac_func innocuous_$ac_func | |
36677 | ||
a848cd7e SC |
36678 | /* System header to define __stub macros and hopefully few prototypes, |
36679 | which can conflict with char $ac_func (); below. | |
36680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36681 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36682 | |
a848cd7e SC |
36683 | #ifdef __STDC__ |
36684 | # include <limits.h> | |
36685 | #else | |
36686 | # include <assert.h> | |
36687 | #endif | |
ac1cb8d3 VS |
36688 | |
36689 | #undef $ac_func | |
36690 | ||
a848cd7e SC |
36691 | /* Override any gcc2 internal prototype to avoid an error. */ |
36692 | #ifdef __cplusplus | |
36693 | extern "C" | |
36694 | { | |
36695 | #endif | |
36696 | /* We use char because int might match the return type of a gcc2 | |
36697 | builtin and then its argument prototype would still apply. */ | |
36698 | char $ac_func (); | |
36699 | /* The GNU C library defines this for functions which it implements | |
36700 | to always fail with ENOSYS. Some functions are actually named | |
36701 | something starting with __ and the normal name is an alias. */ | |
36702 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36703 | choke me | |
36704 | #else | |
36705 | char (*f) () = $ac_func; | |
36706 | #endif | |
36707 | #ifdef __cplusplus | |
36708 | } | |
36709 | #endif | |
36710 | ||
36711 | int | |
36712 | main () | |
36713 | { | |
36714 | return f != $ac_func; | |
36715 | ; | |
36716 | return 0; | |
36717 | } | |
36718 | _ACEOF | |
36719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36721 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36722 | ac_status=$? |
ac1cb8d3 VS |
36723 | grep -v '^ *+' conftest.er1 >conftest.err |
36724 | rm -f conftest.er1 | |
36725 | cat conftest.err >&5 | |
a848cd7e SC |
36726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36727 | (exit $ac_status); } && | |
c9a66001 | 36728 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36730 | (eval $ac_try) 2>&5 | |
36731 | ac_status=$? | |
36732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36733 | (exit $ac_status); }; } && | |
36734 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36736 | (eval $ac_try) 2>&5 | |
36737 | ac_status=$? | |
36738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36739 | (exit $ac_status); }; }; then | |
36740 | eval "$as_ac_var=yes" | |
36741 | else | |
36742 | echo "$as_me: failed program was:" >&5 | |
36743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36744 | ||
36745 | eval "$as_ac_var=no" | |
36746 | fi | |
ac1cb8d3 VS |
36747 | rm -f conftest.err conftest.$ac_objext \ |
36748 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36749 | fi |
36750 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36751 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36752 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36753 | cat >>confdefs.h <<_ACEOF | |
36754 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36755 | _ACEOF | |
36756 | ||
36757 | fi | |
36758 | done | |
36759 | ||
36760 | ||
a848cd7e SC |
36761 | INET_LINK= |
36762 | ||
36763 | for ac_func in inet_addr | |
36764 | do | |
36765 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36766 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36767 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36768 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36770 | else | |
36771 | cat >conftest.$ac_ext <<_ACEOF | |
36772 | /* confdefs.h. */ | |
36773 | _ACEOF | |
36774 | cat confdefs.h >>conftest.$ac_ext | |
36775 | cat >>conftest.$ac_ext <<_ACEOF | |
36776 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36777 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36779 | #define $ac_func innocuous_$ac_func | |
36780 | ||
a848cd7e SC |
36781 | /* System header to define __stub macros and hopefully few prototypes, |
36782 | which can conflict with char $ac_func (); below. | |
36783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36784 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36785 | |
a848cd7e SC |
36786 | #ifdef __STDC__ |
36787 | # include <limits.h> | |
36788 | #else | |
36789 | # include <assert.h> | |
36790 | #endif | |
ac1cb8d3 VS |
36791 | |
36792 | #undef $ac_func | |
36793 | ||
a848cd7e SC |
36794 | /* Override any gcc2 internal prototype to avoid an error. */ |
36795 | #ifdef __cplusplus | |
36796 | extern "C" | |
36797 | { | |
36798 | #endif | |
36799 | /* We use char because int might match the return type of a gcc2 | |
36800 | builtin and then its argument prototype would still apply. */ | |
36801 | char $ac_func (); | |
36802 | /* The GNU C library defines this for functions which it implements | |
36803 | to always fail with ENOSYS. Some functions are actually named | |
36804 | something starting with __ and the normal name is an alias. */ | |
36805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36806 | choke me | |
36807 | #else | |
36808 | char (*f) () = $ac_func; | |
36809 | #endif | |
36810 | #ifdef __cplusplus | |
36811 | } | |
36812 | #endif | |
36813 | ||
36814 | int | |
36815 | main () | |
36816 | { | |
36817 | return f != $ac_func; | |
36818 | ; | |
36819 | return 0; | |
36820 | } | |
36821 | _ACEOF | |
36822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36824 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36825 | ac_status=$? |
ac1cb8d3 VS |
36826 | grep -v '^ *+' conftest.er1 >conftest.err |
36827 | rm -f conftest.er1 | |
36828 | cat conftest.err >&5 | |
a848cd7e SC |
36829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36830 | (exit $ac_status); } && | |
c9a66001 | 36831 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36833 | (eval $ac_try) 2>&5 | |
36834 | ac_status=$? | |
36835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36836 | (exit $ac_status); }; } && | |
36837 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36839 | (eval $ac_try) 2>&5 | |
36840 | ac_status=$? | |
36841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36842 | (exit $ac_status); }; }; then | |
36843 | eval "$as_ac_var=yes" | |
36844 | else | |
36845 | echo "$as_me: failed program was:" >&5 | |
36846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36847 | ||
36848 | eval "$as_ac_var=no" | |
36849 | fi | |
ac1cb8d3 VS |
36850 | rm -f conftest.err conftest.$ac_objext \ |
36851 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36852 | fi |
36853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36854 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36855 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36856 | cat >>confdefs.h <<_ACEOF | |
36857 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36858 | _ACEOF | |
36859 | cat >>confdefs.h <<\_ACEOF | |
36860 | #define HAVE_INET_ADDR 1 | |
36861 | _ACEOF | |
36862 | ||
36863 | else | |
36864 | ||
36865 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
36866 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
36867 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
36868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36869 | else | |
36870 | ac_check_lib_save_LIBS=$LIBS | |
36871 | LIBS="-lnsl $LIBS" | |
36872 | cat >conftest.$ac_ext <<_ACEOF | |
36873 | /* confdefs.h. */ | |
36874 | _ACEOF | |
36875 | cat confdefs.h >>conftest.$ac_ext | |
36876 | cat >>conftest.$ac_ext <<_ACEOF | |
36877 | /* end confdefs.h. */ | |
36878 | ||
36879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36880 | #ifdef __cplusplus | |
36881 | extern "C" | |
36882 | #endif | |
36883 | /* We use char because int might match the return type of a gcc2 | |
36884 | builtin and then its argument prototype would still apply. */ | |
36885 | char inet_addr (); | |
36886 | int | |
36887 | main () | |
36888 | { | |
36889 | inet_addr (); | |
36890 | ; | |
36891 | return 0; | |
36892 | } | |
36893 | _ACEOF | |
36894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36896 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36897 | ac_status=$? |
ac1cb8d3 VS |
36898 | grep -v '^ *+' conftest.er1 >conftest.err |
36899 | rm -f conftest.er1 | |
36900 | cat conftest.err >&5 | |
a848cd7e SC |
36901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36902 | (exit $ac_status); } && | |
c9a66001 | 36903 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36905 | (eval $ac_try) 2>&5 | |
36906 | ac_status=$? | |
36907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36908 | (exit $ac_status); }; } && | |
36909 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36911 | (eval $ac_try) 2>&5 | |
36912 | ac_status=$? | |
36913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36914 | (exit $ac_status); }; }; then | |
36915 | ac_cv_lib_nsl_inet_addr=yes | |
36916 | else | |
36917 | echo "$as_me: failed program was:" >&5 | |
36918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36919 | ||
36920 | ac_cv_lib_nsl_inet_addr=no | |
36921 | fi | |
ac1cb8d3 VS |
36922 | rm -f conftest.err conftest.$ac_objext \ |
36923 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36924 | LIBS=$ac_check_lib_save_LIBS |
36925 | fi | |
36926 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
36927 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
36928 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
36929 | INET_LINK="nsl" | |
36930 | else | |
36931 | ||
36932 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
36933 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
36934 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
36935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36936 | else | |
36937 | ac_check_lib_save_LIBS=$LIBS | |
36938 | LIBS="-lresolv $LIBS" | |
36939 | cat >conftest.$ac_ext <<_ACEOF | |
36940 | /* confdefs.h. */ | |
36941 | _ACEOF | |
36942 | cat confdefs.h >>conftest.$ac_ext | |
36943 | cat >>conftest.$ac_ext <<_ACEOF | |
36944 | /* end confdefs.h. */ | |
36945 | ||
36946 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36947 | #ifdef __cplusplus | |
36948 | extern "C" | |
36949 | #endif | |
36950 | /* We use char because int might match the return type of a gcc2 | |
36951 | builtin and then its argument prototype would still apply. */ | |
36952 | char inet_addr (); | |
36953 | int | |
36954 | main () | |
36955 | { | |
36956 | inet_addr (); | |
36957 | ; | |
36958 | return 0; | |
36959 | } | |
36960 | _ACEOF | |
36961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36963 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36964 | ac_status=$? |
ac1cb8d3 VS |
36965 | grep -v '^ *+' conftest.er1 >conftest.err |
36966 | rm -f conftest.er1 | |
36967 | cat conftest.err >&5 | |
a848cd7e SC |
36968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36969 | (exit $ac_status); } && | |
c9a66001 | 36970 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36972 | (eval $ac_try) 2>&5 | |
36973 | ac_status=$? | |
36974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36975 | (exit $ac_status); }; } && | |
36976 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36978 | (eval $ac_try) 2>&5 | |
36979 | ac_status=$? | |
36980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36981 | (exit $ac_status); }; }; then | |
36982 | ac_cv_lib_resolv_inet_addr=yes | |
36983 | else | |
36984 | echo "$as_me: failed program was:" >&5 | |
36985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36986 | ||
36987 | ac_cv_lib_resolv_inet_addr=no | |
36988 | fi | |
ac1cb8d3 VS |
36989 | rm -f conftest.err conftest.$ac_objext \ |
36990 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36991 | LIBS=$ac_check_lib_save_LIBS |
36992 | fi | |
36993 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
36994 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
36995 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
36996 | INET_LINK="resolv" | |
36997 | else | |
36998 | ||
36999 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
37000 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
37001 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
37002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37003 | else | |
37004 | ac_check_lib_save_LIBS=$LIBS | |
37005 | LIBS="-lsocket $LIBS" | |
37006 | cat >conftest.$ac_ext <<_ACEOF | |
37007 | /* confdefs.h. */ | |
37008 | _ACEOF | |
37009 | cat confdefs.h >>conftest.$ac_ext | |
37010 | cat >>conftest.$ac_ext <<_ACEOF | |
37011 | /* end confdefs.h. */ | |
37012 | ||
37013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37014 | #ifdef __cplusplus | |
37015 | extern "C" | |
37016 | #endif | |
37017 | /* We use char because int might match the return type of a gcc2 | |
37018 | builtin and then its argument prototype would still apply. */ | |
37019 | char inet_addr (); | |
37020 | int | |
37021 | main () | |
37022 | { | |
37023 | inet_addr (); | |
37024 | ; | |
37025 | return 0; | |
37026 | } | |
37027 | _ACEOF | |
37028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37030 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37031 | ac_status=$? |
ac1cb8d3 VS |
37032 | grep -v '^ *+' conftest.er1 >conftest.err |
37033 | rm -f conftest.er1 | |
37034 | cat conftest.err >&5 | |
a848cd7e SC |
37035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37036 | (exit $ac_status); } && | |
c9a66001 | 37037 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37039 | (eval $ac_try) 2>&5 | |
37040 | ac_status=$? | |
37041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37042 | (exit $ac_status); }; } && | |
37043 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37045 | (eval $ac_try) 2>&5 | |
37046 | ac_status=$? | |
37047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37048 | (exit $ac_status); }; }; then | |
37049 | ac_cv_lib_socket_inet_addr=yes | |
37050 | else | |
37051 | echo "$as_me: failed program was:" >&5 | |
37052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37053 | ||
37054 | ac_cv_lib_socket_inet_addr=no | |
37055 | fi | |
ac1cb8d3 VS |
37056 | rm -f conftest.err conftest.$ac_objext \ |
37057 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37058 | LIBS=$ac_check_lib_save_LIBS |
37059 | fi | |
37060 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
37061 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
37062 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
37063 | INET_LINK="socket" | |
37064 | ||
37065 | fi | |
37066 | ||
37067 | ||
37068 | ||
37069 | fi | |
37070 | ||
37071 | ||
37072 | ||
37073 | fi | |
37074 | ||
37075 | ||
37076 | ||
37077 | fi | |
37078 | done | |
37079 | ||
37080 | ||
37081 | ||
37082 | for ac_func in inet_aton | |
37083 | do | |
37084 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37085 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37086 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37087 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37089 | else | |
37090 | cat >conftest.$ac_ext <<_ACEOF | |
37091 | /* confdefs.h. */ | |
37092 | _ACEOF | |
37093 | cat confdefs.h >>conftest.$ac_ext | |
37094 | cat >>conftest.$ac_ext <<_ACEOF | |
37095 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37096 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37098 | #define $ac_func innocuous_$ac_func | |
37099 | ||
a848cd7e SC |
37100 | /* System header to define __stub macros and hopefully few prototypes, |
37101 | which can conflict with char $ac_func (); below. | |
37102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37103 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37104 | |
a848cd7e SC |
37105 | #ifdef __STDC__ |
37106 | # include <limits.h> | |
37107 | #else | |
37108 | # include <assert.h> | |
37109 | #endif | |
ac1cb8d3 VS |
37110 | |
37111 | #undef $ac_func | |
37112 | ||
a848cd7e SC |
37113 | /* Override any gcc2 internal prototype to avoid an error. */ |
37114 | #ifdef __cplusplus | |
37115 | extern "C" | |
37116 | { | |
37117 | #endif | |
37118 | /* We use char because int might match the return type of a gcc2 | |
37119 | builtin and then its argument prototype would still apply. */ | |
37120 | char $ac_func (); | |
37121 | /* The GNU C library defines this for functions which it implements | |
37122 | to always fail with ENOSYS. Some functions are actually named | |
37123 | something starting with __ and the normal name is an alias. */ | |
37124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37125 | choke me | |
37126 | #else | |
37127 | char (*f) () = $ac_func; | |
37128 | #endif | |
37129 | #ifdef __cplusplus | |
37130 | } | |
37131 | #endif | |
37132 | ||
37133 | int | |
37134 | main () | |
37135 | { | |
37136 | return f != $ac_func; | |
37137 | ; | |
37138 | return 0; | |
37139 | } | |
37140 | _ACEOF | |
37141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37143 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37144 | ac_status=$? |
ac1cb8d3 VS |
37145 | grep -v '^ *+' conftest.er1 >conftest.err |
37146 | rm -f conftest.er1 | |
37147 | cat conftest.err >&5 | |
a848cd7e SC |
37148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37149 | (exit $ac_status); } && | |
c9a66001 | 37150 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37152 | (eval $ac_try) 2>&5 | |
37153 | ac_status=$? | |
37154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37155 | (exit $ac_status); }; } && | |
37156 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37158 | (eval $ac_try) 2>&5 | |
37159 | ac_status=$? | |
37160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37161 | (exit $ac_status); }; }; then | |
37162 | eval "$as_ac_var=yes" | |
37163 | else | |
37164 | echo "$as_me: failed program was:" >&5 | |
37165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37166 | ||
37167 | eval "$as_ac_var=no" | |
37168 | fi | |
ac1cb8d3 VS |
37169 | rm -f conftest.err conftest.$ac_objext \ |
37170 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37171 | fi |
37172 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37173 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37174 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37175 | cat >>confdefs.h <<_ACEOF | |
37176 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37177 | _ACEOF | |
37178 | cat >>confdefs.h <<\_ACEOF | |
37179 | #define HAVE_INET_ATON 1 | |
37180 | _ACEOF | |
37181 | ||
37182 | else | |
37183 | ||
37184 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
37185 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
37186 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
37187 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
37188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37189 | else | |
37190 | ac_check_lib_save_LIBS=$LIBS | |
37191 | LIBS="-l$INET_LINK $LIBS" | |
37192 | cat >conftest.$ac_ext <<_ACEOF | |
37193 | /* confdefs.h. */ | |
37194 | _ACEOF | |
37195 | cat confdefs.h >>conftest.$ac_ext | |
37196 | cat >>conftest.$ac_ext <<_ACEOF | |
37197 | /* end confdefs.h. */ | |
37198 | ||
37199 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37200 | #ifdef __cplusplus | |
37201 | extern "C" | |
37202 | #endif | |
37203 | /* We use char because int might match the return type of a gcc2 | |
37204 | builtin and then its argument prototype would still apply. */ | |
37205 | char inet_aton (); | |
37206 | int | |
37207 | main () | |
37208 | { | |
37209 | inet_aton (); | |
37210 | ; | |
37211 | return 0; | |
37212 | } | |
37213 | _ACEOF | |
37214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37216 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37217 | ac_status=$? |
ac1cb8d3 VS |
37218 | grep -v '^ *+' conftest.er1 >conftest.err |
37219 | rm -f conftest.er1 | |
37220 | cat conftest.err >&5 | |
a848cd7e SC |
37221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37222 | (exit $ac_status); } && | |
c9a66001 | 37223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37225 | (eval $ac_try) 2>&5 | |
37226 | ac_status=$? | |
37227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37228 | (exit $ac_status); }; } && | |
37229 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37231 | (eval $ac_try) 2>&5 | |
37232 | ac_status=$? | |
37233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37234 | (exit $ac_status); }; }; then | |
37235 | eval "$as_ac_Lib=yes" | |
37236 | else | |
37237 | echo "$as_me: failed program was:" >&5 | |
37238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37239 | ||
37240 | eval "$as_ac_Lib=no" | |
37241 | fi | |
ac1cb8d3 VS |
37242 | rm -f conftest.err conftest.$ac_objext \ |
37243 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37244 | LIBS=$ac_check_lib_save_LIBS |
37245 | fi | |
37246 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
37247 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
37248 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
37249 | cat >>confdefs.h <<\_ACEOF | |
37250 | #define HAVE_INET_ATON 1 | |
37251 | _ACEOF | |
37252 | ||
37253 | fi | |
37254 | ||
37255 | ||
37256 | fi | |
37257 | done | |
37258 | ||
37259 | ||
37260 | if test "x$INET_LINK" != "x"; then | |
37261 | cat >>confdefs.h <<\_ACEOF | |
37262 | #define HAVE_INET_ADDR 1 | |
37263 | _ACEOF | |
37264 | ||
37265 | INET_LINK=" -l$INET_LINK" | |
37266 | fi | |
37267 | ||
37268 | fi | |
37269 | ||
37270 | ||
37271 | ||
37272 | EXTRALIBS_ESD= | |
37273 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
37274 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
37275 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
37276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37277 | else | |
37278 | ac_check_lib_save_LIBS=$LIBS | |
37279 | LIBS="-lesd $LIBS" | |
37280 | cat >conftest.$ac_ext <<_ACEOF | |
37281 | /* confdefs.h. */ | |
37282 | _ACEOF | |
37283 | cat confdefs.h >>conftest.$ac_ext | |
37284 | cat >>conftest.$ac_ext <<_ACEOF | |
37285 | /* end confdefs.h. */ | |
37286 | ||
37287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37288 | #ifdef __cplusplus | |
37289 | extern "C" | |
37290 | #endif | |
37291 | /* We use char because int might match the return type of a gcc2 | |
37292 | builtin and then its argument prototype would still apply. */ | |
37293 | char esd_close (); | |
37294 | int | |
37295 | main () | |
37296 | { | |
37297 | esd_close (); | |
37298 | ; | |
37299 | return 0; | |
37300 | } | |
37301 | _ACEOF | |
37302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37305 | ac_status=$? |
ac1cb8d3 VS |
37306 | grep -v '^ *+' conftest.er1 >conftest.err |
37307 | rm -f conftest.er1 | |
37308 | cat conftest.err >&5 | |
a848cd7e SC |
37309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37310 | (exit $ac_status); } && | |
c9a66001 | 37311 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37313 | (eval $ac_try) 2>&5 | |
37314 | ac_status=$? | |
37315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37316 | (exit $ac_status); }; } && | |
37317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37319 | (eval $ac_try) 2>&5 | |
37320 | ac_status=$? | |
37321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37322 | (exit $ac_status); }; }; then | |
37323 | ac_cv_lib_esd_esd_close=yes | |
37324 | else | |
37325 | echo "$as_me: failed program was:" >&5 | |
37326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37327 | ||
37328 | ac_cv_lib_esd_esd_close=no | |
37329 | fi | |
ac1cb8d3 VS |
37330 | rm -f conftest.err conftest.$ac_objext \ |
37331 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37332 | LIBS=$ac_check_lib_save_LIBS |
37333 | fi | |
37334 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
37335 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
37336 | if test $ac_cv_lib_esd_esd_close = yes; then | |
37337 | ||
37338 | ||
37339 | for ac_header in esd.h | |
37340 | do | |
37341 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37342 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37343 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37347 | fi | |
37348 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37349 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37350 | else | |
37351 | # Is the header compilable? | |
37352 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37353 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37354 | cat >conftest.$ac_ext <<_ACEOF | |
37355 | /* confdefs.h. */ | |
37356 | _ACEOF | |
37357 | cat confdefs.h >>conftest.$ac_ext | |
37358 | cat >>conftest.$ac_ext <<_ACEOF | |
37359 | /* end confdefs.h. */ | |
37360 | $ac_includes_default | |
37361 | #include <$ac_header> | |
37362 | _ACEOF | |
37363 | rm -f conftest.$ac_objext | |
37364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37365 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37366 | ac_status=$? |
ac1cb8d3 VS |
37367 | grep -v '^ *+' conftest.er1 >conftest.err |
37368 | rm -f conftest.er1 | |
37369 | cat conftest.err >&5 | |
a848cd7e SC |
37370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37371 | (exit $ac_status); } && | |
c9a66001 | 37372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37374 | (eval $ac_try) 2>&5 | |
37375 | ac_status=$? | |
37376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37377 | (exit $ac_status); }; } && | |
37378 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37380 | (eval $ac_try) 2>&5 | |
37381 | ac_status=$? | |
37382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37383 | (exit $ac_status); }; }; then | |
37384 | ac_header_compiler=yes | |
37385 | else | |
37386 | echo "$as_me: failed program was:" >&5 | |
37387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37388 | ||
37389 | ac_header_compiler=no | |
37390 | fi | |
ac1cb8d3 | 37391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37392 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37393 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37394 | ||
37395 | # Is the header present? | |
37396 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37397 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37398 | cat >conftest.$ac_ext <<_ACEOF | |
37399 | /* confdefs.h. */ | |
37400 | _ACEOF | |
37401 | cat confdefs.h >>conftest.$ac_ext | |
37402 | cat >>conftest.$ac_ext <<_ACEOF | |
37403 | /* end confdefs.h. */ | |
37404 | #include <$ac_header> | |
37405 | _ACEOF | |
37406 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37407 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37408 | ac_status=$? | |
37409 | grep -v '^ *+' conftest.er1 >conftest.err | |
37410 | rm -f conftest.er1 | |
37411 | cat conftest.err >&5 | |
37412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37413 | (exit $ac_status); } >/dev/null; then | |
37414 | if test -s conftest.err; then | |
5d7b7554 VZ |
37415 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
37416 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
37417 | else |
37418 | ac_cpp_err= | |
37419 | fi | |
37420 | else | |
37421 | ac_cpp_err=yes | |
37422 | fi | |
37423 | if test -z "$ac_cpp_err"; then | |
37424 | ac_header_preproc=yes | |
37425 | else | |
37426 | echo "$as_me: failed program was:" >&5 | |
37427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37428 | ||
37429 | ac_header_preproc=no | |
37430 | fi | |
37431 | rm -f conftest.err conftest.$ac_ext | |
37432 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37433 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37434 | ||
37435 | # So? What about this header? | |
5d7b7554 | 37436 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 37437 | yes:no: ) |
a848cd7e SC |
37438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37439 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37441 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37442 | ac_header_preproc=yes | |
a848cd7e | 37443 | ;; |
ac1cb8d3 | 37444 | no:yes:* ) |
a848cd7e SC |
37445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37449 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37450 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37451 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37452 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37454 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37455 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37456 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37457 | ( |
37458 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37459 | ## ----------------------------------------- ## |
37460 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37461 | ## ----------------------------------------- ## | |
a848cd7e SC |
37462 | _ASBOX |
37463 | ) | | |
37464 | sed "s/^/$as_me: WARNING: /" >&2 | |
37465 | ;; | |
37466 | esac | |
37467 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37471 | else | |
ac1cb8d3 | 37472 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37473 | fi |
37474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37476 | ||
37477 | fi | |
37478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37479 | cat >>confdefs.h <<_ACEOF | |
37480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37481 | _ACEOF | |
37482 | ||
37483 | EXTRALIBS_ESD="-lesd" | |
37484 | ||
37485 | fi | |
37486 | ||
37487 | done | |
37488 | ||
37489 | ||
37490 | fi | |
37491 | ||
37492 | ||
37493 | ||
37494 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
37495 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
37496 | cat >conftest.$ac_ext <<_ACEOF | |
37497 | /* confdefs.h. */ | |
37498 | _ACEOF | |
37499 | cat confdefs.h >>conftest.$ac_ext | |
37500 | cat >>conftest.$ac_ext <<_ACEOF | |
37501 | /* end confdefs.h. */ | |
37502 | #ifdef __linux__ | |
37503 | #include <linux/cdrom.h> | |
37504 | #else | |
37505 | /* For Solaris */ | |
37506 | #include <sys/cdio.h> | |
37507 | #endif | |
37508 | ||
37509 | int | |
37510 | main () | |
37511 | { | |
37512 | struct cdrom_tocentry entry, old_entry; | |
37513 | ; | |
37514 | return 0; | |
37515 | } | |
37516 | _ACEOF | |
37517 | rm -f conftest.$ac_objext | |
37518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37519 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37520 | ac_status=$? |
ac1cb8d3 VS |
37521 | grep -v '^ *+' conftest.er1 >conftest.err |
37522 | rm -f conftest.er1 | |
37523 | cat conftest.err >&5 | |
a848cd7e SC |
37524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37525 | (exit $ac_status); } && | |
c9a66001 | 37526 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37528 | (eval $ac_try) 2>&5 | |
37529 | ac_status=$? | |
37530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37531 | (exit $ac_status); }; } && | |
37532 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37534 | (eval $ac_try) 2>&5 | |
37535 | ac_status=$? | |
37536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37537 | (exit $ac_status); }; }; then | |
37538 | echo "$as_me:$LINENO: result: yes" >&5 | |
37539 | echo "${ECHO_T}yes" >&6 | |
37540 | cat >>confdefs.h <<\_ACEOF | |
37541 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
37542 | _ACEOF | |
37543 | ||
37544 | else | |
37545 | echo "$as_me: failed program was:" >&5 | |
37546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37547 | ||
37548 | echo "$as_me:$LINENO: result: no" >&5 | |
37549 | echo "${ECHO_T}no" >&6 | |
37550 | fi | |
ac1cb8d3 | 37551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37552 | |
37553 | ||
37554 | cat >confcache <<\_ACEOF | |
37555 | # This file is a shell script that caches the results of configure | |
37556 | # tests run on this system so they can be shared between configure | |
37557 | # scripts and configure runs, see configure's option --config-cache. | |
37558 | # It is not useful on other systems. If it contains results you don't | |
37559 | # want to keep, you may remove or edit it. | |
37560 | # | |
37561 | # config.status only pays attention to the cache file if you give it | |
37562 | # the --recheck option to rerun configure. | |
37563 | # | |
37564 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
37565 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
37566 | # following values. | |
37567 | ||
37568 | _ACEOF | |
37569 | ||
37570 | # The following way of writing the cache mishandles newlines in values, | |
37571 | # but we know of no workaround that is simple, portable, and efficient. | |
37572 | # So, don't put newlines in cache variables' values. | |
37573 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
37574 | # and sets the high bit in the cache file unless we assign to the vars. | |
37575 | { | |
37576 | (set) 2>&1 | | |
37577 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
37578 | *ac_space=\ *) | |
37579 | # `set' does not quote correctly, so add quotes (double-quote | |
37580 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
37581 | sed -n \ | |
ac1cb8d3 VS |
37582 | "s/'/'\\\\''/g; |
37583 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
37584 | ;; |
37585 | *) | |
37586 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
37587 | sed -n \ | |
ac1cb8d3 | 37588 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
37589 | ;; |
37590 | esac; | |
37591 | } | | |
37592 | sed ' | |
37593 | t clear | |
37594 | : clear | |
37595 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
37596 | t end | |
37597 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
37598 | : end' >>confcache | |
37599 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
37600 | if test -w $cache_file; then | |
37601 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
37602 | cat confcache >$cache_file | |
37603 | else | |
37604 | echo "not updating unwritable cache $cache_file" | |
37605 | fi | |
37606 | fi | |
37607 | rm -f confcache | |
37608 | ||
37609 | ||
a848cd7e SC |
37610 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
37611 | ||
37612 | ||
37613 | THREADS_LINK= | |
e56f4f9e | 37614 | THREADS_CXXFLAGS= |
a848cd7e SC |
37615 | |
37616 | if test "$wxUSE_THREADS" = "yes" ; then | |
37617 | if test "$USE_BEOS" = 1; then | |
37618 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
37619 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
37620 | wxUSE_THREADS="no" | |
37621 | fi | |
37622 | fi | |
37623 | ||
37624 | if test "$wxUSE_THREADS" = "yes" ; then | |
37625 | ||
37626 | ||
37627 | THREAD_OPTS="-pthread" | |
37628 | case "${host}" in | |
37629 | *-*-solaris2* | *-*-sunos4* ) | |
37630 | if test "x$GCC" = "xyes"; then | |
37631 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
37632 | else | |
37633 | THREAD_OPTS="-mt $THREAD_OPTS" | |
37634 | fi | |
37635 | ;; | |
37636 | *-*-freebsd*) | |
37637 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
37638 | ;; | |
37639 | *-*-darwin* | *-*-cygwin* ) | |
37640 | THREAD_OPTS="" | |
37641 | ;; | |
37642 | *-*-aix*) | |
37643 | THREAD_OPTS="pthreads" | |
37644 | ;; | |
37645 | *-hp-hpux* ) | |
00421666 MW |
37646 | if test "x$GCC" = "xyes"; then |
37647 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
37648 | THREAD_OPTS="" | |
37649 | else | |
0093c2fc | 37650 | THREAD_OPTS="-mt" |
a848cd7e SC |
37651 | fi |
37652 | ;; | |
37653 | ||
37654 | *-*-irix* ) | |
37655 | if test "x$GCC" = "xyes"; then | |
37656 | THREAD_OPTS="" | |
37657 | fi | |
37658 | ;; | |
37659 | ||
37660 | *-*-*UnixWare*) | |
37661 | if test "x$GCC" != "xyes"; then | |
37662 | THREAD_OPTS="-Ethread" | |
37663 | fi | |
37664 | ;; | |
37665 | esac | |
37666 | ||
37667 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
37668 | ||
37669 | THREADS_OK=no | |
37670 | for flag in $THREAD_OPTS; do | |
37671 | case $flag in | |
37672 | none) | |
37673 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
37674 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
37675 | ;; | |
37676 | ||
37677 | -*) | |
37678 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
37679 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
e56f4f9e | 37680 | THREADS_CXXFLAGS="$flag" |
a848cd7e SC |
37681 | ;; |
37682 | ||
37683 | *) | |
37684 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
37685 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
37686 | THREADS_LINK="-l$flag" | |
37687 | ;; | |
37688 | esac | |
37689 | ||
37690 | save_LIBS="$LIBS" | |
e56f4f9e | 37691 | save_CXXFLAGS="$CXXFLAGS" |
a848cd7e | 37692 | LIBS="$THREADS_LINK $LIBS" |
e56f4f9e | 37693 | CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS" |
a848cd7e SC |
37694 | |
37695 | cat >conftest.$ac_ext <<_ACEOF | |
37696 | /* confdefs.h. */ | |
37697 | _ACEOF | |
37698 | cat confdefs.h >>conftest.$ac_ext | |
37699 | cat >>conftest.$ac_ext <<_ACEOF | |
37700 | /* end confdefs.h. */ | |
37701 | #include <pthread.h> | |
37702 | int | |
37703 | main () | |
37704 | { | |
37705 | pthread_create(0,0,0,0); | |
37706 | ; | |
37707 | return 0; | |
37708 | } | |
37709 | _ACEOF | |
37710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37712 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37713 | ac_status=$? |
ac1cb8d3 VS |
37714 | grep -v '^ *+' conftest.er1 >conftest.err |
37715 | rm -f conftest.er1 | |
37716 | cat conftest.err >&5 | |
a848cd7e SC |
37717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37718 | (exit $ac_status); } && | |
c9a66001 | 37719 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37721 | (eval $ac_try) 2>&5 | |
37722 | ac_status=$? | |
37723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37724 | (exit $ac_status); }; } && | |
37725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37727 | (eval $ac_try) 2>&5 | |
37728 | ac_status=$? | |
37729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37730 | (exit $ac_status); }; }; then | |
37731 | THREADS_OK=yes | |
37732 | else | |
37733 | echo "$as_me: failed program was:" >&5 | |
37734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37735 | ||
37736 | fi | |
ac1cb8d3 VS |
37737 | rm -f conftest.err conftest.$ac_objext \ |
37738 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37739 | |
37740 | LIBS="$save_LIBS" | |
e56f4f9e | 37741 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
37742 | |
37743 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
37744 | echo "${ECHO_T}$THREADS_OK" >&6 | |
37745 | if test "x$THREADS_OK" = "xyes"; then | |
37746 | break; | |
37747 | fi | |
37748 | ||
37749 | THREADS_LINK="" | |
e56f4f9e | 37750 | THREADS_CXXFLAGS="" |
a848cd7e SC |
37751 | done |
37752 | ||
37753 | if test "x$THREADS_OK" != "xyes"; then | |
37754 | wxUSE_THREADS=no | |
37755 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
37756 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
37757 | else | |
e56f4f9e | 37758 | LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS" |
a848cd7e SC |
37759 | LIBS="$THREADS_LINK $LIBS" |
37760 | ||
37761 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
37762 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
37763 | flag=no | |
37764 | case "${host}" in | |
37765 | *-aix*) | |
37766 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
37767 | flag="-D_THREAD_SAFE" | |
37768 | ;; | |
37769 | *-freebsd*) | |
37770 | flag="-D_THREAD_SAFE" | |
37771 | ;; | |
37772 | *-hp-hpux* ) | |
37773 | flag="-D_REENTRANT" | |
37774 | if test "x$GCC" != "xyes"; then | |
37775 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
37776 | fi | |
37777 | ;; | |
37778 | *solaris* | alpha*-osf*) | |
37779 | flag="-D_REENTRANT" | |
37780 | ;; | |
37781 | esac | |
37782 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
37783 | echo "${ECHO_T}${flag}" >&6 | |
37784 | if test "x$flag" != xno; then | |
e56f4f9e | 37785 | THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag" |
a848cd7e SC |
37786 | fi |
37787 | ||
e56f4f9e | 37788 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS" |
a848cd7e SC |
37789 | fi |
37790 | fi | |
37791 | ||
37792 | if test "$wxUSE_THREADS" = "yes" ; then | |
37793 | ||
37794 | for ac_func in thr_setconcurrency | |
37795 | do | |
37796 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37797 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37798 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37799 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37801 | else | |
37802 | cat >conftest.$ac_ext <<_ACEOF | |
37803 | /* confdefs.h. */ | |
37804 | _ACEOF | |
37805 | cat confdefs.h >>conftest.$ac_ext | |
37806 | cat >>conftest.$ac_ext <<_ACEOF | |
37807 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37808 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37810 | #define $ac_func innocuous_$ac_func | |
37811 | ||
a848cd7e SC |
37812 | /* System header to define __stub macros and hopefully few prototypes, |
37813 | which can conflict with char $ac_func (); below. | |
37814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37815 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37816 | |
a848cd7e SC |
37817 | #ifdef __STDC__ |
37818 | # include <limits.h> | |
37819 | #else | |
37820 | # include <assert.h> | |
37821 | #endif | |
ac1cb8d3 VS |
37822 | |
37823 | #undef $ac_func | |
37824 | ||
a848cd7e SC |
37825 | /* Override any gcc2 internal prototype to avoid an error. */ |
37826 | #ifdef __cplusplus | |
37827 | extern "C" | |
37828 | { | |
37829 | #endif | |
37830 | /* We use char because int might match the return type of a gcc2 | |
37831 | builtin and then its argument prototype would still apply. */ | |
37832 | char $ac_func (); | |
37833 | /* The GNU C library defines this for functions which it implements | |
37834 | to always fail with ENOSYS. Some functions are actually named | |
37835 | something starting with __ and the normal name is an alias. */ | |
37836 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37837 | choke me | |
37838 | #else | |
37839 | char (*f) () = $ac_func; | |
37840 | #endif | |
37841 | #ifdef __cplusplus | |
37842 | } | |
37843 | #endif | |
37844 | ||
37845 | int | |
37846 | main () | |
37847 | { | |
37848 | return f != $ac_func; | |
37849 | ; | |
37850 | return 0; | |
37851 | } | |
37852 | _ACEOF | |
37853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37855 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37856 | ac_status=$? |
ac1cb8d3 VS |
37857 | grep -v '^ *+' conftest.er1 >conftest.err |
37858 | rm -f conftest.er1 | |
37859 | cat conftest.err >&5 | |
a848cd7e SC |
37860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37861 | (exit $ac_status); } && | |
c9a66001 | 37862 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37864 | (eval $ac_try) 2>&5 | |
37865 | ac_status=$? | |
37866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37867 | (exit $ac_status); }; } && | |
37868 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37870 | (eval $ac_try) 2>&5 | |
37871 | ac_status=$? | |
37872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37873 | (exit $ac_status); }; }; then | |
37874 | eval "$as_ac_var=yes" | |
37875 | else | |
37876 | echo "$as_me: failed program was:" >&5 | |
37877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37878 | ||
37879 | eval "$as_ac_var=no" | |
37880 | fi | |
ac1cb8d3 VS |
37881 | rm -f conftest.err conftest.$ac_objext \ |
37882 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37883 | fi |
37884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37885 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37886 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37887 | cat >>confdefs.h <<_ACEOF | |
37888 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37889 | _ACEOF | |
37890 | ||
37891 | fi | |
37892 | done | |
37893 | ||
37894 | ||
6ebeb4c7 VZ |
37895 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
37896 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
37897 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
37898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37899 | else | |
37900 | ||
37901 | cat >conftest.$ac_ext <<_ACEOF | |
37902 | /* confdefs.h. */ | |
37903 | _ACEOF | |
37904 | cat confdefs.h >>conftest.$ac_ext | |
37905 | cat >>conftest.$ac_ext <<_ACEOF | |
37906 | /* end confdefs.h. */ | |
37907 | #include <pthread.h> | |
37908 | void ThreadCleanupFunc(void *p); | |
37909 | ||
37910 | int | |
37911 | main () | |
37912 | { | |
37913 | ||
37914 | void *p; | |
37915 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
37916 | pthread_cleanup_pop(0); | |
37917 | ||
37918 | ; | |
37919 | return 0; | |
37920 | } | |
37921 | _ACEOF | |
37922 | rm -f conftest.$ac_objext | |
37923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37924 | (eval $ac_compile) 2>conftest.er1 | |
37925 | ac_status=$? | |
37926 | grep -v '^ *+' conftest.er1 >conftest.err | |
37927 | rm -f conftest.er1 | |
37928 | cat conftest.err >&5 | |
37929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37930 | (exit $ac_status); } && | |
c9a66001 | 37931 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
37932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37933 | (eval $ac_try) 2>&5 | |
37934 | ac_status=$? | |
37935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37936 | (exit $ac_status); }; } && | |
37937 | { ac_try='test -s conftest.$ac_objext' | |
37938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37939 | (eval $ac_try) 2>&5 | |
37940 | ac_status=$? | |
37941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37942 | (exit $ac_status); }; }; then | |
37943 | ||
37944 | wx_cv_func_pthread_cleanup=yes | |
37945 | ||
37946 | else | |
37947 | echo "$as_me: failed program was:" >&5 | |
37948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37949 | ||
37950 | ||
37951 | wx_cv_func_pthread_cleanup=no | |
37952 | ||
37953 | ||
37954 | fi | |
37955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37956 | ||
37957 | fi | |
37958 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
37959 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
37960 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
37961 | cat >>confdefs.h <<\_ACEOF | |
37962 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
37963 | _ACEOF | |
37964 | ||
37965 | fi | |
37966 | ||
a848cd7e SC |
37967 | |
37968 | for ac_header in sched.h | |
37969 | do | |
37970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37972 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37976 | fi | |
37977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37978 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37979 | else | |
37980 | # Is the header compilable? | |
37981 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37982 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37983 | cat >conftest.$ac_ext <<_ACEOF | |
37984 | /* confdefs.h. */ | |
37985 | _ACEOF | |
37986 | cat confdefs.h >>conftest.$ac_ext | |
37987 | cat >>conftest.$ac_ext <<_ACEOF | |
37988 | /* end confdefs.h. */ | |
37989 | $ac_includes_default | |
37990 | #include <$ac_header> | |
37991 | _ACEOF | |
37992 | rm -f conftest.$ac_objext | |
37993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37995 | ac_status=$? |
ac1cb8d3 VS |
37996 | grep -v '^ *+' conftest.er1 >conftest.err |
37997 | rm -f conftest.er1 | |
37998 | cat conftest.err >&5 | |
a848cd7e SC |
37999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38000 | (exit $ac_status); } && | |
c9a66001 | 38001 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38003 | (eval $ac_try) 2>&5 | |
38004 | ac_status=$? | |
38005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38006 | (exit $ac_status); }; } && | |
38007 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38009 | (eval $ac_try) 2>&5 | |
38010 | ac_status=$? | |
38011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38012 | (exit $ac_status); }; }; then | |
38013 | ac_header_compiler=yes | |
38014 | else | |
38015 | echo "$as_me: failed program was:" >&5 | |
38016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38017 | ||
38018 | ac_header_compiler=no | |
38019 | fi | |
ac1cb8d3 | 38020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38021 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38022 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38023 | ||
38024 | # Is the header present? | |
38025 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38026 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38027 | cat >conftest.$ac_ext <<_ACEOF | |
38028 | /* confdefs.h. */ | |
38029 | _ACEOF | |
38030 | cat confdefs.h >>conftest.$ac_ext | |
38031 | cat >>conftest.$ac_ext <<_ACEOF | |
38032 | /* end confdefs.h. */ | |
38033 | #include <$ac_header> | |
38034 | _ACEOF | |
38035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38037 | ac_status=$? | |
38038 | grep -v '^ *+' conftest.er1 >conftest.err | |
38039 | rm -f conftest.er1 | |
38040 | cat conftest.err >&5 | |
38041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38042 | (exit $ac_status); } >/dev/null; then | |
38043 | if test -s conftest.err; then | |
5d7b7554 VZ |
38044 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
38045 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
38046 | else |
38047 | ac_cpp_err= | |
38048 | fi | |
38049 | else | |
38050 | ac_cpp_err=yes | |
38051 | fi | |
38052 | if test -z "$ac_cpp_err"; then | |
38053 | ac_header_preproc=yes | |
38054 | else | |
38055 | echo "$as_me: failed program was:" >&5 | |
38056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38057 | ||
38058 | ac_header_preproc=no | |
38059 | fi | |
38060 | rm -f conftest.err conftest.$ac_ext | |
38061 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38062 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38063 | ||
38064 | # So? What about this header? | |
5d7b7554 | 38065 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 38066 | yes:no: ) |
a848cd7e SC |
38067 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38068 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38069 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38070 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38071 | ac_header_preproc=yes | |
a848cd7e | 38072 | ;; |
ac1cb8d3 | 38073 | no:yes:* ) |
a848cd7e SC |
38074 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38075 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38076 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38077 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38078 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38079 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38080 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38081 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38082 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38083 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38084 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38085 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38086 | ( |
38087 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38088 | ## ----------------------------------------- ## |
38089 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38090 | ## ----------------------------------------- ## | |
a848cd7e SC |
38091 | _ASBOX |
38092 | ) | | |
38093 | sed "s/^/$as_me: WARNING: /" >&2 | |
38094 | ;; | |
38095 | esac | |
38096 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38100 | else | |
ac1cb8d3 | 38101 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38102 | fi |
38103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38104 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38105 | ||
38106 | fi | |
38107 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38108 | cat >>confdefs.h <<_ACEOF | |
38109 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38110 | _ACEOF | |
38111 | ||
38112 | fi | |
38113 | ||
38114 | done | |
38115 | ||
38116 | if test "$ac_cv_header_sched_h" = "yes"; then | |
38117 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
38118 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
38119 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
38120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38121 | else | |
38122 | cat >conftest.$ac_ext <<_ACEOF | |
38123 | /* confdefs.h. */ | |
38124 | _ACEOF | |
38125 | cat confdefs.h >>conftest.$ac_ext | |
38126 | cat >>conftest.$ac_ext <<_ACEOF | |
38127 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38128 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
38129 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38130 | #define sched_yield innocuous_sched_yield | |
38131 | ||
a848cd7e SC |
38132 | /* System header to define __stub macros and hopefully few prototypes, |
38133 | which can conflict with char sched_yield (); below. | |
38134 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38135 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38136 | |
a848cd7e SC |
38137 | #ifdef __STDC__ |
38138 | # include <limits.h> | |
38139 | #else | |
38140 | # include <assert.h> | |
38141 | #endif | |
ac1cb8d3 VS |
38142 | |
38143 | #undef sched_yield | |
38144 | ||
a848cd7e SC |
38145 | /* Override any gcc2 internal prototype to avoid an error. */ |
38146 | #ifdef __cplusplus | |
38147 | extern "C" | |
38148 | { | |
38149 | #endif | |
38150 | /* We use char because int might match the return type of a gcc2 | |
38151 | builtin and then its argument prototype would still apply. */ | |
38152 | char sched_yield (); | |
38153 | /* The GNU C library defines this for functions which it implements | |
38154 | to always fail with ENOSYS. Some functions are actually named | |
38155 | something starting with __ and the normal name is an alias. */ | |
38156 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
38157 | choke me | |
38158 | #else | |
38159 | char (*f) () = sched_yield; | |
38160 | #endif | |
38161 | #ifdef __cplusplus | |
38162 | } | |
38163 | #endif | |
38164 | ||
38165 | int | |
38166 | main () | |
38167 | { | |
38168 | return f != sched_yield; | |
38169 | ; | |
38170 | return 0; | |
38171 | } | |
38172 | _ACEOF | |
38173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38175 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38176 | ac_status=$? |
ac1cb8d3 VS |
38177 | grep -v '^ *+' conftest.er1 >conftest.err |
38178 | rm -f conftest.er1 | |
38179 | cat conftest.err >&5 | |
a848cd7e SC |
38180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38181 | (exit $ac_status); } && | |
c9a66001 | 38182 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38184 | (eval $ac_try) 2>&5 | |
38185 | ac_status=$? | |
38186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38187 | (exit $ac_status); }; } && | |
38188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38190 | (eval $ac_try) 2>&5 | |
38191 | ac_status=$? | |
38192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38193 | (exit $ac_status); }; }; then | |
38194 | ac_cv_func_sched_yield=yes | |
38195 | else | |
38196 | echo "$as_me: failed program was:" >&5 | |
38197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38198 | ||
38199 | ac_cv_func_sched_yield=no | |
38200 | fi | |
ac1cb8d3 VS |
38201 | rm -f conftest.err conftest.$ac_objext \ |
38202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38203 | fi |
38204 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
38205 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
38206 | if test $ac_cv_func_sched_yield = yes; then | |
38207 | cat >>confdefs.h <<\_ACEOF | |
38208 | #define HAVE_SCHED_YIELD 1 | |
38209 | _ACEOF | |
38210 | ||
38211 | else | |
38212 | ||
38213 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
38214 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
38215 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
38216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38217 | else | |
38218 | ac_check_lib_save_LIBS=$LIBS | |
38219 | LIBS="-lposix4 $LIBS" | |
38220 | cat >conftest.$ac_ext <<_ACEOF | |
38221 | /* confdefs.h. */ | |
38222 | _ACEOF | |
38223 | cat confdefs.h >>conftest.$ac_ext | |
38224 | cat >>conftest.$ac_ext <<_ACEOF | |
38225 | /* end confdefs.h. */ | |
38226 | ||
38227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38228 | #ifdef __cplusplus | |
38229 | extern "C" | |
38230 | #endif | |
38231 | /* We use char because int might match the return type of a gcc2 | |
38232 | builtin and then its argument prototype would still apply. */ | |
38233 | char sched_yield (); | |
38234 | int | |
38235 | main () | |
38236 | { | |
38237 | sched_yield (); | |
38238 | ; | |
38239 | return 0; | |
38240 | } | |
38241 | _ACEOF | |
38242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38244 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38245 | ac_status=$? |
ac1cb8d3 VS |
38246 | grep -v '^ *+' conftest.er1 >conftest.err |
38247 | rm -f conftest.er1 | |
38248 | cat conftest.err >&5 | |
a848cd7e SC |
38249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38250 | (exit $ac_status); } && | |
c9a66001 | 38251 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38253 | (eval $ac_try) 2>&5 | |
38254 | ac_status=$? | |
38255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38256 | (exit $ac_status); }; } && | |
38257 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38259 | (eval $ac_try) 2>&5 | |
38260 | ac_status=$? | |
38261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38262 | (exit $ac_status); }; }; then | |
38263 | ac_cv_lib_posix4_sched_yield=yes | |
38264 | else | |
38265 | echo "$as_me: failed program was:" >&5 | |
38266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38267 | ||
38268 | ac_cv_lib_posix4_sched_yield=no | |
38269 | fi | |
ac1cb8d3 VS |
38270 | rm -f conftest.err conftest.$ac_objext \ |
38271 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38272 | LIBS=$ac_check_lib_save_LIBS |
38273 | fi | |
38274 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
38275 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
38276 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
38277 | cat >>confdefs.h <<\_ACEOF | |
38278 | #define HAVE_SCHED_YIELD 1 | |
38279 | _ACEOF | |
38280 | POSIX4_LINK=" -lposix4" | |
38281 | else | |
38282 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
38283 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
38284 | ||
38285 | fi | |
38286 | ||
38287 | ||
38288 | ||
38289 | fi | |
38290 | ||
38291 | fi | |
38292 | ||
38293 | HAVE_PRIOR_FUNCS=0 | |
38294 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
38295 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
38296 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
38297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38298 | else | |
38299 | cat >conftest.$ac_ext <<_ACEOF | |
38300 | /* confdefs.h. */ | |
38301 | _ACEOF | |
38302 | cat confdefs.h >>conftest.$ac_ext | |
38303 | cat >>conftest.$ac_ext <<_ACEOF | |
38304 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38305 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
38306 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38307 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
38308 | ||
a848cd7e SC |
38309 | /* System header to define __stub macros and hopefully few prototypes, |
38310 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
38311 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38312 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38313 | |
a848cd7e SC |
38314 | #ifdef __STDC__ |
38315 | # include <limits.h> | |
38316 | #else | |
38317 | # include <assert.h> | |
38318 | #endif | |
ac1cb8d3 VS |
38319 | |
38320 | #undef pthread_attr_getschedpolicy | |
38321 | ||
a848cd7e SC |
38322 | /* Override any gcc2 internal prototype to avoid an error. */ |
38323 | #ifdef __cplusplus | |
38324 | extern "C" | |
38325 | { | |
38326 | #endif | |
38327 | /* We use char because int might match the return type of a gcc2 | |
38328 | builtin and then its argument prototype would still apply. */ | |
38329 | char pthread_attr_getschedpolicy (); | |
38330 | /* The GNU C library defines this for functions which it implements | |
38331 | to always fail with ENOSYS. Some functions are actually named | |
38332 | something starting with __ and the normal name is an alias. */ | |
38333 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
38334 | choke me | |
38335 | #else | |
38336 | char (*f) () = pthread_attr_getschedpolicy; | |
38337 | #endif | |
38338 | #ifdef __cplusplus | |
38339 | } | |
38340 | #endif | |
38341 | ||
38342 | int | |
38343 | main () | |
38344 | { | |
38345 | return f != pthread_attr_getschedpolicy; | |
38346 | ; | |
38347 | return 0; | |
38348 | } | |
38349 | _ACEOF | |
38350 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38352 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38353 | ac_status=$? |
ac1cb8d3 VS |
38354 | grep -v '^ *+' conftest.er1 >conftest.err |
38355 | rm -f conftest.er1 | |
38356 | cat conftest.err >&5 | |
a848cd7e SC |
38357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38358 | (exit $ac_status); } && | |
c9a66001 | 38359 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38361 | (eval $ac_try) 2>&5 | |
38362 | ac_status=$? | |
38363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38364 | (exit $ac_status); }; } && | |
38365 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38367 | (eval $ac_try) 2>&5 | |
38368 | ac_status=$? | |
38369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38370 | (exit $ac_status); }; }; then | |
38371 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
38372 | else | |
38373 | echo "$as_me: failed program was:" >&5 | |
38374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38375 | ||
38376 | ac_cv_func_pthread_attr_getschedpolicy=no | |
38377 | fi | |
ac1cb8d3 VS |
38378 | rm -f conftest.err conftest.$ac_objext \ |
38379 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38380 | fi |
38381 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
38382 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
38383 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
38384 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
38385 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
38386 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
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. */ | |
ac1cb8d3 VS |
38395 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
38396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38397 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
38398 | ||
a848cd7e SC |
38399 | /* System header to define __stub macros and hopefully few prototypes, |
38400 | which can conflict with char pthread_attr_setschedparam (); below. | |
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 VS |
38409 | |
38410 | #undef pthread_attr_setschedparam | |
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. */ | |
38419 | char pthread_attr_setschedparam (); | |
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. */ | |
38423 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
38424 | choke me | |
38425 | #else | |
38426 | char (*f) () = pthread_attr_setschedparam; | |
38427 | #endif | |
38428 | #ifdef __cplusplus | |
38429 | } | |
38430 | #endif | |
38431 | ||
38432 | int | |
38433 | main () | |
38434 | { | |
38435 | return f != pthread_attr_setschedparam; | |
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 | |
ac1cb8d3 | 38442 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38443 | ac_status=$? |
ac1cb8d3 VS |
38444 | grep -v '^ *+' conftest.er1 >conftest.err |
38445 | rm -f conftest.er1 | |
38446 | cat conftest.err >&5 | |
a848cd7e SC |
38447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38448 | (exit $ac_status); } && | |
c9a66001 | 38449 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38451 | (eval $ac_try) 2>&5 | |
38452 | ac_status=$? | |
38453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38454 | (exit $ac_status); }; } && | |
38455 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38457 | (eval $ac_try) 2>&5 | |
38458 | ac_status=$? | |
38459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38460 | (exit $ac_status); }; }; then | |
38461 | ac_cv_func_pthread_attr_setschedparam=yes | |
38462 | else | |
38463 | echo "$as_me: failed program was:" >&5 | |
38464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38465 | ||
38466 | ac_cv_func_pthread_attr_setschedparam=no | |
38467 | fi | |
ac1cb8d3 VS |
38468 | rm -f conftest.err conftest.$ac_objext \ |
38469 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38470 | fi |
38471 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
38472 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
38473 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
38474 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
38475 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
38476 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
38477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38478 | else | |
38479 | cat >conftest.$ac_ext <<_ACEOF | |
38480 | /* confdefs.h. */ | |
38481 | _ACEOF | |
38482 | cat confdefs.h >>conftest.$ac_ext | |
38483 | cat >>conftest.$ac_ext <<_ACEOF | |
38484 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38485 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
38486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38487 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
38488 | ||
a848cd7e SC |
38489 | /* System header to define __stub macros and hopefully few prototypes, |
38490 | which can conflict with char sched_get_priority_max (); below. | |
38491 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38492 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38493 | |
a848cd7e SC |
38494 | #ifdef __STDC__ |
38495 | # include <limits.h> | |
38496 | #else | |
38497 | # include <assert.h> | |
38498 | #endif | |
ac1cb8d3 VS |
38499 | |
38500 | #undef sched_get_priority_max | |
38501 | ||
a848cd7e SC |
38502 | /* Override any gcc2 internal prototype to avoid an error. */ |
38503 | #ifdef __cplusplus | |
38504 | extern "C" | |
38505 | { | |
38506 | #endif | |
38507 | /* We use char because int might match the return type of a gcc2 | |
38508 | builtin and then its argument prototype would still apply. */ | |
38509 | char sched_get_priority_max (); | |
38510 | /* The GNU C library defines this for functions which it implements | |
38511 | to always fail with ENOSYS. Some functions are actually named | |
38512 | something starting with __ and the normal name is an alias. */ | |
38513 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
38514 | choke me | |
38515 | #else | |
38516 | char (*f) () = sched_get_priority_max; | |
38517 | #endif | |
38518 | #ifdef __cplusplus | |
38519 | } | |
38520 | #endif | |
38521 | ||
38522 | int | |
38523 | main () | |
38524 | { | |
38525 | return f != sched_get_priority_max; | |
38526 | ; | |
38527 | return 0; | |
38528 | } | |
38529 | _ACEOF | |
38530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38532 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38533 | ac_status=$? |
ac1cb8d3 VS |
38534 | grep -v '^ *+' conftest.er1 >conftest.err |
38535 | rm -f conftest.er1 | |
38536 | cat conftest.err >&5 | |
a848cd7e SC |
38537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38538 | (exit $ac_status); } && | |
c9a66001 | 38539 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38541 | (eval $ac_try) 2>&5 | |
38542 | ac_status=$? | |
38543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38544 | (exit $ac_status); }; } && | |
38545 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38547 | (eval $ac_try) 2>&5 | |
38548 | ac_status=$? | |
38549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38550 | (exit $ac_status); }; }; then | |
38551 | ac_cv_func_sched_get_priority_max=yes | |
38552 | else | |
38553 | echo "$as_me: failed program was:" >&5 | |
38554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38555 | ||
38556 | ac_cv_func_sched_get_priority_max=no | |
38557 | fi | |
ac1cb8d3 VS |
38558 | rm -f conftest.err conftest.$ac_objext \ |
38559 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38560 | fi |
38561 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
38562 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
38563 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
38564 | HAVE_PRIOR_FUNCS=1 | |
38565 | else | |
38566 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
38567 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
38568 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
38569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38570 | else | |
38571 | ac_check_lib_save_LIBS=$LIBS | |
38572 | LIBS="-lposix4 $LIBS" | |
38573 | cat >conftest.$ac_ext <<_ACEOF | |
38574 | /* confdefs.h. */ | |
38575 | _ACEOF | |
38576 | cat confdefs.h >>conftest.$ac_ext | |
38577 | cat >>conftest.$ac_ext <<_ACEOF | |
38578 | /* end confdefs.h. */ | |
38579 | ||
38580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38581 | #ifdef __cplusplus | |
38582 | extern "C" | |
38583 | #endif | |
38584 | /* We use char because int might match the return type of a gcc2 | |
38585 | builtin and then its argument prototype would still apply. */ | |
38586 | char sched_get_priority_max (); | |
38587 | int | |
38588 | main () | |
38589 | { | |
38590 | sched_get_priority_max (); | |
38591 | ; | |
38592 | return 0; | |
38593 | } | |
38594 | _ACEOF | |
38595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38597 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38598 | ac_status=$? |
ac1cb8d3 VS |
38599 | grep -v '^ *+' conftest.er1 >conftest.err |
38600 | rm -f conftest.er1 | |
38601 | cat conftest.err >&5 | |
a848cd7e SC |
38602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38603 | (exit $ac_status); } && | |
c9a66001 | 38604 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38606 | (eval $ac_try) 2>&5 | |
38607 | ac_status=$? | |
38608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38609 | (exit $ac_status); }; } && | |
38610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38612 | (eval $ac_try) 2>&5 | |
38613 | ac_status=$? | |
38614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38615 | (exit $ac_status); }; }; then | |
38616 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
38617 | else | |
38618 | echo "$as_me: failed program was:" >&5 | |
38619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38620 | ||
38621 | ac_cv_lib_posix4_sched_get_priority_max=no | |
38622 | fi | |
ac1cb8d3 VS |
38623 | rm -f conftest.err conftest.$ac_objext \ |
38624 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38625 | LIBS=$ac_check_lib_save_LIBS |
38626 | fi | |
38627 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
38628 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
38629 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
38630 | ||
38631 | HAVE_PRIOR_FUNCS=1 | |
38632 | POSIX4_LINK=" -lposix4" | |
38633 | ||
38634 | fi | |
38635 | ||
38636 | ||
38637 | fi | |
38638 | ||
38639 | ||
38640 | fi | |
38641 | ||
38642 | ||
38643 | fi | |
38644 | ||
38645 | ||
38646 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
38647 | cat >>confdefs.h <<\_ACEOF | |
38648 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
38649 | _ACEOF | |
38650 | ||
38651 | else | |
38652 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
38653 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
38654 | fi | |
38655 | ||
38656 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
38657 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
38658 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
38659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38660 | else | |
38661 | cat >conftest.$ac_ext <<_ACEOF | |
38662 | /* confdefs.h. */ | |
38663 | _ACEOF | |
38664 | cat confdefs.h >>conftest.$ac_ext | |
38665 | cat >>conftest.$ac_ext <<_ACEOF | |
38666 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38667 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
38668 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38669 | #define pthread_cancel innocuous_pthread_cancel | |
38670 | ||
a848cd7e SC |
38671 | /* System header to define __stub macros and hopefully few prototypes, |
38672 | which can conflict with char pthread_cancel (); below. | |
38673 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38674 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38675 | |
a848cd7e SC |
38676 | #ifdef __STDC__ |
38677 | # include <limits.h> | |
38678 | #else | |
38679 | # include <assert.h> | |
38680 | #endif | |
ac1cb8d3 VS |
38681 | |
38682 | #undef pthread_cancel | |
38683 | ||
a848cd7e SC |
38684 | /* Override any gcc2 internal prototype to avoid an error. */ |
38685 | #ifdef __cplusplus | |
38686 | extern "C" | |
38687 | { | |
38688 | #endif | |
38689 | /* We use char because int might match the return type of a gcc2 | |
38690 | builtin and then its argument prototype would still apply. */ | |
38691 | char pthread_cancel (); | |
38692 | /* The GNU C library defines this for functions which it implements | |
38693 | to always fail with ENOSYS. Some functions are actually named | |
38694 | something starting with __ and the normal name is an alias. */ | |
38695 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
38696 | choke me | |
38697 | #else | |
38698 | char (*f) () = pthread_cancel; | |
38699 | #endif | |
38700 | #ifdef __cplusplus | |
38701 | } | |
38702 | #endif | |
38703 | ||
38704 | int | |
38705 | main () | |
38706 | { | |
38707 | return f != pthread_cancel; | |
38708 | ; | |
38709 | return 0; | |
38710 | } | |
38711 | _ACEOF | |
38712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38714 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38715 | ac_status=$? |
ac1cb8d3 VS |
38716 | grep -v '^ *+' conftest.er1 >conftest.err |
38717 | rm -f conftest.er1 | |
38718 | cat conftest.err >&5 | |
a848cd7e SC |
38719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38720 | (exit $ac_status); } && | |
c9a66001 | 38721 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38723 | (eval $ac_try) 2>&5 | |
38724 | ac_status=$? | |
38725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38726 | (exit $ac_status); }; } && | |
38727 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38729 | (eval $ac_try) 2>&5 | |
38730 | ac_status=$? | |
38731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38732 | (exit $ac_status); }; }; then | |
38733 | ac_cv_func_pthread_cancel=yes | |
38734 | else | |
38735 | echo "$as_me: failed program was:" >&5 | |
38736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38737 | ||
38738 | ac_cv_func_pthread_cancel=no | |
38739 | fi | |
ac1cb8d3 VS |
38740 | rm -f conftest.err conftest.$ac_objext \ |
38741 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38742 | fi |
38743 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
38744 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
38745 | if test $ac_cv_func_pthread_cancel = yes; then | |
38746 | cat >>confdefs.h <<\_ACEOF | |
38747 | #define HAVE_PTHREAD_CANCEL 1 | |
38748 | _ACEOF | |
38749 | ||
38750 | else | |
38751 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
38752 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
38753 | fi | |
38754 | ||
38755 | ||
abc736fd MW |
38756 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
38757 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
38758 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
38759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38760 | else | |
38761 | cat >conftest.$ac_ext <<_ACEOF | |
38762 | /* confdefs.h. */ | |
38763 | _ACEOF | |
38764 | cat confdefs.h >>conftest.$ac_ext | |
38765 | cat >>conftest.$ac_ext <<_ACEOF | |
38766 | /* end confdefs.h. */ | |
38767 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
38768 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38769 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
38770 | ||
38771 | /* System header to define __stub macros and hopefully few prototypes, | |
38772 | which can conflict with char pthread_attr_setstacksize (); below. | |
38773 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38774 | <limits.h> exists even on freestanding compilers. */ | |
38775 | ||
38776 | #ifdef __STDC__ | |
38777 | # include <limits.h> | |
38778 | #else | |
38779 | # include <assert.h> | |
38780 | #endif | |
38781 | ||
38782 | #undef pthread_attr_setstacksize | |
38783 | ||
38784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38785 | #ifdef __cplusplus | |
38786 | extern "C" | |
38787 | { | |
38788 | #endif | |
38789 | /* We use char because int might match the return type of a gcc2 | |
38790 | builtin and then its argument prototype would still apply. */ | |
38791 | char pthread_attr_setstacksize (); | |
38792 | /* The GNU C library defines this for functions which it implements | |
38793 | to always fail with ENOSYS. Some functions are actually named | |
38794 | something starting with __ and the normal name is an alias. */ | |
38795 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
38796 | choke me | |
38797 | #else | |
38798 | char (*f) () = pthread_attr_setstacksize; | |
38799 | #endif | |
38800 | #ifdef __cplusplus | |
38801 | } | |
38802 | #endif | |
38803 | ||
38804 | int | |
38805 | main () | |
38806 | { | |
38807 | return f != pthread_attr_setstacksize; | |
38808 | ; | |
38809 | return 0; | |
38810 | } | |
38811 | _ACEOF | |
38812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38814 | (eval $ac_link) 2>conftest.er1 | |
38815 | ac_status=$? | |
38816 | grep -v '^ *+' conftest.er1 >conftest.err | |
38817 | rm -f conftest.er1 | |
38818 | cat conftest.err >&5 | |
38819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38820 | (exit $ac_status); } && | |
c9a66001 | 38821 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
38822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38823 | (eval $ac_try) 2>&5 | |
38824 | ac_status=$? | |
38825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38826 | (exit $ac_status); }; } && | |
38827 | { ac_try='test -s conftest$ac_exeext' | |
38828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38829 | (eval $ac_try) 2>&5 | |
38830 | ac_status=$? | |
38831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38832 | (exit $ac_status); }; }; then | |
38833 | ac_cv_func_pthread_attr_setstacksize=yes | |
38834 | else | |
38835 | echo "$as_me: failed program was:" >&5 | |
38836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38837 | ||
38838 | ac_cv_func_pthread_attr_setstacksize=no | |
38839 | fi | |
38840 | rm -f conftest.err conftest.$ac_objext \ | |
38841 | conftest$ac_exeext conftest.$ac_ext | |
38842 | fi | |
38843 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
38844 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
38845 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
38846 | cat >>confdefs.h <<\_ACEOF | |
38847 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
38848 | _ACEOF | |
38849 | ||
38850 | fi | |
38851 | ||
a848cd7e SC |
38852 | |
38853 | ||
38854 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
38855 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
38856 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
38857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38858 | else | |
38859 | ||
38860 | cat >conftest.$ac_ext <<_ACEOF | |
38861 | /* confdefs.h. */ | |
38862 | _ACEOF | |
38863 | cat confdefs.h >>conftest.$ac_ext | |
38864 | cat >>conftest.$ac_ext <<_ACEOF | |
38865 | /* end confdefs.h. */ | |
38866 | #include <pthread.h> | |
38867 | int | |
38868 | main () | |
38869 | { | |
38870 | ||
38871 | pthread_mutexattr_t attr; | |
38872 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38873 | ||
38874 | ; | |
38875 | return 0; | |
38876 | } | |
38877 | _ACEOF | |
38878 | rm -f conftest.$ac_objext | |
38879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38880 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38881 | ac_status=$? |
ac1cb8d3 VS |
38882 | grep -v '^ *+' conftest.er1 >conftest.err |
38883 | rm -f conftest.er1 | |
38884 | cat conftest.err >&5 | |
a848cd7e SC |
38885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38886 | (exit $ac_status); } && | |
c9a66001 | 38887 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38889 | (eval $ac_try) 2>&5 | |
38890 | ac_status=$? | |
38891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38892 | (exit $ac_status); }; } && | |
38893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38895 | (eval $ac_try) 2>&5 | |
38896 | ac_status=$? | |
38897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38898 | (exit $ac_status); }; }; then | |
123dca7d | 38899 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
38900 | else |
38901 | echo "$as_me: failed program was:" >&5 | |
38902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38903 | ||
123dca7d | 38904 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
38905 | |
38906 | fi | |
ac1cb8d3 | 38907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38908 | |
38909 | fi | |
38910 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
38911 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
38912 | ||
38913 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
38914 | cat >>confdefs.h <<\_ACEOF | |
38915 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
38916 | _ACEOF | |
38917 | ||
123dca7d VZ |
38918 | |
38919 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
38920 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
38921 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
38922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38923 | else | |
38924 | ||
38925 | cat >conftest.$ac_ext <<_ACEOF | |
38926 | /* confdefs.h. */ | |
38927 | _ACEOF | |
38928 | cat confdefs.h >>conftest.$ac_ext | |
38929 | cat >>conftest.$ac_ext <<_ACEOF | |
38930 | /* end confdefs.h. */ | |
38931 | #include <pthread.h> | |
38932 | int | |
38933 | main () | |
38934 | { | |
38935 | ||
38936 | pthread_mutexattr_t attr; | |
38937 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38938 | ||
38939 | ; | |
38940 | return 0; | |
38941 | } | |
38942 | _ACEOF | |
38943 | rm -f conftest.$ac_objext | |
38944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38945 | (eval $ac_compile) 2>conftest.er1 | |
38946 | ac_status=$? | |
38947 | grep -v '^ *+' conftest.er1 >conftest.err | |
38948 | rm -f conftest.er1 | |
38949 | cat conftest.err >&5 | |
38950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38951 | (exit $ac_status); } && | |
c9a66001 | 38952 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
123dca7d VZ |
38953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38954 | (eval $ac_try) 2>&5 | |
38955 | ac_status=$? | |
38956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38957 | (exit $ac_status); }; } && | |
38958 | { ac_try='test -s conftest.$ac_objext' | |
38959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38960 | (eval $ac_try) 2>&5 | |
38961 | ac_status=$? | |
38962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38963 | (exit $ac_status); }; }; then | |
38964 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
38965 | else | |
38966 | echo "$as_me: failed program was:" >&5 | |
38967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38968 | ||
38969 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
38970 | ||
38971 | fi | |
38972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38973 | ||
38974 | fi | |
38975 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
38976 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
38977 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
38978 | cat >>confdefs.h <<\_ACEOF | |
38979 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
38980 | _ACEOF | |
38981 | ||
38982 | fi | |
a848cd7e SC |
38983 | else |
38984 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
38985 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
38986 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
38987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38988 | else | |
38989 | ||
38990 | cat >conftest.$ac_ext <<_ACEOF | |
38991 | /* confdefs.h. */ | |
38992 | _ACEOF | |
38993 | cat confdefs.h >>conftest.$ac_ext | |
38994 | cat >>conftest.$ac_ext <<_ACEOF | |
38995 | /* end confdefs.h. */ | |
38996 | #include <pthread.h> | |
38997 | int | |
38998 | main () | |
38999 | { | |
39000 | ||
39001 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
39002 | ||
39003 | ; | |
39004 | return 0; | |
39005 | } | |
39006 | _ACEOF | |
39007 | rm -f conftest.$ac_objext | |
39008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39009 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39010 | ac_status=$? |
ac1cb8d3 VS |
39011 | grep -v '^ *+' conftest.er1 >conftest.err |
39012 | rm -f conftest.er1 | |
39013 | cat conftest.err >&5 | |
a848cd7e SC |
39014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39015 | (exit $ac_status); } && | |
c9a66001 | 39016 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39018 | (eval $ac_try) 2>&5 | |
39019 | ac_status=$? | |
39020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39021 | (exit $ac_status); }; } && | |
39022 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39024 | (eval $ac_try) 2>&5 | |
39025 | ac_status=$? | |
39026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39027 | (exit $ac_status); }; }; then | |
39028 | ||
39029 | wx_cv_type_pthread_rec_mutex_init=yes | |
39030 | ||
39031 | else | |
39032 | echo "$as_me: failed program was:" >&5 | |
39033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39034 | ||
39035 | ||
39036 | wx_cv_type_pthread_rec_mutex_init=no | |
39037 | ||
39038 | ||
39039 | fi | |
ac1cb8d3 | 39040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39041 | |
39042 | fi | |
39043 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
39044 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
39045 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
39046 | cat >>confdefs.h <<\_ACEOF | |
39047 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
39048 | _ACEOF | |
39049 | ||
39050 | else | |
39051 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
39052 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
39053 | fi | |
39054 | fi | |
39055 | fi | |
39056 | ||
39057 | else | |
39058 | if test "$wxUSE_THREADS" = "yes" ; then | |
39059 | case "${host}" in | |
39060 | *-*-mingw32* ) | |
39061 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
39062 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
39063 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
39064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39065 | else | |
39066 | ||
e56f4f9e VZ |
39067 | CXXFLAGS_OLD="$CXXFLAGS" |
39068 | CXXFLAGS="-mthreads $CXXFLAGS" | |
a848cd7e SC |
39069 | cat >conftest.$ac_ext <<_ACEOF |
39070 | /* confdefs.h. */ | |
39071 | _ACEOF | |
39072 | cat confdefs.h >>conftest.$ac_ext | |
39073 | cat >>conftest.$ac_ext <<_ACEOF | |
39074 | /* end confdefs.h. */ | |
39075 | ||
39076 | int | |
39077 | main () | |
39078 | { | |
39079 | ||
39080 | ; | |
39081 | return 0; | |
39082 | } | |
39083 | _ACEOF | |
39084 | rm -f conftest.$ac_objext | |
39085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39087 | ac_status=$? |
ac1cb8d3 VS |
39088 | grep -v '^ *+' conftest.er1 >conftest.err |
39089 | rm -f conftest.er1 | |
39090 | cat conftest.err >&5 | |
a848cd7e SC |
39091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39092 | (exit $ac_status); } && | |
c9a66001 | 39093 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39095 | (eval $ac_try) 2>&5 | |
39096 | ac_status=$? | |
39097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39098 | (exit $ac_status); }; } && | |
39099 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39101 | (eval $ac_try) 2>&5 | |
39102 | ac_status=$? | |
39103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39104 | (exit $ac_status); }; }; then | |
39105 | wx_cv_cflags_mthread=yes | |
39106 | else | |
39107 | echo "$as_me: failed program was:" >&5 | |
39108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39109 | ||
39110 | wx_cv_cflags_mthread=no | |
39111 | ||
39112 | fi | |
ac1cb8d3 | 39113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39114 | |
39115 | ||
39116 | fi | |
39117 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
39118 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
39119 | ||
39120 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
e56f4f9e | 39121 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads" |
a848cd7e SC |
39122 | LDFLAGS="$LDFLAGS -mthreads" |
39123 | else | |
e56f4f9e | 39124 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
39125 | fi |
39126 | ;; | |
39127 | *-pc-os2*emx ) | |
5ff751d6 VZ |
39128 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
39129 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
39130 | LDFLAGS="$LDFLAGS -Zmt" |
39131 | ;; | |
39132 | esac | |
39133 | fi | |
39134 | fi | |
39135 | ||
004ee6da RL |
39136 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
39137 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
39138 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
39139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39140 | else | |
39141 | cat >conftest.$ac_ext <<_ACEOF | |
39142 | /* confdefs.h. */ | |
39143 | _ACEOF | |
39144 | cat confdefs.h >>conftest.$ac_ext | |
39145 | cat >>conftest.$ac_ext <<_ACEOF | |
39146 | /* end confdefs.h. */ | |
004ee6da | 39147 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 39148 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 39149 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 39150 | |
a848cd7e | 39151 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 39152 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
39153 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
39154 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39155 | |
a848cd7e SC |
39156 | #ifdef __STDC__ |
39157 | # include <limits.h> | |
39158 | #else | |
39159 | # include <assert.h> | |
39160 | #endif | |
ac1cb8d3 | 39161 | |
004ee6da | 39162 | #undef localtime_r |
ac1cb8d3 | 39163 | |
a848cd7e SC |
39164 | /* Override any gcc2 internal prototype to avoid an error. */ |
39165 | #ifdef __cplusplus | |
39166 | extern "C" | |
39167 | { | |
39168 | #endif | |
39169 | /* We use char because int might match the return type of a gcc2 | |
39170 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 39171 | char localtime_r (); |
a848cd7e SC |
39172 | /* The GNU C library defines this for functions which it implements |
39173 | to always fail with ENOSYS. Some functions are actually named | |
39174 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 39175 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
39176 | choke me |
39177 | #else | |
004ee6da | 39178 | char (*f) () = localtime_r; |
a848cd7e SC |
39179 | #endif |
39180 | #ifdef __cplusplus | |
39181 | } | |
39182 | #endif | |
39183 | ||
39184 | int | |
39185 | main () | |
39186 | { | |
004ee6da RL |
39187 | return f != localtime_r; |
39188 | ; | |
39189 | return 0; | |
39190 | } | |
39191 | _ACEOF | |
39192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39194 | (eval $ac_link) 2>conftest.er1 | |
39195 | ac_status=$? | |
39196 | grep -v '^ *+' conftest.er1 >conftest.err | |
39197 | rm -f conftest.er1 | |
39198 | cat conftest.err >&5 | |
39199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39200 | (exit $ac_status); } && | |
c9a66001 | 39201 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39203 | (eval $ac_try) 2>&5 | |
39204 | ac_status=$? | |
39205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39206 | (exit $ac_status); }; } && | |
39207 | { ac_try='test -s conftest$ac_exeext' | |
39208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39209 | (eval $ac_try) 2>&5 | |
39210 | ac_status=$? | |
39211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39212 | (exit $ac_status); }; }; then | |
39213 | ac_cv_func_localtime_r=yes | |
39214 | else | |
39215 | echo "$as_me: failed program was:" >&5 | |
39216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39217 | ||
39218 | ac_cv_func_localtime_r=no | |
39219 | fi | |
39220 | rm -f conftest.err conftest.$ac_objext \ | |
39221 | conftest$ac_exeext conftest.$ac_ext | |
39222 | fi | |
39223 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
39224 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
39225 | if test $ac_cv_func_localtime_r = yes; then | |
39226 | cat >>confdefs.h <<\_ACEOF | |
39227 | #define HAVE_LOCALTIME_R 1 | |
39228 | _ACEOF | |
39229 | ||
39230 | fi | |
39231 | ||
39232 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
39233 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
39234 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
39235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39236 | else | |
39237 | cat >conftest.$ac_ext <<_ACEOF | |
39238 | /* confdefs.h. */ | |
39239 | _ACEOF | |
39240 | cat confdefs.h >>conftest.$ac_ext | |
39241 | cat >>conftest.$ac_ext <<_ACEOF | |
39242 | /* end confdefs.h. */ | |
39243 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
39244 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39245 | #define gmtime_r innocuous_gmtime_r | |
39246 | ||
39247 | /* System header to define __stub macros and hopefully few prototypes, | |
39248 | which can conflict with char gmtime_r (); below. | |
39249 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39250 | <limits.h> exists even on freestanding compilers. */ | |
39251 | ||
39252 | #ifdef __STDC__ | |
39253 | # include <limits.h> | |
39254 | #else | |
39255 | # include <assert.h> | |
39256 | #endif | |
39257 | ||
39258 | #undef gmtime_r | |
39259 | ||
39260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39261 | #ifdef __cplusplus | |
39262 | extern "C" | |
39263 | { | |
39264 | #endif | |
39265 | /* We use char because int might match the return type of a gcc2 | |
39266 | builtin and then its argument prototype would still apply. */ | |
39267 | char gmtime_r (); | |
39268 | /* The GNU C library defines this for functions which it implements | |
39269 | to always fail with ENOSYS. Some functions are actually named | |
39270 | something starting with __ and the normal name is an alias. */ | |
39271 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
39272 | choke me | |
39273 | #else | |
39274 | char (*f) () = gmtime_r; | |
39275 | #endif | |
39276 | #ifdef __cplusplus | |
39277 | } | |
39278 | #endif | |
39279 | ||
39280 | int | |
39281 | main () | |
39282 | { | |
39283 | return f != gmtime_r; | |
39284 | ; | |
39285 | return 0; | |
39286 | } | |
39287 | _ACEOF | |
39288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39290 | (eval $ac_link) 2>conftest.er1 | |
39291 | ac_status=$? | |
39292 | grep -v '^ *+' conftest.er1 >conftest.err | |
39293 | rm -f conftest.er1 | |
39294 | cat conftest.err >&5 | |
39295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39296 | (exit $ac_status); } && | |
c9a66001 | 39297 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39299 | (eval $ac_try) 2>&5 | |
39300 | ac_status=$? | |
39301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39302 | (exit $ac_status); }; } && | |
39303 | { ac_try='test -s conftest$ac_exeext' | |
39304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39305 | (eval $ac_try) 2>&5 | |
39306 | ac_status=$? | |
39307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39308 | (exit $ac_status); }; }; then | |
39309 | ac_cv_func_gmtime_r=yes | |
39310 | else | |
39311 | echo "$as_me: failed program was:" >&5 | |
39312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39313 | ||
39314 | ac_cv_func_gmtime_r=no | |
39315 | fi | |
39316 | rm -f conftest.err conftest.$ac_objext \ | |
39317 | conftest$ac_exeext conftest.$ac_ext | |
39318 | fi | |
39319 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
39320 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
39321 | if test $ac_cv_func_gmtime_r = yes; then | |
39322 | cat >>confdefs.h <<\_ACEOF | |
39323 | #define HAVE_GMTIME_R 1 | |
39324 | _ACEOF | |
39325 | ||
39326 | fi | |
39327 | ||
39328 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
39329 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
39330 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
39331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39332 | else | |
39333 | cat >conftest.$ac_ext <<_ACEOF | |
39334 | /* confdefs.h. */ | |
39335 | _ACEOF | |
39336 | cat confdefs.h >>conftest.$ac_ext | |
39337 | cat >>conftest.$ac_ext <<_ACEOF | |
39338 | /* end confdefs.h. */ | |
39339 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
39340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39341 | #define readdir_r innocuous_readdir_r | |
39342 | ||
39343 | /* System header to define __stub macros and hopefully few prototypes, | |
39344 | which can conflict with char readdir_r (); below. | |
39345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39346 | <limits.h> exists even on freestanding compilers. */ | |
39347 | ||
39348 | #ifdef __STDC__ | |
39349 | # include <limits.h> | |
39350 | #else | |
39351 | # include <assert.h> | |
39352 | #endif | |
39353 | ||
39354 | #undef readdir_r | |
39355 | ||
39356 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39357 | #ifdef __cplusplus | |
39358 | extern "C" | |
39359 | { | |
39360 | #endif | |
39361 | /* We use char because int might match the return type of a gcc2 | |
39362 | builtin and then its argument prototype would still apply. */ | |
39363 | char readdir_r (); | |
39364 | /* The GNU C library defines this for functions which it implements | |
39365 | to always fail with ENOSYS. Some functions are actually named | |
39366 | something starting with __ and the normal name is an alias. */ | |
39367 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
39368 | choke me | |
39369 | #else | |
39370 | char (*f) () = readdir_r; | |
39371 | #endif | |
39372 | #ifdef __cplusplus | |
39373 | } | |
39374 | #endif | |
39375 | ||
39376 | int | |
39377 | main () | |
39378 | { | |
39379 | return f != readdir_r; | |
39380 | ; | |
39381 | return 0; | |
39382 | } | |
39383 | _ACEOF | |
39384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39386 | (eval $ac_link) 2>conftest.er1 | |
39387 | ac_status=$? | |
39388 | grep -v '^ *+' conftest.er1 >conftest.err | |
39389 | rm -f conftest.er1 | |
39390 | cat conftest.err >&5 | |
39391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39392 | (exit $ac_status); } && | |
c9a66001 | 39393 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39395 | (eval $ac_try) 2>&5 | |
39396 | ac_status=$? | |
39397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39398 | (exit $ac_status); }; } && | |
39399 | { ac_try='test -s conftest$ac_exeext' | |
39400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39401 | (eval $ac_try) 2>&5 | |
39402 | ac_status=$? | |
39403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39404 | (exit $ac_status); }; }; then | |
39405 | ac_cv_func_readdir_r=yes | |
39406 | else | |
39407 | echo "$as_me: failed program was:" >&5 | |
39408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39409 | ||
39410 | ac_cv_func_readdir_r=no | |
39411 | fi | |
39412 | rm -f conftest.err conftest.$ac_objext \ | |
39413 | conftest$ac_exeext conftest.$ac_ext | |
39414 | fi | |
39415 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
39416 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
39417 | if test $ac_cv_func_readdir_r = yes; then | |
39418 | cat >>confdefs.h <<\_ACEOF | |
39419 | #define HAVE_READDIR_R 1 | |
39420 | _ACEOF | |
39421 | ||
39422 | fi | |
39423 | ||
004ee6da | 39424 | |
004ee6da RL |
39425 | |
39426 | ||
39427 | ac_ext=c | |
39428 | ac_cpp='$CPP $CPPFLAGS' | |
39429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39432 | ||
39433 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
39434 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
39435 | ||
39436 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
39437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39438 | else | |
39439 | ||
39440 | ||
2f6c5bb5 | 39441 | ################################################################ |
004ee6da RL |
39442 | |
39443 | ac_cv_func_which_gethostbyname_r=unknown | |
39444 | ||
39445 | # | |
39446 | # ONE ARGUMENT (sanity check) | |
39447 | # | |
39448 | ||
39449 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
39450 | # a single argument. If it actually compiles, then we can assume that | |
39451 | # netdb.h is not declaring the function, and the compiler is thereby | |
39452 | # assuming an implicit prototype. In which case, we're out of luck. | |
39453 | # | |
39454 | cat >conftest.$ac_ext <<_ACEOF | |
39455 | /* confdefs.h. */ | |
39456 | _ACEOF | |
39457 | cat confdefs.h >>conftest.$ac_ext | |
39458 | cat >>conftest.$ac_ext <<_ACEOF | |
39459 | /* end confdefs.h. */ | |
39460 | #include <netdb.h> | |
39461 | int | |
39462 | main () | |
39463 | { | |
39464 | ||
39465 | char *name = "www.gnu.org"; | |
39466 | (void)gethostbyname_r(name) /* ; */ | |
39467 | ||
39468 | ; | |
39469 | return 0; | |
39470 | } | |
39471 | _ACEOF | |
39472 | rm -f conftest.$ac_objext | |
39473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39474 | (eval $ac_compile) 2>conftest.er1 | |
39475 | ac_status=$? | |
39476 | grep -v '^ *+' conftest.er1 >conftest.err | |
39477 | rm -f conftest.er1 | |
39478 | cat conftest.err >&5 | |
39479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39480 | (exit $ac_status); } && | |
c9a66001 | 39481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39483 | (eval $ac_try) 2>&5 | |
39484 | ac_status=$? | |
39485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39486 | (exit $ac_status); }; } && | |
39487 | { ac_try='test -s conftest.$ac_objext' | |
39488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39489 | (eval $ac_try) 2>&5 | |
39490 | ac_status=$? | |
39491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39492 | (exit $ac_status); }; }; then | |
39493 | ac_cv_func_which_gethostbyname_r=no | |
39494 | else | |
39495 | echo "$as_me: failed program was:" >&5 | |
39496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39497 | ||
39498 | fi | |
39499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39500 | ||
39501 | # | |
39502 | # SIX ARGUMENTS | |
39503 | # (e.g. Linux) | |
39504 | # | |
39505 | ||
39506 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39507 | ||
39508 | cat >conftest.$ac_ext <<_ACEOF | |
39509 | /* confdefs.h. */ | |
39510 | _ACEOF | |
39511 | cat confdefs.h >>conftest.$ac_ext | |
39512 | cat >>conftest.$ac_ext <<_ACEOF | |
39513 | /* end confdefs.h. */ | |
39514 | #include <netdb.h> | |
39515 | int | |
39516 | main () | |
39517 | { | |
39518 | ||
39519 | char *name = "www.gnu.org"; | |
39520 | struct hostent ret, *retp; | |
39521 | char buf[1024]; | |
39522 | int buflen = 1024; | |
39523 | int my_h_errno; | |
39524 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
39525 | ||
39526 | ; | |
39527 | return 0; | |
39528 | } | |
39529 | _ACEOF | |
39530 | rm -f conftest.$ac_objext | |
39531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39532 | (eval $ac_compile) 2>conftest.er1 | |
39533 | ac_status=$? | |
39534 | grep -v '^ *+' conftest.er1 >conftest.err | |
39535 | rm -f conftest.er1 | |
39536 | cat conftest.err >&5 | |
39537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39538 | (exit $ac_status); } && | |
c9a66001 | 39539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39541 | (eval $ac_try) 2>&5 | |
39542 | ac_status=$? | |
39543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39544 | (exit $ac_status); }; } && | |
39545 | { ac_try='test -s conftest.$ac_objext' | |
39546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39547 | (eval $ac_try) 2>&5 | |
39548 | ac_status=$? | |
39549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39550 | (exit $ac_status); }; }; then | |
39551 | ac_cv_func_which_gethostbyname_r=six | |
39552 | else | |
39553 | echo "$as_me: failed program was:" >&5 | |
39554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39555 | ||
39556 | fi | |
39557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39558 | ||
39559 | fi | |
39560 | ||
39561 | # | |
39562 | # FIVE ARGUMENTS | |
39563 | # (e.g. Solaris) | |
39564 | # | |
39565 | ||
39566 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39567 | ||
39568 | cat >conftest.$ac_ext <<_ACEOF | |
39569 | /* confdefs.h. */ | |
39570 | _ACEOF | |
39571 | cat confdefs.h >>conftest.$ac_ext | |
39572 | cat >>conftest.$ac_ext <<_ACEOF | |
39573 | /* end confdefs.h. */ | |
39574 | #include <netdb.h> | |
39575 | int | |
39576 | main () | |
39577 | { | |
39578 | ||
39579 | char *name = "www.gnu.org"; | |
39580 | struct hostent ret; | |
39581 | char buf[1024]; | |
39582 | int buflen = 1024; | |
39583 | int my_h_errno; | |
39584 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
39585 | ||
39586 | ; | |
39587 | return 0; | |
39588 | } | |
39589 | _ACEOF | |
39590 | rm -f conftest.$ac_objext | |
39591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39592 | (eval $ac_compile) 2>conftest.er1 | |
39593 | ac_status=$? | |
39594 | grep -v '^ *+' conftest.er1 >conftest.err | |
39595 | rm -f conftest.er1 | |
39596 | cat conftest.err >&5 | |
39597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39598 | (exit $ac_status); } && | |
c9a66001 | 39599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39601 | (eval $ac_try) 2>&5 | |
39602 | ac_status=$? | |
39603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39604 | (exit $ac_status); }; } && | |
39605 | { ac_try='test -s conftest.$ac_objext' | |
39606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39607 | (eval $ac_try) 2>&5 | |
39608 | ac_status=$? | |
39609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39610 | (exit $ac_status); }; }; then | |
39611 | ac_cv_func_which_gethostbyname_r=five | |
39612 | else | |
39613 | echo "$as_me: failed program was:" >&5 | |
39614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39615 | ||
39616 | fi | |
39617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39618 | ||
39619 | fi | |
39620 | ||
39621 | # | |
39622 | # THREE ARGUMENTS | |
39623 | # (e.g. AIX, HP-UX, Tru64) | |
39624 | # | |
39625 | ||
39626 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39627 | ||
39628 | cat >conftest.$ac_ext <<_ACEOF | |
39629 | /* confdefs.h. */ | |
39630 | _ACEOF | |
39631 | cat confdefs.h >>conftest.$ac_ext | |
39632 | cat >>conftest.$ac_ext <<_ACEOF | |
39633 | /* end confdefs.h. */ | |
39634 | #include <netdb.h> | |
39635 | int | |
39636 | main () | |
39637 | { | |
39638 | ||
39639 | char *name = "www.gnu.org"; | |
39640 | struct hostent ret; | |
39641 | struct hostent_data data; | |
39642 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
39643 | ||
39644 | ; | |
39645 | return 0; | |
39646 | } | |
39647 | _ACEOF | |
39648 | rm -f conftest.$ac_objext | |
39649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39650 | (eval $ac_compile) 2>conftest.er1 | |
39651 | ac_status=$? | |
39652 | grep -v '^ *+' conftest.er1 >conftest.err | |
39653 | rm -f conftest.er1 | |
39654 | cat conftest.err >&5 | |
39655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39656 | (exit $ac_status); } && | |
c9a66001 | 39657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39659 | (eval $ac_try) 2>&5 | |
39660 | ac_status=$? | |
39661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39662 | (exit $ac_status); }; } && | |
39663 | { ac_try='test -s conftest.$ac_objext' | |
39664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39665 | (eval $ac_try) 2>&5 | |
39666 | ac_status=$? | |
39667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39668 | (exit $ac_status); }; }; then | |
39669 | ac_cv_func_which_gethostbyname_r=three | |
39670 | else | |
39671 | echo "$as_me: failed program was:" >&5 | |
39672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39673 | ||
39674 | fi | |
39675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39676 | ||
39677 | fi | |
39678 | ||
2f6c5bb5 | 39679 | ################################################################ |
004ee6da RL |
39680 | |
39681 | ||
39682 | fi | |
39683 | ||
39684 | case "$ac_cv_func_which_gethostbyname_r" in | |
39685 | three) | |
39686 | echo "$as_me:$LINENO: result: three" >&5 | |
39687 | echo "${ECHO_T}three" >&6 | |
39688 | cat >>confdefs.h <<\_ACEOF | |
39689 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
39690 | _ACEOF | |
39691 | ||
39692 | ;; | |
39693 | ||
39694 | five) | |
39695 | echo "$as_me:$LINENO: result: five" >&5 | |
39696 | echo "${ECHO_T}five" >&6 | |
39697 | cat >>confdefs.h <<\_ACEOF | |
39698 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
39699 | _ACEOF | |
39700 | ||
39701 | ;; | |
39702 | ||
39703 | six) | |
39704 | echo "$as_me:$LINENO: result: six" >&5 | |
39705 | echo "${ECHO_T}six" >&6 | |
39706 | cat >>confdefs.h <<\_ACEOF | |
39707 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
39708 | _ACEOF | |
39709 | ||
39710 | ;; | |
39711 | ||
39712 | no) | |
39713 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
39714 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
39715 | ;; | |
39716 | ||
39717 | unknown) | |
39718 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
39719 | echo "${ECHO_T}can't tell" >&6 | |
39720 | ;; | |
39721 | ||
39722 | *) | |
39723 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
39724 | echo "$as_me: error: internal error" >&2;} | |
39725 | { (exit 1); exit 1; }; } | |
39726 | ;; | |
39727 | esac | |
39728 | ||
5ec3bc43 JS |
39729 | ac_ext=cc |
39730 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39731 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39732 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39733 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
39734 | |
39735 | ||
39736 | ||
39737 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
39738 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
39739 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
39740 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
39741 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
39742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39743 | else | |
39744 | cat >conftest.$ac_ext <<_ACEOF | |
39745 | /* confdefs.h. */ | |
39746 | _ACEOF | |
39747 | cat confdefs.h >>conftest.$ac_ext | |
39748 | cat >>conftest.$ac_ext <<_ACEOF | |
39749 | /* end confdefs.h. */ | |
39750 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
39751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39752 | #define gethostbyname innocuous_gethostbyname | |
39753 | ||
39754 | /* System header to define __stub macros and hopefully few prototypes, | |
39755 | which can conflict with char gethostbyname (); below. | |
39756 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39757 | <limits.h> exists even on freestanding compilers. */ | |
39758 | ||
39759 | #ifdef __STDC__ | |
39760 | # include <limits.h> | |
39761 | #else | |
39762 | # include <assert.h> | |
39763 | #endif | |
39764 | ||
39765 | #undef gethostbyname | |
39766 | ||
39767 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39768 | #ifdef __cplusplus | |
39769 | extern "C" | |
39770 | { | |
39771 | #endif | |
39772 | /* We use char because int might match the return type of a gcc2 | |
39773 | builtin and then its argument prototype would still apply. */ | |
39774 | char gethostbyname (); | |
39775 | /* The GNU C library defines this for functions which it implements | |
39776 | to always fail with ENOSYS. Some functions are actually named | |
39777 | something starting with __ and the normal name is an alias. */ | |
39778 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
39779 | choke me | |
39780 | #else | |
39781 | char (*f) () = gethostbyname; | |
39782 | #endif | |
39783 | #ifdef __cplusplus | |
39784 | } | |
39785 | #endif | |
39786 | ||
39787 | int | |
39788 | main () | |
39789 | { | |
39790 | return f != gethostbyname; | |
39791 | ; | |
39792 | return 0; | |
39793 | } | |
39794 | _ACEOF | |
39795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39797 | (eval $ac_link) 2>conftest.er1 | |
39798 | ac_status=$? | |
39799 | grep -v '^ *+' conftest.er1 >conftest.err | |
39800 | rm -f conftest.er1 | |
39801 | cat conftest.err >&5 | |
39802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39803 | (exit $ac_status); } && | |
c9a66001 | 39804 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39806 | (eval $ac_try) 2>&5 | |
39807 | ac_status=$? | |
39808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39809 | (exit $ac_status); }; } && | |
39810 | { ac_try='test -s conftest$ac_exeext' | |
39811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39812 | (eval $ac_try) 2>&5 | |
39813 | ac_status=$? | |
39814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39815 | (exit $ac_status); }; }; then | |
39816 | ac_cv_func_gethostbyname=yes | |
39817 | else | |
39818 | echo "$as_me: failed program was:" >&5 | |
39819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39820 | ||
39821 | ac_cv_func_gethostbyname=no | |
39822 | fi | |
39823 | rm -f conftest.err conftest.$ac_objext \ | |
39824 | conftest$ac_exeext conftest.$ac_ext | |
39825 | fi | |
39826 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
39827 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
39828 | if test $ac_cv_func_gethostbyname = yes; then | |
39829 | cat >>confdefs.h <<\_ACEOF | |
39830 | #define HAVE_GETHOSTBYNAME 1 | |
39831 | _ACEOF | |
39832 | ||
39833 | fi | |
39834 | ||
39835 | fi | |
39836 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
39837 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
39838 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
39839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39840 | else | |
39841 | cat >conftest.$ac_ext <<_ACEOF | |
39842 | /* confdefs.h. */ | |
39843 | _ACEOF | |
39844 | cat confdefs.h >>conftest.$ac_ext | |
39845 | cat >>conftest.$ac_ext <<_ACEOF | |
39846 | /* end confdefs.h. */ | |
39847 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
39848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39849 | #define getservbyname_r innocuous_getservbyname_r | |
39850 | ||
39851 | /* System header to define __stub macros and hopefully few prototypes, | |
39852 | which can conflict with char getservbyname_r (); below. | |
39853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39854 | <limits.h> exists even on freestanding compilers. */ | |
39855 | ||
39856 | #ifdef __STDC__ | |
39857 | # include <limits.h> | |
39858 | #else | |
39859 | # include <assert.h> | |
39860 | #endif | |
39861 | ||
39862 | #undef getservbyname_r | |
39863 | ||
39864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39865 | #ifdef __cplusplus | |
39866 | extern "C" | |
39867 | { | |
39868 | #endif | |
39869 | /* We use char because int might match the return type of a gcc2 | |
39870 | builtin and then its argument prototype would still apply. */ | |
39871 | char getservbyname_r (); | |
39872 | /* The GNU C library defines this for functions which it implements | |
39873 | to always fail with ENOSYS. Some functions are actually named | |
39874 | something starting with __ and the normal name is an alias. */ | |
39875 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
39876 | choke me | |
39877 | #else | |
39878 | char (*f) () = getservbyname_r; | |
39879 | #endif | |
39880 | #ifdef __cplusplus | |
39881 | } | |
39882 | #endif | |
39883 | ||
39884 | int | |
39885 | main () | |
39886 | { | |
39887 | return f != getservbyname_r; | |
39888 | ; | |
39889 | return 0; | |
39890 | } | |
39891 | _ACEOF | |
39892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39894 | (eval $ac_link) 2>conftest.er1 | |
39895 | ac_status=$? | |
39896 | grep -v '^ *+' conftest.er1 >conftest.err | |
39897 | rm -f conftest.er1 | |
39898 | cat conftest.err >&5 | |
39899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39900 | (exit $ac_status); } && | |
c9a66001 | 39901 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39903 | (eval $ac_try) 2>&5 | |
39904 | ac_status=$? | |
39905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39906 | (exit $ac_status); }; } && | |
39907 | { ac_try='test -s conftest$ac_exeext' | |
39908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39909 | (eval $ac_try) 2>&5 | |
39910 | ac_status=$? | |
39911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39912 | (exit $ac_status); }; }; then | |
39913 | ac_cv_func_getservbyname_r=yes | |
39914 | else | |
39915 | echo "$as_me: failed program was:" >&5 | |
39916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39917 | ||
39918 | ac_cv_func_getservbyname_r=no | |
39919 | fi | |
39920 | rm -f conftest.err conftest.$ac_objext \ | |
39921 | conftest$ac_exeext conftest.$ac_ext | |
39922 | fi | |
39923 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
39924 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
39925 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 39926 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39927 | /* confdefs.h. */ |
39928 | _ACEOF | |
39929 | cat confdefs.h >>conftest.$ac_ext | |
39930 | cat >>conftest.$ac_ext <<_ACEOF | |
39931 | /* end confdefs.h. */ | |
99879bbf | 39932 | #include <netdb.h> |
004ee6da RL |
39933 | int |
39934 | main () | |
39935 | { | |
39936 | ||
99879bbf MR |
39937 | char *name; |
39938 | char *proto; | |
39939 | struct servent *se; | |
39940 | struct servent_data data; | |
39941 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
39942 | |
39943 | ; | |
39944 | return 0; | |
39945 | } | |
39946 | _ACEOF | |
39947 | rm -f conftest.$ac_objext | |
39948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39949 | (eval $ac_compile) 2>conftest.er1 | |
39950 | ac_status=$? | |
39951 | grep -v '^ *+' conftest.er1 >conftest.err | |
39952 | rm -f conftest.er1 | |
39953 | cat conftest.err >&5 | |
39954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39955 | (exit $ac_status); } && | |
c9a66001 | 39956 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39958 | (eval $ac_try) 2>&5 | |
39959 | ac_status=$? | |
39960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39961 | (exit $ac_status); }; } && | |
39962 | { ac_try='test -s conftest.$ac_objext' | |
39963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39964 | (eval $ac_try) 2>&5 | |
39965 | ac_status=$? | |
39966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39967 | (exit $ac_status); }; }; then | |
39968 | ac_cv_func_which_getservbyname_r=four | |
39969 | else | |
39970 | echo "$as_me: failed program was:" >&5 | |
39971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39972 | ||
99879bbf | 39973 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39974 | /* confdefs.h. */ |
39975 | _ACEOF | |
39976 | cat confdefs.h >>conftest.$ac_ext | |
39977 | cat >>conftest.$ac_ext <<_ACEOF | |
39978 | /* end confdefs.h. */ | |
99879bbf | 39979 | #include <netdb.h> |
004ee6da RL |
39980 | int |
39981 | main () | |
39982 | { | |
39983 | ||
99879bbf MR |
39984 | char *name; |
39985 | char *proto; | |
39986 | struct servent *se, *res; | |
39987 | char buffer[2048]; | |
39988 | int buflen = 2048; | |
39989 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
39990 | |
39991 | ; | |
39992 | return 0; | |
39993 | } | |
39994 | _ACEOF | |
39995 | rm -f conftest.$ac_objext | |
39996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39997 | (eval $ac_compile) 2>conftest.er1 | |
39998 | ac_status=$? | |
39999 | grep -v '^ *+' conftest.er1 >conftest.err | |
40000 | rm -f conftest.er1 | |
40001 | cat conftest.err >&5 | |
40002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40003 | (exit $ac_status); } && | |
c9a66001 | 40004 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40006 | (eval $ac_try) 2>&5 | |
40007 | ac_status=$? | |
40008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40009 | (exit $ac_status); }; } && | |
40010 | { ac_try='test -s conftest.$ac_objext' | |
40011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40012 | (eval $ac_try) 2>&5 | |
40013 | ac_status=$? | |
40014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40015 | (exit $ac_status); }; }; then | |
40016 | ac_cv_func_which_getservbyname_r=six | |
40017 | else | |
40018 | echo "$as_me: failed program was:" >&5 | |
40019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40020 | ||
99879bbf | 40021 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
40022 | /* confdefs.h. */ |
40023 | _ACEOF | |
40024 | cat confdefs.h >>conftest.$ac_ext | |
40025 | cat >>conftest.$ac_ext <<_ACEOF | |
40026 | /* end confdefs.h. */ | |
99879bbf | 40027 | #include <netdb.h> |
004ee6da RL |
40028 | int |
40029 | main () | |
40030 | { | |
40031 | ||
99879bbf MR |
40032 | char *name; |
40033 | char *proto; | |
40034 | struct servent *se; | |
40035 | char buffer[2048]; | |
40036 | int buflen = 2048; | |
40037 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
40038 | |
40039 | ; | |
40040 | return 0; | |
40041 | } | |
40042 | _ACEOF | |
40043 | rm -f conftest.$ac_objext | |
40044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40045 | (eval $ac_compile) 2>conftest.er1 | |
40046 | ac_status=$? | |
40047 | grep -v '^ *+' conftest.er1 >conftest.err | |
40048 | rm -f conftest.er1 | |
40049 | cat conftest.err >&5 | |
40050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40051 | (exit $ac_status); } && | |
c9a66001 | 40052 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40054 | (eval $ac_try) 2>&5 | |
40055 | ac_status=$? | |
40056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40057 | (exit $ac_status); }; } && | |
40058 | { ac_try='test -s conftest.$ac_objext' | |
40059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40060 | (eval $ac_try) 2>&5 | |
40061 | ac_status=$? | |
40062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40063 | (exit $ac_status); }; }; then | |
40064 | ac_cv_func_which_getservbyname_r=five | |
40065 | else | |
40066 | echo "$as_me: failed program was:" >&5 | |
40067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40068 | ||
40069 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 40070 | |
004ee6da RL |
40071 | fi |
40072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40073 | ||
004ee6da RL |
40074 | fi |
40075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40076 | ||
004ee6da RL |
40077 | fi |
40078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
40079 | else |
40080 | ac_cv_func_which_getservbyname_r=no | |
40081 | fi | |
40082 | ||
004ee6da RL |
40083 | |
40084 | if test $ac_cv_func_which_getservbyname_r = six; then | |
40085 | cat >>confdefs.h <<\_ACEOF | |
40086 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
40087 | _ACEOF | |
40088 | ||
40089 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
40090 | cat >>confdefs.h <<\_ACEOF | |
40091 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
40092 | _ACEOF | |
40093 | ||
40094 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
40095 | cat >>confdefs.h <<\_ACEOF | |
40096 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
40097 | _ACEOF | |
40098 | ||
004ee6da RL |
40099 | fi |
40100 | ||
40101 | ||
40102 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
40103 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
40104 | ||
40105 | for ac_func in getservbyname | |
40106 | do | |
40107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40110 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40112 | else | |
40113 | cat >conftest.$ac_ext <<_ACEOF | |
40114 | /* confdefs.h. */ | |
40115 | _ACEOF | |
40116 | cat confdefs.h >>conftest.$ac_ext | |
40117 | cat >>conftest.$ac_ext <<_ACEOF | |
40118 | /* end confdefs.h. */ | |
40119 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
40120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40121 | #define $ac_func innocuous_$ac_func | |
40122 | ||
40123 | /* System header to define __stub macros and hopefully few prototypes, | |
40124 | which can conflict with char $ac_func (); below. | |
40125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40126 | <limits.h> exists even on freestanding compilers. */ | |
40127 | ||
40128 | #ifdef __STDC__ | |
40129 | # include <limits.h> | |
40130 | #else | |
40131 | # include <assert.h> | |
40132 | #endif | |
40133 | ||
40134 | #undef $ac_func | |
40135 | ||
40136 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40137 | #ifdef __cplusplus | |
40138 | extern "C" | |
40139 | { | |
40140 | #endif | |
40141 | /* We use char because int might match the return type of a gcc2 | |
40142 | builtin and then its argument prototype would still apply. */ | |
40143 | char $ac_func (); | |
40144 | /* The GNU C library defines this for functions which it implements | |
40145 | to always fail with ENOSYS. Some functions are actually named | |
40146 | something starting with __ and the normal name is an alias. */ | |
40147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40148 | choke me | |
40149 | #else | |
40150 | char (*f) () = $ac_func; | |
40151 | #endif | |
40152 | #ifdef __cplusplus | |
40153 | } | |
40154 | #endif | |
40155 | ||
40156 | int | |
40157 | main () | |
40158 | { | |
40159 | return f != $ac_func; | |
40160 | ; | |
40161 | return 0; | |
40162 | } | |
40163 | _ACEOF | |
40164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40166 | (eval $ac_link) 2>conftest.er1 | |
40167 | ac_status=$? | |
40168 | grep -v '^ *+' conftest.er1 >conftest.err | |
40169 | rm -f conftest.er1 | |
40170 | cat conftest.err >&5 | |
40171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40172 | (exit $ac_status); } && | |
c9a66001 | 40173 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40175 | (eval $ac_try) 2>&5 | |
40176 | ac_status=$? | |
40177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40178 | (exit $ac_status); }; } && | |
40179 | { ac_try='test -s conftest$ac_exeext' | |
40180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40181 | (eval $ac_try) 2>&5 | |
40182 | ac_status=$? | |
40183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40184 | (exit $ac_status); }; }; then | |
40185 | eval "$as_ac_var=yes" | |
40186 | else | |
40187 | echo "$as_me: failed program was:" >&5 | |
40188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40189 | ||
40190 | eval "$as_ac_var=no" | |
40191 | fi | |
40192 | rm -f conftest.err conftest.$ac_objext \ | |
40193 | conftest$ac_exeext conftest.$ac_ext | |
40194 | fi | |
40195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40196 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40197 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40198 | cat >>confdefs.h <<_ACEOF | |
40199 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40200 | _ACEOF | |
40201 | cat >>confdefs.h <<\_ACEOF | |
40202 | #define HAVE_GETSERVBYNAME 1 | |
40203 | _ACEOF | |
40204 | ||
40205 | fi | |
40206 | done | |
40207 | ||
40208 | fi | |
40209 | ||
004ee6da RL |
40210 | if test "$wxUSE_THREADS" = "yes"; then |
40211 | cat >>confdefs.h <<\_ACEOF | |
40212 | #define wxUSE_THREADS 1 | |
40213 | _ACEOF | |
40214 | ||
40215 | ||
40216 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
40217 | else | |
40218 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
40219 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
40220 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
40221 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
40222 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
40223 | echo "$as_me:$LINENO: result: yes" >&5 | |
40224 | echo "${ECHO_T}yes" >&6 | |
40225 | else | |
40226 | echo "$as_me:$LINENO: result: no" >&5 | |
40227 | echo "${ECHO_T}no" >&6 | |
40228 | fi | |
40229 | fi | |
40230 | fi | |
40231 | ||
40232 | if test "$WXGTK20" = 1 ; then | |
40233 | cat >>confdefs.h <<_ACEOF | |
40234 | #define __WXGTK20__ $WXGTK20 | |
40235 | _ACEOF | |
40236 | ||
40237 | WXGTK12=1 | |
40238 | fi | |
40239 | ||
40240 | if test "$WXGTK12" = 1 ; then | |
40241 | cat >>confdefs.h <<_ACEOF | |
40242 | #define __WXGTK12__ $WXGTK12 | |
40243 | _ACEOF | |
40244 | ||
40245 | fi | |
40246 | ||
40247 | if test "$WXGTK127" = 1 ; then | |
40248 | cat >>confdefs.h <<_ACEOF | |
40249 | #define __WXGTK127__ $WXGTK127 | |
40250 | _ACEOF | |
40251 | ||
40252 | fi | |
40253 | ||
40254 | if test "$WXGPE" = 1 ; then | |
40255 | cat >>confdefs.h <<_ACEOF | |
40256 | #define __WXGPE__ $WXGPE | |
40257 | _ACEOF | |
40258 | ||
40259 | fi | |
40260 | ||
40261 | DEBUG_CFLAGS= | |
40262 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
40263 | DEBUG_CFLAGS="-g" | |
40264 | wxUSE_OPTIMISE=no | |
40265 | fi | |
40266 | ||
40267 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
40268 | wxUSE_DEBUG_INFO=yes | |
40269 | if test "$GCC" = yes; then | |
40270 | DEBUG_CFLAGS="-ggdb" | |
40271 | fi | |
40272 | fi | |
40273 | ||
40274 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
40275 | cat >>confdefs.h <<\_ACEOF | |
40276 | #define WXDEBUG 1 | |
40277 | _ACEOF | |
40278 | ||
40279 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
40280 | else | |
40281 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
40282 | if test "x$wxGTK_VERSION" = "x1" ; then |
40283 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
40284 | fi | |
004ee6da RL |
40285 | fi |
40286 | fi | |
40287 | ||
40288 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
40289 | cat >>confdefs.h <<\_ACEOF | |
40290 | #define wxUSE_MEMORY_TRACING 1 | |
40291 | _ACEOF | |
40292 | ||
40293 | cat >>confdefs.h <<\_ACEOF | |
40294 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
40295 | _ACEOF | |
40296 | ||
40297 | cat >>confdefs.h <<\_ACEOF | |
40298 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
40299 | _ACEOF | |
40300 | ||
40301 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
40302 | fi | |
40303 | ||
40304 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
40305 | DMALLOC_LIBS="-ldmallocthcxx" | |
40306 | fi | |
40307 | ||
40308 | PROFILE_FLAGS= | |
40309 | if test "$wxUSE_PROFILE" = "yes" ; then | |
40310 | PROFILE_FLAGS=" -pg" | |
40311 | fi | |
40312 | ||
40313 | if test "$GCC" = "yes" ; then | |
40314 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
40315 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
40316 | fi | |
40317 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
40318 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
40319 | fi | |
40320 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
40321 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
40322 | fi | |
40323 | ||
40324 | case "${host}" in | |
40325 | powerpc*-*-aix* ) | |
40326 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
40327 | ;; | |
40328 | *-hppa* ) | |
40329 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
40330 | ;; | |
40331 | esac | |
40332 | fi | |
40333 | ||
40334 | OPTIMISE_CFLAGS= | |
40335 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
40336 | if test "$GCC" = yes ; then | |
40337 | OPTIMISE_CFLAGS="-O0" | |
40338 | fi | |
40339 | else | |
40340 | if test "$GCC" = yes ; then | |
e5efa97e VZ |
40341 | case "${host}" in |
40342 | *-pc-os2_emx | *-pc-os2-emx ) | |
40343 | OPTIMISE_CFLAGS="-O2" | |
40344 | ;; | |
40345 | *) | |
40346 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
40347 | ;; | |
40348 | esac | |
004ee6da RL |
40349 | else |
40350 | OPTIMISE_CFLAGS="-O" | |
40351 | fi | |
40352 | fi | |
40353 | ||
40354 | ||
40355 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
40356 | cat >>confdefs.h <<\_ACEOF | |
40357 | #define WXWIN_COMPATIBILITY_2_4 1 | |
40358 | _ACEOF | |
40359 | ||
40360 | ||
40361 | WXWIN_COMPATIBILITY_2_6="yes" | |
40362 | fi | |
40363 | ||
40364 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
40365 | cat >>confdefs.h <<\_ACEOF | |
40366 | #define WXWIN_COMPATIBILITY_2_6 1 | |
40367 | _ACEOF | |
40368 | ||
40369 | fi | |
40370 | ||
40371 | ||
40372 | if test "$wxUSE_GUI" = "yes"; then | |
40373 | cat >>confdefs.h <<\_ACEOF | |
40374 | #define wxUSE_GUI 1 | |
40375 | _ACEOF | |
40376 | ||
40377 | ||
40378 | fi | |
40379 | ||
40380 | ||
40381 | if test "$wxUSE_UNIX" = "yes"; then | |
40382 | cat >>confdefs.h <<\_ACEOF | |
40383 | #define wxUSE_UNIX 1 | |
40384 | _ACEOF | |
40385 | ||
40386 | fi | |
40387 | ||
40388 | ||
40389 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
40390 | ||
40391 | HAVE_DL_FUNCS=0 | |
40392 | HAVE_SHL_FUNCS=0 | |
40393 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40394 | if test "$USE_DARWIN" = 1; then | |
40395 | HAVE_DL_FUNCS=1 | |
40396 | elif test "$USE_DOS" = 1; then | |
40397 | HAVE_DL_FUNCS=0 | |
40398 | else | |
40399 | ||
40400 | for ac_func in dlopen | |
40401 | do | |
40402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40403 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40405 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40407 | else | |
40408 | cat >conftest.$ac_ext <<_ACEOF | |
40409 | /* confdefs.h. */ | |
40410 | _ACEOF | |
40411 | cat confdefs.h >>conftest.$ac_ext | |
40412 | cat >>conftest.$ac_ext <<_ACEOF | |
40413 | /* end confdefs.h. */ | |
40414 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
40415 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40416 | #define $ac_func innocuous_$ac_func | |
40417 | ||
40418 | /* System header to define __stub macros and hopefully few prototypes, | |
40419 | which can conflict with char $ac_func (); below. | |
40420 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40421 | <limits.h> exists even on freestanding compilers. */ | |
40422 | ||
40423 | #ifdef __STDC__ | |
40424 | # include <limits.h> | |
40425 | #else | |
40426 | # include <assert.h> | |
40427 | #endif | |
40428 | ||
40429 | #undef $ac_func | |
40430 | ||
40431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40432 | #ifdef __cplusplus | |
40433 | extern "C" | |
40434 | { | |
40435 | #endif | |
40436 | /* We use char because int might match the return type of a gcc2 | |
40437 | builtin and then its argument prototype would still apply. */ | |
40438 | char $ac_func (); | |
40439 | /* The GNU C library defines this for functions which it implements | |
40440 | to always fail with ENOSYS. Some functions are actually named | |
40441 | something starting with __ and the normal name is an alias. */ | |
40442 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40443 | choke me | |
40444 | #else | |
40445 | char (*f) () = $ac_func; | |
40446 | #endif | |
40447 | #ifdef __cplusplus | |
40448 | } | |
40449 | #endif | |
40450 | ||
40451 | int | |
40452 | main () | |
40453 | { | |
40454 | return f != $ac_func; | |
a848cd7e SC |
40455 | ; |
40456 | return 0; | |
40457 | } | |
40458 | _ACEOF | |
40459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40461 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40462 | ac_status=$? |
ac1cb8d3 VS |
40463 | grep -v '^ *+' conftest.er1 >conftest.err |
40464 | rm -f conftest.er1 | |
40465 | cat conftest.err >&5 | |
a848cd7e SC |
40466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40467 | (exit $ac_status); } && | |
c9a66001 | 40468 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40470 | (eval $ac_try) 2>&5 | |
40471 | ac_status=$? | |
40472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40473 | (exit $ac_status); }; } && | |
40474 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40476 | (eval $ac_try) 2>&5 | |
40477 | ac_status=$? | |
40478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40479 | (exit $ac_status); }; }; then | |
40480 | eval "$as_ac_var=yes" | |
40481 | else | |
40482 | echo "$as_me: failed program was:" >&5 | |
40483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40484 | ||
40485 | eval "$as_ac_var=no" | |
40486 | fi | |
ac1cb8d3 VS |
40487 | rm -f conftest.err conftest.$ac_objext \ |
40488 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40489 | fi |
40490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40491 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40492 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40493 | cat >>confdefs.h <<_ACEOF | |
40494 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40495 | _ACEOF | |
40496 | ||
40497 | cat >>confdefs.h <<\_ACEOF | |
40498 | #define HAVE_DLOPEN 1 | |
40499 | _ACEOF | |
40500 | ||
40501 | HAVE_DL_FUNCS=1 | |
40502 | ||
40503 | else | |
40504 | ||
40505 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
40506 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
40507 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
40508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40509 | else | |
40510 | ac_check_lib_save_LIBS=$LIBS | |
40511 | LIBS="-ldl $LIBS" | |
40512 | cat >conftest.$ac_ext <<_ACEOF | |
40513 | /* confdefs.h. */ | |
40514 | _ACEOF | |
40515 | cat confdefs.h >>conftest.$ac_ext | |
40516 | cat >>conftest.$ac_ext <<_ACEOF | |
40517 | /* end confdefs.h. */ | |
40518 | ||
40519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40520 | #ifdef __cplusplus | |
40521 | extern "C" | |
40522 | #endif | |
40523 | /* We use char because int might match the return type of a gcc2 | |
40524 | builtin and then its argument prototype would still apply. */ | |
40525 | char dlopen (); | |
40526 | int | |
40527 | main () | |
40528 | { | |
40529 | dlopen (); | |
40530 | ; | |
40531 | return 0; | |
40532 | } | |
40533 | _ACEOF | |
40534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40536 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40537 | ac_status=$? |
ac1cb8d3 VS |
40538 | grep -v '^ *+' conftest.er1 >conftest.err |
40539 | rm -f conftest.er1 | |
40540 | cat conftest.err >&5 | |
a848cd7e SC |
40541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40542 | (exit $ac_status); } && | |
c9a66001 | 40543 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40545 | (eval $ac_try) 2>&5 | |
40546 | ac_status=$? | |
40547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40548 | (exit $ac_status); }; } && | |
40549 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40551 | (eval $ac_try) 2>&5 | |
40552 | ac_status=$? | |
40553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40554 | (exit $ac_status); }; }; then | |
40555 | ac_cv_lib_dl_dlopen=yes | |
40556 | else | |
40557 | echo "$as_me: failed program was:" >&5 | |
40558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40559 | ||
40560 | ac_cv_lib_dl_dlopen=no | |
40561 | fi | |
ac1cb8d3 VS |
40562 | rm -f conftest.err conftest.$ac_objext \ |
40563 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40564 | LIBS=$ac_check_lib_save_LIBS |
40565 | fi | |
40566 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
40567 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
40568 | if test $ac_cv_lib_dl_dlopen = yes; then | |
40569 | ||
40570 | cat >>confdefs.h <<\_ACEOF | |
40571 | #define HAVE_DLOPEN 1 | |
40572 | _ACEOF | |
40573 | ||
40574 | HAVE_DL_FUNCS=1 | |
40575 | DL_LINK=" -ldl$DL_LINK" | |
40576 | ||
40577 | else | |
40578 | ||
40579 | ||
40580 | for ac_func in shl_load | |
40581 | do | |
40582 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40583 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40584 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40585 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40587 | else | |
40588 | cat >conftest.$ac_ext <<_ACEOF | |
40589 | /* confdefs.h. */ | |
40590 | _ACEOF | |
40591 | cat confdefs.h >>conftest.$ac_ext | |
40592 | cat >>conftest.$ac_ext <<_ACEOF | |
40593 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40594 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40595 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40596 | #define $ac_func innocuous_$ac_func | |
40597 | ||
a848cd7e SC |
40598 | /* System header to define __stub macros and hopefully few prototypes, |
40599 | which can conflict with char $ac_func (); below. | |
40600 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40601 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40602 | |
a848cd7e SC |
40603 | #ifdef __STDC__ |
40604 | # include <limits.h> | |
40605 | #else | |
40606 | # include <assert.h> | |
40607 | #endif | |
ac1cb8d3 VS |
40608 | |
40609 | #undef $ac_func | |
40610 | ||
a848cd7e SC |
40611 | /* Override any gcc2 internal prototype to avoid an error. */ |
40612 | #ifdef __cplusplus | |
40613 | extern "C" | |
40614 | { | |
40615 | #endif | |
40616 | /* We use char because int might match the return type of a gcc2 | |
40617 | builtin and then its argument prototype would still apply. */ | |
40618 | char $ac_func (); | |
40619 | /* The GNU C library defines this for functions which it implements | |
40620 | to always fail with ENOSYS. Some functions are actually named | |
40621 | something starting with __ and the normal name is an alias. */ | |
40622 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40623 | choke me | |
40624 | #else | |
40625 | char (*f) () = $ac_func; | |
40626 | #endif | |
40627 | #ifdef __cplusplus | |
40628 | } | |
40629 | #endif | |
40630 | ||
40631 | int | |
40632 | main () | |
40633 | { | |
40634 | return f != $ac_func; | |
40635 | ; | |
40636 | return 0; | |
40637 | } | |
40638 | _ACEOF | |
40639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40642 | ac_status=$? |
ac1cb8d3 VS |
40643 | grep -v '^ *+' conftest.er1 >conftest.err |
40644 | rm -f conftest.er1 | |
40645 | cat conftest.err >&5 | |
a848cd7e SC |
40646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40647 | (exit $ac_status); } && | |
c9a66001 | 40648 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40650 | (eval $ac_try) 2>&5 | |
40651 | ac_status=$? | |
40652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40653 | (exit $ac_status); }; } && | |
40654 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40656 | (eval $ac_try) 2>&5 | |
40657 | ac_status=$? | |
40658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40659 | (exit $ac_status); }; }; then | |
40660 | eval "$as_ac_var=yes" | |
40661 | else | |
40662 | echo "$as_me: failed program was:" >&5 | |
40663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40664 | ||
40665 | eval "$as_ac_var=no" | |
40666 | fi | |
ac1cb8d3 VS |
40667 | rm -f conftest.err conftest.$ac_objext \ |
40668 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40669 | fi |
40670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40671 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40672 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40673 | cat >>confdefs.h <<_ACEOF | |
40674 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40675 | _ACEOF | |
40676 | ||
40677 | cat >>confdefs.h <<\_ACEOF | |
40678 | #define HAVE_SHL_LOAD 1 | |
40679 | _ACEOF | |
40680 | ||
40681 | HAVE_SHL_FUNCS=1 | |
40682 | ||
40683 | else | |
40684 | ||
40685 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
40686 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
40687 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
40688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40689 | else | |
40690 | ac_check_lib_save_LIBS=$LIBS | |
40691 | LIBS="-lshl_load $LIBS" | |
40692 | cat >conftest.$ac_ext <<_ACEOF | |
40693 | /* confdefs.h. */ | |
40694 | _ACEOF | |
40695 | cat confdefs.h >>conftest.$ac_ext | |
40696 | cat >>conftest.$ac_ext <<_ACEOF | |
40697 | /* end confdefs.h. */ | |
40698 | ||
40699 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40700 | #ifdef __cplusplus | |
40701 | extern "C" | |
40702 | #endif | |
40703 | /* We use char because int might match the return type of a gcc2 | |
40704 | builtin and then its argument prototype would still apply. */ | |
40705 | char dld (); | |
40706 | int | |
40707 | main () | |
40708 | { | |
40709 | dld (); | |
40710 | ; | |
40711 | return 0; | |
40712 | } | |
40713 | _ACEOF | |
40714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40716 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40717 | ac_status=$? |
ac1cb8d3 VS |
40718 | grep -v '^ *+' conftest.er1 >conftest.err |
40719 | rm -f conftest.er1 | |
40720 | cat conftest.err >&5 | |
a848cd7e SC |
40721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40722 | (exit $ac_status); } && | |
c9a66001 | 40723 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40725 | (eval $ac_try) 2>&5 | |
40726 | ac_status=$? | |
40727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40728 | (exit $ac_status); }; } && | |
40729 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40731 | (eval $ac_try) 2>&5 | |
40732 | ac_status=$? | |
40733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40734 | (exit $ac_status); }; }; then | |
40735 | ac_cv_lib_shl_load_dld=yes | |
40736 | else | |
40737 | echo "$as_me: failed program was:" >&5 | |
40738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40739 | ||
40740 | ac_cv_lib_shl_load_dld=no | |
40741 | fi | |
ac1cb8d3 VS |
40742 | rm -f conftest.err conftest.$ac_objext \ |
40743 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40744 | LIBS=$ac_check_lib_save_LIBS |
40745 | fi | |
40746 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
40747 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
40748 | if test $ac_cv_lib_shl_load_dld = yes; then | |
40749 | ||
40750 | HAVE_SHL_FUNCS=1 | |
40751 | DL_LINK=" -ldld$DL_LINK" | |
40752 | ||
40753 | fi | |
40754 | ||
40755 | ||
40756 | fi | |
40757 | done | |
40758 | ||
40759 | ||
40760 | fi | |
40761 | ||
40762 | ||
40763 | fi | |
40764 | done | |
40765 | ||
40766 | ||
40767 | if test "$HAVE_DL_FUNCS" = 1; then | |
40768 | ||
40769 | for ac_func in dlerror | |
40770 | do | |
40771 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40772 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40773 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40774 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40776 | else | |
40777 | cat >conftest.$ac_ext <<_ACEOF | |
40778 | /* confdefs.h. */ | |
40779 | _ACEOF | |
40780 | cat confdefs.h >>conftest.$ac_ext | |
40781 | cat >>conftest.$ac_ext <<_ACEOF | |
40782 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40783 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40784 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40785 | #define $ac_func innocuous_$ac_func | |
40786 | ||
a848cd7e SC |
40787 | /* System header to define __stub macros and hopefully few prototypes, |
40788 | which can conflict with char $ac_func (); below. | |
40789 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40790 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40791 | |
a848cd7e SC |
40792 | #ifdef __STDC__ |
40793 | # include <limits.h> | |
40794 | #else | |
40795 | # include <assert.h> | |
40796 | #endif | |
ac1cb8d3 VS |
40797 | |
40798 | #undef $ac_func | |
40799 | ||
a848cd7e SC |
40800 | /* Override any gcc2 internal prototype to avoid an error. */ |
40801 | #ifdef __cplusplus | |
40802 | extern "C" | |
40803 | { | |
40804 | #endif | |
40805 | /* We use char because int might match the return type of a gcc2 | |
40806 | builtin and then its argument prototype would still apply. */ | |
40807 | char $ac_func (); | |
40808 | /* The GNU C library defines this for functions which it implements | |
40809 | to always fail with ENOSYS. Some functions are actually named | |
40810 | something starting with __ and the normal name is an alias. */ | |
40811 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40812 | choke me | |
40813 | #else | |
40814 | char (*f) () = $ac_func; | |
40815 | #endif | |
40816 | #ifdef __cplusplus | |
40817 | } | |
40818 | #endif | |
40819 | ||
40820 | int | |
40821 | main () | |
40822 | { | |
40823 | return f != $ac_func; | |
40824 | ; | |
40825 | return 0; | |
40826 | } | |
40827 | _ACEOF | |
40828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40830 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40831 | ac_status=$? |
ac1cb8d3 VS |
40832 | grep -v '^ *+' conftest.er1 >conftest.err |
40833 | rm -f conftest.er1 | |
40834 | cat conftest.err >&5 | |
a848cd7e SC |
40835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40836 | (exit $ac_status); } && | |
c9a66001 | 40837 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40839 | (eval $ac_try) 2>&5 | |
40840 | ac_status=$? | |
40841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40842 | (exit $ac_status); }; } && | |
40843 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40845 | (eval $ac_try) 2>&5 | |
40846 | ac_status=$? | |
40847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40848 | (exit $ac_status); }; }; then | |
40849 | eval "$as_ac_var=yes" | |
40850 | else | |
40851 | echo "$as_me: failed program was:" >&5 | |
40852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40853 | ||
40854 | eval "$as_ac_var=no" | |
40855 | fi | |
ac1cb8d3 VS |
40856 | rm -f conftest.err conftest.$ac_objext \ |
40857 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40858 | fi |
40859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40860 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40861 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40862 | cat >>confdefs.h <<_ACEOF | |
40863 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40864 | _ACEOF | |
40865 | cat >>confdefs.h <<\_ACEOF | |
40866 | #define HAVE_DLERROR 1 | |
40867 | _ACEOF | |
40868 | ||
40869 | else | |
40870 | ||
40871 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
40872 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
40873 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
40874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40875 | else | |
40876 | ac_check_lib_save_LIBS=$LIBS | |
40877 | LIBS="-ldl $LIBS" | |
40878 | cat >conftest.$ac_ext <<_ACEOF | |
40879 | /* confdefs.h. */ | |
40880 | _ACEOF | |
40881 | cat confdefs.h >>conftest.$ac_ext | |
40882 | cat >>conftest.$ac_ext <<_ACEOF | |
40883 | /* end confdefs.h. */ | |
40884 | ||
40885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40886 | #ifdef __cplusplus | |
40887 | extern "C" | |
40888 | #endif | |
40889 | /* We use char because int might match the return type of a gcc2 | |
40890 | builtin and then its argument prototype would still apply. */ | |
40891 | char dlerror (); | |
40892 | int | |
40893 | main () | |
40894 | { | |
40895 | dlerror (); | |
40896 | ; | |
40897 | return 0; | |
40898 | } | |
40899 | _ACEOF | |
40900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40902 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40903 | ac_status=$? |
ac1cb8d3 VS |
40904 | grep -v '^ *+' conftest.er1 >conftest.err |
40905 | rm -f conftest.er1 | |
40906 | cat conftest.err >&5 | |
a848cd7e SC |
40907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40908 | (exit $ac_status); } && | |
c9a66001 | 40909 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40911 | (eval $ac_try) 2>&5 | |
40912 | ac_status=$? | |
40913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40914 | (exit $ac_status); }; } && | |
40915 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40917 | (eval $ac_try) 2>&5 | |
40918 | ac_status=$? | |
40919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40920 | (exit $ac_status); }; }; then | |
40921 | ac_cv_lib_dl_dlerror=yes | |
40922 | else | |
40923 | echo "$as_me: failed program was:" >&5 | |
40924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40925 | ||
40926 | ac_cv_lib_dl_dlerror=no | |
40927 | fi | |
ac1cb8d3 VS |
40928 | rm -f conftest.err conftest.$ac_objext \ |
40929 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40930 | LIBS=$ac_check_lib_save_LIBS |
40931 | fi | |
40932 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
40933 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
40934 | if test $ac_cv_lib_dl_dlerror = yes; then | |
40935 | cat >>confdefs.h <<\_ACEOF | |
40936 | #define HAVE_DLERROR 1 | |
40937 | _ACEOF | |
40938 | ||
40939 | fi | |
40940 | ||
40941 | ||
40942 | ||
40943 | fi | |
40944 | done | |
40945 | ||
40946 | fi | |
40947 | fi | |
40948 | ||
40949 | if test "$HAVE_DL_FUNCS" = 0; then | |
40950 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 40951 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
40952 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
40953 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
40954 | wxUSE_DYNAMIC_LOADER=no | |
40955 | wxUSE_DYNLIB_CLASS=no | |
40956 | else | |
40957 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
40958 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
40959 | fi | |
40960 | fi | |
40961 | fi | |
40962 | fi | |
40963 | fi | |
40964 | ||
40965 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
40966 | cat >>confdefs.h <<\_ACEOF | |
40967 | #define wxUSE_DYNAMIC_LOADER 1 | |
40968 | _ACEOF | |
40969 | ||
40970 | fi | |
40971 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40972 | cat >>confdefs.h <<\_ACEOF | |
40973 | #define wxUSE_DYNLIB_CLASS 1 | |
40974 | _ACEOF | |
40975 | ||
40976 | fi | |
40977 | ||
40978 | ||
40979 | ||
40980 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40981 | if test "$wxUSE_SHARED" = "no" ; then | |
40982 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
40983 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
40984 | wxUSE_PLUGINS=no | |
40985 | fi | |
40986 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
40987 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
40988 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
40989 | wxUSE_PLUGINS=no | |
40990 | fi | |
40991 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
40992 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
40993 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
40994 | wxUSE_PLUGINS=no | |
40995 | fi | |
40996 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40997 | cat >>confdefs.h <<\_ACEOF | |
40998 | #define wxUSE_PLUGINS 1 | |
40999 | _ACEOF | |
41000 | ||
41001 | fi | |
41002 | fi | |
41003 | ||
41004 | ||
41005 | if test "$wxUSE_STL" = "yes"; then | |
41006 | cat >>confdefs.h <<\_ACEOF | |
41007 | #define wxUSE_STL 1 | |
41008 | _ACEOF | |
41009 | ||
41010 | fi | |
41011 | ||
41012 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
41013 | cat >>confdefs.h <<\_ACEOF | |
41014 | #define wxUSE_APPLE_IEEE 1 | |
41015 | _ACEOF | |
41016 | ||
41017 | fi | |
41018 | ||
41019 | if test "$wxUSE_TIMER" = "yes"; then | |
41020 | cat >>confdefs.h <<\_ACEOF | |
41021 | #define wxUSE_TIMER 1 | |
41022 | _ACEOF | |
41023 | ||
41024 | fi | |
41025 | ||
9c112555 | 41026 | if test "$USE_UNIX" = "1" ; then |
31714590 VZ |
41027 | echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5 |
41028 | echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6 | |
d12aef51 | 41029 | if test "${ac_cv_header_sys_soundcard+set}" = set; then |
a848cd7e | 41030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 41031 | else |
d12aef51 VZ |
41032 | |
41033 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
41034 | /* confdefs.h. */ |
41035 | _ACEOF | |
41036 | cat confdefs.h >>conftest.$ac_ext | |
41037 | cat >>conftest.$ac_ext <<_ACEOF | |
41038 | /* end confdefs.h. */ | |
d12aef51 | 41039 | |
31714590 | 41040 | #include <sys/ioctl.h> |
d12aef51 VZ |
41041 | #include <sys/soundcard.h> |
41042 | ||
41043 | int | |
41044 | main () | |
41045 | { | |
41046 | ||
31714590 | 41047 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
41048 | |
41049 | ; | |
41050 | return 0; | |
41051 | } | |
a848cd7e | 41052 | _ACEOF |
d12aef51 VZ |
41053 | rm -f conftest.$ac_objext conftest$ac_exeext |
41054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41055 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 41056 | ac_status=$? |
ac1cb8d3 VS |
41057 | grep -v '^ *+' conftest.er1 >conftest.err |
41058 | rm -f conftest.er1 | |
41059 | cat conftest.err >&5 | |
a848cd7e SC |
41060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41061 | (exit $ac_status); } && | |
c9a66001 | 41062 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41064 | (eval $ac_try) 2>&5 | |
41065 | ac_status=$? | |
41066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41067 | (exit $ac_status); }; } && | |
d12aef51 | 41068 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
41069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41070 | (eval $ac_try) 2>&5 | |
41071 | ac_status=$? | |
41072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41073 | (exit $ac_status); }; }; then | |
d12aef51 | 41074 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
41075 | else |
41076 | echo "$as_me: failed program was:" >&5 | |
41077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41078 | ||
a848cd7e | 41079 | |
d12aef51 VZ |
41080 | saveLibs="$LIBS" |
41081 | LIBS="$saveLibs -lossaudio" | |
41082 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
41083 | /* confdefs.h. */ |
41084 | _ACEOF | |
41085 | cat confdefs.h >>conftest.$ac_ext | |
41086 | cat >>conftest.$ac_ext <<_ACEOF | |
41087 | /* end confdefs.h. */ | |
d12aef51 | 41088 | |
31714590 | 41089 | #include <sys/ioctl.h> |
d12aef51 VZ |
41090 | #include <sys/soundcard.h> |
41091 | ||
41092 | int | |
41093 | main () | |
41094 | { | |
41095 | ||
31714590 | 41096 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
41097 | |
41098 | ; | |
41099 | return 0; | |
41100 | } | |
a848cd7e | 41101 | _ACEOF |
d12aef51 VZ |
41102 | rm -f conftest.$ac_objext conftest$ac_exeext |
41103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41104 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
41105 | ac_status=$? |
41106 | grep -v '^ *+' conftest.er1 >conftest.err | |
41107 | rm -f conftest.er1 | |
41108 | cat conftest.err >&5 | |
41109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 41110 | (exit $ac_status); } && |
c9a66001 | 41111 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
41112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41113 | (eval $ac_try) 2>&5 | |
41114 | ac_status=$? | |
41115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41116 | (exit $ac_status); }; } && | |
41117 | { ac_try='test -s conftest$ac_exeext' | |
41118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41119 | (eval $ac_try) 2>&5 | |
41120 | ac_status=$? | |
41121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41122 | (exit $ac_status); }; }; then | |
41123 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
41124 | else |
41125 | echo "$as_me: failed program was:" >&5 | |
41126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41127 | ||
a848cd7e | 41128 | |
d12aef51 VZ |
41129 | LIBS="$saveLibs" |
41130 | ac_cv_header_sys_soundcard=no | |
41131 | ||
41132 | ||
a848cd7e | 41133 | fi |
d12aef51 VZ |
41134 | rm -f conftest.err conftest.$ac_objext \ |
41135 | conftest$ac_exeext conftest.$ac_ext | |
41136 | ||
a848cd7e SC |
41137 | |
41138 | fi | |
d12aef51 VZ |
41139 | rm -f conftest.err conftest.$ac_objext \ |
41140 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41141 | |
41142 | fi | |
d12aef51 VZ |
41143 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
41144 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 41145 | |
d12aef51 VZ |
41146 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
41147 | cat >>confdefs.h <<\_ACEOF | |
41148 | #define HAVE_SYS_SOUNDCARD_H 1 | |
41149 | _ACEOF | |
a848cd7e | 41150 | |
d12aef51 VZ |
41151 | else |
41152 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
41153 | fi | |
9c112555 MW |
41154 | fi |
41155 | WITH_PLUGIN_SDL=0 | |
41156 | if test "$wxUSE_SOUND" = "yes"; then | |
41157 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
41158 | if test "$wxUSE_LIBSDL" != "no"; then |
41159 | ||
41160 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
41161 | if test "${with_sdl_prefix+set}" = set; then | |
41162 | withval="$with_sdl_prefix" | |
41163 | sdl_prefix="$withval" | |
41164 | else | |
41165 | sdl_prefix="" | |
41166 | fi; | |
41167 | ||
41168 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
41169 | if test "${with_sdl_exec_prefix+set}" = set; then | |
41170 | withval="$with_sdl_exec_prefix" | |
41171 | sdl_exec_prefix="$withval" | |
41172 | else | |
41173 | sdl_exec_prefix="" | |
41174 | fi; | |
41175 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
41176 | if test "${enable_sdltest+set}" = set; then | |
41177 | enableval="$enable_sdltest" | |
41178 | ||
41179 | else | |
41180 | enable_sdltest=yes | |
41181 | fi; | |
41182 | ||
41183 | if test x$sdl_exec_prefix != x ; then | |
41184 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
41185 | if test x${SDL_CONFIG+set} != xset ; then | |
41186 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
41187 | fi | |
41188 | fi | |
41189 | if test x$sdl_prefix != x ; then | |
41190 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
41191 | if test x${SDL_CONFIG+set} != xset ; then | |
41192 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
41193 | fi | |
41194 | fi | |
41195 | ||
41196 | ||
41197 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
41198 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
41199 | set dummy sdl-config; ac_word=$2 | |
41200 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41202 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
41203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41204 | else | |
41205 | case $SDL_CONFIG in | |
41206 | [\\/]* | ?:[\\/]*) | |
41207 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
41208 | ;; | |
41209 | *) | |
41210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41211 | for as_dir in $PATH | |
41212 | do | |
41213 | IFS=$as_save_IFS | |
41214 | test -z "$as_dir" && as_dir=. | |
41215 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41216 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41217 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41219 | break 2 | |
41220 | fi | |
41221 | done | |
41222 | done | |
41223 | ||
41224 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
41225 | ;; | |
41226 | esac | |
41227 | fi | |
41228 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
41229 | ||
41230 | if test -n "$SDL_CONFIG"; then | |
41231 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
41232 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
41233 | else | |
41234 | echo "$as_me:$LINENO: result: no" >&5 | |
41235 | echo "${ECHO_T}no" >&6 | |
41236 | fi | |
41237 | ||
41238 | min_sdl_version=1.2.0 | |
41239 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
41240 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
41241 | no_sdl="" | |
41242 | if test "$SDL_CONFIG" = "no" ; then | |
41243 | no_sdl=yes | |
41244 | else | |
41245 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
41246 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
41247 | ||
41248 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
41249 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41250 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
41251 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41252 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
41253 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41254 | if test "x$enable_sdltest" = "xyes" ; then | |
41255 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 41256 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
41257 | ac_save_LIBS="$LIBS" |
41258 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 41259 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
41260 | LIBS="$LIBS $SDL_LIBS" |
41261 | rm -f conf.sdltest | |
41262 | if test "$cross_compiling" = yes; then | |
41263 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
41264 | else | |
41265 | cat >conftest.$ac_ext <<_ACEOF | |
41266 | /* confdefs.h. */ | |
41267 | _ACEOF | |
41268 | cat confdefs.h >>conftest.$ac_ext | |
41269 | cat >>conftest.$ac_ext <<_ACEOF | |
41270 | /* end confdefs.h. */ | |
41271 | ||
41272 | #include <stdio.h> | |
41273 | #include <stdlib.h> | |
41274 | #include <string.h> | |
41275 | #include "SDL.h" | |
41276 | ||
41277 | char* | |
41278 | my_strdup (char *str) | |
41279 | { | |
41280 | char *new_str; | |
41281 | ||
41282 | if (str) | |
41283 | { | |
41284 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
41285 | strcpy (new_str, str); | |
41286 | } | |
41287 | else | |
41288 | new_str = NULL; | |
41289 | ||
41290 | return new_str; | |
41291 | } | |
41292 | ||
41293 | int main (int argc, char *argv[]) | |
41294 | { | |
41295 | int major, minor, micro; | |
41296 | char *tmp_version; | |
41297 | ||
41298 | /* This hangs on some systems (?) | |
41299 | system ("touch conf.sdltest"); | |
41300 | */ | |
41301 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
41302 | ||
41303 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
41304 | tmp_version = my_strdup("$min_sdl_version"); | |
41305 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
41306 | printf("%s, bad version string\n", "$min_sdl_version"); | |
41307 | exit(1); | |
41308 | } | |
41309 | ||
41310 | if (($sdl_major_version > major) || | |
41311 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
41312 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
41313 | { | |
41314 | return 0; | |
41315 | } | |
41316 | else | |
41317 | { | |
41318 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
41319 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
41320 | printf("*** best to upgrade to the required version.\n"); | |
41321 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
41322 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
41323 | printf("*** config.cache before re-running configure\n"); | |
41324 | return 1; | |
41325 | } | |
41326 | } | |
41327 | ||
41328 | ||
41329 | _ACEOF | |
41330 | rm -f conftest$ac_exeext | |
41331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41332 | (eval $ac_link) 2>&5 | |
41333 | ac_status=$? | |
41334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
41336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41337 | (eval $ac_try) 2>&5 | |
41338 | ac_status=$? | |
41339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41340 | (exit $ac_status); }; }; then | |
41341 | : | |
41342 | else | |
41343 | echo "$as_me: program exited with status $ac_status" >&5 | |
41344 | echo "$as_me: failed program was:" >&5 | |
41345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41346 | ||
41347 | ( exit $ac_status ) | |
41348 | no_sdl=yes | |
41349 | fi | |
ac1cb8d3 | 41350 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41351 | fi |
41352 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 41353 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
41354 | LIBS="$ac_save_LIBS" |
41355 | fi | |
41356 | fi | |
41357 | if test "x$no_sdl" = x ; then | |
41358 | echo "$as_me:$LINENO: result: yes" >&5 | |
41359 | echo "${ECHO_T}yes" >&6 | |
41360 | ||
41361 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 41362 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
41363 | cat >>confdefs.h <<\_ACEOF |
41364 | #define wxUSE_LIBSDL 1 | |
41365 | _ACEOF | |
41366 | ||
41367 | ||
41368 | else | |
41369 | echo "$as_me:$LINENO: result: no" >&5 | |
41370 | echo "${ECHO_T}no" >&6 | |
41371 | if test "$SDL_CONFIG" = "no" ; then | |
41372 | echo "*** The sdl-config script installed by SDL could not be found" | |
41373 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
41374 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
41375 | echo "*** full path to sdl-config." | |
41376 | else | |
41377 | if test -f conf.sdltest ; then | |
41378 | : | |
41379 | else | |
41380 | echo "*** Could not run SDL test program, checking why..." | |
41381 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 41382 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
41383 | LIBS="$LIBS $SDL_LIBS" |
41384 | cat >conftest.$ac_ext <<_ACEOF | |
41385 | /* confdefs.h. */ | |
41386 | _ACEOF | |
41387 | cat confdefs.h >>conftest.$ac_ext | |
41388 | cat >>conftest.$ac_ext <<_ACEOF | |
41389 | /* end confdefs.h. */ | |
41390 | ||
41391 | #include <stdio.h> | |
41392 | #include "SDL.h" | |
41393 | ||
41394 | int main(int argc, char *argv[]) | |
41395 | { return 0; } | |
41396 | #undef main | |
41397 | #define main K_and_R_C_main | |
41398 | ||
41399 | int | |
41400 | main () | |
41401 | { | |
41402 | return 0; | |
41403 | ; | |
41404 | return 0; | |
41405 | } | |
41406 | _ACEOF | |
41407 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41409 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41410 | ac_status=$? |
ac1cb8d3 VS |
41411 | grep -v '^ *+' conftest.er1 >conftest.err |
41412 | rm -f conftest.er1 | |
41413 | cat conftest.err >&5 | |
a848cd7e SC |
41414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41415 | (exit $ac_status); } && | |
c9a66001 | 41416 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41418 | (eval $ac_try) 2>&5 | |
41419 | ac_status=$? | |
41420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41421 | (exit $ac_status); }; } && | |
41422 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41424 | (eval $ac_try) 2>&5 | |
41425 | ac_status=$? | |
41426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41427 | (exit $ac_status); }; }; then | |
41428 | echo "*** The test program compiled, but did not run. This usually means" | |
41429 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
41430 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
41431 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
41432 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
41433 | echo "*** is required on your system" | |
41434 | echo "***" | |
41435 | echo "*** If you have an old version installed, it is best to remove it, although" | |
41436 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
41437 | else | |
41438 | echo "$as_me: failed program was:" >&5 | |
41439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41440 | ||
41441 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
41442 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
41443 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
41444 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
41445 | fi | |
ac1cb8d3 VS |
41446 | rm -f conftest.err conftest.$ac_objext \ |
41447 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 41448 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 41449 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
41450 | LIBS="$ac_save_LIBS" |
41451 | fi | |
41452 | fi | |
41453 | SDL_CFLAGS="" | |
41454 | SDL_LIBS="" | |
41455 | wxUSE_LIBSDL="no" | |
41456 | fi | |
41457 | ||
41458 | ||
41459 | rm -f conf.sdltest | |
41460 | ||
41461 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
41462 | WITH_PLUGIN_SDL=1 | |
41463 | fi | |
41464 | fi | |
41465 | fi | |
41466 | ||
41467 | cat >>confdefs.h <<\_ACEOF | |
41468 | #define wxUSE_SOUND 1 | |
41469 | _ACEOF | |
41470 | ||
41471 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
41472 | fi | |
41473 | ||
d1c38808 VZ |
41474 | if test "$WXGTK20" = 1; then |
41475 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
41476 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
41477 | ||
41478 | ||
41479 | succeeded=no | |
41480 | ||
41481 | if test -z "$PKG_CONFIG"; then | |
41482 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41483 | set dummy pkg-config; ac_word=$2 | |
41484 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41486 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41488 | else | |
41489 | case $PKG_CONFIG in | |
41490 | [\\/]* | ?:[\\/]*) | |
41491 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41492 | ;; | |
41493 | *) | |
41494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41495 | for as_dir in $PATH | |
41496 | do | |
41497 | IFS=$as_save_IFS | |
41498 | test -z "$as_dir" && as_dir=. | |
41499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41501 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41503 | break 2 | |
41504 | fi | |
41505 | done | |
41506 | done | |
41507 | ||
41508 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41509 | ;; | |
41510 | esac | |
41511 | fi | |
41512 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41513 | ||
41514 | if test -n "$PKG_CONFIG"; then | |
41515 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41516 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41517 | else | |
41518 | echo "$as_me:$LINENO: result: no" >&5 | |
41519 | echo "${ECHO_T}no" >&6 | |
41520 | fi | |
41521 | ||
41522 | fi | |
41523 | ||
41524 | if test "$PKG_CONFIG" = "no" ; then | |
41525 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41526 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41527 | echo "*** to the full path to pkg-config." | |
41528 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41529 | else | |
41530 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41531 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
41532 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
41533 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 41534 | |
ffa762ff | 41535 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
41536 | echo "$as_me:$LINENO: result: yes" >&5 |
41537 | echo "${ECHO_T}yes" >&6 | |
41538 | succeeded=yes | |
41539 | ||
41540 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
41541 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 41542 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41543 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
41544 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
41545 | ||
41546 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
41547 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 41548 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41549 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
41550 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
41551 | else | |
41552 | LIBGNOMEPRINTUI_CFLAGS="" | |
41553 | LIBGNOMEPRINTUI_LIBS="" | |
41554 | ## If we have a custom action on failure, don't print errors, but | |
41555 | ## do set a variable so people can do so. | |
ffa762ff | 41556 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41557 | |
41558 | fi | |
41559 | ||
41560 | ||
41561 | ||
41562 | else | |
41563 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41564 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41565 | fi | |
41566 | fi | |
41567 | ||
41568 | if test $succeeded = yes; then | |
41569 | ||
c92ad099 | 41570 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
41571 | cat >>confdefs.h <<\_ACEOF |
41572 | #define wxUSE_LIBGNOMEPRINT 1 | |
41573 | _ACEOF | |
41574 | ||
41575 | ||
41576 | else | |
41577 | ||
41578 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
41579 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
41580 | wxUSE_LIBGNOMEPRINT="no" | |
41581 | ||
41582 | ||
41583 | fi | |
41584 | ||
41585 | fi | |
41586 | fi | |
41587 | fi | |
41588 | ||
2b850ae1 RR |
41589 | if test "$WXGTK20" = 1; then |
41590 | if test "$wxUSE_MIMETYPE" = "yes" ; then | |
41591 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
41592 | ||
41593 | ||
41594 | succeeded=no | |
41595 | ||
41596 | if test -z "$PKG_CONFIG"; then | |
41597 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41598 | set dummy pkg-config; ac_word=$2 | |
41599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41601 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41603 | else | |
41604 | case $PKG_CONFIG in | |
41605 | [\\/]* | ?:[\\/]*) | |
41606 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41607 | ;; | |
41608 | *) | |
41609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41610 | for as_dir in $PATH | |
41611 | do | |
41612 | IFS=$as_save_IFS | |
41613 | test -z "$as_dir" && as_dir=. | |
41614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41616 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41618 | break 2 | |
41619 | fi | |
41620 | done | |
41621 | done | |
41622 | ||
41623 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41624 | ;; | |
41625 | esac | |
41626 | fi | |
41627 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41628 | ||
41629 | if test -n "$PKG_CONFIG"; then | |
41630 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41631 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41632 | else | |
41633 | echo "$as_me:$LINENO: result: no" >&5 | |
41634 | echo "${ECHO_T}no" >&6 | |
41635 | fi | |
41636 | ||
41637 | fi | |
41638 | ||
41639 | if test "$PKG_CONFIG" = "no" ; then | |
41640 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41641 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41642 | echo "*** to the full path to pkg-config." | |
41643 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41644 | else | |
41645 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41646 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41647 | echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5 | |
41648 | echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6 | |
41649 | ||
41650 | if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then | |
41651 | echo "$as_me:$LINENO: result: yes" >&5 | |
41652 | echo "${ECHO_T}yes" >&6 | |
41653 | succeeded=yes | |
41654 | ||
41655 | echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5 | |
41656 | echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6 | |
41657 | GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"` | |
41658 | echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5 | |
41659 | echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6 | |
41660 | ||
41661 | echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5 | |
41662 | echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6 | |
41663 | GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"` | |
41664 | echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5 | |
41665 | echo "${ECHO_T}$GNOMEVFS_LIBS" >&6 | |
41666 | else | |
41667 | GNOMEVFS_CFLAGS="" | |
41668 | GNOMEVFS_LIBS="" | |
41669 | ## If we have a custom action on failure, don't print errors, but | |
41670 | ## do set a variable so people can do so. | |
41671 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
41672 | ||
41673 | fi | |
41674 | ||
41675 | ||
41676 | ||
41677 | else | |
41678 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41679 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41680 | fi | |
41681 | fi | |
41682 | ||
41683 | if test $succeeded = yes; then | |
41684 | ||
41685 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" | |
41686 | cat >>confdefs.h <<\_ACEOF | |
41687 | #define wxUSE_LIBGNOMEVFS 1 | |
41688 | _ACEOF | |
41689 | ||
41690 | ||
41691 | else | |
41692 | ||
41693 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 | |
41694 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
41695 | wxUSE_LIBGNOMEVFS="no" | |
41696 | ||
41697 | ||
41698 | fi | |
41699 | ||
41700 | fi | |
41701 | fi | |
41702 | fi | |
41703 | ||
3565d135 RR |
41704 | if test "$WXGTK20" = 1; then |
41705 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
41706 | ||
41707 | succeeded=no | |
41708 | ||
41709 | if test -z "$PKG_CONFIG"; then | |
41710 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41711 | set dummy pkg-config; ac_word=$2 | |
41712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41714 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41716 | else | |
41717 | case $PKG_CONFIG in | |
41718 | [\\/]* | ?:[\\/]*) | |
41719 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41720 | ;; | |
41721 | *) | |
41722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41723 | for as_dir in $PATH | |
41724 | do | |
41725 | IFS=$as_save_IFS | |
41726 | test -z "$as_dir" && as_dir=. | |
41727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41729 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41731 | break 2 | |
41732 | fi | |
41733 | done | |
41734 | done | |
41735 | ||
41736 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41737 | ;; | |
41738 | esac | |
41739 | fi | |
41740 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41741 | ||
41742 | if test -n "$PKG_CONFIG"; then | |
41743 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41744 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41745 | else | |
41746 | echo "$as_me:$LINENO: result: no" >&5 | |
41747 | echo "${ECHO_T}no" >&6 | |
41748 | fi | |
41749 | ||
41750 | fi | |
41751 | ||
41752 | if test "$PKG_CONFIG" = "no" ; then | |
41753 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41754 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41755 | echo "*** to the full path to pkg-config." | |
41756 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41757 | else | |
41758 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41759 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41760 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
41761 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
41762 | ||
41763 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
41764 | echo "$as_me:$LINENO: result: yes" >&5 | |
41765 | echo "${ECHO_T}yes" >&6 | |
41766 | succeeded=yes | |
41767 | ||
41768 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
41769 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
41770 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
41771 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
41772 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
41773 | ||
41774 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
41775 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
41776 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
41777 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
41778 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
41779 | else | |
41780 | HILDON_CFLAGS="" | |
41781 | HILDON_LIBS="" | |
41782 | ## If we have a custom action on failure, don't print errors, but | |
41783 | ## do set a variable so people can do so. | |
41784 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
41785 | ||
41786 | fi | |
41787 | ||
41788 | ||
41789 | ||
41790 | else | |
41791 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41792 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41793 | fi | |
41794 | fi | |
41795 | ||
41796 | if test $succeeded = yes; then | |
41797 | ||
41798 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
41799 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
41800 | cat >>confdefs.h <<\_ACEOF | |
41801 | #define wxUSE_LIBHILDON 1 | |
41802 | _ACEOF | |
41803 | ||
41804 | ||
41805 | else | |
41806 | ||
41807 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
41808 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
41809 | wxUSE_LIBHILDON="no" | |
41810 | ||
41811 | ||
41812 | fi | |
41813 | ||
41814 | fi | |
41815 | fi | |
d1c38808 | 41816 | |
a848cd7e SC |
41817 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
41818 | cat >>confdefs.h <<\_ACEOF | |
41819 | #define wxUSE_CMDLINE_PARSER 1 | |
41820 | _ACEOF | |
41821 | ||
41822 | fi | |
41823 | ||
41824 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
41825 | cat >>confdefs.h <<\_ACEOF | |
41826 | #define wxUSE_STOPWATCH 1 | |
41827 | _ACEOF | |
41828 | ||
41829 | fi | |
41830 | ||
41831 | if test "$wxUSE_DATETIME" = "yes"; then | |
41832 | cat >>confdefs.h <<\_ACEOF | |
41833 | #define wxUSE_DATETIME 1 | |
41834 | _ACEOF | |
41835 | ||
41836 | fi | |
41837 | ||
41838 | if test "$wxUSE_FILE" = "yes"; then | |
41839 | cat >>confdefs.h <<\_ACEOF | |
41840 | #define wxUSE_FILE 1 | |
41841 | _ACEOF | |
41842 | ||
41843 | fi | |
41844 | ||
41845 | if test "$wxUSE_FFILE" = "yes"; then | |
41846 | cat >>confdefs.h <<\_ACEOF | |
41847 | #define wxUSE_FFILE 1 | |
41848 | _ACEOF | |
41849 | ||
41850 | fi | |
41851 | ||
41852 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
41853 | cat >>confdefs.h <<\_ACEOF | |
41854 | #define wxUSE_FILESYSTEM 1 | |
41855 | _ACEOF | |
41856 | ||
41857 | fi | |
41858 | ||
41859 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
41860 | cat >>confdefs.h <<\_ACEOF | |
41861 | #define wxUSE_FS_ZIP 1 | |
41862 | _ACEOF | |
41863 | ||
41864 | fi | |
41865 | ||
9e8e867f | 41866 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 41867 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 41868 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
41869 | _ACEOF |
41870 | ||
41871 | fi | |
41872 | ||
41873 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 41874 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
41875 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
41876 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
41877 | elif test "$wxUSE_ZLIB" = "no"; then | |
41878 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
41879 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
41880 | else | |
41881 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41882 | #define wxUSE_ZIPSTREAM 1 |
41883 | _ACEOF | |
41884 | ||
81f90336 | 41885 | fi |
a848cd7e SC |
41886 | fi |
41887 | ||
a848cd7e | 41888 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
41889 | if test "$USE_UNIX" != 1; then |
41890 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
41891 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
41892 | wxUSE_ON_FATAL_EXCEPTION=no | |
41893 | else | |
41894 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41895 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
41896 | _ACEOF | |
41897 | ||
18228ab4 | 41898 | fi |
a848cd7e SC |
41899 | fi |
41900 | ||
eaff0f0d VZ |
41901 | if test "$wxUSE_STACKWALKER" = "yes"; then |
41902 | cat >>confdefs.h <<\_ACEOF | |
41903 | #define wxUSE_STACKWALKER 1 | |
41904 | _ACEOF | |
41905 | ||
41906 | fi | |
41907 | ||
36b6448c | 41908 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
41909 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
41910 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
41911 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
41912 | wxUSE_DEBUGREPORT=no |
41913 | else | |
41914 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
41915 | #define wxUSE_DEBUGREPORT 1 |
41916 | _ACEOF | |
41917 | ||
21dfc162 MW |
41918 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
41919 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
41920 | fi | |
dfe0c803 | 41921 | fi |
36b6448c VZ |
41922 | fi |
41923 | ||
a848cd7e SC |
41924 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
41925 | cat >>confdefs.h <<\_ACEOF | |
41926 | #define wxUSE_SNGLINST_CHECKER 1 | |
41927 | _ACEOF | |
41928 | ||
41929 | fi | |
41930 | ||
41931 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
41932 | cat >>confdefs.h <<\_ACEOF | |
41933 | #define wxUSE_BUSYINFO 1 | |
41934 | _ACEOF | |
41935 | ||
41936 | fi | |
41937 | ||
41938 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
41939 | cat >>confdefs.h <<\_ACEOF | |
41940 | #define wxUSE_STD_IOSTREAM 1 | |
41941 | _ACEOF | |
41942 | ||
41943 | fi | |
41944 | ||
59746b65 MW |
41945 | if test "$wxUSE_STD_STRING" = "yes"; then |
41946 | cat >>confdefs.h <<\_ACEOF | |
41947 | #define wxUSE_STD_STRING 1 | |
41948 | _ACEOF | |
41949 | ||
41950 | fi | |
41951 | ||
07158944 VZ |
41952 | if test "$wxUSE_STDPATHS" = "yes"; then |
41953 | cat >>confdefs.h <<\_ACEOF | |
41954 | #define wxUSE_STDPATHS 1 | |
41955 | _ACEOF | |
41956 | ||
41957 | fi | |
41958 | ||
a848cd7e SC |
41959 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
41960 | cat >>confdefs.h <<\_ACEOF | |
41961 | #define wxUSE_TEXTBUFFER 1 | |
41962 | _ACEOF | |
41963 | ||
41964 | fi | |
41965 | ||
41966 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
41967 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
41968 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
41969 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
41970 | else | |
41971 | cat >>confdefs.h <<\_ACEOF | |
41972 | #define wxUSE_TEXTFILE 1 | |
41973 | _ACEOF | |
41974 | ||
41975 | fi | |
41976 | fi | |
41977 | ||
41978 | if test "$wxUSE_CONFIG" = "yes" ; then | |
41979 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
41980 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
41981 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
41982 | else | |
41983 | cat >>confdefs.h <<\_ACEOF | |
41984 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
41985 | _ACEOF |
41986 | ||
41987 | cat >>confdefs.h <<\_ACEOF | |
41988 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
41989 | _ACEOF |
41990 | ||
41991 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
41992 | fi | |
41993 | fi | |
41994 | ||
41995 | if test "$wxUSE_INTL" = "yes" ; then | |
41996 | if test "$wxUSE_FILE" != "yes"; then | |
41997 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
41998 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
41999 | else | |
42000 | cat >>confdefs.h <<\_ACEOF | |
42001 | #define wxUSE_INTL 1 | |
42002 | _ACEOF | |
42003 | ||
42004 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
42005 | GUIDIST="$GUIDIST INTL_DIST" | |
42006 | fi | |
42007 | fi | |
42008 | ||
42009 | if test "$wxUSE_LOG" = "yes"; then | |
42010 | cat >>confdefs.h <<\_ACEOF | |
42011 | #define wxUSE_LOG 1 | |
42012 | _ACEOF | |
42013 | ||
42014 | ||
42015 | if test "$wxUSE_LOGGUI" = "yes"; then | |
42016 | cat >>confdefs.h <<\_ACEOF | |
42017 | #define wxUSE_LOGGUI 1 | |
42018 | _ACEOF | |
42019 | ||
42020 | fi | |
42021 | ||
42022 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
42023 | cat >>confdefs.h <<\_ACEOF | |
42024 | #define wxUSE_LOGWINDOW 1 | |
42025 | _ACEOF | |
42026 | ||
42027 | fi | |
42028 | ||
42029 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
42030 | cat >>confdefs.h <<\_ACEOF | |
42031 | #define wxUSE_LOG_DIALOG 1 | |
42032 | _ACEOF | |
42033 | ||
42034 | fi | |
0b78747f MW |
42035 | |
42036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
42037 | fi |
42038 | ||
42039 | if test "$wxUSE_LONGLONG" = "yes"; then | |
42040 | cat >>confdefs.h <<\_ACEOF | |
42041 | #define wxUSE_LONGLONG 1 | |
42042 | _ACEOF | |
42043 | ||
42044 | fi | |
42045 | ||
42046 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
42047 | cat >>confdefs.h <<\_ACEOF | |
42048 | #define wxUSE_GEOMETRY 1 | |
42049 | _ACEOF | |
42050 | ||
42051 | fi | |
42052 | ||
a848cd7e SC |
42053 | if test "$wxUSE_STREAMS" = "yes" ; then |
42054 | cat >>confdefs.h <<\_ACEOF | |
42055 | #define wxUSE_STREAMS 1 | |
42056 | _ACEOF | |
42057 | ||
42058 | fi | |
42059 | ||
8b6682b9 JS |
42060 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then |
42061 | cat >>confdefs.h <<\_ACEOF | |
42062 | #define wxUSE_PRINTF_POS_PARAMS 1 | |
42063 | _ACEOF | |
42064 | ||
42065 | fi | |
42066 | ||
42067 | ||
a848cd7e SC |
42068 | |
42069 | if test "$wxUSE_DATETIME" = "yes"; then | |
42070 | ||
42071 | for ac_func in strptime | |
42072 | do | |
42073 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42074 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42075 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42076 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42078 | else | |
42079 | cat >conftest.$ac_ext <<_ACEOF | |
42080 | /* confdefs.h. */ | |
42081 | _ACEOF | |
42082 | cat confdefs.h >>conftest.$ac_ext | |
42083 | cat >>conftest.$ac_ext <<_ACEOF | |
42084 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42085 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42087 | #define $ac_func innocuous_$ac_func | |
42088 | ||
a848cd7e SC |
42089 | /* System header to define __stub macros and hopefully few prototypes, |
42090 | which can conflict with char $ac_func (); below. | |
42091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42092 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42093 | |
a848cd7e SC |
42094 | #ifdef __STDC__ |
42095 | # include <limits.h> | |
42096 | #else | |
42097 | # include <assert.h> | |
42098 | #endif | |
ac1cb8d3 VS |
42099 | |
42100 | #undef $ac_func | |
42101 | ||
a848cd7e SC |
42102 | /* Override any gcc2 internal prototype to avoid an error. */ |
42103 | #ifdef __cplusplus | |
42104 | extern "C" | |
42105 | { | |
42106 | #endif | |
42107 | /* We use char because int might match the return type of a gcc2 | |
42108 | builtin and then its argument prototype would still apply. */ | |
42109 | char $ac_func (); | |
42110 | /* The GNU C library defines this for functions which it implements | |
42111 | to always fail with ENOSYS. Some functions are actually named | |
42112 | something starting with __ and the normal name is an alias. */ | |
42113 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42114 | choke me | |
42115 | #else | |
42116 | char (*f) () = $ac_func; | |
42117 | #endif | |
42118 | #ifdef __cplusplus | |
42119 | } | |
42120 | #endif | |
42121 | ||
42122 | int | |
42123 | main () | |
42124 | { | |
42125 | return f != $ac_func; | |
42126 | ; | |
42127 | return 0; | |
42128 | } | |
42129 | _ACEOF | |
42130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42132 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42133 | ac_status=$? |
ac1cb8d3 VS |
42134 | grep -v '^ *+' conftest.er1 >conftest.err |
42135 | rm -f conftest.er1 | |
42136 | cat conftest.err >&5 | |
a848cd7e SC |
42137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42138 | (exit $ac_status); } && | |
c9a66001 | 42139 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42141 | (eval $ac_try) 2>&5 | |
42142 | ac_status=$? | |
42143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42144 | (exit $ac_status); }; } && | |
42145 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42147 | (eval $ac_try) 2>&5 | |
42148 | ac_status=$? | |
42149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42150 | (exit $ac_status); }; }; then | |
42151 | eval "$as_ac_var=yes" | |
42152 | else | |
42153 | echo "$as_me: failed program was:" >&5 | |
42154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42155 | ||
42156 | eval "$as_ac_var=no" | |
42157 | fi | |
ac1cb8d3 VS |
42158 | rm -f conftest.err conftest.$ac_objext \ |
42159 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42160 | fi |
42161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42162 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42163 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42164 | cat >>confdefs.h <<_ACEOF | |
42165 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42166 | _ACEOF | |
42167 | ||
42168 | fi | |
42169 | done | |
42170 | ||
f536f005 VZ |
42171 | if test "$ac_cv_func_strptime" = "yes"; then |
42172 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
42173 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
42174 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
42175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42176 | else | |
42177 | ||
f536f005 VZ |
42178 | cat >conftest.$ac_ext <<_ACEOF |
42179 | /* confdefs.h. */ | |
42180 | _ACEOF | |
42181 | cat confdefs.h >>conftest.$ac_ext | |
42182 | cat >>conftest.$ac_ext <<_ACEOF | |
42183 | /* end confdefs.h. */ | |
42184 | ||
42185 | #include <time.h> | |
42186 | ||
42187 | int | |
42188 | main () | |
42189 | { | |
42190 | ||
42191 | struct tm t; | |
42192 | strptime("foo", "bar", &t); | |
42193 | ||
42194 | ; | |
42195 | return 0; | |
42196 | } | |
42197 | _ACEOF | |
42198 | rm -f conftest.$ac_objext | |
42199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42200 | (eval $ac_compile) 2>conftest.er1 | |
42201 | ac_status=$? | |
42202 | grep -v '^ *+' conftest.er1 >conftest.err | |
42203 | rm -f conftest.er1 | |
42204 | cat conftest.err >&5 | |
42205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42206 | (exit $ac_status); } && | |
c9a66001 | 42207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f536f005 VZ |
42208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42209 | (eval $ac_try) 2>&5 | |
42210 | ac_status=$? | |
42211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42212 | (exit $ac_status); }; } && | |
42213 | { ac_try='test -s conftest.$ac_objext' | |
42214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42215 | (eval $ac_try) 2>&5 | |
42216 | ac_status=$? | |
42217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42218 | (exit $ac_status); }; }; then | |
42219 | wx_cv_func_strptime_decl=yes | |
42220 | else | |
42221 | echo "$as_me: failed program was:" >&5 | |
42222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42223 | ||
42224 | wx_cv_func_strptime_decl=no | |
42225 | ||
42226 | fi | |
42227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f536f005 VZ |
42228 | |
42229 | ||
42230 | fi | |
42231 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
42232 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
42233 | fi | |
42234 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
42235 | cat >>confdefs.h <<\_ACEOF | |
42236 | #define HAVE_STRPTIME_DECL 1 | |
42237 | _ACEOF | |
42238 | ||
42239 | fi | |
a848cd7e SC |
42240 | |
42241 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
42242 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
42243 | if test "${wx_cv_var_timezone+set}" = set; then | |
42244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42245 | else | |
42246 | ||
42247 | cat >conftest.$ac_ext <<_ACEOF | |
42248 | /* confdefs.h. */ | |
42249 | _ACEOF | |
42250 | cat confdefs.h >>conftest.$ac_ext | |
42251 | cat >>conftest.$ac_ext <<_ACEOF | |
42252 | /* end confdefs.h. */ | |
42253 | ||
42254 | #include <time.h> | |
42255 | ||
42256 | int | |
42257 | main () | |
42258 | { | |
42259 | ||
42260 | int tz; | |
42261 | tz = timezone; | |
42262 | ||
42263 | ; | |
42264 | return 0; | |
42265 | } | |
42266 | _ACEOF | |
42267 | rm -f conftest.$ac_objext | |
42268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42269 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42270 | ac_status=$? |
ac1cb8d3 VS |
42271 | grep -v '^ *+' conftest.er1 >conftest.err |
42272 | rm -f conftest.er1 | |
42273 | cat conftest.err >&5 | |
a848cd7e SC |
42274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42275 | (exit $ac_status); } && | |
c9a66001 | 42276 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42278 | (eval $ac_try) 2>&5 | |
42279 | ac_status=$? | |
42280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42281 | (exit $ac_status); }; } && | |
42282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42284 | (eval $ac_try) 2>&5 | |
42285 | ac_status=$? | |
42286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42287 | (exit $ac_status); }; }; then | |
42288 | ||
42289 | wx_cv_var_timezone=timezone | |
42290 | ||
42291 | else | |
42292 | echo "$as_me: failed program was:" >&5 | |
42293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42294 | ||
42295 | ||
42296 | cat >conftest.$ac_ext <<_ACEOF | |
42297 | /* confdefs.h. */ | |
42298 | _ACEOF | |
42299 | cat confdefs.h >>conftest.$ac_ext | |
42300 | cat >>conftest.$ac_ext <<_ACEOF | |
42301 | /* end confdefs.h. */ | |
42302 | ||
42303 | #include <time.h> | |
42304 | ||
42305 | int | |
42306 | main () | |
42307 | { | |
42308 | ||
42309 | int tz; | |
42310 | tz = _timezone; | |
42311 | ||
42312 | ; | |
42313 | return 0; | |
42314 | } | |
42315 | _ACEOF | |
42316 | rm -f conftest.$ac_objext | |
42317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42318 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42319 | ac_status=$? |
ac1cb8d3 VS |
42320 | grep -v '^ *+' conftest.er1 >conftest.err |
42321 | rm -f conftest.er1 | |
42322 | cat conftest.err >&5 | |
a848cd7e SC |
42323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42324 | (exit $ac_status); } && | |
c9a66001 | 42325 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42327 | (eval $ac_try) 2>&5 | |
42328 | ac_status=$? | |
42329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42330 | (exit $ac_status); }; } && | |
42331 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42333 | (eval $ac_try) 2>&5 | |
42334 | ac_status=$? | |
42335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42336 | (exit $ac_status); }; }; then | |
42337 | ||
42338 | wx_cv_var_timezone=_timezone | |
42339 | ||
42340 | else | |
42341 | echo "$as_me: failed program was:" >&5 | |
42342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42343 | ||
42344 | ||
42345 | cat >conftest.$ac_ext <<_ACEOF | |
42346 | /* confdefs.h. */ | |
42347 | _ACEOF | |
42348 | cat confdefs.h >>conftest.$ac_ext | |
42349 | cat >>conftest.$ac_ext <<_ACEOF | |
42350 | /* end confdefs.h. */ | |
42351 | ||
42352 | #include <time.h> | |
42353 | ||
42354 | int | |
42355 | main () | |
42356 | { | |
42357 | ||
42358 | int tz; | |
42359 | tz = __timezone; | |
42360 | ||
42361 | ; | |
42362 | return 0; | |
42363 | } | |
42364 | _ACEOF | |
42365 | rm -f conftest.$ac_objext | |
42366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42367 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42368 | ac_status=$? |
ac1cb8d3 VS |
42369 | grep -v '^ *+' conftest.er1 >conftest.err |
42370 | rm -f conftest.er1 | |
42371 | cat conftest.err >&5 | |
a848cd7e SC |
42372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42373 | (exit $ac_status); } && | |
c9a66001 | 42374 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42376 | (eval $ac_try) 2>&5 | |
42377 | ac_status=$? | |
42378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42379 | (exit $ac_status); }; } && | |
42380 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42382 | (eval $ac_try) 2>&5 | |
42383 | ac_status=$? | |
42384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42385 | (exit $ac_status); }; }; then | |
42386 | ||
42387 | wx_cv_var_timezone=__timezone | |
42388 | ||
42389 | else | |
42390 | echo "$as_me: failed program was:" >&5 | |
42391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42392 | ||
42393 | ||
42394 | if test "$USE_DOS" = 0 ; then | |
42395 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
42396 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
42397 | fi | |
42398 | ||
42399 | ||
42400 | fi | |
ac1cb8d3 | 42401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42402 | |
42403 | ||
42404 | fi | |
ac1cb8d3 | 42405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42406 | |
42407 | ||
42408 | fi | |
ac1cb8d3 | 42409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42410 | |
42411 | ||
42412 | fi | |
42413 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
42414 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
42415 | ||
42416 | if test "x$wx_cv_var_timezone" != x ; then | |
42417 | cat >>confdefs.h <<_ACEOF | |
42418 | #define WX_TIMEZONE $wx_cv_var_timezone | |
42419 | _ACEOF | |
42420 | ||
42421 | fi | |
42422 | ||
42423 | ||
42424 | for ac_func in localtime | |
42425 | do | |
42426 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42427 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42428 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42429 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42431 | else | |
42432 | cat >conftest.$ac_ext <<_ACEOF | |
42433 | /* confdefs.h. */ | |
42434 | _ACEOF | |
42435 | cat confdefs.h >>conftest.$ac_ext | |
42436 | cat >>conftest.$ac_ext <<_ACEOF | |
42437 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42438 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42440 | #define $ac_func innocuous_$ac_func | |
42441 | ||
a848cd7e SC |
42442 | /* System header to define __stub macros and hopefully few prototypes, |
42443 | which can conflict with char $ac_func (); below. | |
42444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42445 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42446 | |
a848cd7e SC |
42447 | #ifdef __STDC__ |
42448 | # include <limits.h> | |
42449 | #else | |
42450 | # include <assert.h> | |
42451 | #endif | |
ac1cb8d3 VS |
42452 | |
42453 | #undef $ac_func | |
42454 | ||
a848cd7e SC |
42455 | /* Override any gcc2 internal prototype to avoid an error. */ |
42456 | #ifdef __cplusplus | |
42457 | extern "C" | |
42458 | { | |
42459 | #endif | |
42460 | /* We use char because int might match the return type of a gcc2 | |
42461 | builtin and then its argument prototype would still apply. */ | |
42462 | char $ac_func (); | |
42463 | /* The GNU C library defines this for functions which it implements | |
42464 | to always fail with ENOSYS. Some functions are actually named | |
42465 | something starting with __ and the normal name is an alias. */ | |
42466 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42467 | choke me | |
42468 | #else | |
42469 | char (*f) () = $ac_func; | |
42470 | #endif | |
42471 | #ifdef __cplusplus | |
42472 | } | |
42473 | #endif | |
42474 | ||
42475 | int | |
42476 | main () | |
42477 | { | |
42478 | return f != $ac_func; | |
42479 | ; | |
42480 | return 0; | |
42481 | } | |
42482 | _ACEOF | |
42483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42485 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42486 | ac_status=$? |
ac1cb8d3 VS |
42487 | grep -v '^ *+' conftest.er1 >conftest.err |
42488 | rm -f conftest.er1 | |
42489 | cat conftest.err >&5 | |
a848cd7e SC |
42490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42491 | (exit $ac_status); } && | |
c9a66001 | 42492 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42494 | (eval $ac_try) 2>&5 | |
42495 | ac_status=$? | |
42496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42497 | (exit $ac_status); }; } && | |
42498 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42500 | (eval $ac_try) 2>&5 | |
42501 | ac_status=$? | |
42502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42503 | (exit $ac_status); }; }; then | |
42504 | eval "$as_ac_var=yes" | |
42505 | else | |
42506 | echo "$as_me: failed program was:" >&5 | |
42507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42508 | ||
42509 | eval "$as_ac_var=no" | |
42510 | fi | |
ac1cb8d3 VS |
42511 | rm -f conftest.err conftest.$ac_objext \ |
42512 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42513 | fi |
42514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42515 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42516 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42517 | cat >>confdefs.h <<_ACEOF | |
42518 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42519 | _ACEOF | |
42520 | ||
42521 | fi | |
42522 | done | |
42523 | ||
42524 | ||
42525 | if test "$ac_cv_func_localtime" = "yes"; then | |
42526 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
42527 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
42528 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
42529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42530 | else | |
42531 | ||
42532 | cat >conftest.$ac_ext <<_ACEOF | |
42533 | /* confdefs.h. */ | |
42534 | _ACEOF | |
42535 | cat confdefs.h >>conftest.$ac_ext | |
42536 | cat >>conftest.$ac_ext <<_ACEOF | |
42537 | /* end confdefs.h. */ | |
42538 | ||
42539 | #include <time.h> | |
42540 | ||
42541 | int | |
42542 | main () | |
42543 | { | |
42544 | ||
42545 | struct tm tm; | |
42546 | tm.tm_gmtoff++; | |
42547 | ||
42548 | ; | |
42549 | return 0; | |
42550 | } | |
42551 | _ACEOF | |
42552 | rm -f conftest.$ac_objext | |
42553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42554 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42555 | ac_status=$? |
ac1cb8d3 VS |
42556 | grep -v '^ *+' conftest.er1 >conftest.err |
42557 | rm -f conftest.er1 | |
42558 | cat conftest.err >&5 | |
a848cd7e SC |
42559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42560 | (exit $ac_status); } && | |
c9a66001 | 42561 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42563 | (eval $ac_try) 2>&5 | |
42564 | ac_status=$? | |
42565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42566 | (exit $ac_status); }; } && | |
42567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42569 | (eval $ac_try) 2>&5 | |
42570 | ac_status=$? | |
42571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42572 | (exit $ac_status); }; }; then | |
42573 | ||
42574 | wx_cv_struct_tm_has_gmtoff=yes | |
42575 | ||
42576 | else | |
42577 | echo "$as_me: failed program was:" >&5 | |
42578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42579 | ||
42580 | wx_cv_struct_tm_has_gmtoff=no | |
42581 | ||
42582 | fi | |
ac1cb8d3 | 42583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42584 | |
42585 | fi | |
42586 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
42587 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
42588 | fi | |
42589 | ||
42590 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
42591 | cat >>confdefs.h <<\_ACEOF | |
42592 | #define WX_GMTOFF_IN_TM 1 | |
42593 | _ACEOF | |
42594 | ||
42595 | fi | |
42596 | ||
42597 | ||
42598 | ||
42599 | for ac_func in gettimeofday ftime | |
42600 | do | |
42601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42602 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42604 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42606 | else | |
42607 | cat >conftest.$ac_ext <<_ACEOF | |
42608 | /* confdefs.h. */ | |
42609 | _ACEOF | |
42610 | cat confdefs.h >>conftest.$ac_ext | |
42611 | cat >>conftest.$ac_ext <<_ACEOF | |
42612 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42613 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42614 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42615 | #define $ac_func innocuous_$ac_func | |
42616 | ||
a848cd7e SC |
42617 | /* System header to define __stub macros and hopefully few prototypes, |
42618 | which can conflict with char $ac_func (); below. | |
42619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42620 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42621 | |
a848cd7e SC |
42622 | #ifdef __STDC__ |
42623 | # include <limits.h> | |
42624 | #else | |
42625 | # include <assert.h> | |
42626 | #endif | |
ac1cb8d3 VS |
42627 | |
42628 | #undef $ac_func | |
42629 | ||
a848cd7e SC |
42630 | /* Override any gcc2 internal prototype to avoid an error. */ |
42631 | #ifdef __cplusplus | |
42632 | extern "C" | |
42633 | { | |
42634 | #endif | |
42635 | /* We use char because int might match the return type of a gcc2 | |
42636 | builtin and then its argument prototype would still apply. */ | |
42637 | char $ac_func (); | |
42638 | /* The GNU C library defines this for functions which it implements | |
42639 | to always fail with ENOSYS. Some functions are actually named | |
42640 | something starting with __ and the normal name is an alias. */ | |
42641 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42642 | choke me | |
42643 | #else | |
42644 | char (*f) () = $ac_func; | |
42645 | #endif | |
42646 | #ifdef __cplusplus | |
42647 | } | |
42648 | #endif | |
42649 | ||
42650 | int | |
42651 | main () | |
42652 | { | |
42653 | return f != $ac_func; | |
42654 | ; | |
42655 | return 0; | |
42656 | } | |
42657 | _ACEOF | |
42658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42660 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42661 | ac_status=$? |
ac1cb8d3 VS |
42662 | grep -v '^ *+' conftest.er1 >conftest.err |
42663 | rm -f conftest.er1 | |
42664 | cat conftest.err >&5 | |
a848cd7e SC |
42665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42666 | (exit $ac_status); } && | |
c9a66001 | 42667 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42669 | (eval $ac_try) 2>&5 | |
42670 | ac_status=$? | |
42671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42672 | (exit $ac_status); }; } && | |
42673 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42675 | (eval $ac_try) 2>&5 | |
42676 | ac_status=$? | |
42677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42678 | (exit $ac_status); }; }; then | |
42679 | eval "$as_ac_var=yes" | |
42680 | else | |
42681 | echo "$as_me: failed program was:" >&5 | |
42682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42683 | ||
42684 | eval "$as_ac_var=no" | |
42685 | fi | |
ac1cb8d3 VS |
42686 | rm -f conftest.err conftest.$ac_objext \ |
42687 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42688 | fi |
42689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42690 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42691 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42692 | cat >>confdefs.h <<_ACEOF | |
42693 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42694 | _ACEOF | |
42695 | break | |
42696 | fi | |
42697 | done | |
42698 | ||
42699 | ||
42700 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
42701 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
42702 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
42703 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
42704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42705 | else | |
42706 | ||
5d7b7554 | 42707 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
42708 | /* confdefs.h. */ |
42709 | _ACEOF | |
42710 | cat confdefs.h >>conftest.$ac_ext | |
42711 | cat >>conftest.$ac_ext <<_ACEOF | |
42712 | /* end confdefs.h. */ | |
42713 | ||
42714 | #include <sys/time.h> | |
42715 | #include <unistd.h> | |
42716 | ||
42717 | int | |
42718 | main () | |
42719 | { | |
42720 | ||
42721 | struct timeval tv; | |
42722 | gettimeofday(&tv, NULL); | |
42723 | ||
42724 | ; | |
42725 | return 0; | |
42726 | } | |
42727 | _ACEOF | |
42728 | rm -f conftest.$ac_objext | |
42729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42730 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42731 | ac_status=$? |
ac1cb8d3 VS |
42732 | grep -v '^ *+' conftest.er1 >conftest.err |
42733 | rm -f conftest.er1 | |
42734 | cat conftest.err >&5 | |
a848cd7e SC |
42735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42736 | (exit $ac_status); } && | |
c9a66001 | 42737 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42739 | (eval $ac_try) 2>&5 | |
42740 | ac_status=$? | |
42741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42742 | (exit $ac_status); }; } && | |
42743 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42745 | (eval $ac_try) 2>&5 | |
42746 | ac_status=$? | |
42747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42748 | (exit $ac_status); }; }; then | |
42749 | wx_cv_func_gettimeofday_has_2_args=yes | |
42750 | else | |
42751 | echo "$as_me: failed program was:" >&5 | |
42752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42753 | ||
42754 | cat >conftest.$ac_ext <<_ACEOF | |
42755 | /* confdefs.h. */ | |
42756 | _ACEOF | |
42757 | cat confdefs.h >>conftest.$ac_ext | |
42758 | cat >>conftest.$ac_ext <<_ACEOF | |
42759 | /* end confdefs.h. */ | |
42760 | ||
42761 | #include <sys/time.h> | |
42762 | #include <unistd.h> | |
42763 | ||
42764 | int | |
42765 | main () | |
42766 | { | |
42767 | ||
42768 | struct timeval tv; | |
42769 | gettimeofday(&tv); | |
42770 | ||
42771 | ; | |
42772 | return 0; | |
42773 | } | |
42774 | _ACEOF | |
42775 | rm -f conftest.$ac_objext | |
42776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42777 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42778 | ac_status=$? |
ac1cb8d3 VS |
42779 | grep -v '^ *+' conftest.er1 >conftest.err |
42780 | rm -f conftest.er1 | |
42781 | cat conftest.err >&5 | |
a848cd7e SC |
42782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42783 | (exit $ac_status); } && | |
c9a66001 | 42784 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42786 | (eval $ac_try) 2>&5 | |
42787 | ac_status=$? | |
42788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42789 | (exit $ac_status); }; } && | |
42790 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42792 | (eval $ac_try) 2>&5 | |
42793 | ac_status=$? | |
42794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42795 | (exit $ac_status); }; }; then | |
42796 | wx_cv_func_gettimeofday_has_2_args=no | |
42797 | else | |
42798 | echo "$as_me: failed program was:" >&5 | |
42799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42800 | ||
42801 | ||
42802 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
42803 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
42804 | wx_cv_func_gettimeofday_has_2_args=unknown | |
42805 | ||
42806 | ||
42807 | fi | |
ac1cb8d3 | 42808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42809 | |
42810 | fi | |
ac1cb8d3 | 42811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42812 | |
42813 | fi | |
42814 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
42815 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
42816 | ||
42817 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
42818 | cat >>confdefs.h <<\_ACEOF | |
42819 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
42820 | _ACEOF | |
42821 | ||
42822 | fi | |
42823 | fi | |
42824 | ||
42825 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
42826 | fi | |
42827 | ||
42828 | ||
42829 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42830 | if test "$wxUSE_MGL" = "1"; then | |
42831 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
42832 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
42833 | wxUSE_SOCKETS="no" | |
42834 | fi | |
42835 | fi | |
42836 | ||
42837 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42838 | if test "$TOOLKIT" != "MSW"; then | |
42839 | echo "$as_me:$LINENO: checking for socket" >&5 | |
42840 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
42841 | if test "${ac_cv_func_socket+set}" = set; then | |
42842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42843 | else | |
42844 | cat >conftest.$ac_ext <<_ACEOF | |
42845 | /* confdefs.h. */ | |
42846 | _ACEOF | |
42847 | cat confdefs.h >>conftest.$ac_ext | |
42848 | cat >>conftest.$ac_ext <<_ACEOF | |
42849 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42850 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
42851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42852 | #define socket innocuous_socket | |
42853 | ||
a848cd7e SC |
42854 | /* System header to define __stub macros and hopefully few prototypes, |
42855 | which can conflict with char socket (); below. | |
42856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42857 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42858 | |
a848cd7e SC |
42859 | #ifdef __STDC__ |
42860 | # include <limits.h> | |
42861 | #else | |
42862 | # include <assert.h> | |
42863 | #endif | |
ac1cb8d3 VS |
42864 | |
42865 | #undef socket | |
42866 | ||
a848cd7e SC |
42867 | /* Override any gcc2 internal prototype to avoid an error. */ |
42868 | #ifdef __cplusplus | |
42869 | extern "C" | |
42870 | { | |
42871 | #endif | |
42872 | /* We use char because int might match the return type of a gcc2 | |
42873 | builtin and then its argument prototype would still apply. */ | |
42874 | char socket (); | |
42875 | /* The GNU C library defines this for functions which it implements | |
42876 | to always fail with ENOSYS. Some functions are actually named | |
42877 | something starting with __ and the normal name is an alias. */ | |
42878 | #if defined (__stub_socket) || defined (__stub___socket) | |
42879 | choke me | |
42880 | #else | |
42881 | char (*f) () = socket; | |
42882 | #endif | |
42883 | #ifdef __cplusplus | |
42884 | } | |
42885 | #endif | |
42886 | ||
42887 | int | |
42888 | main () | |
42889 | { | |
42890 | return f != socket; | |
42891 | ; | |
42892 | return 0; | |
42893 | } | |
42894 | _ACEOF | |
42895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42897 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42898 | ac_status=$? |
ac1cb8d3 VS |
42899 | grep -v '^ *+' conftest.er1 >conftest.err |
42900 | rm -f conftest.er1 | |
42901 | cat conftest.err >&5 | |
a848cd7e SC |
42902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42903 | (exit $ac_status); } && | |
c9a66001 | 42904 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42906 | (eval $ac_try) 2>&5 | |
42907 | ac_status=$? | |
42908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42909 | (exit $ac_status); }; } && | |
42910 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42912 | (eval $ac_try) 2>&5 | |
42913 | ac_status=$? | |
42914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42915 | (exit $ac_status); }; }; then | |
42916 | ac_cv_func_socket=yes | |
42917 | else | |
42918 | echo "$as_me: failed program was:" >&5 | |
42919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42920 | ||
42921 | ac_cv_func_socket=no | |
42922 | fi | |
ac1cb8d3 VS |
42923 | rm -f conftest.err conftest.$ac_objext \ |
42924 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42925 | fi |
42926 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
42927 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
42928 | if test $ac_cv_func_socket = yes; then | |
42929 | : | |
42930 | else | |
42931 | ||
42932 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
42933 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
42934 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
42935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42936 | else | |
42937 | ac_check_lib_save_LIBS=$LIBS | |
42938 | LIBS="-lsocket $LIBS" | |
42939 | cat >conftest.$ac_ext <<_ACEOF | |
42940 | /* confdefs.h. */ | |
42941 | _ACEOF | |
42942 | cat confdefs.h >>conftest.$ac_ext | |
42943 | cat >>conftest.$ac_ext <<_ACEOF | |
42944 | /* end confdefs.h. */ | |
42945 | ||
42946 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42947 | #ifdef __cplusplus | |
42948 | extern "C" | |
42949 | #endif | |
42950 | /* We use char because int might match the return type of a gcc2 | |
42951 | builtin and then its argument prototype would still apply. */ | |
42952 | char socket (); | |
42953 | int | |
42954 | main () | |
42955 | { | |
42956 | socket (); | |
42957 | ; | |
42958 | return 0; | |
42959 | } | |
42960 | _ACEOF | |
42961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42963 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42964 | ac_status=$? |
ac1cb8d3 VS |
42965 | grep -v '^ *+' conftest.er1 >conftest.err |
42966 | rm -f conftest.er1 | |
42967 | cat conftest.err >&5 | |
a848cd7e SC |
42968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42969 | (exit $ac_status); } && | |
c9a66001 | 42970 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42972 | (eval $ac_try) 2>&5 | |
42973 | ac_status=$? | |
42974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42975 | (exit $ac_status); }; } && | |
42976 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42978 | (eval $ac_try) 2>&5 | |
42979 | ac_status=$? | |
42980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42981 | (exit $ac_status); }; }; then | |
42982 | ac_cv_lib_socket_socket=yes | |
42983 | else | |
42984 | echo "$as_me: failed program was:" >&5 | |
42985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42986 | ||
42987 | ac_cv_lib_socket_socket=no | |
42988 | fi | |
ac1cb8d3 VS |
42989 | rm -f conftest.err conftest.$ac_objext \ |
42990 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42991 | LIBS=$ac_check_lib_save_LIBS |
42992 | fi | |
42993 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
42994 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
42995 | if test $ac_cv_lib_socket_socket = yes; then | |
42996 | if test "$INET_LINK" != " -lsocket"; then | |
42997 | INET_LINK="$INET_LINK -lsocket" | |
42998 | fi | |
42999 | else | |
43000 | ||
43001 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
43002 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
43003 | wxUSE_SOCKETS=no | |
43004 | ||
43005 | ||
43006 | fi | |
43007 | ||
43008 | ||
43009 | ||
43010 | fi | |
43011 | ||
43012 | fi | |
43013 | fi | |
43014 | ||
43015 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
43016 | if test "$TOOLKIT" != "MSW"; then | |
5d7b7554 | 43017 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
a848cd7e SC |
43018 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
43019 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
43020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43021 | else | |
43022 | ||
43023 | cat >conftest.$ac_ext <<_ACEOF | |
43024 | /* confdefs.h. */ | |
43025 | _ACEOF | |
43026 | cat confdefs.h >>conftest.$ac_ext | |
43027 | cat >>conftest.$ac_ext <<_ACEOF | |
43028 | /* end confdefs.h. */ | |
43029 | ||
43030 | #include <sys/types.h> | |
43031 | #include <sys/socket.h> | |
43032 | ||
43033 | int | |
43034 | main () | |
43035 | { | |
43036 | ||
43037 | socklen_t len; | |
43038 | getsockname(0, 0, &len); | |
43039 | ||
43040 | ; | |
43041 | return 0; | |
43042 | } | |
43043 | _ACEOF | |
43044 | rm -f conftest.$ac_objext | |
43045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43046 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43047 | ac_status=$? |
ac1cb8d3 VS |
43048 | grep -v '^ *+' conftest.er1 >conftest.err |
43049 | rm -f conftest.er1 | |
43050 | cat conftest.err >&5 | |
a848cd7e SC |
43051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43052 | (exit $ac_status); } && | |
c9a66001 | 43053 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43055 | (eval $ac_try) 2>&5 | |
43056 | ac_status=$? | |
43057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43058 | (exit $ac_status); }; } && | |
43059 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43061 | (eval $ac_try) 2>&5 | |
43062 | ac_status=$? | |
43063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43064 | (exit $ac_status); }; }; then | |
43065 | wx_cv_type_getsockname3=socklen_t | |
43066 | else | |
43067 | echo "$as_me: failed program was:" >&5 | |
43068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43069 | ||
43070 | ||
6459a506 | 43071 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 43072 | if test "$GCC" = yes ; then |
c92ad099 | 43073 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
43074 | fi |
43075 | ||
43076 | cat >conftest.$ac_ext <<_ACEOF | |
43077 | /* confdefs.h. */ | |
43078 | _ACEOF | |
43079 | cat confdefs.h >>conftest.$ac_ext | |
43080 | cat >>conftest.$ac_ext <<_ACEOF | |
43081 | /* end confdefs.h. */ | |
43082 | ||
43083 | #include <sys/types.h> | |
43084 | #include <sys/socket.h> | |
43085 | ||
43086 | int | |
43087 | main () | |
43088 | { | |
43089 | ||
43090 | size_t len; | |
43091 | getsockname(0, 0, &len); | |
43092 | ||
43093 | ; | |
43094 | return 0; | |
43095 | } | |
43096 | _ACEOF | |
43097 | rm -f conftest.$ac_objext | |
43098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43100 | ac_status=$? |
ac1cb8d3 VS |
43101 | grep -v '^ *+' conftest.er1 >conftest.err |
43102 | rm -f conftest.er1 | |
43103 | cat conftest.err >&5 | |
a848cd7e SC |
43104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43105 | (exit $ac_status); } && | |
c9a66001 | 43106 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43108 | (eval $ac_try) 2>&5 | |
43109 | ac_status=$? | |
43110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43111 | (exit $ac_status); }; } && | |
43112 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43114 | (eval $ac_try) 2>&5 | |
43115 | ac_status=$? | |
43116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43117 | (exit $ac_status); }; }; then | |
43118 | wx_cv_type_getsockname3=size_t | |
43119 | else | |
43120 | echo "$as_me: failed program was:" >&5 | |
43121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43122 | ||
43123 | cat >conftest.$ac_ext <<_ACEOF | |
43124 | /* confdefs.h. */ | |
43125 | _ACEOF | |
43126 | cat confdefs.h >>conftest.$ac_ext | |
43127 | cat >>conftest.$ac_ext <<_ACEOF | |
43128 | /* end confdefs.h. */ | |
43129 | ||
43130 | #include <sys/types.h> | |
43131 | #include <sys/socket.h> | |
43132 | ||
43133 | int | |
43134 | main () | |
43135 | { | |
43136 | ||
43137 | int len; | |
43138 | getsockname(0, 0, &len); | |
43139 | ||
43140 | ; | |
43141 | return 0; | |
43142 | } | |
43143 | _ACEOF | |
43144 | rm -f conftest.$ac_objext | |
43145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43146 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43147 | ac_status=$? |
ac1cb8d3 VS |
43148 | grep -v '^ *+' conftest.er1 >conftest.err |
43149 | rm -f conftest.er1 | |
43150 | cat conftest.err >&5 | |
a848cd7e SC |
43151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43152 | (exit $ac_status); } && | |
c9a66001 | 43153 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43155 | (eval $ac_try) 2>&5 | |
43156 | ac_status=$? | |
43157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43158 | (exit $ac_status); }; } && | |
43159 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43161 | (eval $ac_try) 2>&5 | |
43162 | ac_status=$? | |
43163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43164 | (exit $ac_status); }; }; then | |
43165 | wx_cv_type_getsockname3=int | |
43166 | else | |
43167 | echo "$as_me: failed program was:" >&5 | |
43168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43169 | ||
43170 | wx_cv_type_getsockname3=unknown | |
43171 | ||
43172 | fi | |
ac1cb8d3 | 43173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43174 | |
43175 | fi | |
ac1cb8d3 | 43176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 43177 | |
6459a506 | 43178 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
43179 | |
43180 | ||
43181 | fi | |
ac1cb8d3 | 43182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43183 | |
43184 | fi | |
43185 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
43186 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
43187 | ||
43188 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
43189 | wxUSE_SOCKETS=no | |
43190 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
43191 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
43192 | else | |
43193 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 43194 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
43195 | _ACEOF |
43196 | ||
43197 | fi | |
43198 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
43199 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
43200 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
43201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43202 | else | |
43203 | ||
43204 | cat >conftest.$ac_ext <<_ACEOF | |
43205 | /* confdefs.h. */ | |
43206 | _ACEOF | |
43207 | cat confdefs.h >>conftest.$ac_ext | |
43208 | cat >>conftest.$ac_ext <<_ACEOF | |
43209 | /* end confdefs.h. */ | |
43210 | ||
43211 | #include <sys/types.h> | |
43212 | #include <sys/socket.h> | |
43213 | ||
43214 | int | |
43215 | main () | |
43216 | { | |
43217 | ||
43218 | socklen_t len; | |
43219 | getsockopt(0, 0, 0, 0, &len); | |
43220 | ||
43221 | ; | |
43222 | return 0; | |
43223 | } | |
43224 | _ACEOF | |
43225 | rm -f conftest.$ac_objext | |
43226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43227 | (eval $ac_compile) 2>conftest.er1 | |
43228 | ac_status=$? | |
43229 | grep -v '^ *+' conftest.er1 >conftest.err | |
43230 | rm -f conftest.er1 | |
43231 | cat conftest.err >&5 | |
43232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43233 | (exit $ac_status); } && | |
c9a66001 | 43234 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
43235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43236 | (eval $ac_try) 2>&5 | |
43237 | ac_status=$? | |
43238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43239 | (exit $ac_status); }; } && | |
43240 | { ac_try='test -s conftest.$ac_objext' | |
43241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43242 | (eval $ac_try) 2>&5 | |
43243 | ac_status=$? | |
43244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43245 | (exit $ac_status); }; }; then | |
43246 | wx_cv_type_getsockopt5=socklen_t | |
43247 | else | |
43248 | echo "$as_me: failed program was:" >&5 | |
43249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43250 | ||
43251 | ||
6459a506 | 43252 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 43253 | if test "$GCC" = yes ; then |
c92ad099 | 43254 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
43255 | fi |
43256 | ||
43257 | cat >conftest.$ac_ext <<_ACEOF | |
43258 | /* confdefs.h. */ | |
43259 | _ACEOF | |
43260 | cat confdefs.h >>conftest.$ac_ext | |
43261 | cat >>conftest.$ac_ext <<_ACEOF | |
43262 | /* end confdefs.h. */ | |
43263 | ||
43264 | #include <sys/types.h> | |
43265 | #include <sys/socket.h> | |
43266 | ||
43267 | int | |
43268 | main () | |
43269 | { | |
43270 | ||
43271 | size_t len; | |
43272 | getsockopt(0, 0, 0, 0, &len); | |
43273 | ||
43274 | ; | |
43275 | return 0; | |
43276 | } | |
43277 | _ACEOF | |
43278 | rm -f conftest.$ac_objext | |
43279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43280 | (eval $ac_compile) 2>conftest.er1 | |
43281 | ac_status=$? | |
43282 | grep -v '^ *+' conftest.er1 >conftest.err | |
43283 | rm -f conftest.er1 | |
43284 | cat conftest.err >&5 | |
43285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43286 | (exit $ac_status); } && | |
c9a66001 | 43287 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
43288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43289 | (eval $ac_try) 2>&5 | |
43290 | ac_status=$? | |
43291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43292 | (exit $ac_status); }; } && | |
43293 | { ac_try='test -s conftest.$ac_objext' | |
43294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43295 | (eval $ac_try) 2>&5 | |
43296 | ac_status=$? | |
43297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43298 | (exit $ac_status); }; }; then | |
43299 | wx_cv_type_getsockopt5=size_t | |
43300 | else | |
43301 | echo "$as_me: failed program was:" >&5 | |
43302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43303 | ||
43304 | cat >conftest.$ac_ext <<_ACEOF | |
43305 | /* confdefs.h. */ | |
43306 | _ACEOF | |
43307 | cat confdefs.h >>conftest.$ac_ext | |
43308 | cat >>conftest.$ac_ext <<_ACEOF | |
43309 | /* end confdefs.h. */ | |
43310 | ||
43311 | #include <sys/types.h> | |
43312 | #include <sys/socket.h> | |
43313 | ||
43314 | int | |
43315 | main () | |
43316 | { | |
43317 | ||
43318 | int len; | |
43319 | getsockopt(0, 0, 0, 0, &len); | |
43320 | ||
43321 | ; | |
43322 | return 0; | |
43323 | } | |
43324 | _ACEOF | |
43325 | rm -f conftest.$ac_objext | |
43326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43327 | (eval $ac_compile) 2>conftest.er1 | |
43328 | ac_status=$? | |
43329 | grep -v '^ *+' conftest.er1 >conftest.err | |
43330 | rm -f conftest.er1 | |
43331 | cat conftest.err >&5 | |
43332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43333 | (exit $ac_status); } && | |
c9a66001 | 43334 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
43335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43336 | (eval $ac_try) 2>&5 | |
43337 | ac_status=$? | |
43338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43339 | (exit $ac_status); }; } && | |
43340 | { ac_try='test -s conftest.$ac_objext' | |
43341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43342 | (eval $ac_try) 2>&5 | |
43343 | ac_status=$? | |
43344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43345 | (exit $ac_status); }; }; then | |
43346 | wx_cv_type_getsockopt5=int | |
43347 | else | |
43348 | echo "$as_me: failed program was:" >&5 | |
43349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43350 | ||
43351 | wx_cv_type_getsockopt5=unknown | |
43352 | ||
43353 | fi | |
43354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43355 | ||
43356 | fi | |
43357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43358 | ||
6459a506 | 43359 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
43360 | |
43361 | ||
43362 | fi | |
43363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43364 | ||
43365 | fi | |
43366 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
43367 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
43368 | ||
43369 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
43370 | wxUSE_SOCKETS=no | |
43371 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
43372 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
43373 | else | |
43374 | cat >>confdefs.h <<_ACEOF | |
43375 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
43376 | _ACEOF |
43377 | ||
43378 | fi | |
43379 | fi | |
43380 | fi | |
43381 | ||
43382 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
43383 | cat >>confdefs.h <<\_ACEOF | |
43384 | #define wxUSE_SOCKETS 1 | |
43385 | _ACEOF | |
43386 | ||
43387 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
43388 | fi | |
43389 | ||
43390 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
43391 | if test "$wxUSE_SOCKETS" != "yes"; then | |
43392 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
43393 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
43394 | wxUSE_PROTOCOL=no | |
43395 | fi | |
43396 | fi | |
43397 | ||
43398 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
43399 | cat >>confdefs.h <<\_ACEOF | |
43400 | #define wxUSE_PROTOCOL 1 | |
43401 | _ACEOF | |
43402 | ||
43403 | ||
43404 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
43405 | cat >>confdefs.h <<\_ACEOF | |
43406 | #define wxUSE_PROTOCOL_HTTP 1 | |
43407 | _ACEOF | |
43408 | ||
43409 | fi | |
43410 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
43411 | cat >>confdefs.h <<\_ACEOF | |
43412 | #define wxUSE_PROTOCOL_FTP 1 | |
43413 | _ACEOF | |
43414 | ||
43415 | fi | |
43416 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
43417 | cat >>confdefs.h <<\_ACEOF | |
43418 | #define wxUSE_PROTOCOL_FILE 1 | |
43419 | _ACEOF | |
43420 | ||
43421 | fi | |
43422 | else | |
43423 | if test "$wxUSE_FS_INET" = "yes"; then | |
43424 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
43425 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
43426 | wxUSE_FS_INET="no" | |
43427 | fi | |
43428 | fi | |
43429 | ||
43430 | if test "$wxUSE_URL" = "yes"; then | |
43431 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
43432 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
43433 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
43434 | wxUSE_URL=no | |
43435 | fi | |
43436 | if test "$wxUSE_URL" = "yes"; then | |
43437 | cat >>confdefs.h <<\_ACEOF | |
43438 | #define wxUSE_URL 1 | |
43439 | _ACEOF | |
43440 | ||
43441 | fi | |
43442 | fi | |
43443 | ||
43444 | if test "$wxUSE_FS_INET" = "yes"; then | |
43445 | cat >>confdefs.h <<\_ACEOF | |
43446 | #define wxUSE_FS_INET 1 | |
43447 | _ACEOF | |
43448 | ||
43449 | fi | |
43450 | ||
43451 | ||
ee45c548 MW |
43452 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
43453 | wxUSE_JOYSTICK=no | |
43454 | ||
43455 | if test "$TOOLKIT" = "MSW"; then | |
43456 | wxUSE_JOYSTICK=yes | |
43457 | ||
43458 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
43459 | if test "$USE_DARWIN" = 1; then | |
43460 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
43461 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
ee45c548 MW |
43462 | cat >conftest.$ac_ext <<_ACEOF |
43463 | /* confdefs.h. */ | |
43464 | _ACEOF | |
43465 | cat confdefs.h >>conftest.$ac_ext | |
43466 | cat >>conftest.$ac_ext <<_ACEOF | |
43467 | /* end confdefs.h. */ | |
43468 | #include <IOKit/hid/IOHIDLib.h> | |
43469 | int | |
43470 | main () | |
43471 | { | |
43472 | IOHIDQueueInterface *qi = NULL; | |
43473 | IOHIDCallbackFunction cb = NULL; | |
43474 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
43475 | ; | |
43476 | return 0; | |
43477 | } | |
43478 | _ACEOF | |
43479 | rm -f conftest.$ac_objext | |
43480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43481 | (eval $ac_compile) 2>conftest.er1 | |
43482 | ac_status=$? | |
43483 | grep -v '^ *+' conftest.er1 >conftest.err | |
43484 | rm -f conftest.er1 | |
43485 | cat conftest.err >&5 | |
43486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43487 | (exit $ac_status); } && | |
c9a66001 | 43488 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
43489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43490 | (eval $ac_try) 2>&5 | |
43491 | ac_status=$? | |
43492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43493 | (exit $ac_status); }; } && | |
43494 | { ac_try='test -s conftest.$ac_objext' | |
43495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43496 | (eval $ac_try) 2>&5 | |
43497 | ac_status=$? | |
43498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43499 | (exit $ac_status); }; }; then | |
43500 | wxUSE_JOYSTICK=yes | |
a848cd7e | 43501 | |
ee45c548 MW |
43502 | else |
43503 | echo "$as_me: failed program was:" >&5 | |
43504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43505 | ||
43506 | fi | |
43507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ee45c548 MW |
43508 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
43509 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
43510 | fi | |
43511 | ||
43512 | else | |
a848cd7e SC |
43513 | |
43514 | for ac_header in linux/joystick.h | |
43515 | do | |
43516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43518 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43519 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43520 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43522 | fi | |
43523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43524 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43525 | else | |
43526 | # Is the header compilable? | |
43527 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43528 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43529 | cat >conftest.$ac_ext <<_ACEOF | |
43530 | /* confdefs.h. */ | |
43531 | _ACEOF | |
43532 | cat confdefs.h >>conftest.$ac_ext | |
43533 | cat >>conftest.$ac_ext <<_ACEOF | |
43534 | /* end confdefs.h. */ | |
43535 | $ac_includes_default | |
43536 | #include <$ac_header> | |
43537 | _ACEOF | |
43538 | rm -f conftest.$ac_objext | |
43539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43540 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43541 | ac_status=$? |
ac1cb8d3 VS |
43542 | grep -v '^ *+' conftest.er1 >conftest.err |
43543 | rm -f conftest.er1 | |
43544 | cat conftest.err >&5 | |
a848cd7e SC |
43545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43546 | (exit $ac_status); } && | |
c9a66001 | 43547 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43549 | (eval $ac_try) 2>&5 | |
43550 | ac_status=$? | |
43551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43552 | (exit $ac_status); }; } && | |
43553 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43555 | (eval $ac_try) 2>&5 | |
43556 | ac_status=$? | |
43557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43558 | (exit $ac_status); }; }; then | |
43559 | ac_header_compiler=yes | |
43560 | else | |
43561 | echo "$as_me: failed program was:" >&5 | |
43562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43563 | ||
43564 | ac_header_compiler=no | |
43565 | fi | |
ac1cb8d3 | 43566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43567 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43568 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43569 | ||
43570 | # Is the header present? | |
43571 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43572 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43573 | cat >conftest.$ac_ext <<_ACEOF | |
43574 | /* confdefs.h. */ | |
43575 | _ACEOF | |
43576 | cat confdefs.h >>conftest.$ac_ext | |
43577 | cat >>conftest.$ac_ext <<_ACEOF | |
43578 | /* end confdefs.h. */ | |
43579 | #include <$ac_header> | |
43580 | _ACEOF | |
43581 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43582 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43583 | ac_status=$? | |
43584 | grep -v '^ *+' conftest.er1 >conftest.err | |
43585 | rm -f conftest.er1 | |
43586 | cat conftest.err >&5 | |
43587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43588 | (exit $ac_status); } >/dev/null; then | |
43589 | if test -s conftest.err; then | |
5d7b7554 VZ |
43590 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43591 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43592 | else |
43593 | ac_cpp_err= | |
43594 | fi | |
43595 | else | |
43596 | ac_cpp_err=yes | |
43597 | fi | |
43598 | if test -z "$ac_cpp_err"; then | |
43599 | ac_header_preproc=yes | |
43600 | else | |
43601 | echo "$as_me: failed program was:" >&5 | |
43602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43603 | ||
43604 | ac_header_preproc=no | |
43605 | fi | |
43606 | rm -f conftest.err conftest.$ac_ext | |
43607 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43608 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43609 | ||
43610 | # So? What about this header? | |
5d7b7554 | 43611 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43612 | yes:no: ) |
a848cd7e SC |
43613 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43614 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43616 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43617 | ac_header_preproc=yes | |
a848cd7e | 43618 | ;; |
ac1cb8d3 | 43619 | no:yes:* ) |
a848cd7e SC |
43620 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43621 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43622 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43623 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43624 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43625 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43626 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43627 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43628 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43629 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43630 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43631 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43632 | ( |
43633 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43634 | ## ----------------------------------------- ## |
43635 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43636 | ## ----------------------------------------- ## | |
a848cd7e SC |
43637 | _ASBOX |
43638 | ) | | |
43639 | sed "s/^/$as_me: WARNING: /" >&2 | |
43640 | ;; | |
43641 | esac | |
43642 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43646 | else | |
ac1cb8d3 | 43647 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43648 | fi |
43649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43650 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43651 | ||
43652 | fi | |
43653 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43654 | cat >>confdefs.h <<_ACEOF | |
43655 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43656 | _ACEOF | |
ee45c548 | 43657 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
43658 | fi |
43659 | ||
43660 | done | |
43661 | ||
ee45c548 | 43662 | fi |
4cb1d3da | 43663 | |
ee45c548 MW |
43664 | if test "$wxUSE_JOYSTICK" = "yes"; then |
43665 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43666 | #define wxUSE_JOYSTICK 1 |
43667 | _ACEOF | |
43668 | ||
ee45c548 MW |
43669 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
43670 | else | |
43671 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
43672 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
43673 | fi |
43674 | fi | |
43675 | ||
43676 | ||
43677 | ||
43678 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
43679 | cat >>confdefs.h <<\_ACEOF | |
43680 | #define wxUSE_FONTMAP 1 | |
43681 | _ACEOF | |
43682 | ||
43683 | fi | |
43684 | ||
43685 | if test "$wxUSE_UNICODE" = "yes" ; then | |
43686 | cat >>confdefs.h <<\_ACEOF | |
43687 | #define wxUSE_UNICODE 1 | |
43688 | _ACEOF | |
43689 | ||
43690 | ||
43691 | if test "$USE_WIN32" != 1; then | |
43692 | wxUSE_UNICODE_MSLU=no | |
43693 | fi | |
43694 | ||
43695 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
43696 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
43697 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
43698 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
43699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43700 | else | |
43701 | ac_check_lib_save_LIBS=$LIBS | |
43702 | LIBS="-lunicows $LIBS" | |
43703 | cat >conftest.$ac_ext <<_ACEOF | |
43704 | /* confdefs.h. */ | |
43705 | _ACEOF | |
43706 | cat confdefs.h >>conftest.$ac_ext | |
43707 | cat >>conftest.$ac_ext <<_ACEOF | |
43708 | /* end confdefs.h. */ | |
43709 | ||
43710 | ||
43711 | int | |
43712 | main () | |
43713 | { | |
43714 | main (); | |
43715 | ; | |
43716 | return 0; | |
43717 | } | |
43718 | _ACEOF | |
43719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43721 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43722 | ac_status=$? |
ac1cb8d3 VS |
43723 | grep -v '^ *+' conftest.er1 >conftest.err |
43724 | rm -f conftest.er1 | |
43725 | cat conftest.err >&5 | |
a848cd7e SC |
43726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43727 | (exit $ac_status); } && | |
c9a66001 | 43728 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43730 | (eval $ac_try) 2>&5 | |
43731 | ac_status=$? | |
43732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43733 | (exit $ac_status); }; } && | |
43734 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43736 | (eval $ac_try) 2>&5 | |
43737 | ac_status=$? | |
43738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43739 | (exit $ac_status); }; }; then | |
43740 | ac_cv_lib_unicows_main=yes | |
43741 | else | |
43742 | echo "$as_me: failed program was:" >&5 | |
43743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43744 | ||
43745 | ac_cv_lib_unicows_main=no | |
43746 | fi | |
ac1cb8d3 VS |
43747 | rm -f conftest.err conftest.$ac_objext \ |
43748 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43749 | LIBS=$ac_check_lib_save_LIBS |
43750 | fi | |
43751 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
43752 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
43753 | if test $ac_cv_lib_unicows_main = yes; then | |
43754 | ||
43755 | cat >>confdefs.h <<\_ACEOF | |
43756 | #define wxUSE_UNICODE_MSLU 1 | |
43757 | _ACEOF | |
43758 | ||
43759 | ||
43760 | else | |
43761 | ||
43762 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43763 | Applications will only run on Windows NT/2000/XP!" >&5 | |
43764 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43765 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
43766 | wxUSE_UNICODE_MSLU=no | |
43767 | ||
43768 | fi | |
43769 | ||
43770 | fi | |
43771 | fi | |
43772 | ||
43773 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
43774 | cat >>confdefs.h <<\_ACEOF | |
43775 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
43776 | _ACEOF | |
43777 | ||
43778 | fi | |
43779 | ||
43780 | ||
43781 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
43782 | cat >>confdefs.h <<\_ACEOF | |
43783 | #define wxUSE_POSTSCRIPT 1 | |
43784 | _ACEOF | |
43785 | ||
43786 | fi | |
43787 | ||
43788 | cat >>confdefs.h <<\_ACEOF | |
43789 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
43790 | _ACEOF | |
43791 | ||
43792 | ||
43793 | cat >>confdefs.h <<\_ACEOF | |
43794 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
43795 | _ACEOF | |
43796 | ||
43797 | ||
43798 | ||
43799 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
43800 | cat >>confdefs.h <<\_ACEOF | |
43801 | #define wxUSE_CONSTRAINTS 1 | |
43802 | _ACEOF | |
43803 | ||
43804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
43805 | fi | |
43806 | ||
8a7b1113 VZ |
43807 | if test "$wxUSE_MDI" = "yes"; then |
43808 | cat >>confdefs.h <<\_ACEOF | |
43809 | #define wxUSE_MDI 1 | |
43810 | _ACEOF | |
43811 | ||
43812 | ||
43813 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43814 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43815 | #define wxUSE_MDI_ARCHITECTURE 1 |
43816 | _ACEOF | |
43817 | ||
8a7b1113 VZ |
43818 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
43819 | fi | |
a848cd7e SC |
43820 | fi |
43821 | ||
43822 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
43823 | cat >>confdefs.h <<\_ACEOF | |
43824 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
43825 | _ACEOF | |
43826 | ||
43827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
43828 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
43830 | fi | |
43831 | fi | |
43832 | ||
43833 | if test "$wxUSE_HELP" = "yes"; then | |
43834 | cat >>confdefs.h <<\_ACEOF | |
43835 | #define wxUSE_HELP 1 | |
43836 | _ACEOF | |
43837 | ||
43838 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
43839 | ||
43840 | if test "$wxUSE_MSW" = 1; then | |
43841 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
43842 | cat >>confdefs.h <<\_ACEOF | |
43843 | #define wxUSE_MS_HTML_HELP 1 | |
43844 | _ACEOF | |
43845 | ||
43846 | fi | |
43847 | fi | |
43848 | ||
43849 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
43850 | if test "$wxUSE_HTML" = "yes"; then | |
43851 | cat >>confdefs.h <<\_ACEOF | |
43852 | #define wxUSE_WXHTML_HELP 1 | |
43853 | _ACEOF | |
43854 | ||
43855 | else | |
43856 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
43857 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
43858 | wxUSE_WXHTML_HELP=no | |
43859 | fi | |
43860 | fi | |
43861 | fi | |
43862 | ||
43863 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
43864 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
43865 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
43866 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
43867 | else | |
43868 | cat >>confdefs.h <<\_ACEOF | |
43869 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
43870 | _ACEOF | |
43871 | ||
43872 | fi | |
43873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
43874 | fi | |
43875 | ||
43876 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
43877 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
43878 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
43879 | { (exit 1); exit 1; }; } | |
43880 | fi | |
43881 | ||
43882 | ||
efdf6afe VZ |
43883 | if test "$wxUSE_METAFILE" = "yes"; then |
43884 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
43885 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
43886 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
43887 | wxUSE_METAFILE=no | |
43888 | fi | |
43889 | fi | |
43890 | ||
43891 | ||
a848cd7e SC |
43892 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
43893 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
43894 | -o "$wxUSE_OLE" = "yes" \ | |
43895 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
43896 | ||
43897 | for ac_header in ole2.h | |
43898 | do | |
43899 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43901 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43902 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43905 | fi | |
43906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43907 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43908 | else | |
43909 | # Is the header compilable? | |
43910 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43911 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43912 | cat >conftest.$ac_ext <<_ACEOF | |
43913 | /* confdefs.h. */ | |
43914 | _ACEOF | |
43915 | cat confdefs.h >>conftest.$ac_ext | |
43916 | cat >>conftest.$ac_ext <<_ACEOF | |
43917 | /* end confdefs.h. */ | |
43918 | $ac_includes_default | |
43919 | #include <$ac_header> | |
43920 | _ACEOF | |
43921 | rm -f conftest.$ac_objext | |
43922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43923 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43924 | ac_status=$? |
ac1cb8d3 VS |
43925 | grep -v '^ *+' conftest.er1 >conftest.err |
43926 | rm -f conftest.er1 | |
43927 | cat conftest.err >&5 | |
a848cd7e SC |
43928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43929 | (exit $ac_status); } && | |
c9a66001 | 43930 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43932 | (eval $ac_try) 2>&5 | |
43933 | ac_status=$? | |
43934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43935 | (exit $ac_status); }; } && | |
43936 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43938 | (eval $ac_try) 2>&5 | |
43939 | ac_status=$? | |
43940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43941 | (exit $ac_status); }; }; then | |
43942 | ac_header_compiler=yes | |
43943 | else | |
43944 | echo "$as_me: failed program was:" >&5 | |
43945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43946 | ||
43947 | ac_header_compiler=no | |
43948 | fi | |
ac1cb8d3 | 43949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43950 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43951 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43952 | ||
43953 | # Is the header present? | |
43954 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43955 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43956 | cat >conftest.$ac_ext <<_ACEOF | |
43957 | /* confdefs.h. */ | |
43958 | _ACEOF | |
43959 | cat confdefs.h >>conftest.$ac_ext | |
43960 | cat >>conftest.$ac_ext <<_ACEOF | |
43961 | /* end confdefs.h. */ | |
43962 | #include <$ac_header> | |
43963 | _ACEOF | |
43964 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43965 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43966 | ac_status=$? | |
43967 | grep -v '^ *+' conftest.er1 >conftest.err | |
43968 | rm -f conftest.er1 | |
43969 | cat conftest.err >&5 | |
43970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43971 | (exit $ac_status); } >/dev/null; then | |
43972 | if test -s conftest.err; then | |
5d7b7554 VZ |
43973 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43974 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43975 | else |
43976 | ac_cpp_err= | |
43977 | fi | |
43978 | else | |
43979 | ac_cpp_err=yes | |
43980 | fi | |
43981 | if test -z "$ac_cpp_err"; then | |
43982 | ac_header_preproc=yes | |
43983 | else | |
43984 | echo "$as_me: failed program was:" >&5 | |
43985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43986 | ||
43987 | ac_header_preproc=no | |
43988 | fi | |
43989 | rm -f conftest.err conftest.$ac_ext | |
43990 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43991 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43992 | ||
43993 | # So? What about this header? | |
5d7b7554 | 43994 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43995 | yes:no: ) |
a848cd7e SC |
43996 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43997 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43999 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
44000 | ac_header_preproc=yes | |
a848cd7e | 44001 | ;; |
ac1cb8d3 | 44002 | no:yes:* ) |
a848cd7e SC |
44003 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
44004 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
44005 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
44006 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
44007 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
44008 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
44009 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
44010 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
44011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
44012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
44013 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
44014 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
44015 | ( |
44016 | cat <<\_ASBOX | |
ac1cb8d3 VS |
44017 | ## ----------------------------------------- ## |
44018 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
44019 | ## ----------------------------------------- ## | |
a848cd7e SC |
44020 | _ASBOX |
44021 | ) | | |
44022 | sed "s/^/$as_me: WARNING: /" >&2 | |
44023 | ;; | |
44024 | esac | |
44025 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44029 | else | |
ac1cb8d3 | 44030 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
44031 | fi |
44032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44033 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44034 | ||
44035 | fi | |
44036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
44037 | cat >>confdefs.h <<_ACEOF | |
44038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
44039 | _ACEOF | |
44040 | ||
44041 | fi | |
44042 | ||
44043 | done | |
44044 | ||
44045 | ||
44046 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
44047 | if test "$GCC" = yes ; then | |
a848cd7e SC |
44048 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
44049 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
44050 | cat >conftest.$ac_ext <<_ACEOF | |
44051 | /* confdefs.h. */ | |
44052 | _ACEOF | |
44053 | cat confdefs.h >>conftest.$ac_ext | |
44054 | cat >>conftest.$ac_ext <<_ACEOF | |
44055 | /* end confdefs.h. */ | |
44056 | #include <windows.h> | |
44057 | #include <ole2.h> | |
44058 | int | |
44059 | main () | |
44060 | { | |
44061 | ||
44062 | ; | |
44063 | return 0; | |
44064 | } | |
44065 | _ACEOF | |
44066 | rm -f conftest.$ac_objext | |
44067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44068 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44069 | ac_status=$? |
ac1cb8d3 VS |
44070 | grep -v '^ *+' conftest.er1 >conftest.err |
44071 | rm -f conftest.er1 | |
44072 | cat conftest.err >&5 | |
a848cd7e SC |
44073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44074 | (exit $ac_status); } && | |
c9a66001 | 44075 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44077 | (eval $ac_try) 2>&5 | |
44078 | ac_status=$? | |
44079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44080 | (exit $ac_status); }; } && | |
44081 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44083 | (eval $ac_try) 2>&5 | |
44084 | ac_status=$? | |
44085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44086 | (exit $ac_status); }; }; then | |
44087 | echo "$as_me:$LINENO: result: no" >&5 | |
44088 | echo "${ECHO_T}no" >&6 | |
44089 | else | |
44090 | echo "$as_me: failed program was:" >&5 | |
44091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44092 | ||
44093 | echo "$as_me:$LINENO: result: yes" >&5 | |
44094 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 44095 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 44096 | fi |
ac1cb8d3 | 44097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44098 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
44099 | if test "$wxUSE_OLE" = "yes" ; then | |
44100 | cat >>confdefs.h <<\_ACEOF | |
44101 | #define wxUSE_OLE 1 | |
44102 | _ACEOF | |
44103 | ||
0b78747f | 44104 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
44105 | fi |
44106 | fi | |
44107 | ||
44108 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
44109 | cat >>confdefs.h <<\_ACEOF | |
44110 | #define wxUSE_DATAOBJ 1 | |
44111 | _ACEOF | |
44112 | ||
44113 | fi | |
44114 | else | |
44115 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
44116 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
44117 | ||
44118 | wxUSE_CLIPBOARD=no | |
44119 | wxUSE_DRAG_AND_DROP=no | |
44120 | wxUSE_DATAOBJ=no | |
44121 | wxUSE_OLE=no | |
44122 | fi | |
44123 | ||
44124 | if test "$wxUSE_METAFILE" = "yes"; then | |
44125 | cat >>confdefs.h <<\_ACEOF | |
44126 | #define wxUSE_METAFILE 1 | |
44127 | _ACEOF | |
44128 | ||
44129 | ||
44130 | cat >>confdefs.h <<\_ACEOF | |
44131 | #define wxUSE_ENH_METAFILE 1 | |
44132 | _ACEOF | |
44133 | ||
44134 | fi | |
44135 | fi | |
44136 | ||
44137 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 44138 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
44139 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
44140 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 44141 | wxUSE_IPC=no |
a848cd7e SC |
44142 | fi |
44143 | ||
0b78747f MW |
44144 | if test "$wxUSE_IPC" = "yes"; then |
44145 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44146 | #define wxUSE_IPC 1 |
44147 | _ACEOF | |
44148 | ||
0b78747f MW |
44149 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
44150 | fi | |
a848cd7e SC |
44151 | fi |
44152 | ||
eb730a0c | 44153 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
44154 | if test "$wxUSE_MGL" = 1; then |
44155 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
44156 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
44157 | wxUSE_DATAOBJ=no | |
44158 | else | |
44159 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
44160 | #define wxUSE_DATAOBJ 1 |
44161 | _ACEOF | |
44162 | ||
2113bc77 | 44163 | fi |
eb730a0c JS |
44164 | else |
44165 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
44166 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
44167 | wxUSE_CLIPBOARD=no | |
44168 | wxUSE_DRAG_AND_DROP=no | |
44169 | fi | |
44170 | ||
a848cd7e SC |
44171 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
44172 | if test "$wxUSE_MGL" = 1; then | |
44173 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
44174 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
44175 | wxUSE_CLIPBOARD=no | |
44176 | fi | |
44177 | ||
44178 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
44179 | cat >>confdefs.h <<\_ACEOF | |
44180 | #define wxUSE_CLIPBOARD 1 | |
44181 | _ACEOF | |
44182 | ||
a848cd7e SC |
44183 | fi |
44184 | fi | |
44185 | ||
44186 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
44187 | if test "$wxUSE_GTK" = 1; then | |
44188 | if test "$WXGTK12" != 1; then | |
44189 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
44190 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
44191 | wxUSE_DRAG_AND_DROP=no | |
44192 | fi | |
44193 | fi | |
44194 | ||
44195 | if test "$wxUSE_MOTIF" = 1; then | |
44196 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
44197 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
44198 | wxUSE_DRAG_AND_DROP=no | |
44199 | fi | |
44200 | ||
44201 | if test "$wxUSE_X11" = 1; then | |
44202 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
44203 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
44204 | wxUSE_DRAG_AND_DROP=no | |
44205 | fi | |
44206 | ||
44207 | if test "$wxUSE_MGL" = 1; then | |
44208 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
44209 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
44210 | wxUSE_DRAG_AND_DROP=no | |
44211 | fi | |
44212 | ||
44213 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
44214 | cat >>confdefs.h <<\_ACEOF | |
44215 | #define wxUSE_DRAG_AND_DROP 1 | |
44216 | _ACEOF | |
44217 | ||
44218 | fi | |
44219 | ||
44220 | fi | |
44221 | ||
44222 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
44223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
44224 | fi | |
44225 | ||
44226 | if test "$wxUSE_SPLINES" = "yes" ; then | |
44227 | cat >>confdefs.h <<\_ACEOF | |
44228 | #define wxUSE_SPLINES 1 | |
44229 | _ACEOF | |
44230 | ||
44231 | fi | |
44232 | ||
fbe2ca43 SN |
44233 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
44234 | cat >>confdefs.h <<\_ACEOF | |
44235 | #define wxUSE_MOUSEWHEEL 1 | |
44236 | _ACEOF | |
44237 | ||
44238 | fi | |
44239 | ||
a848cd7e SC |
44240 | |
44241 | USES_CONTROLS=0 | |
44242 | if test "$wxUSE_CONTROLS" = "yes"; then | |
44243 | USES_CONTROLS=1 | |
44244 | fi | |
44245 | ||
44246 | if test "$wxUSE_ACCEL" = "yes"; then | |
44247 | cat >>confdefs.h <<\_ACEOF | |
44248 | #define wxUSE_ACCEL 1 | |
44249 | _ACEOF | |
44250 | ||
44251 | USES_CONTROLS=1 | |
44252 | fi | |
44253 | ||
44254 | if test "$wxUSE_BUTTON" = "yes"; then | |
44255 | cat >>confdefs.h <<\_ACEOF | |
44256 | #define wxUSE_BUTTON 1 | |
44257 | _ACEOF | |
44258 | ||
44259 | USES_CONTROLS=1 | |
44260 | fi | |
44261 | ||
44262 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
44263 | cat >>confdefs.h <<\_ACEOF | |
44264 | #define wxUSE_BMPBUTTON 1 | |
44265 | _ACEOF | |
44266 | ||
44267 | USES_CONTROLS=1 | |
44268 | fi | |
44269 | ||
44270 | if test "$wxUSE_CALCTRL" = "yes"; then | |
44271 | cat >>confdefs.h <<\_ACEOF | |
44272 | #define wxUSE_CALENDARCTRL 1 | |
44273 | _ACEOF | |
44274 | ||
44275 | USES_CONTROLS=1 | |
44276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
44277 | fi | |
44278 | ||
44279 | if test "$wxUSE_CARET" = "yes"; then | |
44280 | cat >>confdefs.h <<\_ACEOF | |
44281 | #define wxUSE_CARET 1 | |
44282 | _ACEOF | |
44283 | ||
44284 | USES_CONTROLS=1 | |
44285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
44286 | fi | |
44287 | ||
44288 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
44289 | cat >>confdefs.h <<\_ACEOF | |
44290 | #define wxUSE_COMBOBOX 1 | |
44291 | _ACEOF | |
44292 | ||
44293 | USES_CONTROLS=1 | |
44294 | fi | |
44295 | ||
a57d600f | 44296 | if test "$wxUSE_COMBOCTRL" = "yes"; then |
642bcba9 | 44297 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 44298 | #define wxUSE_COMBOCTRL 1 |
642bcba9 VZ |
44299 | _ACEOF |
44300 | ||
44301 | USES_CONTROLS=1 | |
44302 | fi | |
44303 | ||
a848cd7e SC |
44304 | if test "$wxUSE_CHOICE" = "yes"; then |
44305 | cat >>confdefs.h <<\_ACEOF | |
44306 | #define wxUSE_CHOICE 1 | |
44307 | _ACEOF | |
44308 | ||
44309 | USES_CONTROLS=1 | |
44310 | fi | |
44311 | ||
92bbdbcd WS |
44312 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
44313 | cat >>confdefs.h <<\_ACEOF | |
44314 | #define wxUSE_CHOICEBOOK 1 | |
44315 | _ACEOF | |
44316 | ||
44317 | USES_CONTROLS=1 | |
44318 | fi | |
44319 | ||
a848cd7e SC |
44320 | if test "$wxUSE_CHECKBOX" = "yes"; then |
44321 | cat >>confdefs.h <<\_ACEOF | |
44322 | #define wxUSE_CHECKBOX 1 | |
44323 | _ACEOF | |
44324 | ||
44325 | USES_CONTROLS=1 | |
44326 | fi | |
44327 | ||
44328 | if test "$wxUSE_CHECKLST" = "yes"; then | |
44329 | cat >>confdefs.h <<\_ACEOF | |
44330 | #define wxUSE_CHECKLISTBOX 1 | |
44331 | _ACEOF | |
44332 | ||
44333 | USES_CONTROLS=1 | |
44334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
44335 | fi | |
44336 | ||
e9263684 VZ |
44337 | if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then |
44338 | cat >>confdefs.h <<\_ACEOF | |
44339 | #define wxUSE_COLOURPICKERCTRL 1 | |
44340 | _ACEOF | |
44341 | ||
44342 | USES_CONTROLS=1 | |
44343 | fi | |
44344 | ||
da98e9be VZ |
44345 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
44346 | cat >>confdefs.h <<\_ACEOF | |
44347 | #define wxUSE_DATEPICKCTRL 1 | |
44348 | _ACEOF | |
44349 | ||
44350 | USES_CONTROLS=1 | |
44351 | fi | |
44352 | ||
e9263684 VZ |
44353 | if test "$wxUSE_DIRPICKERCTRL" = "yes"; then |
44354 | cat >>confdefs.h <<\_ACEOF | |
44355 | #define wxUSE_DIRPICKERCTRL 1 | |
44356 | _ACEOF | |
44357 | ||
44358 | USES_CONTROLS=1 | |
44359 | fi | |
44360 | ||
44361 | if test "$wxUSE_FILEPICKERCTRL" = "yes"; then | |
44362 | cat >>confdefs.h <<\_ACEOF | |
44363 | #define wxUSE_FILEPICKERCTRL 1 | |
44364 | _ACEOF | |
44365 | ||
44366 | USES_CONTROLS=1 | |
44367 | fi | |
44368 | ||
44369 | if test "$wxUSE_FONTPICKERCTRL" = "yes"; then | |
44370 | cat >>confdefs.h <<\_ACEOF | |
44371 | #define wxUSE_FONTPICKERCTRL 1 | |
44372 | _ACEOF | |
44373 | ||
44374 | USES_CONTROLS=1 | |
44375 | fi | |
44376 | ||
a848cd7e SC |
44377 | if test "$wxUSE_DISPLAY" = "yes"; then |
44378 | cat >>confdefs.h <<\_ACEOF | |
44379 | #define wxUSE_DISPLAY 1 | |
44380 | _ACEOF | |
44381 | ||
0b78747f | 44382 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
44383 | fi |
44384 | ||
44385 | if test "$wxUSE_GAUGE" = "yes"; then | |
44386 | cat >>confdefs.h <<\_ACEOF | |
44387 | #define wxUSE_GAUGE 1 | |
44388 | _ACEOF | |
44389 | ||
44390 | USES_CONTROLS=1 | |
44391 | fi | |
44392 | ||
44393 | if test "$wxUSE_GRID" = "yes"; then | |
44394 | cat >>confdefs.h <<\_ACEOF | |
44395 | #define wxUSE_GRID 1 | |
44396 | _ACEOF | |
44397 | ||
44398 | USES_CONTROLS=1 | |
44399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
44400 | fi | |
44401 | ||
6954625c VZ |
44402 | if test "$wxUSE_HYPERLINKCTRL" = "yes"; then |
44403 | cat >>confdefs.h <<\_ACEOF | |
44404 | #define wxUSE_HYPERLINKCTRL 1 | |
44405 | _ACEOF | |
44406 | ||
44407 | USES_CONTROLS=1 | |
44408 | fi | |
44409 | ||
20e34ecc RR |
44410 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
44411 | cat >>confdefs.h <<\_ACEOF | |
44412 | #define wxUSE_DATAVIEWCTRL 1 | |
44413 | _ACEOF | |
44414 | ||
44415 | USES_CONTROLS=1 | |
44416 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
44417 | fi | |
44418 | ||
a848cd7e SC |
44419 | if test "$wxUSE_IMAGLIST" = "yes"; then |
44420 | cat >>confdefs.h <<\_ACEOF | |
44421 | #define wxUSE_IMAGLIST 1 | |
44422 | _ACEOF | |
44423 | ||
44424 | fi | |
44425 | ||
44426 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
44427 | cat >>confdefs.h <<\_ACEOF | |
44428 | #define wxUSE_LISTBOOK 1 | |
44429 | _ACEOF | |
44430 | ||
44431 | USES_CONTROLS=1 | |
44432 | fi | |
44433 | ||
44434 | if test "$wxUSE_LISTBOX" = "yes"; then | |
44435 | cat >>confdefs.h <<\_ACEOF | |
44436 | #define wxUSE_LISTBOX 1 | |
44437 | _ACEOF | |
44438 | ||
44439 | USES_CONTROLS=1 | |
0b78747f | 44440 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
44441 | fi |
44442 | ||
44443 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
44444 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44445 | cat >>confdefs.h <<\_ACEOF | |
44446 | #define wxUSE_LISTCTRL 1 | |
44447 | _ACEOF | |
44448 | ||
44449 | USES_CONTROLS=1 | |
44450 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
44451 | else | |
44452 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
44453 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44454 | fi | |
44455 | fi | |
44456 | ||
44457 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
44458 | cat >>confdefs.h <<\_ACEOF | |
44459 | #define wxUSE_NOTEBOOK 1 | |
44460 | _ACEOF | |
44461 | ||
44462 | USES_CONTROLS=1 | |
44463 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
44464 | fi | |
44465 | ||
a57d600f | 44466 | if test "$wxUSE_ODCOMBOBOX" = "yes"; then |
642bcba9 | 44467 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 44468 | #define wxUSE_ODCOMBOBOX 1 |
642bcba9 VZ |
44469 | _ACEOF |
44470 | ||
44471 | USES_CONTROLS=1 | |
44472 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
44473 | fi | |
44474 | ||
a848cd7e SC |
44475 | |
44476 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
44477 | cat >>confdefs.h <<\_ACEOF | |
44478 | #define wxUSE_RADIOBOX 1 | |
44479 | _ACEOF | |
44480 | ||
44481 | USES_CONTROLS=1 | |
44482 | fi | |
44483 | ||
44484 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
44485 | cat >>confdefs.h <<\_ACEOF | |
44486 | #define wxUSE_RADIOBTN 1 | |
44487 | _ACEOF | |
44488 | ||
44489 | USES_CONTROLS=1 | |
44490 | fi | |
44491 | ||
44492 | if test "$wxUSE_SASH" = "yes"; then | |
44493 | cat >>confdefs.h <<\_ACEOF | |
44494 | #define wxUSE_SASH 1 | |
44495 | _ACEOF | |
44496 | ||
44497 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
44498 | fi | |
44499 | ||
44500 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
44501 | cat >>confdefs.h <<\_ACEOF | |
44502 | #define wxUSE_SCROLLBAR 1 | |
44503 | _ACEOF | |
44504 | ||
44505 | USES_CONTROLS=1 | |
44506 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
44507 | fi | |
44508 | ||
44509 | if test "$wxUSE_SLIDER" = "yes"; then | |
44510 | cat >>confdefs.h <<\_ACEOF | |
44511 | #define wxUSE_SLIDER 1 | |
44512 | _ACEOF | |
44513 | ||
44514 | USES_CONTROLS=1 | |
44515 | fi | |
44516 | ||
44517 | if test "$wxUSE_SPINBTN" = "yes"; then | |
44518 | cat >>confdefs.h <<\_ACEOF | |
44519 | #define wxUSE_SPINBTN 1 | |
44520 | _ACEOF | |
44521 | ||
44522 | USES_CONTROLS=1 | |
44523 | fi | |
44524 | ||
44525 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
44526 | cat >>confdefs.h <<\_ACEOF | |
44527 | #define wxUSE_SPINCTRL 1 | |
44528 | _ACEOF | |
44529 | ||
44530 | USES_CONTROLS=1 | |
44531 | fi | |
44532 | ||
44533 | if test "$wxUSE_SPLITTER" = "yes"; then | |
44534 | cat >>confdefs.h <<\_ACEOF | |
44535 | #define wxUSE_SPLITTER 1 | |
44536 | _ACEOF | |
44537 | ||
44538 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
44539 | fi | |
44540 | ||
44541 | if test "$wxUSE_STATBMP" = "yes"; then | |
44542 | cat >>confdefs.h <<\_ACEOF | |
44543 | #define wxUSE_STATBMP 1 | |
44544 | _ACEOF | |
44545 | ||
44546 | USES_CONTROLS=1 | |
44547 | fi | |
44548 | ||
44549 | if test "$wxUSE_STATBOX" = "yes"; then | |
44550 | cat >>confdefs.h <<\_ACEOF | |
44551 | #define wxUSE_STATBOX 1 | |
44552 | _ACEOF | |
44553 | ||
44554 | USES_CONTROLS=1 | |
44555 | fi | |
44556 | ||
44557 | if test "$wxUSE_STATTEXT" = "yes"; then | |
44558 | cat >>confdefs.h <<\_ACEOF | |
44559 | #define wxUSE_STATTEXT 1 | |
44560 | _ACEOF | |
44561 | ||
44562 | USES_CONTROLS=1 | |
44563 | fi | |
44564 | ||
44565 | if test "$wxUSE_STATLINE" = "yes"; then | |
44566 | cat >>confdefs.h <<\_ACEOF | |
44567 | #define wxUSE_STATLINE 1 | |
44568 | _ACEOF | |
44569 | ||
44570 | USES_CONTROLS=1 | |
44571 | fi | |
44572 | ||
44573 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
44574 | cat >>confdefs.h <<\_ACEOF |
44575 | #define wxUSE_NATIVE_STATUSBAR 1 | |
44576 | _ACEOF | |
44577 | ||
a848cd7e SC |
44578 | cat >>confdefs.h <<\_ACEOF |
44579 | #define wxUSE_STATUSBAR 1 | |
44580 | _ACEOF | |
44581 | ||
44582 | USES_CONTROLS=1 | |
44583 | ||
44584 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
44585 | fi | |
44586 | ||
f10e38c4 | 44587 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
44588 | cat >>confdefs.h <<\_ACEOF |
44589 | #define wxUSE_TAB_DIALOG 1 | |
44590 | _ACEOF | |
44591 | ||
a848cd7e SC |
44592 | fi |
44593 | ||
44594 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
44595 | cat >>confdefs.h <<\_ACEOF | |
44596 | #define wxUSE_TEXTCTRL 1 | |
44597 | _ACEOF | |
44598 | ||
44599 | USES_CONTROLS=1 | |
44600 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
44601 | fi | |
44602 | ||
44603 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
44604 | if test "$wxUSE_COCOA" = 1 ; then | |
44605 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
44606 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
44607 | wxUSE_TOGGLEBTN=no | |
44608 | fi | |
a848cd7e SC |
44609 | |
44610 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
44611 | cat >>confdefs.h <<\_ACEOF | |
44612 | #define wxUSE_TOGGLEBTN 1 | |
44613 | _ACEOF | |
44614 | ||
44615 | USES_CONTROLS=1 | |
44616 | fi | |
44617 | fi | |
44618 | ||
44619 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
44620 | cat >>confdefs.h <<\_ACEOF | |
44621 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
44622 | _ACEOF | |
44623 | ||
44624 | wxUSE_TOOLBAR="yes" | |
44625 | USES_CONTROLS=1 | |
44626 | fi | |
44627 | ||
44628 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
44629 | cat >>confdefs.h <<\_ACEOF | |
44630 | #define wxUSE_TOOLBAR 1 | |
44631 | _ACEOF | |
44632 | ||
44633 | USES_CONTROLS=1 | |
44634 | ||
44635 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
44636 | wxUSE_TOOLBAR_NATIVE="yes" | |
44637 | fi | |
44638 | ||
44639 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
44640 | cat >>confdefs.h <<\_ACEOF | |
44641 | #define wxUSE_TOOLBAR_NATIVE 1 | |
44642 | _ACEOF | |
44643 | ||
44644 | USES_CONTROLS=1 | |
44645 | fi | |
44646 | ||
44647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
44648 | fi | |
44649 | ||
44650 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
44651 | if test "$wxUSE_MOTIF" = 1; then | |
44652 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
44653 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
44654 | else | |
44655 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
44656 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
44657 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
44658 | else | |
44659 | cat >>confdefs.h <<\_ACEOF | |
44660 | #define wxUSE_TOOLTIPS 1 | |
44661 | _ACEOF | |
44662 | ||
44663 | fi | |
44664 | fi | |
44665 | fi | |
44666 | ||
0093c2fc VZ |
44667 | if test "$wxUSE_TREEBOOK" = "yes"; then |
44668 | cat >>confdefs.h <<\_ACEOF | |
44669 | #define wxUSE_TREEBOOK 1 | |
44670 | _ACEOF | |
44671 | ||
44672 | USES_CONTROLS=1 | |
44673 | fi | |
44674 | ||
5ec3bc43 JS |
44675 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
44676 | cat >>confdefs.h <<\_ACEOF | |
44677 | #define wxUSE_TOOLBOOK 1 | |
44678 | _ACEOF | |
44679 | ||
44680 | USES_CONTROLS=1 | |
44681 | fi | |
44682 | ||
a848cd7e SC |
44683 | if test "$wxUSE_TREECTRL" = "yes"; then |
44684 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44685 | cat >>confdefs.h <<\_ACEOF | |
44686 | #define wxUSE_TREECTRL 1 | |
44687 | _ACEOF | |
44688 | ||
44689 | USES_CONTROLS=1 | |
44690 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
44691 | else | |
44692 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
44693 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44694 | fi | |
44695 | fi | |
44696 | ||
44697 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
44698 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
44699 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
44700 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
44701 | else | |
44702 | if test "$wxUSE_PM" = 1; then | |
44703 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
44704 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
44705 | else | |
44706 | cat >>confdefs.h <<\_ACEOF | |
44707 | #define wxUSE_POPUPWIN 1 | |
44708 | _ACEOF | |
44709 | ||
0b78747f | 44710 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
44711 | |
44712 | USES_CONTROLS=1 | |
44713 | fi | |
44714 | fi | |
44715 | fi | |
44716 | ||
0dcd06dd | 44717 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
44718 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
44719 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
44720 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
44721 | else | |
44722 | cat >>confdefs.h <<\_ACEOF | |
44723 | #define wxUSE_DIALUP_MANAGER 1 | |
44724 | _ACEOF | |
44725 | ||
44726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
44727 | fi | |
44728 | fi | |
44729 | ||
a848cd7e SC |
44730 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
44731 | if test "$wxUSE_PM" = 1; then | |
44732 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
44733 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
44734 | else | |
44735 | cat >>confdefs.h <<\_ACEOF | |
44736 | #define wxUSE_TIPWINDOW 1 | |
44737 | _ACEOF | |
44738 | ||
44739 | fi | |
44740 | fi | |
44741 | ||
44742 | if test "$USES_CONTROLS" = 1; then | |
44743 | cat >>confdefs.h <<\_ACEOF | |
44744 | #define wxUSE_CONTROLS 1 | |
44745 | _ACEOF | |
44746 | ||
44747 | fi | |
44748 | ||
44749 | ||
44750 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
44751 | cat >>confdefs.h <<\_ACEOF | |
44752 | #define wxUSE_ACCESSIBILITY 1 | |
44753 | _ACEOF | |
44754 | ||
44755 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
44756 | fi | |
44757 | ||
38b4a946 VZ |
44758 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
44759 | cat >>confdefs.h <<\_ACEOF | |
44760 | #define wxUSE_DC_CACHEING 1 | |
44761 | _ACEOF | |
44762 | ||
44763 | fi | |
44764 | ||
a848cd7e SC |
44765 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
44766 | cat >>confdefs.h <<\_ACEOF | |
44767 | #define wxUSE_DRAGIMAGE 1 | |
44768 | _ACEOF | |
44769 | ||
44770 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
44771 | fi | |
44772 | ||
44773 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
44774 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
44775 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
44776 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
44777 | else | |
44778 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44779 | #define wxUSE_EXCEPTIONS 1 |
44780 | _ACEOF | |
44781 | ||
07bea8f0 VS |
44782 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
44783 | fi | |
a848cd7e SC |
44784 | fi |
44785 | ||
44786 | USE_HTML=0 | |
44787 | if test "$wxUSE_HTML" = "yes"; then | |
44788 | cat >>confdefs.h <<\_ACEOF | |
44789 | #define wxUSE_HTML 1 | |
44790 | _ACEOF | |
44791 | ||
44792 | USE_HTML=1 | |
44793 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
44794 | if test "$wxUSE_MAC" = 1; then |
44795 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
44796 | fi | |
a848cd7e | 44797 | fi |
646b6ec1 | 44798 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 44799 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 44800 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 44801 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
44802 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
44803 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
44804 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
44805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44806 | else | |
44807 | cat >conftest.$ac_ext <<_ACEOF | |
44808 | /* confdefs.h. */ | |
44809 | _ACEOF | |
44810 | cat confdefs.h >>conftest.$ac_ext | |
44811 | cat >>conftest.$ac_ext <<_ACEOF | |
44812 | /* end confdefs.h. */ | |
44813 | #include <Carbon/Carbon.h> | |
44814 | ||
44815 | #include <WebKit/HIWebView.h> | |
44816 | _ACEOF | |
44817 | rm -f conftest.$ac_objext | |
44818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44819 | (eval $ac_compile) 2>conftest.er1 | |
44820 | ac_status=$? | |
44821 | grep -v '^ *+' conftest.er1 >conftest.err | |
44822 | rm -f conftest.er1 | |
44823 | cat conftest.err >&5 | |
44824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44825 | (exit $ac_status); } && | |
c9a66001 | 44826 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
44827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44828 | (eval $ac_try) 2>&5 | |
44829 | ac_status=$? | |
44830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44831 | (exit $ac_status); }; } && | |
44832 | { ac_try='test -s conftest.$ac_objext' | |
44833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44834 | (eval $ac_try) 2>&5 | |
44835 | ac_status=$? | |
44836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44837 | (exit $ac_status); }; }; then | |
44838 | ac_cv_header_WebKit_HIWebView_h=yes | |
44839 | else | |
44840 | echo "$as_me: failed program was:" >&5 | |
44841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44842 | ||
44843 | ac_cv_header_WebKit_HIWebView_h=no | |
44844 | fi | |
44845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44846 | fi | |
44847 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
44848 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
44849 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
44850 | ||
44851 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
44852 | #define wxUSE_WEBKIT 1 |
44853 | _ACEOF | |
44854 | ||
07bea8f0 VS |
44855 | WEBKIT_LINK="-framework WebKit" |
44856 | ||
44857 | else | |
44858 | ||
44859 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
44860 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
44861 | wxUSE_WEBKIT=no | |
44862 | ||
646b6ec1 VS |
44863 | fi |
44864 | ||
07bea8f0 VS |
44865 | |
44866 | CPPFLAGS="$old_CPPFLAGS" | |
44867 | elif test "$wxUSE_COCOA" = 1; then | |
44868 | cat >>confdefs.h <<\_ACEOF | |
44869 | #define wxUSE_WEBKIT 1 | |
44870 | _ACEOF | |
44871 | ||
44872 | else | |
44873 | wxUSE_WEBKIT=no | |
44874 | fi | |
44875 | fi | |
44876 | ||
9a8f0513 VS |
44877 | USE_XRC=0 |
44878 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
44879 | if test "$wxUSE_XML" != "yes"; then |
44880 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
44881 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
44882 | wxUSE_XRC=no | |
44883 | else | |
44884 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
44885 | #define wxUSE_XRC 1 |
44886 | _ACEOF | |
44887 | ||
d2ebf0b7 VS |
44888 | USE_XRC=1 |
44889 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
44890 | fi | |
9a8f0513 | 44891 | fi |
07bea8f0 | 44892 | |
3f60522a JS |
44893 | USE_AUI=0 |
44894 | if test "$wxUSE_AUI" = "yes"; then | |
44895 | cat >>confdefs.h <<\_ACEOF | |
44896 | #define wxUSE_AUI 1 | |
44897 | _ACEOF | |
44898 | ||
44899 | USE_AUI=1 | |
44900 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui" | |
44901 | fi | |
44902 | ||
a848cd7e SC |
44903 | if test "$wxUSE_MENUS" = "yes"; then |
44904 | cat >>confdefs.h <<\_ACEOF | |
44905 | #define wxUSE_MENUS 1 | |
44906 | _ACEOF | |
44907 | ||
44908 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
44909 | fi | |
44910 | ||
44911 | if test "$wxUSE_METAFILE" = "yes"; then | |
44912 | cat >>confdefs.h <<\_ACEOF | |
44913 | #define wxUSE_METAFILE 1 | |
44914 | _ACEOF | |
44915 | ||
44916 | fi | |
44917 | ||
44918 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
44919 | cat >>confdefs.h <<\_ACEOF | |
44920 | #define wxUSE_MIMETYPE 1 | |
44921 | _ACEOF | |
44922 | ||
44923 | fi | |
44924 | ||
44925 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
44926 | cat >>confdefs.h <<\_ACEOF | |
44927 | #define wxUSE_MINIFRAME 1 | |
44928 | _ACEOF | |
44929 | ||
44930 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
44931 | fi | |
44932 | ||
44933 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
44934 | cat >>confdefs.h <<\_ACEOF | |
44935 | #define wxUSE_SYSTEM_OPTIONS 1 | |
44936 | _ACEOF | |
44937 | ||
44938 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 44939 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
44940 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
44941 | fi | |
44942 | fi | |
44943 | ||
44944 | ||
44945 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
44946 | cat >>confdefs.h <<\_ACEOF | |
44947 | #define wxUSE_VALIDATORS 1 | |
44948 | _ACEOF | |
44949 | ||
44950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
44951 | fi | |
44952 | ||
44953 | if test "$wxUSE_PALETTE" = "yes" ; then | |
44954 | cat >>confdefs.h <<\_ACEOF | |
44955 | #define wxUSE_PALETTE 1 | |
44956 | _ACEOF | |
44957 | ||
44958 | fi | |
44959 | ||
44960 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
44961 | LIBS=" -lunicows $LIBS" | |
44962 | fi | |
44963 | ||
91dea314 MW |
44964 | USE_RICHTEXT=0 |
44965 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
44966 | cat >>confdefs.h <<\_ACEOF | |
44967 | #define wxUSE_RICHTEXT 1 | |
44968 | _ACEOF | |
44969 | ||
44970 | USE_RICHTEXT=1 | |
44971 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
44972 | fi | |
44973 | ||
a848cd7e SC |
44974 | |
44975 | if test "$wxUSE_IMAGE" = "yes" ; then | |
44976 | cat >>confdefs.h <<\_ACEOF | |
44977 | #define wxUSE_IMAGE 1 | |
44978 | _ACEOF | |
44979 | ||
44980 | ||
44981 | if test "$wxUSE_GIF" = "yes" ; then | |
44982 | cat >>confdefs.h <<\_ACEOF | |
44983 | #define wxUSE_GIF 1 | |
44984 | _ACEOF | |
44985 | ||
44986 | fi | |
44987 | ||
44988 | if test "$wxUSE_PCX" = "yes" ; then | |
44989 | cat >>confdefs.h <<\_ACEOF | |
44990 | #define wxUSE_PCX 1 | |
44991 | _ACEOF | |
44992 | ||
44993 | fi | |
44994 | ||
44995 | if test "$wxUSE_IFF" = "yes" ; then | |
44996 | cat >>confdefs.h <<\_ACEOF | |
44997 | #define wxUSE_IFF 1 | |
44998 | _ACEOF | |
44999 | ||
45000 | fi | |
45001 | ||
45002 | if test "$wxUSE_PNM" = "yes" ; then | |
45003 | cat >>confdefs.h <<\_ACEOF | |
45004 | #define wxUSE_PNM 1 | |
45005 | _ACEOF | |
45006 | ||
45007 | fi | |
45008 | ||
45009 | if test "$wxUSE_XPM" = "yes" ; then | |
45010 | cat >>confdefs.h <<\_ACEOF | |
45011 | #define wxUSE_XPM 1 | |
45012 | _ACEOF | |
45013 | ||
45014 | fi | |
45015 | ||
45016 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
45017 | cat >>confdefs.h <<\_ACEOF | |
45018 | #define wxUSE_ICO_CUR 1 | |
45019 | _ACEOF | |
45020 | ||
45021 | fi | |
45022 | fi | |
45023 | ||
45024 | ||
45025 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
45026 | cat >>confdefs.h <<\_ACEOF | |
45027 | #define wxUSE_CHOICEDLG 1 | |
45028 | _ACEOF | |
45029 | ||
45030 | fi | |
45031 | ||
45032 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
45033 | cat >>confdefs.h <<\_ACEOF | |
45034 | #define wxUSE_COLOURDLG 1 | |
45035 | _ACEOF | |
45036 | ||
45037 | fi | |
45038 | ||
45039 | if test "$wxUSE_FILEDLG" = "yes"; then | |
45040 | cat >>confdefs.h <<\_ACEOF | |
45041 | #define wxUSE_FILEDLG 1 | |
45042 | _ACEOF | |
45043 | ||
45044 | fi | |
45045 | ||
45046 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
45047 | cat >>confdefs.h <<\_ACEOF | |
45048 | #define wxUSE_FINDREPLDLG 1 | |
45049 | _ACEOF | |
45050 | ||
45051 | fi | |
45052 | ||
45053 | if test "$wxUSE_FONTDLG" = "yes"; then | |
45054 | cat >>confdefs.h <<\_ACEOF | |
45055 | #define wxUSE_FONTDLG 1 | |
45056 | _ACEOF | |
45057 | ||
45058 | fi | |
45059 | ||
45060 | if test "$wxUSE_DIRDLG" = "yes"; then | |
45061 | if test "$wxUSE_TREECTRL" != "yes"; then | |
45062 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
45063 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
45064 | else | |
45065 | cat >>confdefs.h <<\_ACEOF | |
45066 | #define wxUSE_DIRDLG 1 | |
45067 | _ACEOF | |
45068 | ||
45069 | fi | |
45070 | fi | |
45071 | ||
45072 | if test "$wxUSE_MSGDLG" = "yes"; then | |
45073 | cat >>confdefs.h <<\_ACEOF | |
45074 | #define wxUSE_MSGDLG 1 | |
45075 | _ACEOF | |
45076 | ||
45077 | fi | |
45078 | ||
45079 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
45080 | cat >>confdefs.h <<\_ACEOF | |
45081 | #define wxUSE_NUMBERDLG 1 | |
45082 | _ACEOF | |
45083 | ||
45084 | fi | |
45085 | ||
45086 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
45087 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45088 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
45089 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
45090 | else | |
45091 | cat >>confdefs.h <<\_ACEOF | |
45092 | #define wxUSE_PROGRESSDLG 1 | |
45093 | _ACEOF | |
45094 | ||
45095 | fi | |
45096 | fi | |
45097 | ||
45098 | if test "$wxUSE_SPLASH" = "yes"; then | |
45099 | cat >>confdefs.h <<\_ACEOF | |
45100 | #define wxUSE_SPLASH 1 | |
45101 | _ACEOF | |
45102 | ||
2057db16 | 45103 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
45104 | fi |
45105 | ||
45106 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
45107 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45108 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
45109 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
45110 | else | |
45111 | cat >>confdefs.h <<\_ACEOF | |
45112 | #define wxUSE_STARTUP_TIPS 1 | |
45113 | _ACEOF | |
45114 | ||
45115 | fi | |
45116 | fi | |
45117 | ||
45118 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
45119 | cat >>confdefs.h <<\_ACEOF | |
45120 | #define wxUSE_TEXTDLG 1 | |
45121 | _ACEOF | |
45122 | ||
45123 | fi | |
45124 | ||
45125 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
45126 | cat >>confdefs.h <<\_ACEOF | |
45127 | #define wxUSE_WIZARDDLG 1 | |
45128 | _ACEOF | |
45129 | ||
45130 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
45131 | fi | |
45132 | ||
45133 | ||
f10e38c4 VZ |
45134 | USE_MEDIA=0 |
45135 | ||
ce756cb0 | 45136 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
2f6c5bb5 VZ |
45137 | USE_MEDIA=1 |
45138 | ||
ce756cb0 | 45139 | if test "$wxUSE_GTK" = 1; then |
c9a66001 | 45140 | wxUSE_GSTREAMER="no" |
ce756cb0 | 45141 | |
f10e38c4 VZ |
45142 | GST_VERSION_MAJOR=0 |
45143 | GST_VERSION_MINOR=10 | |
2f6c5bb5 | 45144 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR |
f10e38c4 VZ |
45145 | |
45146 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 45147 | |
dae87f93 | 45148 | succeeded=no |
ce756cb0 | 45149 | |
dae87f93 RN |
45150 | if test -z "$PKG_CONFIG"; then |
45151 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
45152 | set dummy pkg-config; ac_word=$2 | |
45153 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45155 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
45156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45157 | else | |
45158 | case $PKG_CONFIG in | |
45159 | [\\/]* | ?:[\\/]*) | |
45160 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
45161 | ;; | |
45162 | *) | |
45163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45164 | for as_dir in $PATH | |
45165 | do | |
45166 | IFS=$as_save_IFS | |
45167 | test -z "$as_dir" && as_dir=. | |
45168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45170 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
45171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45172 | break 2 | |
45173 | fi | |
45174 | done | |
45175 | done | |
45176 | ||
45177 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
45178 | ;; | |
45179 | esac | |
45180 | fi | |
45181 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
45182 | ||
45183 | if test -n "$PKG_CONFIG"; then | |
45184 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
45185 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
45186 | else | |
45187 | echo "$as_me:$LINENO: result: no" >&5 | |
45188 | echo "${ECHO_T}no" >&6 | |
45189 | fi | |
45190 | ||
45191 | fi | |
45192 | ||
45193 | if test "$PKG_CONFIG" = "no" ; then | |
45194 | echo "*** The pkg-config script could not be found. Make sure it is" | |
45195 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
45196 | echo "*** to the full path to pkg-config." | |
45197 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
45198 | else | |
45199 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
45200 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
2f6c5bb5 VZ |
45201 | echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" >&5 |
45202 | echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0... $ECHO_C" >&6 | |
45203 | ||
45204 | if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" ; then | |
dae87f93 | 45205 | echo "$as_me:$LINENO: result: yes" >&5 |
ce756cb0 | 45206 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 45207 | succeeded=yes |
ce756cb0 | 45208 | |
f10e38c4 VZ |
45209 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
45210 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
2f6c5bb5 | 45211 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` |
f10e38c4 VZ |
45212 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 |
45213 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
45214 | ||
45215 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
45216 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
2f6c5bb5 | 45217 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` |
f10e38c4 VZ |
45218 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 |
45219 | echo "${ECHO_T}$GST_LIBS" >&6 | |
dae87f93 | 45220 | else |
f10e38c4 VZ |
45221 | GST_CFLAGS="" |
45222 | GST_LIBS="" | |
dae87f93 RN |
45223 | ## If we have a custom action on failure, don't print errors, but |
45224 | ## do set a variable so people can do so. | |
2f6c5bb5 | 45225 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` |
ce756cb0 | 45226 | |
dae87f93 RN |
45227 | fi |
45228 | ||
45229 | ||
45230 | ||
45231 | else | |
45232 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
45233 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
45234 | fi | |
45235 | fi | |
45236 | ||
45237 | if test $succeeded = yes; then | |
45238 | ||
2f6c5bb5 VZ |
45239 | wxUSE_GSTREAMER="yes" |
45240 | GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION" | |
ce756cb0 | 45241 | |
ce756cb0 | 45242 | else |
dae87f93 | 45243 | |
2f6c5bb5 VZ |
45244 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
45245 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
f10e38c4 | 45246 | GST_VERSION_MINOR=8 |
dae87f93 | 45247 | |
2f6c5bb5 | 45248 | |
dae87f93 RN |
45249 | fi |
45250 | ||
2f6c5bb5 VZ |
45251 | else |
45252 | GST_VERSION_MINOR=8 | |
f10e38c4 | 45253 | fi |
dae87f93 | 45254 | |
2f6c5bb5 VZ |
45255 | if test $GST_VERSION_MINOR = "8"; then |
45256 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 45257 | |
f10e38c4 | 45258 | succeeded=no |
dae87f93 | 45259 | |
f10e38c4 VZ |
45260 | if test -z "$PKG_CONFIG"; then |
45261 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
45262 | set dummy pkg-config; ac_word=$2 | |
dae87f93 RN |
45263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
45264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f10e38c4 | 45265 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
dae87f93 RN |
45266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
45267 | else | |
f10e38c4 VZ |
45268 | case $PKG_CONFIG in |
45269 | [\\/]* | ?:[\\/]*) | |
45270 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
45271 | ;; | |
45272 | *) | |
45273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dae87f93 RN |
45274 | for as_dir in $PATH |
45275 | do | |
45276 | IFS=$as_save_IFS | |
45277 | test -z "$as_dir" && as_dir=. | |
45278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
f10e38c4 | 45280 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
dae87f93 RN |
45281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
45282 | break 2 | |
ce756cb0 | 45283 | fi |
dae87f93 RN |
45284 | done |
45285 | done | |
45286 | ||
f10e38c4 VZ |
45287 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
45288 | ;; | |
45289 | esac | |
dae87f93 | 45290 | fi |
f10e38c4 VZ |
45291 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
45292 | ||
45293 | if test -n "$PKG_CONFIG"; then | |
45294 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
45295 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
dae87f93 RN |
45296 | else |
45297 | echo "$as_me:$LINENO: result: no" >&5 | |
45298 | echo "${ECHO_T}no" >&6 | |
45299 | fi | |
45300 | ||
f10e38c4 | 45301 | fi |
ce756cb0 | 45302 | |
f10e38c4 VZ |
45303 | if test "$PKG_CONFIG" = "no" ; then |
45304 | echo "*** The pkg-config script could not be found. Make sure it is" | |
45305 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
45306 | echo "*** to the full path to pkg-config." | |
45307 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
45308 | else | |
45309 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
45310 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
2f6c5bb5 VZ |
45311 | echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" >&5 |
45312 | echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION... $ECHO_C" >&6 | |
45313 | ||
45314 | if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" ; then | |
f10e38c4 VZ |
45315 | echo "$as_me:$LINENO: result: yes" >&5 |
45316 | echo "${ECHO_T}yes" >&6 | |
45317 | succeeded=yes | |
dae87f93 | 45318 | |
f10e38c4 VZ |
45319 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
45320 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
2f6c5bb5 | 45321 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` |
f10e38c4 VZ |
45322 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 |
45323 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
45324 | ||
45325 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
45326 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
2f6c5bb5 | 45327 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` |
f10e38c4 VZ |
45328 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 |
45329 | echo "${ECHO_T}$GST_LIBS" >&6 | |
45330 | else | |
45331 | GST_CFLAGS="" | |
45332 | GST_LIBS="" | |
45333 | ## If we have a custom action on failure, don't print errors, but | |
45334 | ## do set a variable so people can do so. | |
2f6c5bb5 | 45335 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` |
dae87f93 | 45336 | |
dae87f93 RN |
45337 | fi |
45338 | ||
45339 | ||
ce756cb0 | 45340 | |
f10e38c4 VZ |
45341 | else |
45342 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
45343 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
45344 | fi | |
45345 | fi | |
ce756cb0 | 45346 | |
f10e38c4 | 45347 | if test $succeeded = yes; then |
2f6c5bb5 | 45348 | wxUSE_GSTREAMER="yes" |
f10e38c4 | 45349 | else |
ce756cb0 | 45350 | |
2f6c5bb5 VZ |
45351 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
45352 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 45353 | |
f10e38c4 | 45354 | fi |
ce756cb0 | 45355 | |
dae87f93 | 45356 | fi |
ce756cb0 | 45357 | |
f10e38c4 | 45358 | |
dae87f93 | 45359 | if test "$wxUSE_GSTREAMER" = "yes"; then |
c9a66001 VZ |
45360 | case "${host}" in |
45361 | *-*-solaris2* ) | |
45362 | if "$GCC" = yes; then | |
45363 | GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'` | |
45364 | GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'` | |
45365 | fi | |
45366 | esac | |
45367 | ||
45368 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" | |
45369 | LIBS="$GST_LIBS $LIBS" | |
45370 | ||
dae87f93 | 45371 | cat >>confdefs.h <<\_ACEOF |
ce756cb0 RN |
45372 | #define wxUSE_GSTREAMER 1 |
45373 | _ACEOF | |
45374 | ||
2f6c5bb5 VZ |
45375 | else |
45376 | USE_MEDIA=0 | |
ce756cb0 RN |
45377 | fi |
45378 | fi | |
2f6c5bb5 VZ |
45379 | |
45380 | if test $USE_MEDIA = 1; then | |
45381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
45382 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
45383 | #define wxUSE_MEDIACTRL 1 |
45384 | _ACEOF | |
45385 | ||
2f6c5bb5 | 45386 | fi |
ce756cb0 RN |
45387 | fi |
45388 | ||
45389 | ||
a848cd7e SC |
45390 | if test "$cross_compiling" = "yes"; then |
45391 | OSINFO="\"$host\"" | |
45392 | else | |
45393 | OSINFO=`uname -s -r -m` | |
45394 | OSINFO="\"$OSINFO\"" | |
45395 | fi | |
45396 | ||
45397 | cat >>confdefs.h <<_ACEOF | |
45398 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
45399 | _ACEOF | |
45400 | ||
45401 | ||
45402 | ||
45403 | if test "x$prefix" != "xNONE"; then | |
45404 | wxPREFIX=$prefix | |
45405 | else | |
45406 | wxPREFIX=$ac_default_prefix | |
45407 | fi | |
45408 | ||
45409 | cat >>confdefs.h <<_ACEOF | |
45410 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
45411 | _ACEOF | |
45412 | ||
45413 | ||
a848cd7e SC |
45414 | |
45415 | ||
45416 | CORE_BASE_LIBS="net base" | |
45417 | CORE_GUI_LIBS="adv core" | |
45418 | ||
45419 | if test "$wxUSE_XML" = "yes" ; then | |
45420 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
45421 | fi | |
45422 | if test "$wxUSE_ODBC" != "no" ; then | |
45423 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
45424 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
45425 | fi | |
45426 | if test "$wxUSE_HTML" = "yes" ; then | |
45427 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
45428 | fi | |
61639efb VZ |
45429 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45430 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
45431 | fi | |
9a8f0513 VS |
45432 | if test "$wxUSE_XRC" = "yes" ; then |
45433 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
45434 | fi | |
3f60522a JS |
45435 | if test "$wxUSE_AUI" = "yes" ; then |
45436 | CORE_GUI_LIBS="aui $CORE_GUI_LIBS" | |
45437 | fi | |
a848cd7e SC |
45438 | |
45439 | if test "$wxUSE_GUI" != "yes"; then | |
45440 | CORE_GUI_LIBS="" | |
45441 | fi | |
45442 | ||
45443 | ||
45444 | ||
45445 | ||
45446 | ||
5d7b7554 VZ |
45447 | ac_ext=c |
45448 | ac_cpp='$CPP $CPPFLAGS' | |
45449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
45452 | ||
a848cd7e SC |
45453 | |
45454 | ||
a848cd7e | 45455 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 45456 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
45457 | if test "$USE_DARWIN" = 1; then |
45458 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
45459 | else | |
45460 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
45461 | fi | |
07bea8f0 | 45462 | fi |
5dcf30a0 | 45463 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
45464 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
45465 | else | |
45466 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 45467 | fi |
a848cd7e SC |
45468 | fi |
45469 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 45470 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
45471 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
45472 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
45473 | fi | |
a848cd7e | 45474 | fi |
19b27e78 MW |
45475 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
45476 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
45477 | fi | |
a848cd7e | 45478 | |
a848cd7e SC |
45479 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
45480 | ||
a848cd7e SC |
45481 | if test "$wxUSE_GUI" = "yes"; then |
45482 | ||
45483 | ||
8bce5cda MW |
45484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
45485 | dynamic erase event exec font image minimal mobile \ | |
45486 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 45487 | rotate shaped vscroll widgets" |
a848cd7e SC |
45488 | |
45489 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
45490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
45491 | fi | |
0b78747f | 45492 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
45493 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
45494 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
45495 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
45496 | fi | |
45497 | fi | |
45498 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
45499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 45500 | fi |
a848cd7e SC |
45501 | else |
45502 | SAMPLES_SUBDIRS="console" | |
45503 | fi | |
45504 | ||
45505 | ||
48f625bc | 45506 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
45507 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
45508 | elif test "$GCC" = yes ; then | |
45509 | CWARNINGS="-Wall -Wundef" | |
45510 | fi | |
45511 | ||
48f625bc | 45512 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 45513 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
45514 | elif test "$GXX" = yes ; then |
45515 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 45516 | fi |
a848cd7e | 45517 | |
a848cd7e | 45518 | |
5ff751d6 VZ |
45519 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
45520 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
45521 | ||
45522 | ||
c92ad099 | 45523 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 45524 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
45525 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
45526 | $CPPFLAGS ` | |
5ff751d6 | 45527 | |
8aeeb05c | 45528 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 45529 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 45530 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
45531 | |
45532 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
45533 | ||
a848cd7e | 45534 | |
95986553 DE |
45535 | if test "x$MWCC" = "xyes"; then |
45536 | ||
45537 | CC="$CC -cwd source -I-" | |
45538 | CXX="$CXX -cwd source -I-" | |
45539 | fi | |
45540 | ||
a848cd7e | 45541 | |
0c3c69fc | 45542 | LIBS=`echo $LIBS` |
a848cd7e SC |
45543 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
45544 | EXTRALIBS_XML="$EXPAT_LINK" | |
45545 | EXTRALIBS_HTML="$MSPACK_LINK" | |
45546 | EXTRALIBS_ODBC="$ODBC_LINK" | |
45547 | if test "$wxUSE_GUI" = "yes"; then | |
2b850ae1 | 45548 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
45549 | fi |
45550 | if test "$wxUSE_OPENGL" = "yes"; then | |
45551 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
45552 | fi | |
45553 | ||
8aeeb05c | 45554 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 45555 | |
5ff751d6 | 45556 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
45557 | |
45558 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 45559 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
45560 | fi |
45561 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 45562 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
45563 | fi |
45564 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 45565 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
45566 | fi |
45567 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 45568 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
45569 | fi |
45570 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 45571 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
45572 | fi |
45573 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 45574 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
45575 | fi |
45576 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 45577 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
45578 | fi |
45579 | ||
45580 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 45581 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
45582 | done |
45583 | ||
45584 | ||
45585 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
45586 | WXUNIV=1 | |
45587 | else | |
45588 | WXUNIV=0 | |
45589 | fi | |
45590 | ||
45591 | ||
45592 | ||
45593 | ||
45594 | ||
45595 | ||
45596 | ||
45597 | ||
45598 | ||
45599 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
45600 | MONOLITHIC=1 | |
45601 | else | |
45602 | MONOLITHIC=0 | |
45603 | fi | |
45604 | ||
45605 | if test $wxUSE_PLUGINS = "yes" ; then | |
45606 | USE_PLUGINS=1 | |
45607 | else | |
45608 | USE_PLUGINS=0 | |
45609 | fi | |
45610 | ||
45611 | if test $wxUSE_ODBC != "no" ; then | |
45612 | USE_ODBC=1 | |
45613 | else | |
45614 | USE_ODBC=0 | |
45615 | fi | |
45616 | ||
16358932 VZ |
45617 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45618 | USE_QA=1 | |
45619 | else | |
45620 | USE_QA=0 | |
45621 | fi | |
45622 | ||
a848cd7e SC |
45623 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
45624 | OFFICIAL_BUILD=1 | |
45625 | else | |
45626 | OFFICIAL_BUILD=0 | |
45627 | fi | |
45628 | ||
45629 | ||
45630 | ||
45631 | ||
45632 | ||
45633 | ||
45634 | ||
45635 | ||
45636 | ||
45637 | ||
45638 | ||
45639 | ||
45640 | ||
45641 | ||
45642 | ||
45643 | ||
45644 | ||
45645 | ||
45646 | ||
ceec2216 | 45647 | |
d1c38808 | 45648 | |
3565d135 | 45649 | |
2b850ae1 | 45650 | |
a848cd7e SC |
45651 | |
45652 | ||
45653 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45654 | ||
45655 | ||
45656 | ||
45657 | ||
45658 | ||
45659 | ||
45660 | ||
45661 | ||
4d4ff94c VZ |
45662 | case "$TOOLKIT" in |
45663 | GTK) | |
45664 | TOOLKIT_USER="GTK+" | |
45665 | if test "$WXGTK20" = 1; then | |
45666 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
45667 | fi | |
9a8f0513 | 45668 | ;; |
4d4ff94c VZ |
45669 | |
45670 | *) | |
45671 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 45672 | ;; |
4d4ff94c | 45673 | esac |
a848cd7e | 45674 | |
fb00f58d JS |
45675 | if test "$wxUSE_WINE" = "yes"; then |
45676 | BAKEFILE_FORCE_PLATFORM=win32 | |
45677 | fi | |
45678 | ||
7afc46ab | 45679 | if test "$wxUSE_MAC" = 1 ; then |
95768535 MW |
45680 | if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then |
45681 | if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then | |
45682 | OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | |
45683 | else | |
45684 | OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"} | |
45685 | fi | |
45686 | OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386" | |
45687 | CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS" | |
45688 | CFLAGS="$OSX_UNIV_OPTS $CFLAGS" | |
45689 | LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS" | |
7afc46ab KO |
45690 | bk_use_pch=no |
45691 | fi | |
45692 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
45693 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
7afc46ab KO |
45694 | fi |
45695 | ||
9a8f0513 | 45696 | |
1e9e8aba DE |
45697 | |
45698 | ||
a848cd7e | 45699 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
45700 | if test "x${host}" = "x" ; then |
45701 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
45702 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
45703 | { (exit 1); exit 1; }; } | |
45704 | fi | |
45705 | ||
a848cd7e SC |
45706 | BAKEFILE_HOST="${host}" |
45707 | fi | |
45708 | ||
45709 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45710 | ||
45711 | if test -n "$ac_tool_prefix"; then | |
45712 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45713 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45716 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45718 | else | |
45719 | if test -n "$RANLIB"; then | |
45720 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45721 | else | |
45722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45723 | for as_dir in $PATH | |
45724 | do | |
45725 | IFS=$as_save_IFS | |
45726 | test -z "$as_dir" && as_dir=. | |
45727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45729 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45731 | break 2 | |
45732 | fi | |
45733 | done | |
45734 | done | |
45735 | ||
45736 | fi | |
45737 | fi | |
45738 | RANLIB=$ac_cv_prog_RANLIB | |
45739 | if test -n "$RANLIB"; then | |
45740 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45741 | echo "${ECHO_T}$RANLIB" >&6 | |
45742 | else | |
45743 | echo "$as_me:$LINENO: result: no" >&5 | |
45744 | echo "${ECHO_T}no" >&6 | |
45745 | fi | |
45746 | ||
45747 | fi | |
45748 | if test -z "$ac_cv_prog_RANLIB"; then | |
45749 | ac_ct_RANLIB=$RANLIB | |
45750 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45751 | set dummy ranlib; ac_word=$2 | |
45752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45754 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45756 | else | |
45757 | if test -n "$ac_ct_RANLIB"; then | |
45758 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45759 | else | |
45760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45761 | for as_dir in $PATH | |
45762 | do | |
45763 | IFS=$as_save_IFS | |
45764 | test -z "$as_dir" && as_dir=. | |
45765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45767 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45769 | break 2 | |
45770 | fi | |
45771 | done | |
45772 | done | |
45773 | ||
45774 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45775 | fi | |
45776 | fi | |
45777 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45778 | if test -n "$ac_ct_RANLIB"; then | |
45779 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45780 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45781 | else | |
45782 | echo "$as_me:$LINENO: result: no" >&5 | |
45783 | echo "${ECHO_T}no" >&6 | |
45784 | fi | |
45785 | ||
45786 | RANLIB=$ac_ct_RANLIB | |
45787 | else | |
45788 | RANLIB="$ac_cv_prog_RANLIB" | |
45789 | fi | |
45790 | ||
45791 | # Find a good install program. We prefer a C program (faster), | |
45792 | # so one script is as good as another. But avoid the broken or | |
45793 | # incompatible versions: | |
45794 | # SysV /etc/install, /usr/sbin/install | |
45795 | # SunOS /usr/etc/install | |
45796 | # IRIX /sbin/install | |
45797 | # AIX /bin/install | |
45798 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45799 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45800 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45801 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45802 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45803 | # ./install, which can be erroneously created by make from ./install.sh. |
45804 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45805 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45806 | if test -z "$INSTALL"; then | |
45807 | if test "${ac_cv_path_install+set}" = set; then | |
45808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45809 | else | |
45810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45811 | for as_dir in $PATH | |
45812 | do | |
45813 | IFS=$as_save_IFS | |
45814 | test -z "$as_dir" && as_dir=. | |
45815 | # Account for people who put trailing slashes in PATH elements. | |
45816 | case $as_dir/ in | |
45817 | ./ | .// | /cC/* | \ | |
45818 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 45819 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
45820 | /usr/ucb/* ) ;; |
45821 | *) | |
45822 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
45823 | # Don't use installbsd from OSF since it installs stuff as root | |
45824 | # by default. | |
45825 | for ac_prog in ginstall scoinst install; do | |
45826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
45827 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
45828 | if test $ac_prog = install && | |
45829 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45830 | # AIX install. It has an incompatible calling convention. | |
45831 | : | |
45832 | elif test $ac_prog = install && | |
45833 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45834 | # program-specific install script used by HP pwplus--don't use. | |
45835 | : | |
45836 | else | |
45837 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
45838 | break 3 | |
45839 | fi | |
45840 | fi | |
a848cd7e SC |
45841 | done |
45842 | done | |
45843 | ;; | |
45844 | esac | |
45845 | done | |
45846 | ||
45847 | ||
45848 | fi | |
45849 | if test "${ac_cv_path_install+set}" = set; then | |
45850 | INSTALL=$ac_cv_path_install | |
45851 | else | |
45852 | # As a last resort, use the slow shell script. We don't cache a | |
45853 | # path for INSTALL within a source directory, because that will | |
45854 | # break other packages using the cache if that directory is | |
45855 | # removed, or if the path is relative. | |
45856 | INSTALL=$ac_install_sh | |
45857 | fi | |
45858 | fi | |
45859 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
45860 | echo "${ECHO_T}$INSTALL" >&6 | |
45861 | ||
45862 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
45863 | # It thinks the first close brace ends the variable substitution. | |
45864 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
45865 | ||
45866 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
45867 | ||
45868 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
45869 | ||
45870 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
45871 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
45872 | LN_S=$as_ln_s | |
45873 | if test "$LN_S" = "ln -s"; then | |
45874 | echo "$as_me:$LINENO: result: yes" >&5 | |
45875 | echo "${ECHO_T}yes" >&6 | |
45876 | else | |
45877 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
45878 | echo "${ECHO_T}no, using $LN_S" >&6 | |
45879 | fi | |
45880 | ||
45881 | ||
45882 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45883 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45884 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45885 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45887 | else | |
45888 | cat >conftest.make <<\_ACEOF | |
45889 | all: | |
45890 | @echo 'ac_maketemp="$(MAKE)"' | |
45891 | _ACEOF | |
45892 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45893 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45894 | if test -n "$ac_maketemp"; then | |
45895 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45896 | else | |
45897 | eval ac_cv_prog_make_${ac_make}_set=no | |
45898 | fi | |
45899 | rm -f conftest.make | |
45900 | fi | |
45901 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45902 | echo "$as_me:$LINENO: result: yes" >&5 | |
45903 | echo "${ECHO_T}yes" >&6 | |
45904 | SET_MAKE= | |
45905 | else | |
45906 | echo "$as_me:$LINENO: result: no" >&5 | |
45907 | echo "${ECHO_T}no" >&6 | |
45908 | SET_MAKE="MAKE=${MAKE-make}" | |
45909 | fi | |
45910 | ||
45911 | ||
45912 | ||
45913 | if test -n "$ac_tool_prefix"; then | |
45914 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
45915 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
45916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45918 | if test "${ac_cv_prog_AR+set}" = set; then | |
45919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45920 | else | |
45921 | if test -n "$AR"; then | |
45922 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
45923 | else | |
45924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45925 | for as_dir in $PATH | |
45926 | do | |
45927 | IFS=$as_save_IFS | |
45928 | test -z "$as_dir" && as_dir=. | |
45929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45931 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
45932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45933 | break 2 | |
45934 | fi | |
45935 | done | |
45936 | done | |
45937 | ||
45938 | fi | |
45939 | fi | |
45940 | AR=$ac_cv_prog_AR | |
45941 | if test -n "$AR"; then | |
45942 | echo "$as_me:$LINENO: result: $AR" >&5 | |
45943 | echo "${ECHO_T}$AR" >&6 | |
45944 | else | |
45945 | echo "$as_me:$LINENO: result: no" >&5 | |
45946 | echo "${ECHO_T}no" >&6 | |
45947 | fi | |
45948 | ||
45949 | fi | |
45950 | if test -z "$ac_cv_prog_AR"; then | |
45951 | ac_ct_AR=$AR | |
45952 | # Extract the first word of "ar", so it can be a program name with args. | |
45953 | set dummy ar; ac_word=$2 | |
45954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45956 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
45957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45958 | else | |
45959 | if test -n "$ac_ct_AR"; then | |
45960 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
45961 | else | |
45962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45963 | for as_dir in $PATH | |
45964 | do | |
45965 | IFS=$as_save_IFS | |
45966 | test -z "$as_dir" && as_dir=. | |
45967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45969 | ac_cv_prog_ac_ct_AR="ar" | |
45970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45971 | break 2 | |
45972 | fi | |
45973 | done | |
45974 | done | |
45975 | ||
45976 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
45977 | fi | |
45978 | fi | |
45979 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
45980 | if test -n "$ac_ct_AR"; then | |
45981 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
45982 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
45983 | else | |
45984 | echo "$as_me:$LINENO: result: no" >&5 | |
45985 | echo "${ECHO_T}no" >&6 | |
45986 | fi | |
45987 | ||
45988 | AR=$ac_ct_AR | |
45989 | else | |
45990 | AR="$ac_cv_prog_AR" | |
45991 | fi | |
45992 | ||
45993 | if test -n "$ac_tool_prefix"; then | |
45994 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
45995 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
45996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45998 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
45999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46000 | else | |
46001 | if test -n "$STRIP"; then | |
46002 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
46003 | else | |
46004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46005 | for as_dir in $PATH | |
46006 | do | |
46007 | IFS=$as_save_IFS | |
46008 | test -z "$as_dir" && as_dir=. | |
46009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46011 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
46012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46013 | break 2 | |
46014 | fi | |
46015 | done | |
46016 | done | |
46017 | ||
46018 | fi | |
46019 | fi | |
46020 | STRIP=$ac_cv_prog_STRIP | |
46021 | if test -n "$STRIP"; then | |
46022 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
46023 | echo "${ECHO_T}$STRIP" >&6 | |
46024 | else | |
46025 | echo "$as_me:$LINENO: result: no" >&5 | |
46026 | echo "${ECHO_T}no" >&6 | |
46027 | fi | |
46028 | ||
46029 | fi | |
46030 | if test -z "$ac_cv_prog_STRIP"; then | |
46031 | ac_ct_STRIP=$STRIP | |
46032 | # Extract the first word of "strip", so it can be a program name with args. | |
46033 | set dummy strip; ac_word=$2 | |
46034 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46036 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
46037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46038 | else | |
46039 | if test -n "$ac_ct_STRIP"; then | |
46040 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
46041 | else | |
46042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46043 | for as_dir in $PATH | |
46044 | do | |
46045 | IFS=$as_save_IFS | |
46046 | test -z "$as_dir" && as_dir=. | |
46047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46048 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46049 | ac_cv_prog_ac_ct_STRIP="strip" | |
46050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46051 | break 2 | |
46052 | fi | |
46053 | done | |
46054 | done | |
46055 | ||
46056 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
46057 | fi | |
46058 | fi | |
46059 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
46060 | if test -n "$ac_ct_STRIP"; then | |
46061 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
46062 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
46063 | else | |
46064 | echo "$as_me:$LINENO: result: no" >&5 | |
46065 | echo "${ECHO_T}no" >&6 | |
46066 | fi | |
46067 | ||
46068 | STRIP=$ac_ct_STRIP | |
46069 | else | |
46070 | STRIP="$ac_cv_prog_STRIP" | |
46071 | fi | |
46072 | ||
46073 | if test -n "$ac_tool_prefix"; then | |
46074 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
46075 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
46076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46078 | if test "${ac_cv_prog_NM+set}" = set; then | |
46079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46080 | else | |
46081 | if test -n "$NM"; then | |
46082 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
46083 | else | |
46084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46085 | for as_dir in $PATH | |
46086 | do | |
46087 | IFS=$as_save_IFS | |
46088 | test -z "$as_dir" && as_dir=. | |
46089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46091 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
46092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46093 | break 2 | |
46094 | fi | |
46095 | done | |
46096 | done | |
46097 | ||
46098 | fi | |
46099 | fi | |
46100 | NM=$ac_cv_prog_NM | |
46101 | if test -n "$NM"; then | |
46102 | echo "$as_me:$LINENO: result: $NM" >&5 | |
46103 | echo "${ECHO_T}$NM" >&6 | |
46104 | else | |
46105 | echo "$as_me:$LINENO: result: no" >&5 | |
46106 | echo "${ECHO_T}no" >&6 | |
46107 | fi | |
46108 | ||
46109 | fi | |
46110 | if test -z "$ac_cv_prog_NM"; then | |
46111 | ac_ct_NM=$NM | |
46112 | # Extract the first word of "nm", so it can be a program name with args. | |
46113 | set dummy nm; ac_word=$2 | |
46114 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46116 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
46117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46118 | else | |
46119 | if test -n "$ac_ct_NM"; then | |
46120 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
46121 | else | |
46122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46123 | for as_dir in $PATH | |
46124 | do | |
46125 | IFS=$as_save_IFS | |
46126 | test -z "$as_dir" && as_dir=. | |
46127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46128 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46129 | ac_cv_prog_ac_ct_NM="nm" | |
46130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46131 | break 2 | |
46132 | fi | |
46133 | done | |
46134 | done | |
46135 | ||
46136 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
46137 | fi | |
46138 | fi | |
46139 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
46140 | if test -n "$ac_ct_NM"; then | |
46141 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
46142 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
46143 | else | |
46144 | echo "$as_me:$LINENO: result: no" >&5 | |
46145 | echo "${ECHO_T}no" >&6 | |
46146 | fi | |
46147 | ||
46148 | NM=$ac_ct_NM | |
46149 | else | |
46150 | NM="$ac_cv_prog_NM" | |
46151 | fi | |
46152 | ||
46153 | ||
46154 | case ${BAKEFILE_HOST} in | |
46155 | *-hp-hpux* ) | |
1e9e8aba | 46156 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
46157 | ;; |
46158 | *) INSTALL_DIR="$INSTALL -d" | |
46159 | ;; | |
46160 | esac | |
46161 | ||
46162 | ||
46163 | LDFLAGS_GUI= | |
46164 | case ${BAKEFILE_HOST} in | |
46165 | *-*-cygwin* | *-*-mingw32* ) | |
46166 | LDFLAGS_GUI="-mwindows" | |
46167 | esac | |
46168 | ||
46169 | ||
46170 | fi | |
46171 | ||
46172 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
46173 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
46174 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
46175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46176 | else | |
46177 | ||
46178 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
46179 | egrep -s GNU > /dev/null); then | |
46180 | bakefile_cv_prog_makeisgnu="yes" | |
46181 | else | |
46182 | bakefile_cv_prog_makeisgnu="no" | |
46183 | fi | |
46184 | ||
46185 | fi | |
46186 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
46187 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
46188 | ||
46189 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
46190 | IF_GNU_MAKE="" | |
46191 | else | |
46192 | IF_GNU_MAKE="#" | |
46193 | fi | |
46194 | ||
46195 | ||
46196 | ||
46197 | PLATFORM_UNIX=0 | |
46198 | PLATFORM_WIN32=0 | |
46199 | PLATFORM_MSDOS=0 | |
46200 | PLATFORM_MAC=0 | |
1e9e8aba | 46201 | PLATFORM_MACOS=0 |
a848cd7e SC |
46202 | PLATFORM_MACOSX=0 |
46203 | PLATFORM_OS2=0 | |
1e9e8aba | 46204 | PLATFORM_BEOS=0 |
a848cd7e SC |
46205 | |
46206 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
46207 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 46208 | *-*-mingw32* ) |
a848cd7e SC |
46209 | PLATFORM_WIN32=1 |
46210 | ;; | |
46211 | *-pc-msdosdjgpp ) | |
46212 | PLATFORM_MSDOS=1 | |
46213 | ;; | |
46214 | *-pc-os2_emx | *-pc-os2-emx ) | |
46215 | PLATFORM_OS2=1 | |
46216 | ;; | |
47bd5406 | 46217 | *-*-darwin* ) |
a848cd7e SC |
46218 | PLATFORM_MAC=1 |
46219 | PLATFORM_MACOSX=1 | |
46220 | ;; | |
1e9e8aba DE |
46221 | *-*-beos* ) |
46222 | PLATFORM_BEOS=1 | |
46223 | ;; | |
46224 | powerpc-apple-macos* ) | |
46225 | PLATFORM_MAC=1 | |
46226 | PLATFORM_MACOS=1 | |
46227 | ;; | |
a848cd7e SC |
46228 | * ) |
46229 | PLATFORM_UNIX=1 | |
46230 | ;; | |
46231 | esac | |
46232 | else | |
46233 | case "$BAKEFILE_FORCE_PLATFORM" in | |
46234 | win32 ) | |
46235 | PLATFORM_WIN32=1 | |
46236 | ;; | |
46237 | msdos ) | |
46238 | PLATFORM_MSDOS=1 | |
46239 | ;; | |
46240 | os2 ) | |
46241 | PLATFORM_OS2=1 | |
46242 | ;; | |
46243 | darwin ) | |
46244 | PLATFORM_MAC=1 | |
46245 | PLATFORM_MACOSX=1 | |
46246 | ;; | |
46247 | unix ) | |
46248 | PLATFORM_UNIX=1 | |
46249 | ;; | |
1e9e8aba DE |
46250 | beos ) |
46251 | PLATFORM_BEOS=1 | |
46252 | ;; | |
a848cd7e SC |
46253 | * ) |
46254 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
46255 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
46256 | { (exit 1); exit 1; }; } | |
46257 | ;; | |
46258 | esac | |
46259 | fi | |
46260 | ||
46261 | ||
46262 | ||
46263 | ||
46264 | ||
46265 | ||
46266 | ||
46267 | ||
46268 | ||
1e9e8aba DE |
46269 | |
46270 | ||
a848cd7e SC |
46271 | # Check whether --enable-omf or --disable-omf was given. |
46272 | if test "${enable_omf+set}" = set; then | |
46273 | enableval="$enable_omf" | |
46274 | bk_os2_use_omf="$enableval" | |
46275 | fi; | |
46276 | ||
46277 | case "${BAKEFILE_HOST}" in | |
46278 | *-*-darwin* ) | |
47bd5406 VZ |
46279 | if test "x$GCC" = "xyes"; then |
46280 | CFLAGS="$CFLAGS -fno-common" | |
46281 | CXXFLAGS="$CXXFLAGS -fno-common" | |
46282 | fi | |
46283 | if test "x$XLCC" = "xyes"; then | |
46284 | CFLAGS="$CFLAGS -qnocommon" | |
46285 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
46286 | fi | |
a848cd7e SC |
46287 | ;; |
46288 | ||
46289 | *-pc-os2_emx | *-pc-os2-emx ) | |
46290 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
46291 | AR=emxomfar | |
46292 | RANLIB=: | |
46293 | LDFLAGS="-Zomf $LDFLAGS" | |
46294 | CFLAGS="-Zomf $CFLAGS" | |
46295 | CXXFLAGS="-Zomf $CXXFLAGS" | |
46296 | OS2_LIBEXT="lib" | |
46297 | else | |
46298 | OS2_LIBEXT="a" | |
46299 | fi | |
46300 | ;; | |
1e9e8aba DE |
46301 | |
46302 | i*86-*-beos* ) | |
46303 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
46304 | ;; | |
a848cd7e SC |
46305 | esac |
46306 | ||
46307 | ||
46308 | SO_SUFFIX="so" | |
46309 | SO_SUFFIX_MODULE="so" | |
46310 | EXEEXT="" | |
46311 | LIBPREFIX="lib" | |
46312 | LIBEXT=".a" | |
46313 | DLLPREFIX="lib" | |
46314 | DLLPREFIX_MODULE="" | |
46315 | DLLIMP_SUFFIX="" | |
810b94f0 | 46316 | dlldir="$libdir" |
a848cd7e SC |
46317 | |
46318 | case "${BAKEFILE_HOST}" in | |
46319 | *-hp-hpux* ) | |
46320 | SO_SUFFIX="sl" | |
46321 | SO_SUFFIX_MODULE="sl" | |
46322 | ;; | |
46323 | *-*-aix* ) | |
46324 | SO_SUFFIX="a" | |
46325 | SO_SUFFIX_MODULE="a" | |
46326 | ;; | |
810b94f0 MW |
46327 | *-*-cygwin* ) |
46328 | SO_SUFFIX="dll" | |
46329 | SO_SUFFIX_MODULE="dll" | |
46330 | DLLIMP_SUFFIX="dll.a" | |
46331 | EXEEXT=".exe" | |
46332 | DLLPREFIX="cyg" | |
46333 | dlldir="$bindir" | |
46334 | ;; | |
46335 | *-*-mingw32* ) | |
a848cd7e SC |
46336 | SO_SUFFIX="dll" |
46337 | SO_SUFFIX_MODULE="dll" | |
46338 | DLLIMP_SUFFIX="dll.a" | |
46339 | EXEEXT=".exe" | |
46340 | DLLPREFIX="" | |
810b94f0 | 46341 | dlldir="$bindir" |
a848cd7e SC |
46342 | ;; |
46343 | *-pc-msdosdjgpp ) | |
46344 | EXEEXT=".exe" | |
46345 | DLLPREFIX="" | |
810b94f0 | 46346 | dlldir="$bindir" |
a848cd7e SC |
46347 | ;; |
46348 | *-pc-os2_emx | *-pc-os2-emx ) | |
46349 | SO_SUFFIX="dll" | |
46350 | SO_SUFFIX_MODULE="dll" | |
46351 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
46352 | EXEEXT=".exe" | |
46353 | DLLPREFIX="" | |
46354 | LIBPREFIX="" | |
46355 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 46356 | dlldir="$bindir" |
a848cd7e | 46357 | ;; |
47bd5406 | 46358 | *-*-darwin* ) |
a848cd7e SC |
46359 | SO_SUFFIX="dylib" |
46360 | SO_SUFFIX_MODULE="bundle" | |
46361 | ;; | |
46362 | esac | |
46363 | ||
46364 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
46365 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
46366 | fi | |
46367 | ||
46368 | ||
46369 | ||
46370 | ||
46371 | ||
46372 | ||
46373 | ||
46374 | ||
46375 | ||
46376 | ||
46377 | ||
810b94f0 | 46378 | |
1e9e8aba DE |
46379 | PIC_FLAG="" |
46380 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
46381 | PIC_FLAG="-fPIC" |
46382 | fi | |
46383 | ||
1e9e8aba DE |
46384 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
46385 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 46386 | WINDOWS_IMPLIB=0 |
1e9e8aba | 46387 | |
a848cd7e SC |
46388 | case "${BAKEFILE_HOST}" in |
46389 | *-hp-hpux* ) | |
1e9e8aba | 46390 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
46391 | LDFLAGS="$LDFLAGS -L/usr/lib" |
46392 | ||
46393 | SHARED_LD_CC="${CC} -b -o" | |
46394 | SHARED_LD_CXX="${CXX} -b -o" | |
46395 | PIC_FLAG="+Z" | |
46396 | fi | |
46397 | ;; | |
46398 | ||
46399 | *-*-linux* ) | |
46400 | if test "x$GCC" != "xyes"; then | |
46401 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
46402 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
46403 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
46404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46405 | else | |
46406 | ||
46407 | cat >conftest.$ac_ext <<_ACEOF | |
46408 | /* confdefs.h. */ | |
46409 | _ACEOF | |
46410 | cat confdefs.h >>conftest.$ac_ext | |
46411 | cat >>conftest.$ac_ext <<_ACEOF | |
46412 | /* end confdefs.h. */ | |
46413 | ||
46414 | int | |
46415 | main () | |
46416 | { | |
46417 | ||
46418 | #ifndef __INTEL_COMPILER | |
e5efa97e | 46419 | This is not ICC |
a848cd7e SC |
46420 | #endif |
46421 | ||
46422 | ; | |
46423 | return 0; | |
46424 | } | |
46425 | _ACEOF | |
46426 | rm -f conftest.$ac_objext | |
46427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46428 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46429 | ac_status=$? |
ac1cb8d3 VS |
46430 | grep -v '^ *+' conftest.er1 >conftest.err |
46431 | rm -f conftest.er1 | |
46432 | cat conftest.err >&5 | |
a848cd7e SC |
46433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46434 | (exit $ac_status); } && | |
c9a66001 | 46435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
46436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46437 | (eval $ac_try) 2>&5 | |
46438 | ac_status=$? | |
46439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46440 | (exit $ac_status); }; } && | |
46441 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46443 | (eval $ac_try) 2>&5 | |
46444 | ac_status=$? | |
46445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46446 | (exit $ac_status); }; }; then | |
46447 | bakefile_cv_prog_icc=yes | |
46448 | else | |
46449 | echo "$as_me: failed program was:" >&5 | |
46450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46451 | ||
46452 | bakefile_cv_prog_icc=no | |
46453 | ||
46454 | fi | |
ac1cb8d3 | 46455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
46456 | |
46457 | fi | |
46458 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
46459 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
46460 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
46461 | PIC_FLAG="-KPIC" | |
46462 | fi | |
46463 | fi | |
46464 | ;; | |
46465 | ||
46466 | *-*-solaris2* ) | |
46467 | if test "x$GCC" != xyes ; then | |
46468 | SHARED_LD_CC="${CC} -G -o" | |
46469 | SHARED_LD_CXX="${CXX} -G -o" | |
46470 | PIC_FLAG="-KPIC" | |
46471 | fi | |
46472 | ;; | |
46473 | ||
46474 | *-*-darwin* ) | |
46475 | ||
473276a9 VS |
46476 | D='$' |
46477 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
46478 | #!/bin/sh |
46479 | #----------------------------------------------------------------------------- | |
46480 | #-- Name: distrib/mac/shared-ld-sh | |
46481 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
46482 | #-- Author: Gilles Depeyrot | |
46483 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
46484 | #-- Licence: any use permitted | |
46485 | #----------------------------------------------------------------------------- | |
46486 | ||
46487 | verbose=0 | |
46488 | args="" | |
46489 | objects="" | |
46490 | linking_flag="-dynamiclib" | |
810b94f0 | 46491 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 46492 | |
473276a9 VS |
46493 | while test ${D}# -gt 0; do |
46494 | case ${D}1 in | |
a848cd7e SC |
46495 | |
46496 | -v) | |
46497 | verbose=1 | |
46498 | ;; | |
46499 | ||
46500 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
46501 | # collect these options and values | |
473276a9 | 46502 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
46503 | shift |
46504 | ;; | |
46505 | ||
810b94f0 MW |
46506 | -s|-Wl,*) |
46507 | # collect these load args | |
46508 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 46509 | ;; |
810b94f0 MW |
46510 | |
46511 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 46512 | # collect these options |
473276a9 | 46513 | args="${D}{args} ${D}1" |
a848cd7e SC |
46514 | ;; |
46515 | ||
46516 | -dynamiclib|-bundle) | |
473276a9 | 46517 | linking_flag="${D}1" |
a848cd7e SC |
46518 | ;; |
46519 | ||
46520 | -*) | |
473276a9 | 46521 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
46522 | exit 1 |
46523 | ;; | |
46524 | ||
46525 | *.o | *.a | *.dylib) | |
46526 | # collect object files | |
473276a9 | 46527 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
46528 | ;; |
46529 | ||
46530 | *) | |
473276a9 | 46531 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
46532 | exit 1 |
46533 | ;; | |
46534 | ||
46535 | esac | |
46536 | shift | |
46537 | done | |
46538 | ||
810b94f0 MW |
46539 | status=0 |
46540 | ||
a848cd7e SC |
46541 | # |
46542 | # Link one module containing all the others | |
46543 | # | |
473276a9 | 46544 | if test ${D}{verbose} = 1; then |
810b94f0 | 46545 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 46546 | fi |
810b94f0 | 46547 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 46548 | status=${D}? |
a848cd7e SC |
46549 | |
46550 | # | |
810b94f0 MW |
46551 | # Link the shared library from the single module created, but only if the |
46552 | # previous command didn't fail: | |
a848cd7e | 46553 | # |
810b94f0 MW |
46554 | if test ${D}{status} = 0; then |
46555 | if test ${D}{verbose} = 1; then | |
46556 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
46557 | fi | |
46558 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
46559 | status=${D}? | |
a848cd7e SC |
46560 | fi |
46561 | ||
46562 | # | |
46563 | # Remove intermediate module | |
46564 | # | |
473276a9 | 46565 | rm -f master.${D}${D}.o |
a848cd7e | 46566 | |
810b94f0 | 46567 | exit ${D}status |
a848cd7e | 46568 | EOF |
473276a9 | 46569 | |
583d6b4b VZ |
46570 | chmod +x shared-ld-sh |
46571 | ||
46572 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
46573 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
46574 | ||
46575 | ||
46576 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
46577 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
46578 | if test "${bakefile_cv_gcc31+set}" = set; then | |
46579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46580 | else | |
46581 | ||
46582 | cat >conftest.$ac_ext <<_ACEOF | |
46583 | /* confdefs.h. */ | |
46584 | _ACEOF | |
46585 | cat confdefs.h >>conftest.$ac_ext | |
46586 | cat >>conftest.$ac_ext <<_ACEOF | |
46587 | /* end confdefs.h. */ | |
46588 | ||
46589 | int | |
46590 | main () | |
46591 | { | |
46592 | ||
46593 | #if (__GNUC__ < 3) || \ | |
46594 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 46595 | This is old gcc |
583d6b4b | 46596 | #endif |
a848cd7e | 46597 | |
583d6b4b VZ |
46598 | ; |
46599 | return 0; | |
46600 | } | |
46601 | _ACEOF | |
46602 | rm -f conftest.$ac_objext | |
46603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
46604 | (eval $ac_compile) 2>conftest.er1 | |
46605 | ac_status=$? | |
46606 | grep -v '^ *+' conftest.er1 >conftest.err | |
46607 | rm -f conftest.er1 | |
46608 | cat conftest.err >&5 | |
46609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46610 | (exit $ac_status); } && | |
c9a66001 | 46611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
583d6b4b VZ |
46612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46613 | (eval $ac_try) 2>&5 | |
46614 | ac_status=$? | |
46615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46616 | (exit $ac_status); }; } && | |
46617 | { ac_try='test -s conftest.$ac_objext' | |
46618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46619 | (eval $ac_try) 2>&5 | |
46620 | ac_status=$? | |
46621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46622 | (exit $ac_status); }; }; then | |
46623 | ||
46624 | bakefile_cv_gcc31=yes | |
46625 | ||
46626 | else | |
46627 | echo "$as_me: failed program was:" >&5 | |
46628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46629 | ||
46630 | ||
46631 | bakefile_cv_gcc31=no | |
46632 | ||
46633 | ||
46634 | fi | |
46635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46636 | ||
46637 | fi | |
46638 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
46639 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
46640 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 46641 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 46642 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
46643 | else |
46644 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 46645 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46646 | fi |
46647 | ||
47bd5406 VZ |
46648 | if test "x$GCC" == "xyes"; then |
46649 | PIC_FLAG="-dynamic -fPIC" | |
46650 | fi | |
46651 | if test "x$XLCC" = "xyes"; then | |
46652 | PIC_FLAG="-dynamic -DPIC" | |
46653 | fi | |
a848cd7e SC |
46654 | ;; |
46655 | ||
46656 | *-*-aix* ) | |
f6b50c59 | 46657 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46658 | PIC_FLAG="" |
f6b50c59 | 46659 | |
583d6b4b VZ |
46660 | case "${BAKEFILE_HOST}" in |
46661 | *-*-aix5* ) | |
46662 | LD_EXPFULL="-Wl,-bexpfull" | |
46663 | ;; | |
46664 | esac | |
f6b50c59 | 46665 | |
583d6b4b VZ |
46666 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46667 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46668 | else | |
46669 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46670 | set dummy makeC++SharedLib; ac_word=$2 |
46671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46673 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46675 | else | |
46676 | if test -n "$AIX_CXX_LD"; then | |
46677 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46678 | else | |
46679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46680 | for as_dir in $PATH | |
46681 | do | |
46682 | IFS=$as_save_IFS | |
46683 | test -z "$as_dir" && as_dir=. | |
46684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46686 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46688 | break 2 | |
46689 | fi | |
46690 | done | |
46691 | done | |
46692 | ||
46693 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46694 | fi | |
46695 | fi | |
46696 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46697 | if test -n "$AIX_CXX_LD"; then | |
46698 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46699 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46700 | else | |
46701 | echo "$as_me:$LINENO: result: no" >&5 | |
46702 | echo "${ECHO_T}no" >&6 | |
46703 | fi | |
46704 | ||
f6b50c59 | 46705 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46706 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46707 | fi | |
46708 | ;; | |
46709 | ||
46710 | *-*-beos* ) | |
1e9e8aba DE |
46711 | SHARED_LD_CC="${LD} -nostart -o" |
46712 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46713 | ;; |
46714 | ||
46715 | *-*-irix* ) | |
46716 | if test "x$GCC" != "xyes"; then | |
46717 | PIC_FLAG="-KPIC" | |
46718 | fi | |
46719 | ;; | |
46720 | ||
46721 | *-*-cygwin* | *-*-mingw32* ) | |
46722 | PIC_FLAG="" | |
1e9e8aba DE |
46723 | SHARED_LD_CC="\$(CC) -shared -o" |
46724 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46725 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46726 | ;; |
46727 | ||
46728 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46729 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46730 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46731 | PIC_FLAG="" |
473276a9 VS |
46732 | |
46733 | D='$' | |
46734 | cat <<EOF >dllar.sh | |
46735 | #!/bin/sh | |
46736 | # | |
46737 | # dllar - a tool to build both a .dll and an .a file | |
46738 | # from a set of object (.o) files for EMX/OS2. | |
46739 | # | |
46740 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46741 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46742 | # | |
46743 | # This script will accept a set of files on the command line. | |
46744 | # All the public symbols from the .o files will be exported into | |
46745 | # a .DEF file, then linker will be run (through gcc) against them to | |
46746 | # build a shared library consisting of all given .o files. All libraries | |
46747 | # (.a) will be first decompressed into component .o files then act as | |
46748 | # described above. You can optionally give a description (-d "description") | |
46749 | # which will be put into .DLL. To see the list of accepted options (as well | |
46750 | # as command-line format) simply run this program without options. The .DLL | |
46751 | # is built to be imported by name (there is no guarantee that new versions | |
46752 | # of the library you build will have same ordinals for same symbols). | |
46753 | # | |
46754 | # dllar is free software; you can redistribute it and/or modify | |
46755 | # it under the terms of the GNU General Public License as published by | |
46756 | # the Free Software Foundation; either version 2, or (at your option) | |
46757 | # any later version. | |
46758 | # | |
46759 | # dllar is distributed in the hope that it will be useful, | |
46760 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46761 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46762 | # GNU General Public License for more details. | |
46763 | # | |
46764 | # You should have received a copy of the GNU General Public License | |
46765 | # along with dllar; see the file COPYING. If not, write to the Free | |
46766 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46767 | # 02111-1307, USA. | |
46768 | ||
46769 | # To successfuly run this program you will need: | |
46770 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46771 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46772 | # - gcc | |
46773 | # (used to build the .dll) | |
46774 | # - emxexp | |
46775 | # (used to create .def file from .o files) | |
46776 | # - emximp | |
46777 | # (used to create .a file from .def file) | |
46778 | # - GNU text utilites (cat, sort, uniq) | |
46779 | # used to process emxexp output | |
46780 | # - GNU file utilities (mv, rm) | |
46781 | # - GNU sed | |
46782 | # - lxlite (optional, see flag below) | |
46783 | # (used for general .dll cleanup) | |
46784 | # | |
46785 | ||
46786 | flag_USE_LXLITE=1; | |
46787 | ||
46788 | # | |
46789 | # helper functions | |
46790 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46791 | # second argument (suffix to remove) is given | |
46792 | basnam(){ | |
46793 | case ${D}# in | |
46794 | 1) | |
1e9e8aba | 46795 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46796 | ;; |
46797 | 2) | |
46798 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46799 | ;; | |
46800 | *) | |
46801 | echo "error in basnam ${D}*" | |
46802 | exit 8 | |
46803 | ;; | |
46804 | esac | |
46805 | } | |
46806 | ||
46807 | # Cleanup temporary files and output | |
46808 | CleanUp() { | |
46809 | cd ${D}curDir | |
46810 | for i in ${D}inputFiles ; do | |
46811 | case ${D}i in | |
46812 | *!) | |
46813 | rm -rf \`basnam ${D}i !\` | |
46814 | ;; | |
46815 | *) | |
46816 | ;; | |
46817 | esac | |
46818 | done | |
46819 | ||
46820 | # Kill result in case of failure as there is just to many stupid make/nmake | |
46821 | # things out there which doesn't do this. | |
1e9e8aba | 46822 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
46823 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
46824 | fi | |
46825 | } | |
46826 | ||
46827 | # Print usage and exit script with rc=1. | |
46828 | PrintHelp() { | |
b1d22ded DE |
46829 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
46830 | echo ' [-name-mangler-script script.sh]' | |
46831 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
46832 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
46833 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 46834 | echo ' [*.o] [*.a]' |
473276a9 VS |
46835 | echo '*> "output_file" should have no extension.' |
46836 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
46837 | echo ' The import library name is derived from this and is set to "name".a,' | |
46838 | echo ' unless overridden by -import' | |
46839 | echo '*> "importlib_name" should have no extension.' | |
46840 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
46841 | echo ' This name is used as the import library name and may be longer and' | |
46842 | echo ' more descriptive than the DLL name which has to follow the old ' | |
46843 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
46844 | echo '*> "script.sh may be given to override the output_file name by a' |
46845 | echo ' different name. It is mainly useful if the regular make process' | |
46846 | echo ' of some package does not take into account OS/2 restriction of' | |
46847 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
46848 | echo ' supposed to procude a shorter name as output. The script should' | |
46849 | echo ' expect to get importlib_name without extension and should produce' | |
46850 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
46851 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
46852 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
46853 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
46854 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
46855 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
46856 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
46857 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
46858 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 46859 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 46860 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 46861 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 46862 | echo ' C runtime DLLs.' |
b1d22ded | 46863 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
46864 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
46865 | echo ' unchanged to GCC at the end of command line.' | |
46866 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
46867 | echo ' the basename for DLL and import library will be set to library name,' | |
46868 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
46869 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
46870 | echo ' library will be renamed into gcc_s.a.' | |
46871 | echo '--------' | |
46872 | echo 'Example:' | |
46873 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
46874 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
46875 | CleanUp | |
46876 | exit 1 | |
46877 | } | |
46878 | ||
46879 | # Execute a command. | |
46880 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
46881 | # @Uses Whatever CleanUp() uses. | |
46882 | doCommand() { | |
46883 | echo "${D}*" | |
46884 | eval ${D}* | |
46885 | rcCmd=${D}? | |
46886 | ||
1e9e8aba | 46887 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
46888 | echo "command failed, exit code="${D}rcCmd |
46889 | CleanUp | |
46890 | exit ${D}rcCmd | |
46891 | fi | |
46892 | } | |
46893 | ||
46894 | # main routine | |
46895 | # setup globals | |
46896 | cmdLine=${D}* | |
46897 | outFile="" | |
46898 | outimpFile="" | |
46899 | inputFiles="" | |
b1d22ded | 46900 | renameScript="" |
473276a9 VS |
46901 | description="" |
46902 | CC=gcc.exe | |
46903 | CFLAGS="-s -Zcrtdll" | |
46904 | EXTRA_CFLAGS="" | |
46905 | EXPORT_BY_ORDINALS=0 | |
46906 | exclude_symbols="" | |
46907 | library_flags="" | |
46908 | curDir=\`pwd\` | |
46909 | curDirS=curDir | |
46910 | case ${D}curDirS in | |
46911 | */) | |
46912 | ;; | |
46913 | *) | |
46914 | curDirS=${D}{curDirS}"/" | |
46915 | ;; | |
46916 | esac | |
46917 | # Parse commandline | |
46918 | libsToLink=0 | |
b1d22ded | 46919 | omfLinking=0 |
1e9e8aba | 46920 | while [ ${D}1 ]; do |
473276a9 VS |
46921 | case ${D}1 in |
46922 | -ord*) | |
46923 | EXPORT_BY_ORDINALS=1; | |
46924 | ;; | |
46925 | -o*) | |
46926 | shift | |
46927 | outFile=${D}1 | |
46928 | ;; | |
46929 | -i*) | |
46930 | shift | |
46931 | outimpFile=${D}1 | |
46932 | ;; | |
b1d22ded DE |
46933 | -name-mangler-script) |
46934 | shift | |
46935 | renameScript=${D}1 | |
46936 | ;; | |
473276a9 VS |
46937 | -d*) |
46938 | shift | |
46939 | description=${D}1 | |
46940 | ;; | |
46941 | -f*) | |
46942 | shift | |
46943 | CFLAGS=${D}1 | |
46944 | ;; | |
46945 | -c*) | |
46946 | shift | |
46947 | CC=${D}1 | |
46948 | ;; | |
46949 | -h*) | |
46950 | PrintHelp | |
46951 | ;; | |
46952 | -ex*) | |
46953 | shift | |
46954 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
46955 | ;; | |
46956 | -libf*) | |
46957 | shift | |
46958 | library_flags=${D}{library_flags}${D}1" " | |
46959 | ;; | |
46960 | -nocrt*) | |
46961 | CFLAGS="-s" | |
46962 | ;; | |
46963 | -nolxl*) | |
46964 | flag_USE_LXLITE=0 | |
46965 | ;; | |
46966 | -* | /*) | |
46967 | case ${D}1 in | |
46968 | -L* | -l*) | |
46969 | libsToLink=1 | |
46970 | ;; | |
b1d22ded DE |
46971 | -Zomf) |
46972 | omfLinking=1 | |
46973 | ;; | |
473276a9 VS |
46974 | *) |
46975 | ;; | |
46976 | esac | |
46977 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
46978 | ;; | |
b1d22ded DE |
46979 | *.dll) |
46980 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
46981 | if [ ${D}omfLinking -eq 1 ]; then | |
46982 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
46983 | else | |
46984 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
46985 | fi | |
46986 | ;; | |
473276a9 VS |
46987 | *) |
46988 | found=0; | |
1e9e8aba | 46989 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
46990 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
46991 | else | |
46992 | for file in ${D}1 ; do | |
1e9e8aba | 46993 | if [ -f ${D}file ]; then |
473276a9 VS |
46994 | inputFiles="${D}{inputFiles} ${D}file" |
46995 | found=1 | |
46996 | fi | |
46997 | done | |
1e9e8aba | 46998 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
46999 | echo "ERROR: No file(s) found: "${D}1 |
47000 | exit 8 | |
47001 | fi | |
47002 | fi | |
47003 | ;; | |
47004 | esac | |
47005 | shift | |
47006 | done # iterate cmdline words | |
47007 | ||
47008 | # | |
1e9e8aba | 47009 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
47010 | echo "dllar: no input files" |
47011 | PrintHelp | |
47012 | fi | |
47013 | ||
47014 | # Now extract all .o files from .a files | |
47015 | newInputFiles="" | |
47016 | for file in ${D}inputFiles ; do | |
47017 | case ${D}file in | |
47018 | *.a | *.lib) | |
47019 | case ${D}file in | |
47020 | *.a) | |
47021 | suffix=".a" | |
47022 | AR="ar" | |
47023 | ;; | |
47024 | *.lib) | |
47025 | suffix=".lib" | |
47026 | AR="emxomfar" | |
47027 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
47028 | ;; | |
47029 | *) | |
47030 | ;; | |
47031 | esac | |
47032 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
47033 | mkdir ${D}dirname | |
1e9e8aba | 47034 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
47035 | echo "Failed to create subdirectory ./${D}dirname" |
47036 | CleanUp | |
47037 | exit 8; | |
47038 | fi | |
47039 | # Append '!' to indicate archive | |
47040 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
47041 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
47042 | cd ${D}curDir | |
47043 | found=0; | |
47044 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 47045 | if [ -f ${D}subfile ]; then |
473276a9 | 47046 | found=1 |
1e9e8aba | 47047 | if [ -s ${D}subfile ]; then |
473276a9 VS |
47048 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
47049 | newInputFiles="${D}newInputFiles ${D}subfile" | |
47050 | fi | |
47051 | fi | |
47052 | done | |
1e9e8aba DE |
47053 | if [ ${D}found -eq 0 ]; then |
47054 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
47055 | fi |
47056 | ;; | |
47057 | *) | |
47058 | newInputFiles="${D}{newInputFiles} ${D}file" | |
47059 | ;; | |
47060 | esac | |
47061 | done | |
47062 | inputFiles="${D}newInputFiles" | |
47063 | ||
47064 | # Output filename(s). | |
47065 | do_backup=0; | |
1e9e8aba | 47066 | if [ -z ${D}outFile ]; then |
473276a9 VS |
47067 | do_backup=1; |
47068 | set outFile ${D}inputFiles; outFile=${D}2 | |
47069 | fi | |
47070 | ||
47071 | # If it is an archive, remove the '!' and the '_%' suffixes | |
47072 | case ${D}outFile in | |
47073 | *_%!) | |
47074 | outFile=\`basnam ${D}outFile _%!\` | |
47075 | ;; | |
47076 | *) | |
47077 | ;; | |
47078 | esac | |
47079 | case ${D}outFile in | |
47080 | *.dll) | |
47081 | outFile=\`basnam ${D}outFile .dll\` | |
47082 | ;; | |
47083 | *.DLL) | |
47084 | outFile=\`basnam ${D}outFile .DLL\` | |
47085 | ;; | |
47086 | *.o) | |
47087 | outFile=\`basnam ${D}outFile .o\` | |
47088 | ;; | |
47089 | *.obj) | |
47090 | outFile=\`basnam ${D}outFile .obj\` | |
47091 | ;; | |
47092 | *.a) | |
47093 | outFile=\`basnam ${D}outFile .a\` | |
47094 | ;; | |
47095 | *.lib) | |
47096 | outFile=\`basnam ${D}outFile .lib\` | |
47097 | ;; | |
47098 | *) | |
47099 | ;; | |
47100 | esac | |
47101 | case ${D}outimpFile in | |
47102 | *.a) | |
47103 | outimpFile=\`basnam ${D}outimpFile .a\` | |
47104 | ;; | |
47105 | *.lib) | |
47106 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
47107 | ;; | |
47108 | *) | |
47109 | ;; | |
47110 | esac | |
1e9e8aba | 47111 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
47112 | outimpFile=${D}outFile |
47113 | fi | |
47114 | defFile="${D}{outFile}.def" | |
47115 | arcFile="${D}{outimpFile}.a" | |
47116 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
47117 | |
47118 | #create ${D}dllFile as something matching 8.3 restrictions, | |
47119 | if [ -z ${D}renameScript ] ; then | |
47120 | dllFile="${D}outFile" | |
47121 | else | |
47122 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
47123 | fi | |
473276a9 | 47124 | |
1e9e8aba DE |
47125 | if [ ${D}do_backup -ne 0 ] ; then |
47126 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
47127 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
47128 | fi | |
1e9e8aba | 47129 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
47130 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
47131 | fi | |
47132 | fi | |
47133 | ||
47134 | # Extract public symbols from all the object files. | |
47135 | tmpdefFile=${D}{defFile}_% | |
47136 | rm -f ${D}tmpdefFile | |
47137 | for file in ${D}inputFiles ; do | |
47138 | case ${D}file in | |
47139 | *!) | |
47140 | ;; | |
47141 | *) | |
47142 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
47143 | ;; | |
47144 | esac | |
47145 | done | |
47146 | ||
47147 | # Create the def file. | |
47148 | rm -f ${D}defFile | |
47149 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
47150 | dllFile="${D}{dllFile}.dll" |
47151 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 47152 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
47153 | fi |
47154 | echo "EXPORTS" >> ${D}defFile | |
47155 | ||
47156 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
47157 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
47158 | ||
47159 | # Checks if the export is ok or not. | |
47160 | for word in ${D}exclude_symbols; do | |
47161 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
47162 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
47163 | done | |
47164 | ||
47165 | ||
1e9e8aba DE |
47166 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
47167 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
47168 | sed ' |
47169 | N | |
47170 | : loop | |
1e9e8aba | 47171 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
47172 | t loop |
47173 | ' > ${D}{tmpdefFile}% | |
47174 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
47175 | else | |
47176 | rm -f ${D}{tmpdefFile}% | |
47177 | fi | |
47178 | cat ${D}tmpdefFile >> ${D}defFile | |
47179 | rm -f ${D}tmpdefFile | |
47180 | ||
47181 | # Do linking, create implib, and apply lxlite. | |
47182 | gccCmdl=""; | |
47183 | for file in ${D}inputFiles ; do | |
47184 | case ${D}file in | |
47185 | *!) | |
47186 | ;; | |
47187 | *) | |
47188 | gccCmdl="${D}gccCmdl ${D}file" | |
47189 | ;; | |
47190 | esac | |
47191 | done | |
47192 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
47193 | touch "${D}{outFile}.dll" | |
47194 | ||
47195 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 47196 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 47197 | add_flags=""; |
1e9e8aba | 47198 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
47199 | add_flags="-ynd" |
47200 | fi | |
47201 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
47202 | fi | |
47203 | doCommand "emxomf -s -l ${D}arcFile" | |
47204 | ||
47205 | # Successful exit. | |
47206 | CleanUp 1 | |
47207 | exit 0 | |
47208 | EOF | |
47209 | ||
47210 | chmod +x dllar.sh | |
a848cd7e SC |
47211 | ;; |
47212 | ||
1e9e8aba | 47213 | powerpc-apple-macos* | \ |
0ad5d837 | 47214 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
c9a66001 | 47215 | *-*-mirbsd* | \ |
a848cd7e SC |
47216 | *-*-sunos4* | \ |
47217 | *-*-osf* | \ | |
47218 | *-*-dgux5* | \ | |
47a7e797 MW |
47219 | *-*-sysv5* | \ |
47220 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
47221 | ;; |
47222 | ||
47223 | *) | |
47224 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
47225 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
47226 | { (exit 1); exit 1; }; } | |
47227 | esac | |
47228 | ||
2057db16 VS |
47229 | if test "x$PIC_FLAG" != "x" ; then |
47230 | PIC_FLAG="$PIC_FLAG -DPIC" | |
47231 | fi | |
47232 | ||
a848cd7e SC |
47233 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
47234 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
47235 | fi | |
47236 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
47237 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
47238 | fi | |
47239 | ||
47240 | ||
47241 | ||
47242 | ||
47243 | ||
47244 | ||
47245 | ||
47246 | ||
810b94f0 | 47247 | |
a848cd7e SC |
47248 | USE_SOVERSION=0 |
47249 | USE_SOVERLINUX=0 | |
47250 | USE_SOVERSOLARIS=0 | |
810b94f0 | 47251 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
47252 | USE_SOSYMLINKS=0 |
47253 | USE_MACVERSION=0 | |
47254 | SONAME_FLAG= | |
47255 | ||
47256 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 47257 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
47258 | SONAME_FLAG="-Wl,-soname," |
47259 | USE_SOVERSION=1 | |
47260 | USE_SOVERLINUX=1 | |
47261 | USE_SOSYMLINKS=1 | |
47262 | ;; | |
47263 | ||
a848cd7e SC |
47264 | *-*-solaris2* ) |
47265 | SONAME_FLAG="-h " | |
47266 | USE_SOVERSION=1 | |
47267 | USE_SOVERSOLARIS=1 | |
47268 | USE_SOSYMLINKS=1 | |
47269 | ;; | |
47270 | ||
47271 | *-*-darwin* ) | |
47272 | USE_MACVERSION=1 | |
47273 | USE_SOVERSION=1 | |
47274 | USE_SOSYMLINKS=1 | |
47275 | ;; | |
810b94f0 MW |
47276 | |
47277 | *-*-cygwin* ) | |
47278 | USE_SOVERSION=1 | |
47279 | USE_SOVERCYGWIN=1 | |
47280 | ;; | |
a848cd7e SC |
47281 | esac |
47282 | ||
47283 | ||
47284 | ||
47285 | ||
47286 | ||
47287 | ||
47288 | ||
47289 | ||
47290 | ||
810b94f0 | 47291 | |
f10e38c4 VZ |
47292 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
47293 | if test "${enable_dependency_tracking+set}" = set; then | |
47294 | enableval="$enable_dependency_tracking" | |
47295 | bk_use_trackdeps="$enableval" | |
47296 | fi; | |
47297 | ||
a848cd7e SC |
47298 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
47299 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 47300 | |
f10e38c4 VZ |
47301 | if test "x$bk_use_trackdeps" = "xno" ; then |
47302 | DEPS_TRACKING=0 | |
47303 | echo "$as_me:$LINENO: result: disabled" >&5 | |
47304 | echo "${ECHO_T}disabled" >&6 | |
47305 | else | |
47306 | DEPS_TRACKING=1 | |
47307 | ||
47308 | if test "x$GCC" = "xyes"; then | |
47309 | DEPSMODE=gcc | |
47310 | case "${BAKEFILE_HOST}" in | |
47311 | *-*-darwin* ) | |
47312 | DEPSFLAG="-no-cpp-precomp -MMD" | |
47313 | ;; | |
47314 | * ) | |
47315 | DEPSFLAG="-MMD" | |
47316 | ;; | |
47317 | esac | |
47318 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 47319 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
47320 | elif test "x$MWCC" = "xyes"; then |
47321 | DEPSMODE=mwcc | |
47322 | DEPSFLAG="-MM" | |
47323 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 47324 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
47325 | elif test "x$SUNCC" = "xyes"; then |
47326 | DEPSMODE=unixcc | |
47327 | DEPSFLAG="-xM1" | |
47328 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 47329 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
47330 | elif test "x$SGICC" = "xyes"; then |
47331 | DEPSMODE=unixcc | |
47332 | DEPSFLAG="-M" | |
47333 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 47334 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
47335 | elif test "x$HPCC" = "xyes"; then |
47336 | DEPSMODE=unixcc | |
47337 | DEPSFLAG="+make" | |
47338 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 47339 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
47340 | elif test "x$COMPAQCC" = "xyes"; then |
47341 | DEPSMODE=gcc | |
47342 | DEPSFLAG="-MD" | |
47343 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 47344 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
47345 | else |
47346 | DEPS_TRACKING=0 | |
47347 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 47348 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 47349 | fi |
a848cd7e | 47350 | |
f10e38c4 | 47351 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
47352 | |
47353 | D='$' | |
47354 | cat <<EOF >bk-deps | |
a848cd7e SC |
47355 | #!/bin/sh |
47356 | ||
47357 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47358 | # script. It is used to track C/C++ files dependencies in portable way. | |
47359 | # | |
47360 | # Permission is given to use this file in any way. | |
47361 | ||
473276a9 | 47362 | DEPSMODE=${DEPSMODE} |
a848cd7e | 47363 | DEPSDIR=.deps |
0ad5d837 | 47364 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 47365 | |
473276a9 | 47366 | mkdir -p ${D}DEPSDIR |
a848cd7e | 47367 | |
473276a9 | 47368 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 47369 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
47370 | status=${D}? |
47371 | if test ${D}{status} != 0 ; then | |
47372 | exit ${D}{status} | |
a848cd7e SC |
47373 | fi |
47374 | # move created file to the location we want it in: | |
473276a9 VS |
47375 | while test ${D}# -gt 0; do |
47376 | case "${D}1" in | |
a848cd7e SC |
47377 | -o ) |
47378 | shift | |
473276a9 | 47379 | objfile=${D}1 |
a848cd7e SC |
47380 | ;; |
47381 | -* ) | |
47382 | ;; | |
47383 | * ) | |
473276a9 | 47384 | srcfile=${D}1 |
a848cd7e SC |
47385 | ;; |
47386 | esac | |
47387 | shift | |
47388 | done | |
1e9e8aba DE |
47389 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
47390 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
47391 | if test -f ${D}depfile ; then |
47392 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
47393 | rm -f ${D}depfile | |
a848cd7e | 47394 | else |
a1aa0349 | 47395 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 47396 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
47397 | if test ! -f ${D}depfile ; then |
47398 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
47399 | depfile="${D}objfile.d" | |
47400 | fi | |
473276a9 VS |
47401 | if test -f ${D}depfile ; then |
47402 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
47403 | rm -f ${D}depfile | |
a848cd7e SC |
47404 | fi |
47405 | fi | |
47406 | exit 0 | |
81f90336 | 47407 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 47408 | ${D}* || exit ${D}? |
81f90336 MW |
47409 | # Run mwcc again with -MM and redirect into the dep file we want |
47410 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
47411 | prevarg= | |
47412 | for arg in ${D}* ; do | |
47413 | if test "${D}prevarg" = "-o"; then | |
47414 | objfile=${D}arg | |
47415 | else | |
47416 | case "${D}arg" in | |
47417 | -* ) | |
47418 | ;; | |
47419 | * ) | |
47420 | srcfile=${D}arg | |
47421 | ;; | |
47422 | esac | |
47423 | fi | |
47424 | prevarg="${D}arg" | |
47425 | done | |
0ad5d837 | 47426 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 47427 | exit 0 |
0ad5d837 | 47428 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 47429 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
47430 | # Run compiler again with deps flag and redirect into the dep file. |
47431 | # It doesn't work if the '-o FILE' option is used, but without it the | |
47432 | # dependency file will contain the wrong name for the object. So it is | |
47433 | # removed from the command line, and the dep file is fixed with sed. | |
47434 | cmd="" | |
47435 | while test ${D}# -gt 0; do | |
47436 | case "${D}1" in | |
47437 | -o ) | |
47438 | shift | |
47439 | objfile=${D}1 | |
47440 | ;; | |
47441 | * ) | |
47442 | eval arg${D}#=\\${D}1 | |
47443 | cmd="${D}cmd \\${D}arg${D}#" | |
47444 | ;; | |
47445 | esac | |
47446 | shift | |
47447 | done | |
0ad5d837 | 47448 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 47449 | exit 0 |
a848cd7e | 47450 | else |
473276a9 VS |
47451 | ${D}* |
47452 | exit ${D}? | |
a848cd7e SC |
47453 | fi |
47454 | EOF | |
473276a9 | 47455 | |
f10e38c4 VZ |
47456 | chmod +x bk-deps |
47457 | fi | |
a848cd7e SC |
47458 | fi |
47459 | ||
47460 | ||
47461 | ||
47462 | ||
a848cd7e SC |
47463 | case ${BAKEFILE_HOST} in |
47464 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
47465 | if test -n "$ac_tool_prefix"; then |
47466 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
47467 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
47468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47470 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
47471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47472 | else | |
47473 | if test -n "$WINDRES"; then | |
47474 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
47475 | else | |
47476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47477 | for as_dir in $PATH | |
47478 | do | |
47479 | IFS=$as_save_IFS | |
47480 | test -z "$as_dir" && as_dir=. | |
47481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47483 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
47484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47485 | break 2 | |
47486 | fi | |
47487 | done | |
47488 | done | |
47489 | ||
47490 | fi | |
47491 | fi | |
47492 | WINDRES=$ac_cv_prog_WINDRES | |
47493 | if test -n "$WINDRES"; then | |
47494 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
47495 | echo "${ECHO_T}$WINDRES" >&6 | |
47496 | else | |
47497 | echo "$as_me:$LINENO: result: no" >&5 | |
47498 | echo "${ECHO_T}no" >&6 | |
47499 | fi | |
47500 | ||
47501 | fi | |
47502 | if test -z "$ac_cv_prog_WINDRES"; then | |
47503 | ac_ct_WINDRES=$WINDRES | |
47504 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
47505 | set dummy windres; ac_word=$2 |
47506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47508 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
47509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47510 | else | |
8ced02f6 DE |
47511 | if test -n "$ac_ct_WINDRES"; then |
47512 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
47513 | else |
47514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47515 | for as_dir in $PATH | |
47516 | do | |
47517 | IFS=$as_save_IFS | |
47518 | test -z "$as_dir" && as_dir=. | |
47519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47520 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47521 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
47522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47523 | break 2 | |
47524 | fi | |
47525 | done | |
47526 | done | |
47527 | ||
a848cd7e SC |
47528 | fi |
47529 | fi | |
8ced02f6 DE |
47530 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
47531 | if test -n "$ac_ct_WINDRES"; then | |
47532 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
47533 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
47534 | else |
47535 | echo "$as_me:$LINENO: result: no" >&5 | |
47536 | echo "${ECHO_T}no" >&6 | |
47537 | fi | |
47538 | ||
8ced02f6 DE |
47539 | WINDRES=$ac_ct_WINDRES |
47540 | else | |
47541 | WINDRES="$ac_cv_prog_WINDRES" | |
47542 | fi | |
47543 | ||
a848cd7e SC |
47544 | ;; |
47545 | ||
1e9e8aba | 47546 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
47547 | # Extract the first word of "Rez", so it can be a program name with args. |
47548 | set dummy Rez; ac_word=$2 | |
47549 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47551 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
47552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47553 | else | |
8ced02f6 DE |
47554 | if test -n "$REZ"; then |
47555 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
47556 | else |
47557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47558 | for as_dir in $PATH | |
47559 | do | |
47560 | IFS=$as_save_IFS | |
47561 | test -z "$as_dir" && as_dir=. | |
47562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47564 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
47565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47566 | break 2 | |
47567 | fi | |
47568 | done | |
47569 | done | |
47570 | ||
8ced02f6 | 47571 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
47572 | fi |
47573 | fi | |
8ced02f6 DE |
47574 | REZ=$ac_cv_prog_REZ |
47575 | if test -n "$REZ"; then | |
47576 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
47577 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
47578 | else |
47579 | echo "$as_me:$LINENO: result: no" >&5 | |
47580 | echo "${ECHO_T}no" >&6 | |
47581 | fi | |
47582 | ||
47583 | # Extract the first word of "SetFile", so it can be a program name with args. | |
47584 | set dummy SetFile; ac_word=$2 | |
47585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47587 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
47588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47589 | else | |
47590 | if test -n "$SETFILE"; then | |
47591 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
47592 | else | |
47593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47594 | for as_dir in $PATH | |
47595 | do | |
47596 | IFS=$as_save_IFS | |
47597 | test -z "$as_dir" && as_dir=. | |
47598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47600 | ac_cv_prog_SETFILE="SetFile" | |
47601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47602 | break 2 | |
47603 | fi | |
47604 | done | |
47605 | done | |
47606 | ||
47607 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
47608 | fi | |
47609 | fi | |
47610 | SETFILE=$ac_cv_prog_SETFILE | |
47611 | if test -n "$SETFILE"; then | |
47612 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
47613 | echo "${ECHO_T}$SETFILE" >&6 | |
47614 | else | |
47615 | echo "$as_me:$LINENO: result: no" >&5 | |
47616 | echo "${ECHO_T}no" >&6 | |
47617 | fi | |
47618 | ||
47619 | ;; | |
47620 | esac | |
47621 | ||
47622 | ||
47623 | ||
47624 | ||
47625 | ||
8ced02f6 | 47626 | |
f10e38c4 | 47627 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.0" |
a848cd7e | 47628 | |
dcc1b6ad | 47629 | |
f10e38c4 | 47630 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0" |
a848cd7e | 47631 | |
646b6ec1 | 47632 | |
74b84332 | 47633 | |
a848cd7e SC |
47634 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
47635 | if test "${enable_precomp_headers+set}" = set; then | |
47636 | enableval="$enable_precomp_headers" | |
47637 | bk_use_pch="$enableval" | |
47638 | fi; | |
47639 | ||
47640 | GCC_PCH=0 | |
f10e38c4 VZ |
47641 | ICC_PCH=0 |
47642 | USE_PCH=0 | |
a848cd7e | 47643 | |
5c60e845 MW |
47644 | case ${BAKEFILE_HOST} in |
47645 | *-*-cygwin* ) | |
47646 | bk_use_pch="no" | |
47647 | ;; | |
47648 | esac | |
47649 | ||
a848cd7e SC |
47650 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47651 | if test "x$GCC" = "xyes"; then | |
47652 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47653 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47654 | cat >conftest.$ac_ext <<_ACEOF | |
47655 | /* confdefs.h. */ | |
47656 | _ACEOF | |
47657 | cat confdefs.h >>conftest.$ac_ext | |
47658 | cat >>conftest.$ac_ext <<_ACEOF | |
47659 | /* end confdefs.h. */ | |
47660 | ||
47661 | int | |
47662 | main () | |
47663 | { | |
47664 | ||
47665 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 47666 | There is no PCH support |
a848cd7e SC |
47667 | #endif |
47668 | #if (__GNUC__ < 3) | |
e5efa97e | 47669 | There is no PCH support |
a848cd7e SC |
47670 | #endif |
47671 | #if (__GNUC__ == 3) && \ | |
47672 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
47673 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
47674 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 47675 | There is no PCH support |
a848cd7e SC |
47676 | #endif |
47677 | ||
47678 | ; | |
47679 | return 0; | |
47680 | } | |
47681 | _ACEOF | |
47682 | rm -f conftest.$ac_objext | |
47683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47684 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47685 | ac_status=$? |
ac1cb8d3 VS |
47686 | grep -v '^ *+' conftest.er1 >conftest.err |
47687 | rm -f conftest.er1 | |
47688 | cat conftest.err >&5 | |
a848cd7e SC |
47689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47690 | (exit $ac_status); } && | |
c9a66001 | 47691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
47692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47693 | (eval $ac_try) 2>&5 | |
47694 | ac_status=$? | |
47695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47696 | (exit $ac_status); }; } && | |
47697 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47699 | (eval $ac_try) 2>&5 | |
47700 | ac_status=$? | |
47701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47702 | (exit $ac_status); }; }; then | |
47703 | ||
47704 | echo "$as_me:$LINENO: result: yes" >&5 | |
47705 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47706 | GCC_PCH=1 |
47707 | ||
47708 | else | |
47709 | echo "$as_me: failed program was:" >&5 | |
47710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47711 | ||
47712 | ||
f10e38c4 VZ |
47713 | cat >conftest.$ac_ext <<_ACEOF |
47714 | /* confdefs.h. */ | |
47715 | _ACEOF | |
47716 | cat confdefs.h >>conftest.$ac_ext | |
47717 | cat >>conftest.$ac_ext <<_ACEOF | |
47718 | /* end confdefs.h. */ | |
47719 | ||
47720 | int | |
47721 | main () | |
47722 | { | |
47723 | ||
47724 | #if !defined(__INTEL_COMPILER) || \ | |
47725 | (__INTEL_COMPILER < 800) | |
e5efa97e | 47726 | There is no PCH support |
f10e38c4 VZ |
47727 | #endif |
47728 | ||
47729 | ; | |
47730 | return 0; | |
47731 | } | |
47732 | _ACEOF | |
47733 | rm -f conftest.$ac_objext | |
47734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
47735 | (eval $ac_compile) 2>conftest.er1 | |
47736 | ac_status=$? | |
47737 | grep -v '^ *+' conftest.er1 >conftest.err | |
47738 | rm -f conftest.er1 | |
47739 | cat conftest.err >&5 | |
47740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47741 | (exit $ac_status); } && | |
c9a66001 | 47742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f10e38c4 VZ |
47743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47744 | (eval $ac_try) 2>&5 | |
47745 | ac_status=$? | |
47746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47747 | (exit $ac_status); }; } && | |
47748 | { ac_try='test -s conftest.$ac_objext' | |
47749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47750 | (eval $ac_try) 2>&5 | |
47751 | ac_status=$? | |
47752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47753 | (exit $ac_status); }; }; then | |
47754 | ||
47755 | echo "$as_me:$LINENO: result: yes" >&5 | |
47756 | echo "${ECHO_T}yes" >&6 | |
47757 | ICC_PCH=1 | |
47758 | ||
47759 | else | |
47760 | echo "$as_me: failed program was:" >&5 | |
47761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47762 | ||
47763 | ||
47764 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
47765 | echo "${ECHO_T}no" >&6 |
47766 | ||
47767 | fi | |
ac1cb8d3 | 47768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
47769 | |
47770 | fi | |
47771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47772 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
47773 | USE_PCH=1 | |
1e9e8aba DE |
47774 | |
47775 | D='$' | |
47776 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47777 | #!/bin/sh |
47778 | ||
47779 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47780 | # script. It is used to generated precompiled headers. | |
47781 | # | |
47782 | # Permission is given to use this file in any way. | |
47783 | ||
1e9e8aba DE |
47784 | outfile="${D}{1}" |
47785 | header="${D}{2}" | |
a848cd7e SC |
47786 | shift |
47787 | shift | |
47788 | ||
f10e38c4 VZ |
47789 | compiler="" |
47790 | headerfile="" | |
47791 | ||
1e9e8aba | 47792 | while test ${D}{#} -gt 0; do |
f10e38c4 | 47793 | add_to_cmdline=1 |
1e9e8aba | 47794 | case "${D}{1}" in |
a848cd7e | 47795 | -I* ) |
1e9e8aba DE |
47796 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47797 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47798 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47799 | fi |
47800 | ;; | |
f10e38c4 VZ |
47801 | -use-pch|-use_pch ) |
47802 | shift | |
47803 | add_to_cmdline=0 | |
47804 | ;; | |
a848cd7e | 47805 | esac |
f10e38c4 VZ |
47806 | if test ${D}add_to_cmdline = 1 ; then |
47807 | compiler="${D}{compiler} ${D}{1}" | |
47808 | fi | |
a848cd7e SC |
47809 | shift |
47810 | done | |
47811 | ||
1e9e8aba | 47812 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 47813 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 47814 | else |
1e9e8aba DE |
47815 | if test -f ${D}{outfile} ; then |
47816 | rm -f ${D}{outfile} | |
a848cd7e | 47817 | else |
1e9e8aba | 47818 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 47819 | fi |
1e9e8aba | 47820 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 47821 | mkdir -p .deps |
f10e38c4 VZ |
47822 | if test "x${GCC_PCH}" = "x1" ; then |
47823 | # can do this because gcc is >= 3.4: | |
47824 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
47825 | elif test "x${ICC_PCH}" = "x1" ; then | |
47826 | filename=pch_gen-${D}${D} | |
47827 | file=${D}{filename}.c | |
47828 | dfile=${D}{filename}.d | |
47829 | cat > ${D}file <<EOT | |
47830 | #include "${D}header" | |
47831 | EOT | |
47832 | # using -MF icc complains about differing command lines in creation/use | |
47833 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
47834 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
47835 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
47836 | fi | |
1e9e8aba | 47837 | exit ${D}{?} |
a848cd7e SC |
47838 | fi |
47839 | EOF | |
1e9e8aba | 47840 | |
a848cd7e SC |
47841 | chmod +x bk-make-pch |
47842 | fi | |
47843 | fi | |
47844 | fi | |
47845 | ||
47846 | ||
47847 | ||
f10e38c4 | 47848 | |
a848cd7e SC |
47849 | COND_BUILD_DEBUG="#" |
47850 | if test "x$BUILD" = "xdebug" ; then | |
47851 | COND_BUILD_DEBUG="" | |
47852 | fi | |
47853 | ||
47854 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
47855 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
47856 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
47857 | fi | |
47858 | ||
47859 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
47860 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47861 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
47862 | fi | |
47863 | ||
47864 | COND_BUILD_DEBUG_UNICODE_0="#" | |
47865 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
47866 | COND_BUILD_DEBUG_UNICODE_0="" | |
47867 | fi | |
47868 | ||
47869 | COND_BUILD_DEBUG_UNICODE_1="#" | |
47870 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
47871 | COND_BUILD_DEBUG_UNICODE_1="" | |
47872 | fi | |
47873 | ||
47874 | COND_BUILD_RELEASE="#" | |
47875 | if test "x$BUILD" = "xrelease" ; then | |
47876 | COND_BUILD_RELEASE="" | |
47877 | fi | |
47878 | ||
47879 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
47880 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47881 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
47882 | fi | |
47883 | ||
47884 | COND_BUILD_RELEASE_UNICODE_0="#" | |
47885 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
47886 | COND_BUILD_RELEASE_UNICODE_0="" | |
47887 | fi | |
47888 | ||
47889 | COND_BUILD_RELEASE_UNICODE_1="#" | |
47890 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
47891 | COND_BUILD_RELEASE_UNICODE_1="" | |
47892 | fi | |
47893 | ||
47894 | COND_DEBUG_FLAG_1="#" | |
47895 | if test "x$DEBUG_FLAG" = "x1" ; then | |
47896 | COND_DEBUG_FLAG_1="" | |
47897 | fi | |
47898 | ||
47899 | COND_DEBUG_INFO_0="#" | |
47900 | if test "x$DEBUG_INFO" = "x0" ; then | |
47901 | COND_DEBUG_INFO_0="" | |
47902 | fi | |
47903 | ||
47904 | COND_DEBUG_INFO_1="#" | |
47905 | if test "x$DEBUG_INFO" = "x1" ; then | |
47906 | COND_DEBUG_INFO_1="" | |
47907 | fi | |
47908 | ||
47909 | COND_DEPS_TRACKING_0="#" | |
47910 | if test "x$DEPS_TRACKING" = "x0" ; then | |
47911 | COND_DEPS_TRACKING_0="" | |
47912 | fi | |
47913 | ||
47914 | COND_DEPS_TRACKING_1="#" | |
47915 | if test "x$DEPS_TRACKING" = "x1" ; then | |
47916 | COND_DEPS_TRACKING_1="" | |
47917 | fi | |
47918 | ||
47919 | COND_GCC_PCH_1="#" | |
47920 | if test "x$GCC_PCH" = "x1" ; then | |
47921 | COND_GCC_PCH_1="" | |
47922 | fi | |
47923 | ||
f10e38c4 VZ |
47924 | COND_ICC_PCH_1="#" |
47925 | if test "x$ICC_PCH" = "x1" ; then | |
47926 | COND_ICC_PCH_1="" | |
47927 | fi | |
47928 | ||
a848cd7e SC |
47929 | COND_MONOLITHIC_0="#" |
47930 | if test "x$MONOLITHIC" = "x0" ; then | |
47931 | COND_MONOLITHIC_0="" | |
47932 | fi | |
47933 | ||
47934 | COND_MONOLITHIC_0_SHARED_0="#" | |
47935 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
47936 | COND_MONOLITHIC_0_SHARED_0="" | |
47937 | fi | |
47938 | ||
3f60522a JS |
47939 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#" |
47940 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then | |
47941 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="" | |
47942 | fi | |
47943 | ||
a848cd7e SC |
47944 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" |
47945 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
47946 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
47947 | fi | |
47948 | ||
90970d69 DE |
47949 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
47950 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47951 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
47952 | fi | |
47953 | ||
f10e38c4 VZ |
47954 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
47955 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47956 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
47957 | fi | |
47958 | ||
a848cd7e SC |
47959 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
47960 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47961 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
47962 | fi | |
47963 | ||
6671c68b VZ |
47964 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
47965 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47966 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
47967 | fi | |
47968 | ||
a848cd7e SC |
47969 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
47970 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47971 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
47972 | fi | |
47973 | ||
8b6682b9 JS |
47974 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#" |
47975 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
47976 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="" | |
47977 | fi | |
47978 | ||
ceec2216 RL |
47979 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
47980 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47981 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
47982 | fi | |
47983 | ||
a848cd7e SC |
47984 | COND_MONOLITHIC_0_SHARED_1="#" |
47985 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
47986 | COND_MONOLITHIC_0_SHARED_1="" | |
47987 | fi | |
47988 | ||
3f60522a JS |
47989 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#" |
47990 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then | |
47991 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="" | |
47992 | fi | |
47993 | ||
a848cd7e SC |
47994 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
47995 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47996 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
47997 | fi | |
47998 | ||
90970d69 DE |
47999 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
48000 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
48001 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
48002 | fi | |
48003 | ||
f10e38c4 VZ |
48004 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
48005 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
48006 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
48007 | fi | |
48008 | ||
a848cd7e SC |
48009 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
48010 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48011 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
48012 | fi | |
48013 | ||
6671c68b VZ |
48014 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
48015 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
48016 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
48017 | fi | |
48018 | ||
a848cd7e SC |
48019 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
48020 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48021 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
48022 | fi | |
48023 | ||
8b6682b9 JS |
48024 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#" |
48025 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then | |
48026 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="" | |
48027 | fi | |
48028 | ||
ceec2216 RL |
48029 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
48030 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
48031 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
48032 | fi | |
48033 | ||
e5efa97e VZ |
48034 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
48035 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
48036 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
48037 | fi | |
48038 | ||
a848cd7e SC |
48039 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
48040 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
48041 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
48042 | fi | |
48043 | ||
48044 | COND_MONOLITHIC_1="#" | |
48045 | if test "x$MONOLITHIC" = "x1" ; then | |
48046 | COND_MONOLITHIC_1="" | |
48047 | fi | |
48048 | ||
48049 | COND_MONOLITHIC_1_SHARED_0="#" | |
48050 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
48051 | COND_MONOLITHIC_1_SHARED_0="" | |
48052 | fi | |
48053 | ||
48054 | COND_MONOLITHIC_1_SHARED_1="#" | |
48055 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
48056 | COND_MONOLITHIC_1_SHARED_1="" | |
48057 | fi | |
48058 | ||
48059 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
48060 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
48061 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
48062 | fi | |
48063 | ||
48064 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
48065 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
48066 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
48067 | fi | |
48068 | ||
eb730a0c JS |
48069 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
48070 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
48071 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
48072 | fi | |
48073 | ||
a848cd7e SC |
48074 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
48075 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
48076 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
48077 | fi | |
48078 | ||
48079 | COND_PLATFORM_MACOSX_1="#" | |
48080 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
48081 | COND_PLATFORM_MACOSX_1="" | |
48082 | fi | |
48083 | ||
a30f955f VS |
48084 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
48085 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
48086 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
48087 | fi | |
48088 | ||
a848cd7e SC |
48089 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
48090 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
48091 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
48092 | fi | |
48093 | ||
48094 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
48095 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
48096 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
48097 | fi | |
48098 | ||
48099 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
48100 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
48101 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
48102 | fi | |
48103 | ||
fc480dc1 DE |
48104 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
48105 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
48106 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
48107 | fi | |
48108 | ||
1e9e8aba DE |
48109 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
48110 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48111 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
48112 | fi | |
48113 | ||
ebee3cd0 VS |
48114 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
48115 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
48116 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
48117 | fi | |
48118 | ||
48119 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
48120 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
48121 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
48122 | fi | |
48123 | ||
a848cd7e SC |
48124 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
48125 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48126 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
48127 | fi | |
48128 | ||
48129 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
48130 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
48131 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
48132 | fi | |
48133 | ||
b48a2016 DE |
48134 | COND_PLATFORM_MACOS_1="#" |
48135 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
48136 | COND_PLATFORM_MACOS_1="" | |
48137 | fi | |
48138 | ||
083508af MW |
48139 | COND_PLATFORM_MAC_1="#" |
48140 | if test "x$PLATFORM_MAC" = "x1" ; then | |
48141 | COND_PLATFORM_MAC_1="" | |
48142 | fi | |
48143 | ||
e5efa97e VZ |
48144 | COND_PLATFORM_MSDOS_0="#" |
48145 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
48146 | COND_PLATFORM_MSDOS_0="" | |
48147 | fi | |
48148 | ||
83d8eb47 MW |
48149 | COND_PLATFORM_MSDOS_1="#" |
48150 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
48151 | COND_PLATFORM_MSDOS_1="" | |
48152 | fi | |
48153 | ||
a848cd7e SC |
48154 | COND_PLATFORM_OS2_1="#" |
48155 | if test "x$PLATFORM_OS2" = "x1" ; then | |
48156 | COND_PLATFORM_OS2_1="" | |
48157 | fi | |
48158 | ||
48159 | COND_PLATFORM_UNIX_0="#" | |
48160 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
48161 | COND_PLATFORM_UNIX_0="" | |
48162 | fi | |
48163 | ||
48164 | COND_PLATFORM_UNIX_1="#" | |
48165 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
48166 | COND_PLATFORM_UNIX_1="" | |
48167 | fi | |
48168 | ||
48169 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
48170 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48171 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
48172 | fi | |
48173 | ||
48174 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
48175 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
48176 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
48177 | fi | |
48178 | ||
48179 | COND_PLATFORM_WIN32_0="#" | |
48180 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
48181 | COND_PLATFORM_WIN32_0="" | |
48182 | fi | |
48183 | ||
48184 | COND_PLATFORM_WIN32_1="#" | |
48185 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
48186 | COND_PLATFORM_WIN32_1="" | |
48187 | fi | |
48188 | ||
48189 | COND_SHARED_0="#" | |
48190 | if test "x$SHARED" = "x0" ; then | |
48191 | COND_SHARED_0="" | |
48192 | fi | |
48193 | ||
083508af MW |
48194 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
48195 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
48196 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
48197 | fi | |
48198 | ||
48199 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
48200 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
48201 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
48202 | fi | |
48203 | ||
48204 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
48205 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
48206 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
48207 | fi | |
48208 | ||
a848cd7e SC |
48209 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
48210 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
48211 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
48212 | fi | |
48213 | ||
48214 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
48215 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48216 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
48217 | fi | |
48218 | ||
48219 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
48220 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48221 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
48222 | fi | |
48223 | ||
48224 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
48225 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48226 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
48227 | fi | |
48228 | ||
083508af MW |
48229 | COND_SHARED_0_USE_XRC_1="#" |
48230 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
48231 | COND_SHARED_0_USE_XRC_1="" | |
48232 | fi | |
48233 | ||
a848cd7e SC |
48234 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
48235 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48236 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
48237 | fi | |
48238 | ||
48239 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
48240 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48241 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
48242 | fi | |
48243 | ||
48244 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
48245 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48246 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
48247 | fi | |
48248 | ||
48249 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
48250 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48251 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
48252 | fi | |
48253 | ||
48254 | COND_SHARED_1="#" | |
48255 | if test "x$SHARED" = "x1" ; then | |
48256 | COND_SHARED_1="" | |
48257 | fi | |
48258 | ||
48259 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
48260 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
48261 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
48262 | fi | |
48263 | ||
083508af MW |
48264 | COND_SHARED_1_USE_XRC_1="#" |
48265 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
48266 | COND_SHARED_1_USE_XRC_1="" | |
48267 | fi | |
48268 | ||
a30f955f VS |
48269 | COND_TOOLKIT_="#" |
48270 | if test "x$TOOLKIT" = "x" ; then | |
48271 | COND_TOOLKIT_="" | |
48272 | fi | |
48273 | ||
a848cd7e SC |
48274 | COND_TOOLKIT_COCOA="#" |
48275 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
48276 | COND_TOOLKIT_COCOA="" | |
48277 | fi | |
48278 | ||
a49baeab DE |
48279 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
48280 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
48281 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
48282 | fi | |
48283 | ||
a848cd7e SC |
48284 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
48285 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48286 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
48287 | fi | |
48288 | ||
48289 | COND_TOOLKIT_GTK="#" | |
48290 | if test "x$TOOLKIT" = "xGTK" ; then | |
48291 | COND_TOOLKIT_GTK="" | |
48292 | fi | |
48293 | ||
d044deea MW |
48294 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
48295 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
48296 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
48297 | fi | |
48298 | ||
48299 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
48300 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
48301 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
48302 | fi | |
48303 | ||
48304 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
48305 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
48306 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
48307 | fi | |
48308 | ||
48309 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
48310 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48311 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
48312 | fi | |
48313 | ||
48314 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
48315 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
48316 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
48317 | fi | |
48318 | ||
48319 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
48320 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48321 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
48322 | fi | |
48323 | ||
a848cd7e SC |
48324 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
48325 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
48326 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
48327 | fi | |
48328 | ||
a848cd7e SC |
48329 | COND_TOOLKIT_MAC="#" |
48330 | if test "x$TOOLKIT" = "xMAC" ; then | |
48331 | COND_TOOLKIT_MAC="" | |
48332 | fi | |
48333 | ||
48334 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
48335 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
48336 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
48337 | fi | |
48338 | ||
48339 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
48340 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48341 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
48342 | fi | |
48343 | ||
48344 | COND_TOOLKIT_MGL="#" | |
48345 | if test "x$TOOLKIT" = "xMGL" ; then | |
48346 | COND_TOOLKIT_MGL="" | |
48347 | fi | |
48348 | ||
48349 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
48350 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
48351 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
48352 | fi | |
48353 | ||
48354 | COND_TOOLKIT_MOTIF="#" | |
48355 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
48356 | COND_TOOLKIT_MOTIF="" | |
48357 | fi | |
48358 | ||
48359 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
48360 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
48361 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
48362 | fi | |
48363 | ||
48364 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
48365 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48366 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
48367 | fi | |
48368 | ||
48369 | COND_TOOLKIT_MSW="#" | |
48370 | if test "x$TOOLKIT" = "xMSW" ; then | |
48371 | COND_TOOLKIT_MSW="" | |
48372 | fi | |
48373 | ||
48374 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
48375 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
48376 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
48377 | fi | |
48378 | ||
48379 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
48380 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48381 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
48382 | fi | |
48383 | ||
0ee4059d DE |
48384 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
48385 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
48386 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
48387 | fi | |
48388 | ||
a848cd7e SC |
48389 | COND_TOOLKIT_PM="#" |
48390 | if test "x$TOOLKIT" = "xPM" ; then | |
48391 | COND_TOOLKIT_PM="" | |
48392 | fi | |
48393 | ||
48394 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
48395 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
48396 | COND_TOOLKIT_PM_USE_GUI_1="" | |
48397 | fi | |
48398 | ||
48399 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
48400 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48401 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
48402 | fi | |
48403 | ||
3fd9c298 DE |
48404 | COND_TOOLKIT_WINCE="#" |
48405 | if test "x$TOOLKIT" = "xWINCE" ; then | |
48406 | COND_TOOLKIT_WINCE="" | |
48407 | fi | |
48408 | ||
48409 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
48410 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
48411 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
48412 | fi | |
48413 | ||
48414 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
48415 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48416 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
48417 | fi | |
48418 | ||
0ee4059d DE |
48419 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
48420 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
48421 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
48422 | fi | |
48423 | ||
a848cd7e SC |
48424 | COND_TOOLKIT_X11="#" |
48425 | if test "x$TOOLKIT" = "xX11" ; then | |
48426 | COND_TOOLKIT_X11="" | |
48427 | fi | |
48428 | ||
48429 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
48430 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
48431 | COND_TOOLKIT_X11_USE_GUI_1="" | |
48432 | fi | |
48433 | ||
48434 | COND_UNICODE_1="#" | |
48435 | if test "x$UNICODE" = "x1" ; then | |
48436 | COND_UNICODE_1="" | |
48437 | fi | |
48438 | ||
48439 | COND_USE_EXCEPTIONS_0="#" | |
48440 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
48441 | COND_USE_EXCEPTIONS_0="" | |
48442 | fi | |
48443 | ||
48444 | COND_USE_EXCEPTIONS_1="#" | |
48445 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
48446 | COND_USE_EXCEPTIONS_1="" | |
48447 | fi | |
48448 | ||
48449 | COND_USE_GUI_0="#" | |
48450 | if test "x$USE_GUI" = "x0" ; then | |
48451 | COND_USE_GUI_0="" | |
48452 | fi | |
48453 | ||
48454 | COND_USE_GUI_1="#" | |
48455 | if test "x$USE_GUI" = "x1" ; then | |
48456 | COND_USE_GUI_1="" | |
48457 | fi | |
48458 | ||
48459 | COND_USE_GUI_1_WXUNIV_0="#" | |
48460 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48461 | COND_USE_GUI_1_WXUNIV_0="" | |
48462 | fi | |
48463 | ||
48464 | COND_USE_GUI_1_WXUNIV_1="#" | |
48465 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
48466 | COND_USE_GUI_1_WXUNIV_1="" | |
48467 | fi | |
48468 | ||
48469 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
48470 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48471 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
48472 | fi | |
48473 | ||
48474 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
48475 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48476 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
48477 | fi | |
48478 | ||
48479 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
48480 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48481 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
48482 | fi | |
48483 | ||
083508af MW |
48484 | COND_USE_ODBC_1="#" |
48485 | if test "x$USE_ODBC" = "x1" ; then | |
48486 | COND_USE_ODBC_1="" | |
48487 | fi | |
48488 | ||
48489 | COND_USE_OPENGL_1="#" | |
48490 | if test "x$USE_OPENGL" = "x1" ; then | |
48491 | COND_USE_OPENGL_1="" | |
48492 | fi | |
48493 | ||
f10e38c4 VZ |
48494 | COND_USE_PCH_1="#" |
48495 | if test "x$USE_PCH" = "x1" ; then | |
48496 | COND_USE_PCH_1="" | |
48497 | fi | |
48498 | ||
a848cd7e SC |
48499 | COND_USE_PLUGINS_0="#" |
48500 | if test "x$USE_PLUGINS" = "x0" ; then | |
48501 | COND_USE_PLUGINS_0="" | |
48502 | fi | |
48503 | ||
0b78747f MW |
48504 | COND_USE_RTTI_0="#" |
48505 | if test "x$USE_RTTI" = "x0" ; then | |
48506 | COND_USE_RTTI_0="" | |
48507 | fi | |
48508 | ||
48509 | COND_USE_RTTI_1="#" | |
48510 | if test "x$USE_RTTI" = "x1" ; then | |
48511 | COND_USE_RTTI_1="" | |
48512 | fi | |
48513 | ||
a848cd7e SC |
48514 | COND_USE_SOSYMLINKS_1="#" |
48515 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
48516 | COND_USE_SOSYMLINKS_1="" | |
48517 | fi | |
48518 | ||
eb730a0c JS |
48519 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
48520 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
48521 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
48522 | fi | |
48523 | ||
a848cd7e SC |
48524 | COND_USE_SOVERLINUX_1="#" |
48525 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
48526 | COND_USE_SOVERLINUX_1="" | |
48527 | fi | |
48528 | ||
48529 | COND_USE_SOVERSION_0="#" | |
48530 | if test "x$USE_SOVERSION" = "x0" ; then | |
48531 | COND_USE_SOVERSION_0="" | |
48532 | fi | |
48533 | ||
48534 | COND_USE_SOVERSOLARIS_1="#" | |
48535 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
48536 | COND_USE_SOVERSOLARIS_1="" | |
48537 | fi | |
48538 | ||
0b78747f MW |
48539 | COND_USE_THREADS_0="#" |
48540 | if test "x$USE_THREADS" = "x0" ; then | |
48541 | COND_USE_THREADS_0="" | |
48542 | fi | |
48543 | ||
48544 | COND_USE_THREADS_1="#" | |
48545 | if test "x$USE_THREADS" = "x1" ; then | |
48546 | COND_USE_THREADS_1="" | |
48547 | fi | |
48548 | ||
a13a7f89 RL |
48549 | COND_USE_XRC_1="#" |
48550 | if test "x$USE_XRC" = "x1" ; then | |
48551 | COND_USE_XRC_1="" | |
48552 | fi | |
48553 | ||
eb730a0c JS |
48554 | COND_WINDOWS_IMPLIB_1="#" |
48555 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
48556 | COND_WINDOWS_IMPLIB_1="" | |
48557 | fi | |
48558 | ||
a848cd7e SC |
48559 | COND_WITH_PLUGIN_SDL_1="#" |
48560 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
48561 | COND_WITH_PLUGIN_SDL_1="" | |
48562 | fi | |
48563 | ||
1e6eb025 VZ |
48564 | COND_WXUNIV_0="#" |
48565 | if test "x$WXUNIV" = "x0" ; then | |
48566 | COND_WXUNIV_0="" | |
48567 | fi | |
48568 | ||
a848cd7e SC |
48569 | COND_WXUNIV_1="#" |
48570 | if test "x$WXUNIV" = "x1" ; then | |
48571 | COND_WXUNIV_1="" | |
48572 | fi | |
48573 | ||
48574 | COND_WXUSE_EXPAT_BUILTIN="#" | |
48575 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48576 | COND_WXUSE_EXPAT_BUILTIN="" | |
48577 | fi | |
48578 | ||
48579 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
48580 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48581 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
48582 | fi | |
48583 | ||
48584 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
48585 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48586 | COND_WXUSE_LIBPNG_BUILTIN="" | |
48587 | fi | |
48588 | ||
48589 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
48590 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48591 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
48592 | fi | |
48593 | ||
48594 | COND_WXUSE_ODBC_BUILTIN="#" | |
48595 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48596 | COND_WXUSE_ODBC_BUILTIN="" | |
48597 | fi | |
48598 | ||
48599 | COND_WXUSE_REGEX_BUILTIN="#" | |
48600 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48601 | COND_WXUSE_REGEX_BUILTIN="" | |
48602 | fi | |
48603 | ||
48604 | COND_WXUSE_ZLIB_BUILTIN="#" | |
48605 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48606 | COND_WXUSE_ZLIB_BUILTIN="" | |
48607 | fi | |
48608 | ||
48609 | ||
48610 | ||
810b94f0 MW |
48611 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
48612 | { { 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 | |
48613 | 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;} | |
48614 | { (exit 1); exit 1; }; } | |
48615 | fi | |
48616 | ||
2057db16 VS |
48617 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
48618 | { { 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 | |
48619 | 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;} | |
48620 | { (exit 1); exit 1; }; } | |
48621 | fi | |
48622 | ||
a848cd7e | 48623 | |
7afc46ab KO |
48624 | |
48625 | if test "$wxUSE_MAC" = 1 ; then | |
95768535 | 48626 | if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then |
7afc46ab KO |
48627 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp |
48628 | mv temp bk-deps | |
48629 | chmod +x bk-deps | |
48630 | fi | |
48631 | fi | |
48632 | ||
ceec2216 RL |
48633 | if test "$wxUSE_SHARED" = "yes"; then |
48634 | ||
48635 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
48636 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
48637 | ||
5b674b9d DE |
48638 | case "${host}" in |
48639 | *-pc-os2_emx | *-pc-os2-emx ) | |
48640 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48641 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48642 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
48643 | cp -p ${srcdir}/src/os2/dllar.sh . | |
48644 | ;; | |
48645 | esac | |
ceec2216 RL |
48646 | else |
48647 | ||
48648 | EXE_LINKER="$CXX -o" | |
48649 | ||
48650 | fi | |
69120ee4 VZ |
48651 | if test "$wxUSE_OMF" = "yes"; then |
48652 | case "${host}" in | |
48653 | *-pc-os2_emx | *-pc-os2-emx ) | |
48654 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
48655 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48656 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48657 | ;; | |
48658 | esac | |
48659 | fi | |
a848cd7e | 48660 | |
c08ebc62 | 48661 | if test $GCC_PCH = 1 ; then |
254e8e29 | 48662 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 48663 | fi |
a848cd7e | 48664 | |
5ff751d6 | 48665 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
48666 | |
48667 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
48668 | ||
48669 | ||
48670 | ||
48671 | ||
48672 | ||
48673 | ||
48674 | ||
48675 | ||
48676 | ||
48677 | ||
48678 | ||
48679 | ||
48680 | ||
48681 | ||
48682 | ||
48683 | ||
48684 | ||
48685 | ||
48686 | ||
48687 | ||
48688 | ||
48689 | ||
48690 | ||
48691 | ||
48692 | ||
48693 | ||
48694 | ||
48695 | ||
48696 | ||
48697 | ||
48698 | ||
48699 | ||
48700 | ||
48701 | ||
48702 | ||
48703 | ||
48704 | ||
48705 | ||
48706 | ||
48707 | ||
48708 | ||
48709 | ||
a848cd7e SC |
48710 | |
48711 | ||
48712 | ||
48713 | ||
48714 | ||
48715 | ||
48716 | ||
48717 | ||
48718 | ||
48719 | ||
48720 | ||
48721 | ||
a848cd7e SC |
48722 | |
48723 | ||
ddd14b14 | 48724 | |
370d2fd7 | 48725 | |
8ced02f6 | 48726 | |
a848cd7e SC |
48727 | |
48728 | ||
48729 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48730 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48731 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48732 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48734 | else | |
48735 | cat >conftest.make <<\_ACEOF | |
48736 | all: | |
48737 | @echo 'ac_maketemp="$(MAKE)"' | |
48738 | _ACEOF | |
48739 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48740 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48741 | if test -n "$ac_maketemp"; then | |
48742 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48743 | else | |
48744 | eval ac_cv_prog_make_${ac_make}_set=no | |
48745 | fi | |
48746 | rm -f conftest.make | |
48747 | fi | |
48748 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48749 | echo "$as_me:$LINENO: result: yes" >&5 | |
48750 | echo "${ECHO_T}yes" >&6 | |
48751 | SET_MAKE= | |
48752 | else | |
48753 | echo "$as_me:$LINENO: result: no" >&5 | |
48754 | echo "${ECHO_T}no" >&6 | |
48755 | SET_MAKE="MAKE=${MAKE-make}" | |
48756 | fi | |
48757 | ||
48758 | ||
a848cd7e | 48759 | |
ceec2216 RL |
48760 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48761 | ||
a848cd7e | 48762 | |
5c60e845 MW |
48763 | if test "$USE_WIN32" = 1; then |
48764 | ac_config_commands="$ac_config_commands | |
48765 | rcdefs.h | |
48766 | " | |
48767 | ||
48768 | fi | |
48769 | ||
ceec2216 | 48770 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48771 | |
a848cd7e | 48772 | |
ceec2216 | 48773 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48774 | |
ceec2216 RL |
48775 | |
48776 | ac_config_files="$ac_config_files version-script Makefile" | |
48777 | ||
48778 | ||
5c60e845 | 48779 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48780 | |
48781 | ||
9103d280 | 48782 | |
1c14217d | 48783 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48784 | if test "$wxUSE_GUI" = "yes"; then |
48785 | SUBDIRS="samples demos utils contrib" | |
48786 | else SUBDIRS="samples utils" | |
48787 | fi | |
48788 | ||
48789 | ||
48790 | ||
48791 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48792 | if test "${with_cppunit_prefix+set}" = set; then | |
48793 | withval="$with_cppunit_prefix" | |
48794 | cppunit_config_prefix="$withval" | |
48795 | else | |
48796 | cppunit_config_prefix="" | |
48797 | fi; | |
48798 | ||
48799 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48800 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48801 | withval="$with_cppunit_exec_prefix" | |
48802 | cppunit_config_exec_prefix="$withval" | |
48803 | else | |
48804 | cppunit_config_exec_prefix="" | |
48805 | fi; | |
48806 | ||
48807 | if test x$cppunit_config_exec_prefix != x ; then | |
48808 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
48809 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48810 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
48811 | fi | |
48812 | fi | |
48813 | if test x$cppunit_config_prefix != x ; then | |
48814 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
48815 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48816 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
48817 | fi | |
48818 | fi | |
48819 | ||
48820 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
48821 | set dummy cppunit-config; ac_word=$2 | |
48822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48824 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
48825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48826 | else | |
48827 | case $CPPUNIT_CONFIG in | |
48828 | [\\/]* | ?:[\\/]*) | |
48829 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
48830 | ;; | |
48831 | *) | |
48832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48833 | for as_dir in $PATH | |
48834 | do | |
48835 | IFS=$as_save_IFS | |
48836 | test -z "$as_dir" && as_dir=. | |
48837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48839 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
48840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48841 | break 2 | |
48842 | fi | |
48843 | done | |
48844 | done | |
48845 | ||
48846 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
48847 | ;; | |
48848 | esac | |
48849 | fi | |
48850 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
48851 | ||
48852 | if test -n "$CPPUNIT_CONFIG"; then | |
48853 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
48854 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
48855 | else | |
48856 | echo "$as_me:$LINENO: result: no" >&5 | |
48857 | echo "${ECHO_T}no" >&6 | |
48858 | fi | |
48859 | ||
48860 | cppunit_version_min=1.8.0 | |
48861 | ||
48862 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
48863 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
48864 | no_cppunit="" | |
48865 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
48866 | no_cppunit=yes | |
48867 | else | |
48868 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
48869 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
48870 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
48871 | ||
48872 | cppunit_major_version=`echo $cppunit_version | \ | |
48873 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48874 | cppunit_minor_version=`echo $cppunit_version | \ | |
48875 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48876 | cppunit_micro_version=`echo $cppunit_version | \ | |
48877 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48878 | ||
48879 | cppunit_major_min=`echo $cppunit_version_min | \ | |
48880 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48881 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
48882 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48883 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
48884 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48885 | ||
48886 | cppunit_version_proper=`expr \ | |
48887 | $cppunit_major_version \> $cppunit_major_min \| \ | |
48888 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48889 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
48890 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48891 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
48892 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
48893 | ||
48894 | if test "$cppunit_version_proper" = "1" ; then | |
48895 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
48896 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
48897 | else | |
48898 | echo "$as_me:$LINENO: result: no" >&5 | |
48899 | echo "${ECHO_T}no" >&6 | |
48900 | no_cppunit=yes | |
48901 | fi | |
48902 | fi | |
48903 | ||
48904 | if test "x$no_cppunit" = x ; then | |
c2218763 | 48905 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
48906 | else |
48907 | CPPUNIT_CFLAGS="" | |
48908 | CPPUNIT_LIBS="" | |
c2218763 | 48909 | : |
a848cd7e SC |
48910 | fi |
48911 | ||
48912 | ||
48913 | ||
48914 | ||
48915 | ||
48916 | for subdir in `echo $SUBDIRS`; do | |
48917 | if test -d ${srcdir}/${subdir} ; then | |
48918 | if test "$wxUSE_GUI" = "yes"; then | |
48919 | if test ${subdir} = "samples"; then | |
48920 | makefiles="samples/Makefile.in $makefiles" | |
48921 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
48922 | if test -d $srcdir/samples/$sample; then | |
48923 | makefiles="samples/$sample/Makefile.in $makefiles" | |
48924 | fi | |
48925 | done | |
9c112555 MW |
48926 | else |
48927 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
48928 | eval "disabled=\$$disabled_var" | |
48929 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
48930 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
48931 | fi |
48932 | else if test ${subdir} = "samples"; then | |
48933 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
48934 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
48935 | makefiles="" |
48936 | for util in HelpGen tex2rtf ; do | |
48937 | if test -d $srcdir/utils/$util ; then | |
48938 | makefiles="utils/$util/Makefile.in \ | |
48939 | utils/$util/src/Makefile.in \ | |
48940 | $makefiles" | |
48941 | fi | |
48942 | done | |
a848cd7e SC |
48943 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
48944 | fi | |
48945 | fi | |
48946 | ||
48947 | for mkin in $makefiles ; do | |
48948 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
48949 | ac_config_files="$ac_config_files $mk" | |
48950 | ||
48951 | done | |
48952 | fi | |
48953 | done | |
1c14217d | 48954 | fi |
a848cd7e SC |
48955 | cat >confcache <<\_ACEOF |
48956 | # This file is a shell script that caches the results of configure | |
48957 | # tests run on this system so they can be shared between configure | |
48958 | # scripts and configure runs, see configure's option --config-cache. | |
48959 | # It is not useful on other systems. If it contains results you don't | |
48960 | # want to keep, you may remove or edit it. | |
48961 | # | |
48962 | # config.status only pays attention to the cache file if you give it | |
48963 | # the --recheck option to rerun configure. | |
48964 | # | |
48965 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
48966 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
48967 | # following values. | |
48968 | ||
48969 | _ACEOF | |
48970 | ||
48971 | # The following way of writing the cache mishandles newlines in values, | |
48972 | # but we know of no workaround that is simple, portable, and efficient. | |
48973 | # So, don't put newlines in cache variables' values. | |
48974 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
48975 | # and sets the high bit in the cache file unless we assign to the vars. | |
48976 | { | |
48977 | (set) 2>&1 | | |
48978 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
48979 | *ac_space=\ *) | |
48980 | # `set' does not quote correctly, so add quotes (double-quote | |
48981 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
48982 | sed -n \ | |
ac1cb8d3 VS |
48983 | "s/'/'\\\\''/g; |
48984 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
48985 | ;; |
48986 | *) | |
48987 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
48988 | sed -n \ | |
ac1cb8d3 | 48989 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
48990 | ;; |
48991 | esac; | |
48992 | } | | |
48993 | sed ' | |
48994 | t clear | |
48995 | : clear | |
48996 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
48997 | t end | |
48998 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
48999 | : end' >>confcache | |
49000 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
49001 | if test -w $cache_file; then | |
49002 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
49003 | cat confcache >$cache_file | |
49004 | else | |
49005 | echo "not updating unwritable cache $cache_file" | |
49006 | fi | |
49007 | fi | |
49008 | rm -f confcache | |
49009 | ||
49010 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
49011 | # Let make expand exec_prefix. | |
49012 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
49013 | ||
49014 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
49015 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
49016 | # trailing colons and then remove the whole line if VPATH becomes empty | |
49017 | # (actually we leave an empty line to preserve line numbers). | |
49018 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 49019 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
49020 | s/:*\$(srcdir):*/:/; |
49021 | s/:*\${srcdir}:*/:/; | |
49022 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 49023 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 49024 | s/:*$//; |
ac1cb8d3 | 49025 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
49026 | }' |
49027 | fi | |
49028 | ||
49029 | DEFS=-DHAVE_CONFIG_H | |
49030 | ||
49031 | ac_libobjs= | |
49032 | ac_ltlibobjs= | |
49033 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
49034 | # 1. Remove the extension, and $U if already installed. | |
49035 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 49036 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
49037 | # 2. Add them. |
49038 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
49039 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
49040 | done | |
49041 | LIBOBJS=$ac_libobjs | |
49042 | ||
49043 | LTLIBOBJS=$ac_ltlibobjs | |
49044 | ||
49045 | ||
49046 | ||
49047 | : ${CONFIG_STATUS=./config.status} | |
49048 | ac_clean_files_save=$ac_clean_files | |
49049 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
49050 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
49051 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
49052 | cat >$CONFIG_STATUS <<_ACEOF | |
49053 | #! $SHELL | |
49054 | # Generated by $as_me. | |
49055 | # Run this file to recreate the current configuration. | |
49056 | # Compiler output produced by configure, useful for debugging | |
49057 | # configure, is in config.log if it exists. | |
49058 | ||
49059 | debug=false | |
49060 | ac_cs_recheck=false | |
49061 | ac_cs_silent=false | |
49062 | SHELL=\${CONFIG_SHELL-$SHELL} | |
49063 | _ACEOF | |
49064 | ||
49065 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49066 | ## --------------------- ## | |
49067 | ## M4sh Initialization. ## | |
49068 | ## --------------------- ## | |
49069 | ||
49070 | # Be Bourne compatible | |
49071 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
49072 | emulate sh | |
49073 | NULLCMD=: | |
49074 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
49075 | # is contrary to our usage. Disable this feature. | |
49076 | alias -g '${1+"$@"}'='"$@"' | |
49077 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
49078 | set -o posix | |
49079 | fi | |
ac1cb8d3 | 49080 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
49081 | |
49082 | # Support unset when possible. | |
ac1cb8d3 | 49083 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
49084 | as_unset=unset |
49085 | else | |
49086 | as_unset=false | |
49087 | fi | |
49088 | ||
49089 | ||
49090 | # Work around bugs in pre-3.0 UWIN ksh. | |
49091 | $as_unset ENV MAIL MAILPATH | |
49092 | PS1='$ ' | |
49093 | PS2='> ' | |
49094 | PS4='+ ' | |
49095 | ||
49096 | # NLS nuisances. | |
49097 | for as_var in \ | |
49098 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
49099 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
49100 | LC_TELEPHONE LC_TIME | |
49101 | do | |
ac1cb8d3 | 49102 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
49103 | eval $as_var=C; export $as_var |
49104 | else | |
49105 | $as_unset $as_var | |
49106 | fi | |
49107 | done | |
49108 | ||
49109 | # Required to use basename. | |
49110 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
49111 | as_expr=expr | |
49112 | else | |
49113 | as_expr=false | |
49114 | fi | |
49115 | ||
49116 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
49117 | as_basename=basename | |
49118 | else | |
49119 | as_basename=false | |
49120 | fi | |
49121 | ||
49122 | ||
49123 | # Name of the executable. | |
49124 | as_me=`$as_basename "$0" || | |
49125 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
49126 | X"$0" : 'X\(//\)$' \| \ | |
49127 | X"$0" : 'X\(/\)$' \| \ | |
49128 | . : '\(.\)' 2>/dev/null || | |
49129 | echo X/"$0" | | |
49130 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
49131 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
49132 | /^X\/\(\/\).*/{ s//\1/; q; } | |
49133 | s/.*/./; q'` | |
49134 | ||
49135 | ||
49136 | # PATH needs CR, and LINENO needs CR and PATH. | |
49137 | # Avoid depending upon Character Ranges. | |
49138 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
49139 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
49140 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
49141 | as_cr_digits='0123456789' | |
49142 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
49143 | ||
49144 | # The user is always right. | |
49145 | if test "${PATH_SEPARATOR+set}" != set; then | |
49146 | echo "#! /bin/sh" >conf$$.sh | |
49147 | echo "exit 0" >>conf$$.sh | |
49148 | chmod +x conf$$.sh | |
49149 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
49150 | PATH_SEPARATOR=';' | |
49151 | else | |
49152 | PATH_SEPARATOR=: | |
49153 | fi | |
49154 | rm -f conf$$.sh | |
49155 | fi | |
49156 | ||
49157 | ||
49158 | as_lineno_1=$LINENO | |
49159 | as_lineno_2=$LINENO | |
49160 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
49161 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
49162 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
49163 | # Find who we are. Look in the path if we contain no path at all | |
49164 | # relative or not. | |
49165 | case $0 in | |
49166 | *[\\/]* ) as_myself=$0 ;; | |
49167 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49168 | for as_dir in $PATH | |
49169 | do | |
49170 | IFS=$as_save_IFS | |
49171 | test -z "$as_dir" && as_dir=. | |
49172 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
49173 | done | |
49174 | ||
49175 | ;; | |
49176 | esac | |
49177 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
49178 | # in which case we are not to be found in the path. | |
49179 | if test "x$as_myself" = x; then | |
49180 | as_myself=$0 | |
49181 | fi | |
49182 | if test ! -f "$as_myself"; then | |
49183 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
49184 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
49185 | { (exit 1); exit 1; }; } | |
49186 | fi | |
49187 | case $CONFIG_SHELL in | |
49188 | '') | |
49189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49190 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
49191 | do | |
49192 | IFS=$as_save_IFS | |
49193 | test -z "$as_dir" && as_dir=. | |
49194 | for as_base in sh bash ksh sh5; do | |
49195 | case $as_dir in | |
49196 | /*) | |
49197 | if ("$as_dir/$as_base" -c ' | |
49198 | as_lineno_1=$LINENO | |
49199 | as_lineno_2=$LINENO | |
49200 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
49201 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
49202 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
49203 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
49204 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
49205 | CONFIG_SHELL=$as_dir/$as_base | |
49206 | export CONFIG_SHELL | |
49207 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
49208 | fi;; | |
49209 | esac | |
49210 | done | |
49211 | done | |
49212 | ;; | |
49213 | esac | |
49214 | ||
49215 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
49216 | # uniformly replaced by the line number. The first 'sed' inserts a | |
49217 | # line-number line before each line; the second 'sed' does the real | |
49218 | # work. The second script uses 'N' to pair each line-number line | |
49219 | # with the numbered line, and appends trailing '-' during | |
49220 | # substitution so that $LINENO is not a special case at line end. | |
49221 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
49222 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
49223 | sed '=' <$as_myself | | |
49224 | sed ' | |
49225 | N | |
49226 | s,$,-, | |
49227 | : loop | |
49228 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
49229 | t loop | |
49230 | s,-$,, | |
49231 | s,^['$as_cr_digits']*\n,, | |
49232 | ' >$as_me.lineno && | |
49233 | chmod +x $as_me.lineno || | |
49234 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
49235 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
49236 | { (exit 1); exit 1; }; } | |
49237 | ||
49238 | # Don't try to exec as it changes $[0], causing all sort of problems | |
49239 | # (the dirname of $[0] is not the place where we might find the | |
49240 | # original and so on. Autoconf is especially sensible to this). | |
49241 | . ./$as_me.lineno | |
49242 | # Exit status is that of the last command. | |
49243 | exit | |
49244 | } | |
49245 | ||
49246 | ||
49247 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
49248 | *c*,-n*) ECHO_N= ECHO_C=' | |
49249 | ' ECHO_T=' ' ;; | |
49250 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
49251 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
49252 | esac | |
49253 | ||
49254 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
49255 | as_expr=expr | |
49256 | else | |
49257 | as_expr=false | |
49258 | fi | |
49259 | ||
49260 | rm -f conf$$ conf$$.exe conf$$.file | |
49261 | echo >conf$$.file | |
49262 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
49263 | # We could just check for DJGPP; but this test a) works b) is more generic | |
49264 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
49265 | if test -f conf$$.exe; then | |
49266 | # Don't use ln at all; we don't have any links | |
49267 | as_ln_s='cp -p' | |
49268 | else | |
49269 | as_ln_s='ln -s' | |
49270 | fi | |
49271 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
49272 | as_ln_s=ln | |
49273 | else | |
49274 | as_ln_s='cp -p' | |
49275 | fi | |
49276 | rm -f conf$$ conf$$.exe conf$$.file | |
49277 | ||
49278 | if mkdir -p . 2>/dev/null; then | |
49279 | as_mkdir_p=: | |
49280 | else | |
ac1cb8d3 | 49281 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
49282 | as_mkdir_p=false |
49283 | fi | |
49284 | ||
49285 | as_executable_p="test -f" | |
49286 | ||
49287 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 49288 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
49289 | |
49290 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 49291 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
49292 | |
49293 | ||
49294 | # IFS | |
49295 | # We need space, tab and new line, in precisely that order. | |
49296 | as_nl=' | |
49297 | ' | |
49298 | IFS=" $as_nl" | |
49299 | ||
49300 | # CDPATH. | |
49301 | $as_unset CDPATH | |
49302 | ||
49303 | exec 6>&1 | |
49304 | ||
49305 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
49306 | # report actual input values of CONFIG_FILES etc. instead of their | |
49307 | # values after options handling. Logging --version etc. is OK. | |
49308 | exec 5>>config.log | |
49309 | { | |
49310 | echo | |
49311 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
49312 | ## Running $as_me. ## | |
49313 | _ASBOX | |
49314 | } >&5 | |
49315 | cat >&5 <<_CSEOF | |
49316 | ||
dd8df4fc | 49317 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 49318 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
49319 | |
49320 | CONFIG_FILES = $CONFIG_FILES | |
49321 | CONFIG_HEADERS = $CONFIG_HEADERS | |
49322 | CONFIG_LINKS = $CONFIG_LINKS | |
49323 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
49324 | $ $0 $@ | |
49325 | ||
49326 | _CSEOF | |
49327 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
49328 | echo >&5 | |
49329 | _ACEOF | |
49330 | ||
49331 | # Files that config.status was made for. | |
49332 | if test -n "$ac_config_files"; then | |
49333 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
49334 | fi | |
49335 | ||
49336 | if test -n "$ac_config_headers"; then | |
49337 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
49338 | fi | |
49339 | ||
49340 | if test -n "$ac_config_links"; then | |
49341 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
49342 | fi | |
49343 | ||
49344 | if test -n "$ac_config_commands"; then | |
49345 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
49346 | fi | |
49347 | ||
49348 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49349 | ||
49350 | ac_cs_usage="\ | |
49351 | \`$as_me' instantiates files from templates according to the | |
49352 | current configuration. | |
49353 | ||
49354 | Usage: $0 [OPTIONS] [FILE]... | |
49355 | ||
49356 | -h, --help print this help, then exit | |
49357 | -V, --version print version number, then exit | |
49358 | -q, --quiet do not print progress messages | |
49359 | -d, --debug don't remove temporary files | |
49360 | --recheck update $as_me by reconfiguring in the same conditions | |
49361 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 49362 | instantiate the configuration file FILE |
a848cd7e | 49363 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 49364 | instantiate the configuration header FILE |
a848cd7e SC |
49365 | |
49366 | Configuration files: | |
49367 | $config_files | |
49368 | ||
49369 | Configuration headers: | |
49370 | $config_headers | |
49371 | ||
49372 | Configuration commands: | |
49373 | $config_commands | |
49374 | ||
49375 | Report bugs to <bug-autoconf@gnu.org>." | |
49376 | _ACEOF | |
49377 | ||
49378 | cat >>$CONFIG_STATUS <<_ACEOF | |
49379 | ac_cs_version="\\ | |
dd8df4fc | 49380 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 49381 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
49382 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
49383 | ||
ac1cb8d3 | 49384 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
49385 | This config.status script is free software; the Free Software Foundation |
49386 | gives unlimited permission to copy, distribute and modify it." | |
49387 | srcdir=$srcdir | |
49388 | INSTALL="$INSTALL" | |
49389 | _ACEOF | |
49390 | ||
49391 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49392 | # If no file are specified by the user, then we need to provide default | |
49393 | # value. By we need to know if files were specified by the user. | |
49394 | ac_need_defaults=: | |
49395 | while test $# != 0 | |
49396 | do | |
49397 | case $1 in | |
49398 | --*=*) | |
49399 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
49400 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
49401 | ac_shift=: | |
49402 | ;; | |
49403 | -*) | |
49404 | ac_option=$1 | |
49405 | ac_optarg=$2 | |
49406 | ac_shift=shift | |
49407 | ;; | |
49408 | *) # This is not an option, so the user has probably given explicit | |
49409 | # arguments. | |
49410 | ac_option=$1 | |
49411 | ac_need_defaults=false;; | |
49412 | esac | |
49413 | ||
49414 | case $ac_option in | |
49415 | # Handling of the options. | |
49416 | _ACEOF | |
49417 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49418 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
49419 | ac_cs_recheck=: ;; | |
49420 | --version | --vers* | -V ) | |
49421 | echo "$ac_cs_version"; exit 0 ;; | |
49422 | --he | --h) | |
49423 | # Conflict between --help and --header | |
49424 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
49425 | Try \`$0 --help' for more information." >&5 | |
49426 | echo "$as_me: error: ambiguous option: $1 | |
49427 | Try \`$0 --help' for more information." >&2;} | |
49428 | { (exit 1); exit 1; }; };; | |
49429 | --help | --hel | -h ) | |
49430 | echo "$ac_cs_usage"; exit 0 ;; | |
49431 | --debug | --d* | -d ) | |
49432 | debug=: ;; | |
49433 | --file | --fil | --fi | --f ) | |
49434 | $ac_shift | |
49435 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
49436 | ac_need_defaults=false;; | |
49437 | --header | --heade | --head | --hea ) | |
49438 | $ac_shift | |
49439 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
49440 | ac_need_defaults=false;; | |
49441 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
49442 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
49443 | ac_cs_silent=: ;; | |
49444 | ||
49445 | # This is an error. | |
49446 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
49447 | Try \`$0 --help' for more information." >&5 | |
49448 | echo "$as_me: error: unrecognized option: $1 | |
49449 | Try \`$0 --help' for more information." >&2;} | |
49450 | { (exit 1); exit 1; }; } ;; | |
49451 | ||
49452 | *) ac_config_targets="$ac_config_targets $1" ;; | |
49453 | ||
49454 | esac | |
49455 | shift | |
49456 | done | |
49457 | ||
49458 | ac_configure_extra_args= | |
49459 | ||
49460 | if $ac_cs_silent; then | |
49461 | exec 6>/dev/null | |
49462 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
49463 | fi | |
49464 | ||
49465 | _ACEOF | |
49466 | cat >>$CONFIG_STATUS <<_ACEOF | |
49467 | if \$ac_cs_recheck; then | |
49468 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
49469 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
49470 | fi | |
49471 | ||
49472 | _ACEOF | |
49473 | ||
49474 | cat >>$CONFIG_STATUS <<_ACEOF | |
49475 | # | |
49476 | # INIT-COMMANDS section. | |
49477 | # | |
49478 | ||
5c60e845 MW |
49479 | |
49480 | CPP="$CPP" | |
49481 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
49482 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
49483 | ||
49484 | ||
ceec2216 RL |
49485 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
49486 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
49487 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
49488 | LN_S="${LN_S}" | |
a848cd7e SC |
49489 | |
49490 | ||
49491 | _ACEOF | |
49492 | ||
49493 | ||
49494 | ||
49495 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49496 | for ac_config_target in $ac_config_targets | |
49497 | do | |
49498 | case "$ac_config_target" in | |
49499 | # Handling of arguments. | |
ceec2216 RL |
49500 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
49501 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
49502 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
49503 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
49504 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 49505 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
49506 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
49507 | "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 |
49508 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
49509 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
49510 | { (exit 1); exit 1; }; };; | |
49511 | esac | |
49512 | done | |
49513 | ||
49514 | # If the user did not use the arguments to specify the items to instantiate, | |
49515 | # then the envvar interface is used. Set only those that are not. | |
49516 | # We use the long form for the default assignment because of an extremely | |
49517 | # bizarre bug on SunOS 4.1.3. | |
49518 | if $ac_need_defaults; then | |
49519 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
49520 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
49521 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
49522 | fi | |
49523 | ||
49524 | # Have a temporary directory for convenience. Make it in the build tree | |
49525 | # simply because there is no reason to put it here, and in addition, | |
49526 | # creating and moving files from /tmp can sometimes cause problems. | |
49527 | # Create a temporary directory, and hook for its removal unless debugging. | |
49528 | $debug || | |
49529 | { | |
49530 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
49531 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
49532 | } | |
49533 | ||
49534 | # Create a (secure) tmp directory for tmp files. | |
49535 | ||
49536 | { | |
49537 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
49538 | test -n "$tmp" && test -d "$tmp" | |
49539 | } || | |
49540 | { | |
49541 | tmp=./confstat$$-$RANDOM | |
49542 | (umask 077 && mkdir $tmp) | |
49543 | } || | |
49544 | { | |
49545 | echo "$me: cannot create a temporary directory in ." >&2 | |
49546 | { (exit 1); exit 1; } | |
49547 | } | |
49548 | ||
49549 | _ACEOF | |
49550 | ||
49551 | cat >>$CONFIG_STATUS <<_ACEOF | |
49552 | ||
49553 | # | |
49554 | # CONFIG_FILES section. | |
49555 | # | |
49556 | ||
49557 | # No need to generate the scripts if there are no CONFIG_FILES. | |
49558 | # This happens for instance when ./config.status config.h | |
49559 | if test -n "\$CONFIG_FILES"; then | |
49560 | # Protect against being on the right side of a sed subst in config.status. | |
49561 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
49562 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
49563 | s,@SHELL@,$SHELL,;t t | |
49564 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
49565 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
49566 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
49567 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
49568 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
49569 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
49570 | s,@exec_prefix@,$exec_prefix,;t t | |
49571 | s,@prefix@,$prefix,;t t | |
49572 | s,@program_transform_name@,$program_transform_name,;t t | |
49573 | s,@bindir@,$bindir,;t t | |
49574 | s,@sbindir@,$sbindir,;t t | |
49575 | s,@libexecdir@,$libexecdir,;t t | |
49576 | s,@datadir@,$datadir,;t t | |
49577 | s,@sysconfdir@,$sysconfdir,;t t | |
49578 | s,@sharedstatedir@,$sharedstatedir,;t t | |
49579 | s,@localstatedir@,$localstatedir,;t t | |
49580 | s,@libdir@,$libdir,;t t | |
49581 | s,@includedir@,$includedir,;t t | |
49582 | s,@oldincludedir@,$oldincludedir,;t t | |
49583 | s,@infodir@,$infodir,;t t | |
49584 | s,@mandir@,$mandir,;t t | |
49585 | s,@build_alias@,$build_alias,;t t | |
49586 | s,@host_alias@,$host_alias,;t t | |
49587 | s,@target_alias@,$target_alias,;t t | |
49588 | s,@DEFS@,$DEFS,;t t | |
49589 | s,@ECHO_C@,$ECHO_C,;t t | |
49590 | s,@ECHO_N@,$ECHO_N,;t t | |
49591 | s,@ECHO_T@,$ECHO_T,;t t | |
49592 | s,@LIBS@,$LIBS,;t t | |
49593 | s,@build@,$build,;t t | |
49594 | s,@build_cpu@,$build_cpu,;t t | |
49595 | s,@build_vendor@,$build_vendor,;t t | |
49596 | s,@build_os@,$build_os,;t t | |
49597 | s,@host@,$host,;t t | |
49598 | s,@host_cpu@,$host_cpu,;t t | |
49599 | s,@host_vendor@,$host_vendor,;t t | |
49600 | s,@host_os@,$host_os,;t t | |
49601 | s,@target@,$target,;t t | |
49602 | s,@target_cpu@,$target_cpu,;t t | |
49603 | s,@target_vendor@,$target_vendor,;t t | |
49604 | s,@target_os@,$target_os,;t t | |
49605 | s,@CC@,$CC,;t t | |
49606 | s,@CFLAGS@,$CFLAGS,;t t | |
49607 | s,@LDFLAGS@,$LDFLAGS,;t t | |
49608 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
49609 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
49610 | s,@EXEEXT@,$EXEEXT,;t t | |
49611 | s,@OBJEXT@,$OBJEXT,;t t | |
49612 | s,@CPP@,$CPP,;t t | |
49613 | s,@EGREP@,$EGREP,;t t | |
49614 | s,@CXX@,$CXX,;t t | |
49615 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
49616 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
49617 | s,@RANLIB@,$RANLIB,;t t | |
49618 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
49619 | s,@AR@,$AR,;t t | |
8c80d384 | 49620 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
49621 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
49622 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
49623 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
49624 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 49625 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
49626 | s,@WINDRES@,$WINDRES,;t t |
49627 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
49628 | s,@DLLTOOL@,$DLLTOOL,;t t |
49629 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
49630 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
49631 | s,@LN_S@,$LN_S,;t t | |
49632 | s,@CXXCPP@,$CXXCPP,;t t | |
49633 | s,@subdirs@,$subdirs,;t t | |
49634 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
49635 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
49636 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
49637 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
49638 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
49639 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
49640 | s,@X_LIBS@,$X_LIBS,;t t | |
49641 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
49642 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
49643 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
49644 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
49645 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
49646 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
49647 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 49648 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
49649 | s,@DEREZ@,$DEREZ,;t t |
49650 | s,@SETFILE@,$SETFILE,;t t | |
49651 | s,@LIBICONV@,$LIBICONV,;t t | |
49652 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
49653 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
49654 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
49655 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
49656 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
49657 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
2b850ae1 RR |
49658 | s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t |
49659 | s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t | |
3565d135 RR |
49660 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
49661 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
f10e38c4 VZ |
49662 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
49663 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
49664 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
49665 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
49666 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
49667 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
49668 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
49669 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
49670 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
49671 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
49672 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
49673 | s,@VENDOR@,$VENDOR,;t t | |
49674 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
49675 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
49676 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
49677 | s,@WXUNIV@,$WXUNIV,;t t |
49678 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49679 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49680 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49681 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49682 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49683 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49684 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49685 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49686 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49687 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49688 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
2b850ae1 | 49689 | s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t |
3565d135 | 49690 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49691 | s,@UNICODE@,$UNICODE,;t t |
49692 | s,@BUILD@,$BUILD,;t t | |
49693 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49694 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49695 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49696 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49697 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49698 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49699 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49700 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49701 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49702 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49703 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49704 | s,@NM@,$NM,;t t |
49705 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49706 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49707 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49708 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49709 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49710 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49711 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49712 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49713 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49714 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49715 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49716 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49717 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49718 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49719 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49720 | s,@LIBEXT@,$LIBEXT,;t t | |
49721 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49722 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49723 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49724 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49725 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49726 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49727 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49728 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49729 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49730 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49731 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49732 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49733 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49734 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49735 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49736 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49737 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49738 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49739 | s,@GCC_PCH@,$GCC_PCH,;t t | |
f10e38c4 | 49740 | s,@ICC_PCH@,$ICC_PCH,;t t |
a848cd7e SC |
49741 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
49742 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49743 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49744 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49745 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49746 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49747 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49748 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49749 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49750 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49751 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49752 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49753 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49754 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49755 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 49756 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
49757 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
49758 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
3f60522a | 49759 | s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t |
a848cd7e | 49760 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t |
90970d69 | 49761 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t |
f10e38c4 | 49762 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t |
a848cd7e | 49763 | 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 | 49764 | 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 | 49765 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8b6682b9 | 49766 | s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t |
ceec2216 | 49767 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e | 49768 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
3f60522a | 49769 | s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t |
a848cd7e | 49770 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
90970d69 | 49771 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t |
f10e38c4 | 49772 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t |
a848cd7e | 49773 | 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 | 49774 | 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 | 49775 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
8b6682b9 | 49776 | s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t |
ceec2216 | 49777 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
e5efa97e | 49778 | s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t |
a848cd7e SC |
49779 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49780 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49781 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49782 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49783 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49784 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49785 | 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 |
49786 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49787 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49788 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49789 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49790 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49791 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49792 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49793 | 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 |
49794 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49795 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49796 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49797 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49798 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49799 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e5efa97e | 49800 | s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t |
83d8eb47 | 49801 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49802 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49803 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49804 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49805 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
49806 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
49807 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
49808 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
49809 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
49810 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
49811 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
49812 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
49813 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
49814 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49815 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49816 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 49817 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49818 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
49819 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
49820 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
49821 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
49822 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
49823 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 49824 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 49825 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 49826 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 49827 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
49828 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
49829 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
49830 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
49831 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
49832 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
49833 | 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 | |
49834 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
49835 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 49836 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
49837 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
49838 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
49839 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
49840 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
49841 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
49842 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
49843 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
49844 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
49845 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
49846 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
49847 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49848 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
49849 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
49850 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
49851 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
49852 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
49853 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
49854 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49855 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
49856 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
49857 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
49858 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
49859 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
49860 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
49861 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
49862 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
49863 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
49864 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
49865 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49866 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49867 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
49868 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
49869 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 49870 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 49871 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
49872 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
49873 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 49874 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 49875 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
49876 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
49877 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
49878 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
49879 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
49880 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 49881 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 49882 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 49883 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 49884 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
49885 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
49886 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
49887 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
49888 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
49889 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
49890 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
49891 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
49892 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 49893 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
49894 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
49895 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
49896 | s,@USE_GUI@,$USE_GUI,;t t |
49897 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
49898 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
49899 | s,@TOOLKIT@,$TOOLKIT,;t t | |
49900 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 49901 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 49902 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 49903 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
49904 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
49905 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
49906 | s,@WX_VERSION@,$WX_VERSION,;t t | |
49907 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
49908 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
49909 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
49910 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
49911 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
49912 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
49913 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
49914 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
49915 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 49916 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 49917 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 49918 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
49919 | s,@DISTDIR@,$DISTDIR,;t t |
49920 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
49921 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
49922 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
49923 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
49924 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 49925 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
49926 | s,@RESFLAGS@,$RESFLAGS,;t t |
49927 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
49928 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
49929 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
49930 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 49931 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 49932 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 49933 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
49934 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
49935 | s,@LIBOBJS@,$LIBOBJS,;t t | |
49936 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
49937 | CEOF | |
49938 | ||
49939 | _ACEOF | |
49940 | ||
49941 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49942 | # Split the substitutions into bite-sized pieces for seds with | |
49943 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
49944 | ac_max_sed_lines=48 | |
49945 | ac_sed_frag=1 # Number of current file. | |
49946 | ac_beg=1 # First line for current file. | |
49947 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
49948 | ac_more_lines=: | |
49949 | ac_sed_cmds= | |
49950 | while $ac_more_lines; do | |
49951 | if test $ac_beg -gt 1; then | |
49952 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49953 | else | |
49954 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49955 | fi | |
49956 | if test ! -s $tmp/subs.frag; then | |
49957 | ac_more_lines=false | |
49958 | else | |
49959 | # The purpose of the label and of the branching condition is to | |
49960 | # speed up the sed processing (if there are no `@' at all, there | |
49961 | # is no need to browse any of the substitutions). | |
49962 | # These are the two extra sed commands mentioned above. | |
49963 | (echo ':t | |
49964 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
49965 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 49966 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 49967 | else |
ac1cb8d3 | 49968 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
49969 | fi |
49970 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
49971 | ac_beg=$ac_end | |
49972 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
49973 | fi | |
49974 | done | |
49975 | if test -z "$ac_sed_cmds"; then | |
49976 | ac_sed_cmds=cat | |
49977 | fi | |
49978 | fi # test -n "$CONFIG_FILES" | |
49979 | ||
49980 | _ACEOF | |
49981 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49982 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
49983 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49984 | case $ac_file in | |
49985 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49986 | cat >$tmp/stdin |
49987 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49988 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49989 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49990 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49991 | * ) ac_file_in=$ac_file.in ;; |
49992 | esac | |
49993 | ||
49994 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
49995 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49996 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49997 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49998 | X"$ac_file" : 'X\(//\)$' \| \ | |
49999 | X"$ac_file" : 'X\(/\)' \| \ | |
50000 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50001 | echo X"$ac_file" | |
50002 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50003 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50004 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50005 | /^X\(\/\).*/{ s//\1/; q; } | |
50006 | s/.*/./; q'` | |
50007 | { if $as_mkdir_p; then | |
50008 | mkdir -p "$ac_dir" | |
50009 | else | |
50010 | as_dir="$ac_dir" | |
50011 | as_dirs= | |
50012 | while test ! -d "$as_dir"; do | |
50013 | as_dirs="$as_dir $as_dirs" | |
50014 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50015 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50016 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50017 | X"$as_dir" : 'X\(//\)$' \| \ | |
50018 | X"$as_dir" : 'X\(/\)' \| \ | |
50019 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50020 | echo X"$as_dir" | |
50021 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50022 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50023 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50024 | /^X\(\/\).*/{ s//\1/; q; } | |
50025 | s/.*/./; q'` | |
50026 | done | |
50027 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50028 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50029 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50030 | { (exit 1); exit 1; }; }; } | |
50031 | ||
50032 | ac_builddir=. | |
50033 | ||
50034 | if test "$ac_dir" != .; then | |
50035 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50036 | # A "../" for each directory in $ac_dir_suffix. | |
50037 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50038 | else | |
50039 | ac_dir_suffix= ac_top_builddir= | |
50040 | fi | |
50041 | ||
50042 | case $srcdir in | |
50043 | .) # No --srcdir option. We are building in place. | |
50044 | ac_srcdir=. | |
50045 | if test -z "$ac_top_builddir"; then | |
50046 | ac_top_srcdir=. | |
50047 | else | |
50048 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50049 | fi ;; | |
50050 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50051 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50052 | ac_top_srcdir=$srcdir ;; | |
50053 | *) # Relative path. | |
50054 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50055 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50056 | esac | |
ac1cb8d3 VS |
50057 | |
50058 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50059 | # the directories may not exist. | |
50060 | case `pwd` in | |
50061 | .) ac_abs_builddir="$ac_dir";; | |
50062 | *) | |
50063 | case "$ac_dir" in | |
50064 | .) ac_abs_builddir=`pwd`;; | |
50065 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50066 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50067 | esac;; | |
50068 | esac | |
50069 | case $ac_abs_builddir in | |
50070 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50071 | *) | |
50072 | case ${ac_top_builddir}. in | |
50073 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50074 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50075 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50076 | esac;; | |
50077 | esac | |
50078 | case $ac_abs_builddir in | |
50079 | .) ac_abs_srcdir=$ac_srcdir;; | |
50080 | *) | |
50081 | case $ac_srcdir in | |
50082 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50083 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50084 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50085 | esac;; | |
50086 | esac | |
50087 | case $ac_abs_builddir in | |
50088 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50089 | *) | |
50090 | case $ac_top_srcdir in | |
50091 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50092 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50093 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50094 | esac;; | |
50095 | esac | |
a848cd7e SC |
50096 | |
50097 | ||
50098 | case $INSTALL in | |
50099 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
50100 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
50101 | esac | |
50102 | ||
a848cd7e SC |
50103 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
50104 | # use $as_me), people would be surprised to read: | |
50105 | # /* config.h. Generated by config.status. */ | |
50106 | if test x"$ac_file" = x-; then | |
50107 | configure_input= | |
50108 | else | |
50109 | configure_input="$ac_file. " | |
50110 | fi | |
50111 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 50112 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
50113 | |
50114 | # First look for the input files in the build tree, otherwise in the | |
50115 | # src tree. | |
50116 | ac_file_inputs=`IFS=: | |
50117 | for f in $ac_file_in; do | |
50118 | case $f in | |
50119 | -) echo $tmp/stdin ;; | |
50120 | [\\/$]*) | |
ac1cb8d3 VS |
50121 | # Absolute (can't be DOS-style, as IFS=:) |
50122 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50123 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50124 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50125 | echo "$f";; |
a848cd7e | 50126 | *) # Relative |
ac1cb8d3 VS |
50127 | if test -f "$f"; then |
50128 | # Build tree | |
50129 | echo "$f" | |
50130 | elif test -f "$srcdir/$f"; then | |
50131 | # Source tree | |
50132 | echo "$srcdir/$f" | |
50133 | else | |
50134 | # /dev/null tree | |
50135 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50136 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50137 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50138 | fi;; |
a848cd7e SC |
50139 | esac |
50140 | done` || { (exit 1); exit 1; } | |
c9a66001 VZ |
50141 | |
50142 | if test x"$ac_file" != x-; then | |
50143 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
50144 | echo "$as_me: creating $ac_file" >&6;} | |
50145 | rm -f "$ac_file" | |
50146 | fi | |
a848cd7e SC |
50147 | _ACEOF |
50148 | cat >>$CONFIG_STATUS <<_ACEOF | |
50149 | sed "$ac_vpsub | |
50150 | $extrasub | |
50151 | _ACEOF | |
50152 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50153 | :t | |
50154 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
50155 | s,@configure_input@,$configure_input,;t t | |
50156 | s,@srcdir@,$ac_srcdir,;t t | |
50157 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
50158 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
50159 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
50160 | s,@builddir@,$ac_builddir,;t t | |
50161 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
50162 | s,@top_builddir@,$ac_top_builddir,;t t | |
50163 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
50164 | s,@INSTALL@,$ac_INSTALL,;t t | |
50165 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
50166 | rm -f $tmp/stdin | |
50167 | if test x"$ac_file" != x-; then | |
50168 | mv $tmp/out $ac_file | |
50169 | else | |
50170 | cat $tmp/out | |
50171 | rm -f $tmp/out | |
50172 | fi | |
50173 | ||
ceec2216 RL |
50174 | # Run the commands associated with the file. |
50175 | case $ac_file in | |
50176 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
50177 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
50178 | esac | |
a848cd7e SC |
50179 | done |
50180 | _ACEOF | |
50181 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50182 | ||
50183 | # | |
50184 | # CONFIG_HEADER section. | |
50185 | # | |
50186 | ||
50187 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
50188 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
50189 | # | |
50190 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
50191 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
50192 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
50193 | ac_dC=' ' |
50194 | ac_dD=',;t' | |
50195 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 50196 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
50197 | ac_uB='$,\1#\2define\3' |
50198 | ac_uC=' ' | |
50199 | ac_uD=',;t' | |
50200 | ||
50201 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
50202 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
50203 | case $ac_file in | |
50204 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
50205 | cat >$tmp/stdin |
50206 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50207 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 50208 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 50209 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
50210 | * ) ac_file_in=$ac_file.in ;; |
50211 | esac | |
50212 | ||
50213 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
50214 | echo "$as_me: creating $ac_file" >&6;} | |
50215 | ||
50216 | # First look for the input files in the build tree, otherwise in the | |
50217 | # src tree. | |
50218 | ac_file_inputs=`IFS=: | |
50219 | for f in $ac_file_in; do | |
50220 | case $f in | |
50221 | -) echo $tmp/stdin ;; | |
50222 | [\\/$]*) | |
ac1cb8d3 VS |
50223 | # Absolute (can't be DOS-style, as IFS=:) |
50224 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50225 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50226 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
50227 | # Do quote $f, to prevent DOS paths from being IFS'd. |
50228 | echo "$f";; | |
a848cd7e | 50229 | *) # Relative |
ac1cb8d3 VS |
50230 | if test -f "$f"; then |
50231 | # Build tree | |
50232 | echo "$f" | |
50233 | elif test -f "$srcdir/$f"; then | |
50234 | # Source tree | |
50235 | echo "$srcdir/$f" | |
50236 | else | |
50237 | # /dev/null tree | |
50238 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50239 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50240 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50241 | fi;; |
a848cd7e SC |
50242 | esac |
50243 | done` || { (exit 1); exit 1; } | |
50244 | # Remove the trailing spaces. | |
ac1cb8d3 | 50245 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
50246 | |
50247 | _ACEOF | |
50248 | ||
50249 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
50250 | # `conftest.undefs', that substitutes the proper values into | |
50251 | # config.h.in to produce config.h. The first handles `#define' | |
50252 | # templates, and the second `#undef' templates. | |
50253 | # And first: Protect against being on the right side of a sed subst in | |
50254 | # config.status. Protect against being in an unquoted here document | |
50255 | # in config.status. | |
50256 | rm -f conftest.defines conftest.undefs | |
50257 | # Using a here document instead of a string reduces the quoting nightmare. | |
50258 | # Putting comments in sed scripts is not portable. | |
50259 | # | |
50260 | # `end' is used to avoid that the second main sed command (meant for | |
50261 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
50262 | # See the Autoconf documentation for `clear'. | |
50263 | cat >confdef2sed.sed <<\_ACEOF | |
50264 | s/[\\&,]/\\&/g | |
50265 | s,[\\$`],\\&,g | |
50266 | t clear | |
50267 | : clear | |
ac1cb8d3 | 50268 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 50269 | t end |
ac1cb8d3 | 50270 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
50271 | : end |
50272 | _ACEOF | |
50273 | # If some macros were called several times there might be several times | |
50274 | # the same #defines, which is useless. Nevertheless, we may not want to | |
50275 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
50276 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
50277 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
50278 | rm -f confdef2sed.sed | |
50279 | ||
50280 | # This sed command replaces #undef with comments. This is necessary, for | |
50281 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
50282 | # on some systems where configure will not decide to define it. | |
50283 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 50284 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
50285 | _ACEOF |
50286 | ||
50287 | # Break up conftest.defines because some shells have a limit on the size | |
50288 | # of here documents, and old seds have small limits too (100 cmds). | |
50289 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 50290 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
50291 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
50292 | echo ' :' >>$CONFIG_STATUS | |
50293 | rm -f conftest.tail | |
50294 | while grep . conftest.defines >/dev/null | |
50295 | do | |
50296 | # Write a limited-size here document to $tmp/defines.sed. | |
50297 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
50298 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 50299 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
50300 | # Work around the forget-to-reset-the-flag bug. |
50301 | echo 't clr' >>$CONFIG_STATUS | |
50302 | echo ': clr' >>$CONFIG_STATUS | |
50303 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
50304 | echo 'CEOF | |
50305 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
50306 | rm -f $tmp/in | |
50307 | mv $tmp/out $tmp/in | |
50308 | ' >>$CONFIG_STATUS | |
50309 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
50310 | rm -f conftest.defines | |
50311 | mv conftest.tail conftest.defines | |
50312 | done | |
50313 | rm -f conftest.defines | |
50314 | echo ' fi # grep' >>$CONFIG_STATUS | |
50315 | echo >>$CONFIG_STATUS | |
50316 | ||
50317 | # Break up conftest.undefs because some shells have a limit on the size | |
50318 | # of here documents, and old seds have small limits too (100 cmds). | |
50319 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
50320 | rm -f conftest.tail | |
50321 | while grep . conftest.undefs >/dev/null | |
50322 | do | |
50323 | # Write a limited-size here document to $tmp/undefs.sed. | |
50324 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
50325 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 50326 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
50327 | # Work around the forget-to-reset-the-flag bug. |
50328 | echo 't clr' >>$CONFIG_STATUS | |
50329 | echo ': clr' >>$CONFIG_STATUS | |
50330 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
50331 | echo 'CEOF | |
50332 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
50333 | rm -f $tmp/in | |
50334 | mv $tmp/out $tmp/in | |
50335 | ' >>$CONFIG_STATUS | |
50336 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
50337 | rm -f conftest.undefs | |
50338 | mv conftest.tail conftest.undefs | |
50339 | done | |
50340 | rm -f conftest.undefs | |
50341 | ||
50342 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50343 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
50344 | # use $as_me), people would be surprised to read: | |
50345 | # /* config.h. Generated by config.status. */ | |
50346 | if test x"$ac_file" = x-; then | |
50347 | echo "/* Generated by configure. */" >$tmp/config.h | |
50348 | else | |
50349 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
50350 | fi | |
50351 | cat $tmp/in >>$tmp/config.h | |
50352 | rm -f $tmp/in | |
50353 | if test x"$ac_file" != x-; then | |
50354 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
50355 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
50356 | echo "$as_me: $ac_file is unchanged" >&6;} | |
50357 | else | |
50358 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
50359 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50360 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
50361 | X"$ac_file" : 'X\(//\)$' \| \ | |
50362 | X"$ac_file" : 'X\(/\)' \| \ | |
50363 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50364 | echo X"$ac_file" | |
50365 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50366 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50367 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50368 | /^X\(\/\).*/{ s//\1/; q; } | |
50369 | s/.*/./; q'` | |
50370 | { if $as_mkdir_p; then | |
50371 | mkdir -p "$ac_dir" | |
50372 | else | |
50373 | as_dir="$ac_dir" | |
50374 | as_dirs= | |
50375 | while test ! -d "$as_dir"; do | |
50376 | as_dirs="$as_dir $as_dirs" | |
50377 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50378 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50379 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50380 | X"$as_dir" : 'X\(//\)$' \| \ | |
50381 | X"$as_dir" : 'X\(/\)' \| \ | |
50382 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50383 | echo X"$as_dir" | |
50384 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50385 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50386 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50387 | /^X\(\/\).*/{ s//\1/; q; } | |
50388 | s/.*/./; q'` | |
50389 | done | |
50390 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50391 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50392 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50393 | { (exit 1); exit 1; }; }; } | |
50394 | ||
50395 | rm -f $ac_file | |
50396 | mv $tmp/config.h $ac_file | |
50397 | fi | |
50398 | else | |
50399 | cat $tmp/config.h | |
50400 | rm -f $tmp/config.h | |
50401 | fi | |
50402 | done | |
50403 | _ACEOF | |
50404 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50405 | ||
50406 | # | |
50407 | # CONFIG_COMMANDS section. | |
50408 | # | |
50409 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
50410 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
50411 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50412 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
50413 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50414 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
50415 | X"$ac_dest" : 'X\(//\)$' \| \ | |
50416 | X"$ac_dest" : 'X\(/\)' \| \ | |
50417 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50418 | echo X"$ac_dest" | |
50419 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50420 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50421 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50422 | /^X\(\/\).*/{ s//\1/; q; } | |
50423 | s/.*/./; q'` | |
ac1cb8d3 VS |
50424 | { if $as_mkdir_p; then |
50425 | mkdir -p "$ac_dir" | |
50426 | else | |
50427 | as_dir="$ac_dir" | |
50428 | as_dirs= | |
50429 | while test ! -d "$as_dir"; do | |
50430 | as_dirs="$as_dir $as_dirs" | |
50431 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50432 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
50433 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
50434 | X"$as_dir" : 'X\(//\)$' \| \ | |
50435 | X"$as_dir" : 'X\(/\)' \| \ | |
50436 | . : '\(.\)' 2>/dev/null || | |
50437 | echo X"$as_dir" | | |
50438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50439 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50440 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50441 | /^X\(\/\).*/{ s//\1/; q; } | |
50442 | s/.*/./; q'` | |
50443 | done | |
50444 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50445 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50446 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50447 | { (exit 1); exit 1; }; }; } | |
50448 | ||
a848cd7e SC |
50449 | ac_builddir=. |
50450 | ||
50451 | if test "$ac_dir" != .; then | |
50452 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50453 | # A "../" for each directory in $ac_dir_suffix. | |
50454 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50455 | else | |
50456 | ac_dir_suffix= ac_top_builddir= | |
50457 | fi | |
50458 | ||
50459 | case $srcdir in | |
50460 | .) # No --srcdir option. We are building in place. | |
50461 | ac_srcdir=. | |
50462 | if test -z "$ac_top_builddir"; then | |
50463 | ac_top_srcdir=. | |
50464 | else | |
50465 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50466 | fi ;; | |
50467 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50468 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50469 | ac_top_srcdir=$srcdir ;; | |
50470 | *) # Relative path. | |
50471 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50472 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50473 | esac | |
ac1cb8d3 VS |
50474 | |
50475 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50476 | # the directories may not exist. | |
50477 | case `pwd` in | |
50478 | .) ac_abs_builddir="$ac_dir";; | |
50479 | *) | |
50480 | case "$ac_dir" in | |
50481 | .) ac_abs_builddir=`pwd`;; | |
50482 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50483 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50484 | esac;; | |
50485 | esac | |
50486 | case $ac_abs_builddir in | |
50487 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50488 | *) | |
50489 | case ${ac_top_builddir}. in | |
50490 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50491 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50492 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50493 | esac;; | |
50494 | esac | |
50495 | case $ac_abs_builddir in | |
50496 | .) ac_abs_srcdir=$ac_srcdir;; | |
50497 | *) | |
50498 | case $ac_srcdir in | |
50499 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50500 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50501 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50502 | esac;; | |
50503 | esac | |
50504 | case $ac_abs_builddir in | |
50505 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50506 | *) | |
50507 | case $ac_top_srcdir in | |
50508 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50509 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50510 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50511 | esac;; | |
50512 | esac | |
a848cd7e SC |
50513 | |
50514 | ||
50515 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
50516 | echo "$as_me: executing $ac_dest commands" >&6;} | |
50517 | case $ac_dest in | |
5c60e845 MW |
50518 | rcdefs.h ) |
50519 | mkdir -p $outdir && | |
50520 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
50521 | ;; | |
ceec2216 RL |
50522 | wx-config ) rm -f wx-config |
50523 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
50524 | ;; | |
a848cd7e SC |
50525 | esac |
50526 | done | |
50527 | _ACEOF | |
50528 | ||
50529 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50530 | ||
50531 | { (exit 0); exit 0; } | |
50532 | _ACEOF | |
50533 | chmod +x $CONFIG_STATUS | |
50534 | ac_clean_files=$ac_clean_files_save | |
50535 | ||
50536 | ||
50537 | # configure is writing to config.log, and then calls config.status. | |
50538 | # config.status does its own redirection, appending to config.log. | |
50539 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
50540 | # by configure, so config.status won't be able to write to it; its | |
50541 | # output is simply discarded. So we exec the FD to /dev/null, | |
50542 | # effectively closing config.log, so it can be properly (re)opened and | |
50543 | # appended to by config.status. When coming back to configure, we | |
50544 | # need to make the FD available again. | |
50545 | if test "$no_create" != yes; then | |
50546 | ac_cs_success=: | |
50547 | ac_config_status_args= | |
50548 | test "$silent" = yes && | |
50549 | ac_config_status_args="$ac_config_status_args --quiet" | |
50550 | exec 5>/dev/null | |
50551 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
50552 | exec 5>>config.log | |
50553 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
50554 | # would make configure fail if this is the last instruction. | |
50555 | $ac_cs_success || { (exit 1); exit 1; } | |
50556 | fi | |
50557 | ||
50558 | # | |
50559 | # CONFIG_SUBDIRS section. | |
50560 | # | |
50561 | if test "$no_recursion" != yes; then | |
50562 | ||
50563 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
50564 | ac_sub_configure_args= | |
50565 | ac_prev= | |
50566 | for ac_arg in $ac_configure_args; do | |
50567 | if test -n "$ac_prev"; then | |
50568 | ac_prev= | |
50569 | continue | |
50570 | fi | |
50571 | case $ac_arg in | |
50572 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
50573 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
50574 | ac_prev=cache_file ;; | |
50575 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
50576 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
50577 | | --c=*) | |
50578 | ;; | |
50579 | --config-cache | -C) | |
50580 | ;; | |
50581 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
50582 | ac_prev=srcdir ;; | |
50583 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
50584 | ;; | |
50585 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
50586 | ac_prev=prefix ;; | |
50587 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
50588 | ;; | |
50589 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
50590 | esac | |
50591 | done | |
50592 | ||
50593 | # Always prepend --prefix to ensure using the same prefix | |
50594 | # in subdir configurations. | |
50595 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
50596 | ||
50597 | ac_popdir=`pwd` | |
50598 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
50599 | ||
50600 | # Do not complain, so a configure script can configure whichever | |
50601 | # parts of a large source tree are present. | |
50602 | test -d $srcdir/$ac_dir || continue | |
50603 | ||
50604 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
50605 | echo "$as_me: configuring in $ac_dir" >&6;} | |
50606 | { if $as_mkdir_p; then | |
50607 | mkdir -p "$ac_dir" | |
50608 | else | |
50609 | as_dir="$ac_dir" | |
50610 | as_dirs= | |
50611 | while test ! -d "$as_dir"; do | |
50612 | as_dirs="$as_dir $as_dirs" | |
50613 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50614 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50615 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50616 | X"$as_dir" : 'X\(//\)$' \| \ | |
50617 | X"$as_dir" : 'X\(/\)' \| \ | |
50618 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50619 | echo X"$as_dir" | |
50620 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50621 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50622 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50623 | /^X\(\/\).*/{ s//\1/; q; } | |
50624 | s/.*/./; q'` | |
50625 | done | |
50626 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50627 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50628 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50629 | { (exit 1); exit 1; }; }; } | |
50630 | ||
50631 | ac_builddir=. | |
50632 | ||
50633 | if test "$ac_dir" != .; then | |
50634 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50635 | # A "../" for each directory in $ac_dir_suffix. | |
50636 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50637 | else | |
50638 | ac_dir_suffix= ac_top_builddir= | |
50639 | fi | |
50640 | ||
50641 | case $srcdir in | |
50642 | .) # No --srcdir option. We are building in place. | |
50643 | ac_srcdir=. | |
50644 | if test -z "$ac_top_builddir"; then | |
50645 | ac_top_srcdir=. | |
50646 | else | |
50647 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50648 | fi ;; | |
50649 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50650 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50651 | ac_top_srcdir=$srcdir ;; | |
50652 | *) # Relative path. | |
50653 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50654 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50655 | esac | |
ac1cb8d3 VS |
50656 | |
50657 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50658 | # the directories may not exist. | |
50659 | case `pwd` in | |
50660 | .) ac_abs_builddir="$ac_dir";; | |
50661 | *) | |
50662 | case "$ac_dir" in | |
50663 | .) ac_abs_builddir=`pwd`;; | |
50664 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50665 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50666 | esac;; | |
50667 | esac | |
50668 | case $ac_abs_builddir in | |
50669 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50670 | *) | |
50671 | case ${ac_top_builddir}. in | |
50672 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50673 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50674 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50675 | esac;; | |
50676 | esac | |
50677 | case $ac_abs_builddir in | |
50678 | .) ac_abs_srcdir=$ac_srcdir;; | |
50679 | *) | |
50680 | case $ac_srcdir in | |
50681 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50682 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50683 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50684 | esac;; | |
50685 | esac | |
50686 | case $ac_abs_builddir in | |
50687 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50688 | *) | |
50689 | case $ac_top_srcdir in | |
50690 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50691 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50692 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50693 | esac;; | |
50694 | esac | |
a848cd7e SC |
50695 | |
50696 | ||
50697 | cd $ac_dir | |
50698 | ||
50699 | # Check for guested configure; otherwise get Cygnus style configure. | |
50700 | if test -f $ac_srcdir/configure.gnu; then | |
50701 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50702 | elif test -f $ac_srcdir/configure; then | |
50703 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50704 | elif test -f $ac_srcdir/configure.in; then | |
50705 | ac_sub_configure=$ac_configure | |
50706 | else | |
50707 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50708 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50709 | ac_sub_configure= | |
50710 | fi | |
50711 | ||
50712 | # The recursion is here. | |
50713 | if test -n "$ac_sub_configure"; then | |
50714 | # Make the cache file name correct relative to the subdirectory. | |
50715 | case $cache_file in | |
50716 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50717 | *) # Relative path. | |
ac1cb8d3 | 50718 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50719 | esac |
50720 | ||
50721 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50722 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50723 | # The eval makes quoting arguments work. | |
50724 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50725 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50726 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50727 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50728 | { (exit 1); exit 1; }; } | |
50729 | fi | |
50730 | ||
c9a66001 | 50731 | cd "$ac_popdir" |
a848cd7e SC |
50732 | done |
50733 | fi | |
50734 | ||
50735 | ||
50736 | echo | |
77ffb593 | 50737 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50738 | echo "" |
4d4ff94c | 50739 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 50740 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50741 | |
77ffb593 JS |
50742 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50743 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50744 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50745 | |
77ffb593 | 50746 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50747 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50748 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50749 | |
77ffb593 | 50750 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50751 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50752 | echo " png ${wxUSE_LIBPNG-none}" | |
50753 | echo " regex ${wxUSE_REGEX}" | |
50754 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50755 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50756 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50757 | fi | |
50758 | echo " zlib ${wxUSE_ZLIB}" | |
50759 | echo " odbc ${wxUSE_ODBC}" | |
50760 | echo " expat ${wxUSE_EXPAT}" | |
50761 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50762 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50763 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
2b850ae1 | 50764 | echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}" |
3565d135 | 50765 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50766 | |
50767 | echo "" | |
50768 |