]>
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. | |
7714864e | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3. |
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' | |
7714864e RL |
273 | PACKAGE_VERSION='2.5.3' |
274 | PACKAGE_STRING='wxWidgets 2.5.3' | |
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" | |
d1c38808 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP 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 RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_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 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 ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_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_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_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_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_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 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_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_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 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 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL 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 | |
7714864e | 797 | \`configure' configures wxWidgets 2.5.3 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 | |
7714864e | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.3:";; |
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 |
9f45f08e | 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 | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
907 | --enable-cmdline use wxCmdLineParser class | |
908 | --enable-datetime use wxDateTime class | |
909 | --enable-dialupman use dialup network classes | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-exceptions build exception-safe library | |
913 | --enable-ffile use wxFFile class | |
914 | --enable-file use wxFile class | |
915 | --enable-filesystem use virtual file systems classes | |
916 | --enable-fontmap use font encodings conversion classes | |
917 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
918 | --enable-fs_zip use virtual ZIP filesystems | |
919 | --enable-geometry use geometry class | |
920 | --enable-log use logging system | |
921 | --enable-longlong use wxLongLong class | |
922 | --enable-mimetype use wxMimeTypesManager | |
923 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
924 | --enable-snglinst use wxSingleInstanceChecker class | |
925 | --enable-streams use wxStream etc classes | |
926 | --enable-std_iostreams use standard C++ stream classes | |
927 | --enable-stopwatch use wxStopWatch class | |
928 | --enable-sysoptions use wxSystemOptions | |
929 | --enable-textbuf use wxTextBuffer class | |
930 | --enable-textfile use wxTextFile class | |
931 | --enable-timer use wxTimer class | |
932 | --enable-unicode compile wxString with Unicode support | |
933 | --enable-sound use wxSound class | |
77ffb593 | 934 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 935 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
936 | --enable-url use wxURL class |
937 | --enable-protocol use wxProtocol class | |
938 | --enable-protocol-http HTTP support in wxProtocol | |
939 | --enable-protocol-ftp FTP support in wxProtocol | |
940 | --enable-protocol-file FILE support in wxProtocol | |
941 | --enable-threads use threads | |
942 | --enable-docview use document view architecture | |
943 | --enable-help use help subsystem | |
944 | --enable-mshtmlhelp use MS HTML Help (win32) | |
945 | --enable-html use wxHTML sub-library | |
946 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 947 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
948 | --enable-constraints use layout-constraints system |
949 | --enable-printarch use printing architecture | |
950 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 951 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
952 | --enable-loggui use standard GUI logger |
953 | --enable-logwin use wxLogWindow | |
954 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 955 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
956 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
957 | --enable-prologio not available; see contrib | |
958 | --enable-resources not available; see contrib | |
959 | --enable-clipboard use wxClipboard class | |
960 | --enable-dnd use Drag'n'Drop classes | |
961 | --enable-metafile use win32 metafiles | |
962 | --enable-controls use all usual controls | |
963 | --enable-accel use accelerators | |
964 | --enable-button use wxButton class | |
965 | --enable-bmpbutton use wxBitmapButton class | |
966 | --enable-calendar use wxCalendarCtrl class | |
967 | --enable-caret use wxCaret class | |
968 | --enable-checkbox use wxCheckBox class | |
969 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
970 | --enable-choice use wxChoice class | |
92bbdbcd | 971 | --enable-choicebook use wxChoicebook class |
a848cd7e SC |
972 | --enable-combobox use wxComboBox class |
973 | --enable-display use wxDisplay class | |
974 | --enable-gauge use wxGauge class | |
975 | --enable-grid use wxGrid class | |
976 | --enable-imaglist use wxImageList class | |
977 | --enable-listbook use wxListbook class | |
978 | --enable-listbox use wxListBox class | |
979 | --enable-listctrl use wxListCtrl class | |
980 | --enable-notebook use wxNotebook class | |
981 | --enable-radiobox use wxRadioBox class | |
982 | --enable-radiobtn use wxRadioButton class | |
983 | --enable-sash use wxSashWindow class | |
984 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
985 | --enable-slider use wxSlider class | |
986 | --enable-spinbtn use wxSpinButton class | |
987 | --enable-spinctrl use wxSpinCtrl class | |
988 | --enable-splitter use wxSplitterWindow class | |
989 | --enable-statbmp use wxStaticBitmap class | |
990 | --enable-statbox use wxStaticBox class | |
991 | --enable-statline use wxStaticLine class | |
992 | --enable-stattext use wxStaticText class | |
993 | --enable-statusbar use wxStatusBar class | |
994 | --enable-tabdialog use wxTabControl class | |
995 | --enable-textctrl use wxTextCtrl class | |
996 | --enable-togglebtn use wxToggleButton class | |
997 | --enable-toolbar use wxToolBar class | |
998 | --enable-tbarnative use native wxToolBar class | |
999 | --enable-tbarsmpl use wxToolBarSimple class | |
1000 | --enable-treectrl use wxTreeCtrl class | |
1001 | --enable-tipwindow use wxTipWindow class | |
1002 | --enable-popupwin use wxPopUpWindow class | |
1003 | --enable-commondlg use all common dialogs | |
1004 | --enable-choicedlg use wxChoiceDialog | |
1005 | --enable-coldlg use wxColourDialog | |
1006 | --enable-filedlg use wxFileDialog | |
1007 | --enable-finddlg use wxFindReplaceDialog | |
1008 | --enable-fontdlg use wxFontDialog | |
1009 | --enable-dirdlg use wxDirDialog | |
1010 | --enable-msgdlg use wxMessageDialog | |
1011 | --enable-numberdlg use wxNumberEntryDialog | |
1012 | --enable-splash use wxSplashScreen | |
1013 | --enable-textdlg use wxTextDialog | |
1014 | --enable-tipdlg use startup tips | |
1015 | --enable-progressdlg use wxProgressDialog | |
1016 | --enable-wizarddlg use wxWizard | |
1017 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1018 | --enable-miniframe use wxMiniFrame class | |
1019 | --enable-tooltips use wxToolTip class | |
1020 | --enable-splines use spline drawing code | |
1021 | --enable-validators use wxValidator and derived classes | |
1022 | --enable-busyinfo use wxBusyInfo | |
1023 | --enable-joystick use wxJoystick (Linux only) | |
1024 | --enable-metafiles use wxMetaFile (Windows only) | |
1025 | --enable-dragimage use wxDragImage | |
1026 | --enable-accessibility enable accessibility support | |
1027 | --enable-palette use wxPalette class | |
1028 | --enable-image use wxImage class | |
1029 | --enable-gif use gif images (GIF file format) | |
1030 | --enable-pcx use pcx images (PCX file format) | |
1031 | --enable-iff use iff images (IFF file format) | |
1032 | --enable-pnm use pnm images (PNM file format) | |
1033 | --enable-xpm use xpm images (XPM file format) | |
1034 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1035 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1036 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1037 | --disable-largefile omit support for large files | |
1038 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1039 | --disable-gtktest Do not try to compile and run a test GTK program | |
1040 | --disable-sdltest Do not try to compile and run a test SDL program | |
1041 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1042 | --disable-precomp-headers |
1043 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1044 | |
1045 | Optional Packages: | |
1046 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1047 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1048 | --with-gtk use GTK+ | |
1049 | --with-motif use Motif/Lesstif | |
1050 | --with-mac use Mac OS X | |
1051 | --with-cocoa use Cocoa | |
1052 | --with-wine use Wine | |
1053 | --with-msw use MS-Windows | |
1054 | --with-pm use OS/2 Presentation Manager | |
1055 | --with-mgl use SciTech MGL | |
1056 | --with-microwin use MicroWindows | |
1057 | --with-x11 use X11 | |
1058 | --with-libpng use libpng (PNG image format) | |
1059 | --with-libjpeg use libjpeg (JPEG file format) | |
1060 | --with-libtiff use libtiff (TIFF file format) | |
1061 | --with-libxpm use libxpm (XPM file format) | |
1062 | --with-libmspack use libmspack (CHM help files loading) | |
1063 | --with-sdl use SDL for audio on Unix | |
d1c38808 | 1064 | --with-gnomeprint use GNOME print for audio printing under Unix |
a848cd7e SC |
1065 | --with-opengl use OpenGL (or Mesa) |
1066 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1067 | --with-regex enable support for wxRegEx class | |
1068 | --with-zlib use zlib for LZW compression | |
1069 | --with-odbc use the IODBC and wxODBC classes | |
1070 | --with-expat enable XML support using expat parser | |
ceec2216 | 1071 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1072 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1073 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1074 | --with-x use the X Window System | |
1075 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1076 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1077 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1078 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1079 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1080 | ||
1081 | Some influential environment variables: | |
dcc1b6ad VS |
1082 | CC C compiler command |
1083 | CFLAGS C compiler flags | |
1084 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1085 | nonstandard directory <lib dir> | |
1086 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1087 | headers in a nonstandard directory <include dir> | |
1088 | CPP C preprocessor | |
1089 | CXX C++ compiler command | |
1090 | CXXFLAGS C++ compiler flags | |
1091 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1092 | |
1093 | Use these variables to override the choices made by `configure' or to help | |
1094 | it to find libraries and programs with nonstandard names/locations. | |
1095 | ||
77ffb593 | 1096 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1097 | _ACEOF |
1098 | fi | |
1099 | ||
1100 | if test "$ac_init_help" = "recursive"; then | |
1101 | # If there are subdirs, report their specific --help. | |
1102 | ac_popdir=`pwd` | |
1103 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1104 | test -d $ac_dir || continue | |
1105 | ac_builddir=. | |
1106 | ||
1107 | if test "$ac_dir" != .; then | |
1108 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1109 | # A "../" for each directory in $ac_dir_suffix. | |
1110 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1111 | else | |
1112 | ac_dir_suffix= ac_top_builddir= | |
1113 | fi | |
1114 | ||
1115 | case $srcdir in | |
1116 | .) # No --srcdir option. We are building in place. | |
1117 | ac_srcdir=. | |
1118 | if test -z "$ac_top_builddir"; then | |
1119 | ac_top_srcdir=. | |
1120 | else | |
1121 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1122 | fi ;; | |
1123 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1124 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1125 | ac_top_srcdir=$srcdir ;; | |
1126 | *) # Relative path. | |
1127 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1128 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1129 | esac | |
ac1cb8d3 VS |
1130 | |
1131 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1132 | # the directories may not exist. | |
1133 | case `pwd` in | |
1134 | .) ac_abs_builddir="$ac_dir";; | |
1135 | *) | |
1136 | case "$ac_dir" in | |
1137 | .) ac_abs_builddir=`pwd`;; | |
1138 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1139 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1140 | esac;; | |
1141 | esac | |
1142 | case $ac_abs_builddir in | |
1143 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1144 | *) | |
1145 | case ${ac_top_builddir}. in | |
1146 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1147 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1148 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1149 | esac;; | |
1150 | esac | |
1151 | case $ac_abs_builddir in | |
1152 | .) ac_abs_srcdir=$ac_srcdir;; | |
1153 | *) | |
1154 | case $ac_srcdir in | |
1155 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1156 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1157 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1158 | esac;; | |
1159 | esac | |
1160 | case $ac_abs_builddir in | |
1161 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1162 | *) | |
1163 | case $ac_top_srcdir in | |
1164 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1165 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1166 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1167 | esac;; | |
1168 | esac | |
a848cd7e SC |
1169 | |
1170 | cd $ac_dir | |
1171 | # Check for guested configure; otherwise get Cygnus style configure. | |
1172 | if test -f $ac_srcdir/configure.gnu; then | |
1173 | echo | |
1174 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1175 | elif test -f $ac_srcdir/configure; then | |
1176 | echo | |
1177 | $SHELL $ac_srcdir/configure --help=recursive | |
1178 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1179 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1180 | echo |
1181 | $ac_configure --help | |
1182 | else | |
1183 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1184 | fi | |
2cbbc68d | 1185 | cd $ac_popdir |
a848cd7e SC |
1186 | done |
1187 | fi | |
1188 | ||
1189 | test -n "$ac_init_help" && exit 0 | |
1190 | if $ac_init_version; then | |
1191 | cat <<\_ACEOF | |
7714864e | 1192 | wxWidgets configure 2.5.3 |
ac1cb8d3 | 1193 | generated by GNU Autoconf 2.59 |
a848cd7e | 1194 | |
ac1cb8d3 | 1195 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1196 | This configure script is free software; the Free Software Foundation |
1197 | gives unlimited permission to copy, distribute and modify it. | |
1198 | _ACEOF | |
1199 | exit 0 | |
1200 | fi | |
1201 | exec 5>config.log | |
1202 | cat >&5 <<_ACEOF | |
1203 | This file contains any messages produced by compilers while | |
1204 | running configure, to aid debugging if configure makes a mistake. | |
1205 | ||
7714864e | 1206 | It was created by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 1207 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1208 | |
1209 | $ $0 $@ | |
1210 | ||
1211 | _ACEOF | |
1212 | { | |
1213 | cat <<_ASUNAME | |
1214 | ## --------- ## | |
1215 | ## Platform. ## | |
1216 | ## --------- ## | |
1217 | ||
1218 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1219 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1220 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1221 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1222 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1223 | ||
1224 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1225 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1226 | ||
1227 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1228 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1229 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1230 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1231 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1232 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1233 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1234 | ||
1235 | _ASUNAME | |
1236 | ||
1237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1238 | for as_dir in $PATH | |
1239 | do | |
1240 | IFS=$as_save_IFS | |
1241 | test -z "$as_dir" && as_dir=. | |
1242 | echo "PATH: $as_dir" | |
1243 | done | |
1244 | ||
1245 | } >&5 | |
1246 | ||
1247 | cat >&5 <<_ACEOF | |
1248 | ||
1249 | ||
1250 | ## ----------- ## | |
1251 | ## Core tests. ## | |
1252 | ## ----------- ## | |
1253 | ||
1254 | _ACEOF | |
1255 | ||
1256 | ||
1257 | # Keep a trace of the command line. | |
1258 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1259 | # Strip out --silent because we don't want to record it for future runs. | |
1260 | # Also quote any args containing shell meta-characters. | |
1261 | # Make two passes to allow for proper duplicate-argument suppression. | |
1262 | ac_configure_args= | |
1263 | ac_configure_args0= | |
1264 | ac_configure_args1= | |
1265 | ac_sep= | |
1266 | ac_must_keep_next=false | |
1267 | for ac_pass in 1 2 | |
1268 | do | |
1269 | for ac_arg | |
1270 | do | |
1271 | case $ac_arg in | |
1272 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1273 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1274 | | -silent | --silent | --silen | --sile | --sil) | |
1275 | continue ;; | |
1276 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1277 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1278 | esac | |
1279 | case $ac_pass in | |
1280 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1281 | 2) | |
1282 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1283 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1284 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1285 | else |
ac1cb8d3 VS |
1286 | case $ac_arg in |
1287 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1288 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1289 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1290 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1291 | case "$ac_configure_args0 " in | |
1292 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1293 | esac | |
1294 | ;; | |
1295 | -* ) ac_must_keep_next=true ;; | |
1296 | esac | |
a848cd7e SC |
1297 | fi |
1298 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1299 | # Get rid of the leading space. | |
1300 | ac_sep=" " | |
1301 | ;; | |
1302 | esac | |
1303 | done | |
1304 | done | |
1305 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1306 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1307 | ||
1308 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1309 | # config.log. We remove comments because anyway the quotes in there | |
1310 | # would cause problems or look ugly. | |
1311 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1312 | # such as our DU 5.0 friend, will then `close' the trap. | |
1313 | trap 'exit_status=$? | |
1314 | # Save into config.log some information that might help in debugging. | |
1315 | { | |
1316 | echo | |
1317 | ||
1318 | cat <<\_ASBOX | |
1319 | ## ---------------- ## | |
1320 | ## Cache variables. ## | |
1321 | ## ---------------- ## | |
1322 | _ASBOX | |
1323 | echo | |
1324 | # The following way of writing the cache mishandles newlines in values, | |
1325 | { | |
1326 | (set) 2>&1 | | |
1327 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1328 | *ac_space=\ *) | |
1329 | sed -n \ | |
ac1cb8d3 VS |
1330 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1331 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1332 | ;; |
1333 | *) | |
1334 | sed -n \ | |
ac1cb8d3 | 1335 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1336 | ;; |
1337 | esac; | |
1338 | } | |
1339 | echo | |
1340 | ||
1341 | cat <<\_ASBOX | |
1342 | ## ----------------- ## | |
1343 | ## Output variables. ## | |
1344 | ## ----------------- ## | |
1345 | _ASBOX | |
1346 | echo | |
1347 | for ac_var in $ac_subst_vars | |
1348 | do | |
1349 | eval ac_val=$`echo $ac_var` | |
1350 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1351 | done | sort | |
1352 | echo | |
1353 | ||
1354 | if test -n "$ac_subst_files"; then | |
1355 | cat <<\_ASBOX | |
1356 | ## ------------- ## | |
1357 | ## Output files. ## | |
1358 | ## ------------- ## | |
1359 | _ASBOX | |
1360 | echo | |
1361 | for ac_var in $ac_subst_files | |
1362 | do | |
1363 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1364 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1365 | done | sort |
1366 | echo | |
1367 | fi | |
1368 | ||
1369 | if test -s confdefs.h; then | |
1370 | cat <<\_ASBOX | |
1371 | ## ----------- ## | |
1372 | ## confdefs.h. ## | |
1373 | ## ----------- ## | |
1374 | _ASBOX | |
1375 | echo | |
1376 | sed "/^$/d" confdefs.h | sort | |
1377 | echo | |
1378 | fi | |
1379 | test "$ac_signal" != 0 && | |
1380 | echo "$as_me: caught signal $ac_signal" | |
1381 | echo "$as_me: exit $exit_status" | |
1382 | } >&5 | |
ac1cb8d3 | 1383 | rm -f core *.core && |
a848cd7e SC |
1384 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1385 | exit $exit_status | |
1386 | ' 0 | |
1387 | for ac_signal in 1 2 13 15; do | |
1388 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1389 | done | |
1390 | ac_signal=0 | |
1391 | ||
1392 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1393 | rm -rf conftest* confdefs.h | |
1394 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1395 | echo >confdefs.h | |
1396 | ||
1397 | # Predefined preprocessor variables. | |
1398 | ||
1399 | cat >>confdefs.h <<_ACEOF | |
1400 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1401 | _ACEOF | |
1402 | ||
1403 | ||
1404 | cat >>confdefs.h <<_ACEOF | |
1405 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1406 | _ACEOF | |
1407 | ||
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | cat >>confdefs.h <<_ACEOF | |
1415 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1416 | _ACEOF | |
1417 | ||
1418 | ||
1419 | cat >>confdefs.h <<_ACEOF | |
1420 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1421 | _ACEOF | |
1422 | ||
1423 | ||
1424 | # Let the site file select an alternate cache file if it wants to. | |
1425 | # Prefer explicitly selected file to automatically selected ones. | |
1426 | if test -z "$CONFIG_SITE"; then | |
1427 | if test "x$prefix" != xNONE; then | |
1428 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1429 | else | |
1430 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1431 | fi | |
1432 | fi | |
1433 | for ac_site_file in $CONFIG_SITE; do | |
1434 | if test -r "$ac_site_file"; then | |
1435 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1436 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1437 | sed 's/^/| /' "$ac_site_file" >&5 | |
1438 | . "$ac_site_file" | |
1439 | fi | |
1440 | done | |
1441 | ||
1442 | if test -r "$cache_file"; then | |
1443 | # Some versions of bash will fail to source /dev/null (special | |
1444 | # files actually), so we avoid doing that. | |
1445 | if test -f "$cache_file"; then | |
1446 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1447 | echo "$as_me: loading cache $cache_file" >&6;} | |
1448 | case $cache_file in | |
1449 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1450 | *) . ./$cache_file;; | |
1451 | esac | |
1452 | fi | |
1453 | else | |
1454 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1455 | echo "$as_me: creating cache $cache_file" >&6;} | |
1456 | >$cache_file | |
1457 | fi | |
1458 | ||
1459 | # Check that the precious variables saved in the cache have kept the same | |
1460 | # value. | |
1461 | ac_cache_corrupted=false | |
1462 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1463 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1464 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1465 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1466 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1467 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1468 | case $ac_old_set,$ac_new_set in | |
1469 | set,) | |
1470 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1471 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1472 | ac_cache_corrupted=: ;; | |
1473 | ,set) | |
1474 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1475 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1476 | ac_cache_corrupted=: ;; | |
1477 | ,);; | |
1478 | *) | |
1479 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1480 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1481 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1482 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1483 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1484 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1485 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1486 | ac_cache_corrupted=: |
a848cd7e SC |
1487 | fi;; |
1488 | esac | |
1489 | # Pass precious variables to config.status. | |
1490 | if test "$ac_new_set" = set; then | |
1491 | case $ac_new_val in | |
1492 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1493 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1494 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1495 | esac | |
1496 | case " $ac_configure_args " in | |
1497 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1498 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1499 | esac | |
1500 | fi | |
1501 | done | |
1502 | if $ac_cache_corrupted; then | |
1503 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1504 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1505 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1506 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1507 | { (exit 1); exit 1; }; } | |
1508 | fi | |
1509 | ||
1510 | ac_ext=c | |
1511 | ac_cpp='$CPP $CPPFLAGS' | |
1512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ac_aux_dir= | |
1546 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1547 | if test -f $ac_dir/install-sh; then | |
1548 | ac_aux_dir=$ac_dir | |
1549 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1550 | break | |
1551 | elif test -f $ac_dir/install.sh; then | |
1552 | ac_aux_dir=$ac_dir | |
1553 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1554 | break | |
1555 | elif test -f $ac_dir/shtool; then | |
1556 | ac_aux_dir=$ac_dir | |
1557 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1558 | break | |
1559 | fi | |
1560 | done | |
1561 | if test -z "$ac_aux_dir"; then | |
1562 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1563 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1564 | { (exit 1); exit 1; }; } | |
1565 | fi | |
1566 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1567 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1568 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1569 | ||
1570 | # Make sure we can run config.sub. | |
1571 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1572 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1573 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1574 | { (exit 1); exit 1; }; } | |
1575 | ||
1576 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1577 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1578 | if test "${ac_cv_build+set}" = set; then | |
1579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1580 | else | |
1581 | ac_cv_build_alias=$build_alias | |
1582 | test -z "$ac_cv_build_alias" && | |
1583 | ac_cv_build_alias=`$ac_config_guess` | |
1584 | test -z "$ac_cv_build_alias" && | |
1585 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1586 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1587 | { (exit 1); exit 1; }; } | |
1588 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1589 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1590 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ||
1593 | fi | |
1594 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1595 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1596 | build=$ac_cv_build | |
1597 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1598 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1599 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1600 | ||
1601 | ||
1602 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1603 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1604 | if test "${ac_cv_host+set}" = set; then | |
1605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1606 | else | |
1607 | ac_cv_host_alias=$host_alias | |
1608 | test -z "$ac_cv_host_alias" && | |
1609 | ac_cv_host_alias=$ac_cv_build_alias | |
1610 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1611 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1612 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1613 | { (exit 1); exit 1; }; } | |
1614 | ||
1615 | fi | |
1616 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1617 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1618 | host=$ac_cv_host | |
1619 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1620 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1621 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1622 | ||
1623 | ||
1624 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1625 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1626 | if test "${ac_cv_target+set}" = set; then | |
1627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1628 | else | |
1629 | ac_cv_target_alias=$target_alias | |
1630 | test "x$ac_cv_target_alias" = "x" && | |
1631 | ac_cv_target_alias=$ac_cv_host_alias | |
1632 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1633 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1634 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1635 | { (exit 1); exit 1; }; } | |
1636 | ||
1637 | fi | |
1638 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1639 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1640 | target=$ac_cv_target | |
1641 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1642 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1643 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1644 | ||
1645 | ||
1646 | # The aliases save the names the user supplied, while $host etc. | |
1647 | # will get canonicalized. | |
1648 | test -n "$target_alias" && | |
1649 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1650 | NONENONEs,x,x, && | |
1651 | program_prefix=${target_alias}- | |
1652 | ||
1653 | ||
1654 | ||
ceec2216 RL |
1655 | wx_major_version_number=2 |
1656 | wx_minor_version_number=5 | |
7714864e | 1657 | wx_release_number=3 |
2cbbc68d | 1658 | wx_subrelease_number=2 |
a848cd7e | 1659 | |
ceec2216 RL |
1660 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1661 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1662 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1663 | |
ceec2216 | 1664 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1665 | |
78a9e10d | 1666 | WX_CURRENT=4 |
a848cd7e | 1667 | WX_REVISION=0 |
78a9e10d | 1668 | WX_AGE=1 |
a848cd7e SC |
1669 | |
1670 | ||
1671 | ||
1672 | USE_UNIX=1 | |
1673 | USE_OS2=0 | |
1674 | USE_WIN32=0 | |
1675 | USE_DOS=0 | |
1676 | USE_BEOS=0 | |
1677 | USE_MAC=0 | |
1678 | ||
1679 | USE_AIX= | |
1680 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1681 | USE_GNU= USE_HPUX= | |
1682 | USE_LINUX= | |
1683 | USE_NETBSD= | |
1684 | USE_OPENBSD= | |
1685 | USE_OSF= USE_SGI= | |
1686 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1687 | USE_ULTRIX= | |
1688 | USE_UNIXWARE= | |
1689 | ||
1690 | USE_ALPHA= | |
1691 | ||
1692 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1693 | ||
1694 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1695 | ||
1696 | DEFAULT_wxUSE_COCOA=0 | |
1697 | DEFAULT_wxUSE_GTK=0 | |
1698 | DEFAULT_wxUSE_MAC=0 | |
1699 | DEFAULT_wxUSE_MGL=0 | |
1700 | DEFAULT_wxUSE_MICROWIN=0 | |
1701 | DEFAULT_wxUSE_MOTIF=0 | |
1702 | DEFAULT_wxUSE_MSW=0 | |
1703 | DEFAULT_wxUSE_PM=0 | |
1704 | DEFAULT_wxUSE_X11=0 | |
1705 | ||
1706 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1715 | ||
1716 | PROGRAM_EXT= | |
1717 | SO_SUFFIX=so | |
1718 | SAMPLES_RPATH_FLAG= | |
1719 | SAMPLES_RPATH_POSTLINK= | |
1720 | ||
1721 | case "${host}" in | |
1722 | *-hp-hpux* ) | |
1723 | USE_HPUX=1 | |
1724 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1725 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1726 | SO_SUFFIX=sl | |
1727 | cat >>confdefs.h <<\_ACEOF | |
1728 | #define __HPUX__ 1 | |
1729 | _ACEOF | |
1730 | ||
1731 | ;; | |
1732 | *-*-linux* ) | |
1733 | USE_LINUX=1 | |
1734 | cat >>confdefs.h <<\_ACEOF | |
1735 | #define __LINUX__ 1 | |
1736 | _ACEOF | |
1737 | ||
1738 | TMP=`uname -m` | |
1739 | if test "x$TMP" = "xalpha"; then | |
1740 | USE_ALPHA=1 | |
1741 | cat >>confdefs.h <<\_ACEOF | |
1742 | #define __ALPHA__ 1 | |
1743 | _ACEOF | |
1744 | ||
1745 | fi | |
1746 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1747 | ;; | |
1748 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1749 | USE_GNU=1 | |
1750 | TMP=`uname -m` | |
1751 | if test "x$TMP" = "xalpha"; then | |
1752 | USE_ALPHA=1 | |
1753 | cat >>confdefs.h <<\_ACEOF | |
1754 | #define __ALPHA__ 1 | |
1755 | _ACEOF | |
1756 | ||
1757 | fi | |
1758 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1759 | ;; | |
1760 | *-*-irix5* | *-*-irix6* ) | |
1761 | USE_SGI=1 | |
1762 | USE_SVR4=1 | |
1763 | cat >>confdefs.h <<\_ACEOF | |
1764 | #define __SGI__ 1 | |
1765 | _ACEOF | |
1766 | ||
1767 | cat >>confdefs.h <<\_ACEOF | |
1768 | #define __SVR4__ 1 | |
1769 | _ACEOF | |
1770 | ||
1771 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1772 | ;; | |
1773 | *-*-solaris2* ) | |
1774 | USE_SUN=1 | |
1775 | USE_SOLARIS=1 | |
1776 | USE_SVR4=1 | |
1777 | cat >>confdefs.h <<\_ACEOF | |
1778 | #define __SUN__ 1 | |
1779 | _ACEOF | |
1780 | ||
1781 | cat >>confdefs.h <<\_ACEOF | |
1782 | #define __SOLARIS__ 1 | |
1783 | _ACEOF | |
1784 | ||
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SVR4__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1790 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1791 | ;; | |
1792 | *-*-sunos4* ) | |
1793 | USE_SUN=1 | |
1794 | USE_SUNOS=1 | |
1795 | USE_BSD=1 | |
1796 | cat >>confdefs.h <<\_ACEOF | |
1797 | #define __SUN__ 1 | |
1798 | _ACEOF | |
1799 | ||
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __SUNOS__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __BSD__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1809 | ;; | |
1810 | *-*-freebsd*) | |
1811 | USE_BSD=1 | |
1812 | USE_FREEBSD=1 | |
1813 | cat >>confdefs.h <<\_ACEOF | |
1814 | #define __FREEBSD__ 1 | |
1815 | _ACEOF | |
1816 | ||
1817 | cat >>confdefs.h <<\_ACEOF | |
1818 | #define __BSD__ 1 | |
1819 | _ACEOF | |
1820 | ||
1821 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1822 | ;; | |
1823 | *-*-openbsd*) | |
1824 | USE_BSD=1 | |
1825 | USE_OPENBSD=1 | |
1826 | cat >>confdefs.h <<\_ACEOF | |
1827 | #define __OPENBSD__ 1 | |
1828 | _ACEOF | |
1829 | ||
1830 | cat >>confdefs.h <<\_ACEOF | |
1831 | #define __BSD__ 1 | |
1832 | _ACEOF | |
1833 | ||
1834 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1835 | ;; | |
1836 | *-*-netbsd*) | |
1837 | USE_BSD=1 | |
1838 | USE_NETBSD=1 | |
1839 | cat >>confdefs.h <<\_ACEOF | |
1840 | #define __NETBSD__ 1 | |
1841 | _ACEOF | |
1842 | ||
1843 | cat >>confdefs.h <<\_ACEOF | |
1844 | #define __BSD__ 1 | |
1845 | _ACEOF | |
1846 | ||
1847 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1848 | ;; | |
1849 | *-*-osf* ) | |
1850 | USE_ALPHA=1 | |
1851 | USE_OSF=1 | |
1852 | cat >>confdefs.h <<\_ACEOF | |
1853 | #define __ALPHA__ 1 | |
1854 | _ACEOF | |
1855 | ||
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __OSF__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1861 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1862 | ;; | |
1863 | *-*-dgux5* ) | |
1864 | USE_ALPHA=1 | |
1865 | USE_SVR4=1 | |
1866 | cat >>confdefs.h <<\_ACEOF | |
1867 | #define __ALPHA__ 1 | |
1868 | _ACEOF | |
1869 | ||
1870 | cat >>confdefs.h <<\_ACEOF | |
1871 | #define __SVR4__ 1 | |
1872 | _ACEOF | |
1873 | ||
1874 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1875 | ;; | |
1876 | *-*-sysv5* ) | |
1877 | USE_SYSV=1 | |
1878 | USE_SVR4=1 | |
1879 | cat >>confdefs.h <<\_ACEOF | |
1880 | #define __SYSV__ 1 | |
1881 | _ACEOF | |
1882 | ||
1883 | cat >>confdefs.h <<\_ACEOF | |
1884 | #define __SVR4__ 1 | |
1885 | _ACEOF | |
1886 | ||
1887 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1888 | ;; | |
1889 | *-*-aix* ) | |
1890 | USE_AIX=1 | |
1891 | USE_SYSV=1 | |
1892 | USE_SVR4=1 | |
1893 | SO_SUFFIX=a | |
1894 | cat >>confdefs.h <<\_ACEOF | |
1895 | #define __AIX__ 1 | |
1896 | _ACEOF | |
1897 | ||
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __SYSV__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __SVR4__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1907 | ;; | |
1908 | ||
1909 | *-*-*UnixWare*) | |
1910 | USE_SYSV=1 | |
1911 | USE_SVR4=1 | |
1912 | USE_UNIXWARE=1 | |
1913 | cat >>confdefs.h <<\_ACEOF | |
1914 | #define __UNIXWARE__ 1 | |
1915 | _ACEOF | |
1916 | ||
1917 | ;; | |
1918 | ||
1919 | *-*-cygwin* | *-*-mingw32* ) | |
1920 | SO_SUFFIX=dll | |
1921 | PROGRAM_EXT=".exe" | |
1922 | RESCOMP=windres | |
1923 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1924 | ;; | |
1925 | ||
1926 | *-pc-msdosdjgpp ) | |
1927 | USE_UNIX=0 | |
1928 | USE_DOS=1 | |
1929 | cat >>confdefs.h <<\_ACEOF | |
1930 | #define __DOS__ 1 | |
1931 | _ACEOF | |
1932 | ||
1933 | PROGRAM_EXT=".exe" | |
1934 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1935 | LIBS="$LIBS -lstdc++" | |
1936 | ;; | |
1937 | ||
1938 | *-pc-os2_emx | *-pc-os2-emx ) | |
1939 | cat >>confdefs.h <<\_ACEOF | |
1940 | #define __EMX__ 1 | |
1941 | _ACEOF | |
1942 | ||
1943 | USE_OS2=1 | |
1944 | cat >>confdefs.h <<\_ACEOF | |
1945 | #define __OS2__ 1 | |
1946 | _ACEOF | |
1947 | ||
1948 | PROGRAM_EXT=".exe" | |
1949 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1950 | CXX=gcc | |
1951 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1952 | ac_executable_extensions=".exe" | |
1953 | export ac_executable_extensions | |
1954 | ac_save_IFS="$IFS" | |
1955 | IFS='\\' | |
1956 | ac_TEMP_PATH= | |
1957 | for ac_dir in $PATH; do | |
1958 | IFS=$ac_save_IFS | |
1959 | if test -z "$ac_TEMP_PATH"; then | |
1960 | ac_TEMP_PATH="$ac_dir" | |
1961 | else | |
1962 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1963 | fi | |
1964 | done | |
1965 | export PATH="$ac_TEMP_PATH" | |
1966 | unset ac_TEMP_PATH | |
1967 | ;; | |
1968 | ||
1969 | powerpc-*-darwin* ) | |
1970 | USE_BSD=1 | |
1971 | USE_DARWIN=1 | |
1972 | SO_SUFFIX=dylib | |
1973 | cat >>confdefs.h <<\_ACEOF | |
1974 | #define __BSD__ 1 | |
1975 | _ACEOF | |
1976 | ||
1977 | cat >>confdefs.h <<\_ACEOF | |
1978 | #define __DARWIN__ 1 | |
1979 | _ACEOF | |
1980 | ||
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __POWERPC__ 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define TARGET_CARBON 1 | |
1987 | _ACEOF | |
1988 | ||
1989 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1990 | ;; | |
1991 | ||
1992 | *-*-beos* ) | |
1993 | USE_BEOS=1 | |
1994 | cat >>confdefs.h <<\_ACEOF | |
1995 | #define __BEOS__ 1 | |
1996 | _ACEOF | |
1997 | ||
1998 | ;; | |
1999 | ||
2000 | *) | |
2001 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2002 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2003 | { (exit 1); exit 1; }; } | |
2004 | esac | |
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | wx_arg_cache_file="configarg.cache" | |
2010 | echo "loading argument cache $wx_arg_cache_file" | |
2011 | rm -f ${wx_arg_cache_file}.tmp | |
2012 | touch ${wx_arg_cache_file}.tmp | |
2013 | touch ${wx_arg_cache_file} | |
2014 | ||
2015 | ||
2016 | DEBUG_CONFIGURE=0 | |
2017 | if test $DEBUG_CONFIGURE = 1; then | |
2018 | DEFAULT_wxUSE_UNIVERSAL=no | |
2019 | DEFAULT_wxUSE_STL=no | |
2020 | ||
2021 | DEFAULT_wxUSE_NANOX=no | |
2022 | ||
2023 | DEFAULT_wxUSE_THREADS=yes | |
2024 | ||
2025 | DEFAULT_wxUSE_SHARED=yes | |
2026 | DEFAULT_wxUSE_OPTIMISE=no | |
2027 | DEFAULT_wxUSE_PROFILE=no | |
2028 | DEFAULT_wxUSE_NO_DEPS=no | |
2029 | DEFAULT_wxUSE_NO_RTTI=no | |
2030 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2031 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2032 | DEFAULT_wxUSE_PERMISSIVE=no |
2033 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2034 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2035 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2036 | DEFAULT_wxUSE_MEM_TRACING=no | |
2037 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2038 | DEFAULT_wxUSE_DMALLOC=no | |
2039 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2040 | ||
2041 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2042 | DEFAULT_wxUSE_LOG=yes | |
2043 | DEFAULT_wxUSE_LOGWINDOW=no | |
2044 | DEFAULT_wxUSE_LOGGUI=no | |
2045 | DEFAULT_wxUSE_LOGDIALOG=no | |
2046 | ||
2047 | DEFAULT_wxUSE_GUI=yes | |
2048 | DEFAULT_wxUSE_CONTROLS=no | |
2049 | ||
2050 | DEFAULT_wxUSE_REGEX=no | |
2051 | DEFAULT_wxUSE_XML=no | |
2052 | DEFAULT_wxUSE_EXPAT=no | |
2053 | DEFAULT_wxUSE_ZLIB=no | |
2054 | DEFAULT_wxUSE_LIBPNG=no | |
2055 | DEFAULT_wxUSE_LIBJPEG=no | |
2056 | DEFAULT_wxUSE_LIBTIFF=no | |
2057 | DEFAULT_wxUSE_LIBXPM=no | |
2058 | DEFAULT_wxUSE_LIBMSPACK=no | |
2059 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2060 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2061 | DEFAULT_wxUSE_ODBC=no |
2062 | DEFAULT_wxUSE_OPENGL=no | |
2063 | ||
2064 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2065 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2066 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2067 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2068 | DEFAULT_wxUSE_DATETIME=no | |
2069 | DEFAULT_wxUSE_TIMER=no | |
2070 | DEFAULT_wxUSE_STOPWATCH=no | |
2071 | DEFAULT_wxUSE_FILE=no | |
2072 | DEFAULT_wxUSE_FFILE=no | |
2073 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2074 | DEFAULT_wxUSE_TEXTFILE=no | |
2075 | DEFAULT_wxUSE_SOUND=no | |
2076 | DEFAULT_wxUSE_INTL=no | |
2077 | DEFAULT_wxUSE_CONFIG=no | |
2078 | DEFAULT_wxUSE_FONTMAP=no | |
2079 | DEFAULT_wxUSE_STREAMS=no | |
2080 | DEFAULT_wxUSE_SOCKETS=no | |
2081 | DEFAULT_wxUSE_OLE=no | |
2082 | DEFAULT_wxUSE_DATAOBJ=no | |
2083 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2084 | DEFAULT_wxUSE_JOYSTICK=no | |
2085 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2086 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2087 | DEFAULT_wxUSE_LONGLONG=no | |
2088 | DEFAULT_wxUSE_GEOMETRY=no | |
2089 | ||
2090 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2091 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2092 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2093 | ||
2094 | DEFAULT_wxUSE_CLIPBOARD=no | |
2095 | DEFAULT_wxUSE_TOOLTIPS=no | |
2096 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2097 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2098 | DEFAULT_wxUSE_SPLINES=no | |
2099 | ||
8a7b1113 | 2100 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2101 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2102 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2103 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2104 | ||
2105 | DEFAULT_wxUSE_RESOURCES=no | |
2106 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2107 | DEFAULT_wxUSE_IPC=no | |
2108 | DEFAULT_wxUSE_HELP=no | |
2109 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2110 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2111 | DEFAULT_wxUSE_TREELAYOUT=no | |
2112 | DEFAULT_wxUSE_METAFILE=no | |
2113 | DEFAULT_wxUSE_MIMETYPE=no | |
2114 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2115 | DEFAULT_wxUSE_PROTOCOL=no | |
2116 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2117 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2118 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2119 | DEFAULT_wxUSE_URL=no | |
2120 | ||
2121 | DEFAULT_wxUSE_COMMONDLGS=no | |
2122 | DEFAULT_wxUSE_CHOICEDLG=no | |
2123 | DEFAULT_wxUSE_COLOURDLG=no | |
2124 | DEFAULT_wxUSE_DIRDLG=no | |
2125 | DEFAULT_wxUSE_FILEDLG=no | |
2126 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2127 | DEFAULT_wxUSE_FONTDLG=no | |
2128 | DEFAULT_wxUSE_MSGDLG=no | |
2129 | DEFAULT_wxUSE_NUMBERDLG=no | |
2130 | DEFAULT_wxUSE_TEXTDLG=no | |
2131 | DEFAULT_wxUSE_SPLASH=no | |
2132 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2133 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2134 | DEFAULT_wxUSE_WIZARDDLG=no | |
2135 | ||
2136 | DEFAULT_wxUSE_MENUS=no | |
2137 | DEFAULT_wxUSE_MINIFRAME=no | |
2138 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2139 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2140 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2141 | DEFAULT_wxUSE_FILESYSTEM=no |
2142 | DEFAULT_wxUSE_FS_INET=no | |
2143 | DEFAULT_wxUSE_FS_ZIP=no | |
2144 | DEFAULT_wxUSE_BUSYINFO=no | |
2145 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2146 | DEFAULT_wxUSE_VALIDATORS=no |
2147 | ||
2148 | DEFAULT_wxUSE_ACCEL=no | |
2149 | DEFAULT_wxUSE_BUTTON=no | |
2150 | DEFAULT_wxUSE_BMPBUTTON=no | |
2151 | DEFAULT_wxUSE_CALCTRL=no | |
2152 | DEFAULT_wxUSE_CARET=no | |
2153 | DEFAULT_wxUSE_CHECKBOX=no | |
2154 | DEFAULT_wxUSE_CHECKLST=no | |
2155 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2156 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2157 | DEFAULT_wxUSE_COMBOBOX=no |
2158 | DEFAULT_wxUSE_DISPLAY=no | |
2159 | DEFAULT_wxUSE_GAUGE=no | |
2160 | DEFAULT_wxUSE_GRID=no | |
2161 | DEFAULT_wxUSE_IMAGLIST=no | |
2162 | DEFAULT_wxUSE_LISTBOOK=no | |
2163 | DEFAULT_wxUSE_LISTBOX=no | |
2164 | DEFAULT_wxUSE_LISTCTRL=no | |
2165 | DEFAULT_wxUSE_NOTEBOOK=no | |
2166 | DEFAULT_wxUSE_RADIOBOX=no | |
2167 | DEFAULT_wxUSE_RADIOBTN=no | |
2168 | DEFAULT_wxUSE_SASH=no | |
2169 | DEFAULT_wxUSE_SCROLLBAR=no | |
2170 | DEFAULT_wxUSE_SLIDER=no | |
2171 | DEFAULT_wxUSE_SPINBTN=no | |
2172 | DEFAULT_wxUSE_SPINCTRL=no | |
2173 | DEFAULT_wxUSE_SPLITTER=no | |
2174 | DEFAULT_wxUSE_STATBMP=no | |
2175 | DEFAULT_wxUSE_STATBOX=no | |
2176 | DEFAULT_wxUSE_STATLINE=no | |
2177 | DEFAULT_wxUSE_STATTEXT=no | |
2178 | DEFAULT_wxUSE_STATUSBAR=yes | |
2179 | DEFAULT_wxUSE_TABDIALOG=no | |
2180 | DEFAULT_wxUSE_TEXTCTRL=no | |
2181 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2182 | DEFAULT_wxUSE_TOOLBAR=no | |
2183 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2184 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2185 | DEFAULT_wxUSE_TREECTRL=no | |
2186 | DEFAULT_wxUSE_POPUPWIN=no | |
2187 | DEFAULT_wxUSE_TIPWINDOW=no | |
2188 | ||
2189 | DEFAULT_wxUSE_UNICODE=no | |
2190 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2191 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2192 | ||
2193 | DEFAULT_wxUSE_PALETTE=no | |
2194 | DEFAULT_wxUSE_IMAGE=no | |
2195 | DEFAULT_wxUSE_GIF=no | |
2196 | DEFAULT_wxUSE_PCX=no | |
2197 | DEFAULT_wxUSE_PNM=no | |
2198 | DEFAULT_wxUSE_IFF=no | |
2199 | DEFAULT_wxUSE_XPM=no | |
2200 | DEFAULT_wxUSE_ICO_CUR=no | |
2201 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2202 | ||
2203 | DEFAULT_wxUSE_MONOLITHIC=no | |
2204 | DEFAULT_wxUSE_PLUGINS=no | |
2205 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2206 | else | |
2207 | DEFAULT_wxUSE_UNIVERSAL=no | |
2208 | DEFAULT_wxUSE_STL=no | |
2209 | ||
2210 | DEFAULT_wxUSE_NANOX=no | |
2211 | ||
2212 | DEFAULT_wxUSE_THREADS=yes | |
2213 | ||
2214 | DEFAULT_wxUSE_SHARED=yes | |
2215 | DEFAULT_wxUSE_OPTIMISE=yes | |
2216 | DEFAULT_wxUSE_PROFILE=no | |
2217 | DEFAULT_wxUSE_NO_DEPS=no | |
2218 | DEFAULT_wxUSE_NO_RTTI=no | |
2219 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2220 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2221 | DEFAULT_wxUSE_PERMISSIVE=no |
2222 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2223 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2224 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2225 | DEFAULT_wxUSE_MEM_TRACING=no | |
2226 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2227 | DEFAULT_wxUSE_DMALLOC=no | |
2228 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2229 | ||
2230 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2231 | DEFAULT_wxUSE_LOG=yes | |
2232 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2233 | DEFAULT_wxUSE_LOGGUI=yes | |
2234 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2235 | ||
2236 | DEFAULT_wxUSE_GUI=yes | |
2237 | ||
2238 | DEFAULT_wxUSE_REGEX=yes | |
2239 | DEFAULT_wxUSE_XML=yes | |
2240 | DEFAULT_wxUSE_EXPAT=yes | |
2241 | DEFAULT_wxUSE_ZLIB=yes | |
2242 | DEFAULT_wxUSE_LIBPNG=yes | |
2243 | DEFAULT_wxUSE_LIBJPEG=yes | |
2244 | DEFAULT_wxUSE_LIBTIFF=yes | |
2245 | DEFAULT_wxUSE_LIBXPM=yes | |
2246 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2247 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2248 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2249 | DEFAULT_wxUSE_ODBC=no |
2250 | DEFAULT_wxUSE_OPENGL=no | |
2251 | ||
2252 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2253 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2254 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2255 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2256 | DEFAULT_wxUSE_DATETIME=yes | |
2257 | DEFAULT_wxUSE_TIMER=yes | |
2258 | DEFAULT_wxUSE_STOPWATCH=yes | |
2259 | DEFAULT_wxUSE_FILE=yes | |
2260 | DEFAULT_wxUSE_FFILE=yes | |
2261 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2262 | DEFAULT_wxUSE_TEXTFILE=yes | |
2263 | DEFAULT_wxUSE_SOUND=yes | |
2264 | DEFAULT_wxUSE_INTL=yes | |
2265 | DEFAULT_wxUSE_CONFIG=yes | |
2266 | DEFAULT_wxUSE_FONTMAP=yes | |
2267 | DEFAULT_wxUSE_STREAMS=yes | |
2268 | DEFAULT_wxUSE_SOCKETS=yes | |
2269 | DEFAULT_wxUSE_OLE=yes | |
2270 | DEFAULT_wxUSE_DATAOBJ=yes | |
2271 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2272 | DEFAULT_wxUSE_JOYSTICK=yes | |
2273 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2274 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2275 | DEFAULT_wxUSE_LONGLONG=yes | |
2276 | DEFAULT_wxUSE_GEOMETRY=yes | |
2277 | ||
2278 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2279 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2280 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2281 | ||
2282 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2283 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2284 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2285 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2286 | DEFAULT_wxUSE_SPLINES=yes | |
2287 | ||
8a7b1113 | 2288 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2289 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2290 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2291 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2292 | ||
2293 | DEFAULT_wxUSE_RESOURCES=no | |
2294 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2295 | DEFAULT_wxUSE_IPC=yes | |
2296 | DEFAULT_wxUSE_HELP=yes | |
2297 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2298 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2299 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2300 | DEFAULT_wxUSE_METAFILE=yes | |
2301 | DEFAULT_wxUSE_MIMETYPE=yes | |
2302 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2303 | DEFAULT_wxUSE_PROTOCOL=yes | |
2304 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2305 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2306 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2307 | DEFAULT_wxUSE_URL=yes | |
2308 | ||
2309 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2310 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2311 | DEFAULT_wxUSE_COLOURDLG=yes | |
2312 | DEFAULT_wxUSE_DIRDLG=yes | |
2313 | DEFAULT_wxUSE_FILEDLG=yes | |
2314 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2315 | DEFAULT_wxUSE_FONTDLG=yes | |
2316 | DEFAULT_wxUSE_MSGDLG=yes | |
2317 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2318 | DEFAULT_wxUSE_TEXTDLG=yes | |
2319 | DEFAULT_wxUSE_SPLASH=yes | |
2320 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2321 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2322 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2323 | ||
2324 | DEFAULT_wxUSE_MENUS=yes | |
2325 | DEFAULT_wxUSE_MINIFRAME=yes | |
2326 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2327 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2328 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2329 | DEFAULT_wxUSE_FILESYSTEM=yes |
2330 | DEFAULT_wxUSE_FS_INET=yes | |
2331 | DEFAULT_wxUSE_FS_ZIP=yes | |
2332 | DEFAULT_wxUSE_BUSYINFO=yes | |
2333 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2334 | DEFAULT_wxUSE_VALIDATORS=yes |
2335 | ||
2336 | DEFAULT_wxUSE_ACCEL=yes | |
2337 | DEFAULT_wxUSE_BUTTON=yes | |
2338 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2339 | DEFAULT_wxUSE_CALCTRL=yes | |
2340 | DEFAULT_wxUSE_CARET=yes | |
2341 | DEFAULT_wxUSE_CHECKBOX=yes | |
2342 | DEFAULT_wxUSE_CHECKLST=yes | |
2343 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2344 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2345 | DEFAULT_wxUSE_COMBOBOX=yes |
2346 | DEFAULT_wxUSE_DISPLAY=yes | |
2347 | DEFAULT_wxUSE_GAUGE=yes | |
2348 | DEFAULT_wxUSE_GRID=yes | |
2349 | DEFAULT_wxUSE_IMAGLIST=yes | |
2350 | DEFAULT_wxUSE_LISTBOOK=yes | |
2351 | DEFAULT_wxUSE_LISTBOX=yes | |
2352 | DEFAULT_wxUSE_LISTCTRL=yes | |
2353 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2354 | DEFAULT_wxUSE_RADIOBOX=yes | |
2355 | DEFAULT_wxUSE_RADIOBTN=yes | |
2356 | DEFAULT_wxUSE_SASH=yes | |
2357 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2358 | DEFAULT_wxUSE_SLIDER=yes | |
2359 | DEFAULT_wxUSE_SPINBTN=yes | |
2360 | DEFAULT_wxUSE_SPINCTRL=yes | |
2361 | DEFAULT_wxUSE_SPLITTER=yes | |
2362 | DEFAULT_wxUSE_STATBMP=yes | |
2363 | DEFAULT_wxUSE_STATBOX=yes | |
2364 | DEFAULT_wxUSE_STATLINE=yes | |
2365 | DEFAULT_wxUSE_STATTEXT=yes | |
2366 | DEFAULT_wxUSE_STATUSBAR=yes | |
2367 | DEFAULT_wxUSE_TABDIALOG=no | |
2368 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2369 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2370 | DEFAULT_wxUSE_TOOLBAR=yes | |
2371 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2372 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2373 | DEFAULT_wxUSE_TREECTRL=yes | |
2374 | DEFAULT_wxUSE_POPUPWIN=yes | |
2375 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2376 | ||
2377 | DEFAULT_wxUSE_UNICODE=no | |
2378 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2379 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2380 | ||
2381 | DEFAULT_wxUSE_PALETTE=yes | |
2382 | DEFAULT_wxUSE_IMAGE=yes | |
2383 | DEFAULT_wxUSE_GIF=yes | |
2384 | DEFAULT_wxUSE_PCX=yes | |
2385 | DEFAULT_wxUSE_IFF=no | |
2386 | DEFAULT_wxUSE_PNM=yes | |
2387 | DEFAULT_wxUSE_XPM=yes | |
2388 | DEFAULT_wxUSE_ICO_CUR=yes | |
2389 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2390 | ||
2391 | DEFAULT_wxUSE_MONOLITHIC=no | |
2392 | DEFAULT_wxUSE_PLUGINS=no | |
2393 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2394 | |
2395 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2396 | fi |
2397 | ||
2398 | ||
2399 | ||
2400 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2401 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2402 | if test "x$LINE" != "x" ; then | |
2403 | has_toolkit_in_cache=1 | |
2404 | eval "DEFAULT_$LINE" | |
2405 | eval "CACHE_$toolkit=1" | |
2406 | fi | |
2407 | done | |
2408 | ||
2409 | ||
2410 | ||
2411 | enablestring= | |
2412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2413 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2414 | no_cache=0 | |
2415 | # Check whether --enable-gui or --disable-gui was given. | |
2416 | if test "${enable_gui+set}" = set; then | |
2417 | enableval="$enable_gui" | |
2418 | ||
2419 | if test "$enableval" = yes; then | |
2420 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2421 | else | |
2422 | ac_cv_use_gui='wxUSE_GUI=no' | |
2423 | fi | |
2424 | ||
2425 | else | |
2426 | ||
2427 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2428 | if test "x$LINE" != x ; then | |
2429 | eval "DEFAULT_$LINE" | |
2430 | else | |
2431 | no_cache=1 | |
2432 | fi | |
2433 | ||
2434 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2435 | ||
2436 | fi; | |
2437 | ||
2438 | eval "$ac_cv_use_gui" | |
2439 | if test "$no_cache" != 1; then | |
2440 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2441 | fi | |
2442 | ||
2443 | if test "$wxUSE_GUI" = yes; then | |
2444 | echo "$as_me:$LINENO: result: yes" >&5 | |
2445 | echo "${ECHO_T}yes" >&6 | |
2446 | else | |
2447 | echo "$as_me:$LINENO: result: no" >&5 | |
2448 | echo "${ECHO_T}no" >&6 | |
2449 | fi | |
2450 | ||
2451 | ||
2452 | enablestring= | |
2453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2454 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2455 | no_cache=0 | |
2456 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2457 | if test "${enable_monolithic+set}" = set; then | |
2458 | enableval="$enable_monolithic" | |
2459 | ||
2460 | if test "$enableval" = yes; then | |
2461 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2462 | else | |
2463 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2464 | fi | |
2465 | ||
2466 | else | |
2467 | ||
2468 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2469 | if test "x$LINE" != x ; then | |
2470 | eval "DEFAULT_$LINE" | |
2471 | else | |
2472 | no_cache=1 | |
2473 | fi | |
2474 | ||
2475 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2476 | ||
2477 | fi; | |
2478 | ||
2479 | eval "$ac_cv_use_monolithic" | |
2480 | if test "$no_cache" != 1; then | |
2481 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2482 | fi | |
2483 | ||
2484 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2485 | echo "$as_me:$LINENO: result: yes" >&5 | |
2486 | echo "${ECHO_T}yes" >&6 | |
2487 | else | |
2488 | echo "$as_me:$LINENO: result: no" >&5 | |
2489 | echo "${ECHO_T}no" >&6 | |
2490 | fi | |
2491 | ||
2492 | ||
2493 | enablestring= | |
2494 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2495 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2496 | no_cache=0 | |
2497 | # Check whether --enable-plugins or --disable-plugins was given. | |
2498 | if test "${enable_plugins+set}" = set; then | |
2499 | enableval="$enable_plugins" | |
2500 | ||
2501 | if test "$enableval" = yes; then | |
2502 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2503 | else | |
2504 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2505 | fi | |
2506 | ||
2507 | else | |
2508 | ||
2509 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2510 | if test "x$LINE" != x ; then | |
2511 | eval "DEFAULT_$LINE" | |
2512 | else | |
2513 | no_cache=1 | |
2514 | fi | |
2515 | ||
2516 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2517 | ||
2518 | fi; | |
2519 | ||
2520 | eval "$ac_cv_use_plugins" | |
2521 | if test "$no_cache" != 1; then | |
2522 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2523 | fi | |
2524 | ||
2525 | if test "$wxUSE_PLUGINS" = yes; then | |
2526 | echo "$as_me:$LINENO: result: yes" >&5 | |
2527 | echo "${ECHO_T}yes" >&6 | |
2528 | else | |
2529 | echo "$as_me:$LINENO: result: no" >&5 | |
2530 | echo "${ECHO_T}no" >&6 | |
2531 | fi | |
2532 | ||
2533 | ||
2534 | if test "$wxUSE_GUI" = "yes"; then | |
2535 | ||
2536 | ||
2537 | enablestring= | |
2538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2539 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2540 | no_cache=0 | |
2541 | # Check whether --enable-universal or --disable-universal was given. | |
2542 | if test "${enable_universal+set}" = set; then | |
2543 | enableval="$enable_universal" | |
2544 | ||
2545 | if test "$enableval" = yes; then | |
2546 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2547 | else | |
2548 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2549 | fi | |
2550 | ||
2551 | else | |
2552 | ||
2553 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2554 | if test "x$LINE" != x ; then | |
2555 | eval "DEFAULT_$LINE" | |
2556 | else | |
2557 | no_cache=1 | |
2558 | fi | |
2559 | ||
2560 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2561 | ||
2562 | fi; | |
2563 | ||
2564 | eval "$ac_cv_use_universal" | |
2565 | if test "$no_cache" != 1; then | |
2566 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2567 | fi | |
2568 | ||
2569 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2570 | echo "$as_me:$LINENO: result: yes" >&5 | |
2571 | echo "${ECHO_T}yes" >&6 | |
2572 | else | |
2573 | echo "$as_me:$LINENO: result: no" >&5 | |
2574 | echo "${ECHO_T}no" >&6 | |
2575 | fi | |
2576 | ||
2577 | ||
2578 | # Check whether --with-gtk or --without-gtk was given. | |
2579 | if test "${with_gtk+set}" = set; then | |
2580 | withval="$with_gtk" | |
2581 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2582 | fi; | |
2583 | ||
2584 | # Check whether --with-motif or --without-motif was given. | |
2585 | if test "${with_motif+set}" = set; then | |
2586 | withval="$with_motif" | |
2587 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2588 | fi; | |
2589 | ||
2590 | # Check whether --with-mac or --without-mac was given. | |
2591 | if test "${with_mac+set}" = set; then | |
2592 | withval="$with_mac" | |
c228d3a4 | 2593 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2594 | fi; |
2595 | ||
2596 | # Check whether --with-cocoa or --without-cocoa was given. | |
2597 | if test "${with_cocoa+set}" = set; then | |
2598 | withval="$with_cocoa" | |
c228d3a4 | 2599 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2600 | fi; |
2601 | ||
2602 | # Check whether --with-wine or --without-wine was given. | |
2603 | if test "${with_wine+set}" = set; then | |
2604 | withval="$with_wine" | |
2605 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2606 | fi; | |
2607 | ||
2608 | # Check whether --with-msw or --without-msw was given. | |
2609 | if test "${with_msw+set}" = set; then | |
2610 | withval="$with_msw" | |
2611 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2612 | fi; | |
2613 | ||
2614 | # Check whether --with-pm or --without-pm was given. | |
2615 | if test "${with_pm+set}" = set; then | |
2616 | withval="$with_pm" | |
2617 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2618 | fi; | |
2619 | ||
2620 | # Check whether --with-mgl or --without-mgl was given. | |
2621 | if test "${with_mgl+set}" = set; then | |
2622 | withval="$with_mgl" | |
2623 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2624 | fi; | |
2625 | ||
2626 | # Check whether --with-microwin or --without-microwin was given. | |
2627 | if test "${with_microwin+set}" = set; then | |
2628 | withval="$with_microwin" | |
2629 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2630 | fi; | |
2631 | ||
2632 | # Check whether --with-x11 or --without-x11 was given. | |
2633 | if test "${with_x11+set}" = set; then | |
2634 | withval="$with_x11" | |
2635 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2636 | fi; | |
2637 | ||
2638 | enablestring= | |
2639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2640 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2641 | no_cache=0 | |
2642 | # Check whether --enable-nanox or --disable-nanox was given. | |
2643 | if test "${enable_nanox+set}" = set; then | |
2644 | enableval="$enable_nanox" | |
2645 | ||
2646 | if test "$enableval" = yes; then | |
2647 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2648 | else | |
2649 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2650 | fi | |
2651 | ||
2652 | else | |
2653 | ||
2654 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2655 | if test "x$LINE" != x ; then | |
2656 | eval "DEFAULT_$LINE" | |
2657 | else | |
2658 | no_cache=1 | |
2659 | fi | |
2660 | ||
2661 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2662 | ||
2663 | fi; | |
2664 | ||
2665 | eval "$ac_cv_use_nanox" | |
2666 | if test "$no_cache" != 1; then | |
2667 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2668 | fi | |
2669 | ||
2670 | if test "$wxUSE_NANOX" = yes; then | |
2671 | echo "$as_me:$LINENO: result: yes" >&5 | |
2672 | echo "${ECHO_T}yes" >&6 | |
2673 | else | |
2674 | echo "$as_me:$LINENO: result: no" >&5 | |
2675 | echo "${ECHO_T}no" >&6 | |
2676 | fi | |
2677 | ||
2678 | ||
2679 | ||
2680 | enablestring= | |
2681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2682 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2683 | no_cache=0 | |
2684 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2685 | if test "${enable_gtk2+set}" = set; then | |
2686 | enableval="$enable_gtk2" | |
2687 | ||
2688 | if test "$enableval" = yes; then | |
2689 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2690 | else | |
2691 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2692 | fi | |
2693 | ||
2694 | else | |
2695 | ||
2696 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2697 | if test "x$LINE" != x ; then | |
2698 | eval "DEFAULT_$LINE" | |
2699 | else | |
2700 | no_cache=1 | |
2701 | fi | |
2702 | ||
2703 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2704 | ||
2705 | fi; | |
2706 | ||
2707 | eval "$ac_cv_use_gtk2" | |
2708 | if test "$no_cache" != 1; then | |
2709 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2710 | fi | |
2711 | ||
2712 | if test "$wxUSE_GTK2" = yes; then | |
2713 | echo "$as_me:$LINENO: result: yes" >&5 | |
2714 | echo "${ECHO_T}yes" >&6 | |
2715 | else | |
2716 | echo "$as_me:$LINENO: result: no" >&5 | |
2717 | echo "${ECHO_T}no" >&6 | |
2718 | fi | |
2719 | ||
2720 | ||
2721 | enablestring= | |
2722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2723 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2724 | no_cache=0 | |
2725 | # Check whether --enable-gpe or --disable-gpe was given. | |
2726 | if test "${enable_gpe+set}" = set; then | |
2727 | enableval="$enable_gpe" | |
2728 | ||
2729 | if test "$enableval" = yes; then | |
2730 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2731 | else | |
2732 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2733 | fi | |
2734 | ||
2735 | else | |
2736 | ||
2737 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2738 | if test "x$LINE" != x ; then | |
2739 | eval "DEFAULT_$LINE" | |
2740 | else | |
2741 | no_cache=1 | |
2742 | fi | |
2743 | ||
2744 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2745 | ||
2746 | fi; | |
2747 | ||
2748 | eval "$ac_cv_use_gpe" | |
2749 | if test "$no_cache" != 1; then | |
2750 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2751 | fi | |
2752 | ||
2753 | if test "$wxUSE_GPE" = yes; then | |
2754 | echo "$as_me:$LINENO: result: yes" >&5 | |
2755 | echo "${ECHO_T}yes" >&6 | |
2756 | else | |
2757 | echo "$as_me:$LINENO: result: no" >&5 | |
2758 | echo "${ECHO_T}no" >&6 | |
2759 | fi | |
2760 | ||
2761 | ||
2762 | ||
2763 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2764 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2765 | no_cache=0 | |
2766 | ||
2767 | # Check whether --with-libpng or --without-libpng was given. | |
2768 | if test "${with_libpng+set}" = set; then | |
2769 | withval="$with_libpng" | |
2770 | ||
2771 | if test "$withval" = yes; then | |
2772 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2773 | elif test "$withval" = no; then | |
2774 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2775 | elif test "$withval" = sys; then | |
2776 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2777 | elif test "$withval" = builtin; then | |
2778 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2779 | else | |
2780 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2781 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2782 | { (exit 1); exit 1; }; } | |
2783 | fi | |
2784 | ||
2785 | else | |
2786 | ||
2787 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2788 | if test "x$LINE" != x ; then | |
2789 | eval "DEFAULT_$LINE" | |
2790 | else | |
2791 | no_cache=1 | |
2792 | fi | |
2793 | ||
2794 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2795 | ||
2796 | fi; | |
2797 | ||
2798 | eval "$ac_cv_use_libpng" | |
2799 | if test "$no_cache" != 1; then | |
2800 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2801 | fi | |
2802 | ||
2803 | if test "$wxUSE_LIBPNG" = yes; then | |
2804 | echo "$as_me:$LINENO: result: yes" >&5 | |
2805 | echo "${ECHO_T}yes" >&6 | |
2806 | elif test "$wxUSE_LIBPNG" = no; then | |
2807 | echo "$as_me:$LINENO: result: no" >&5 | |
2808 | echo "${ECHO_T}no" >&6 | |
2809 | elif test "$wxUSE_LIBPNG" = sys; then | |
2810 | echo "$as_me:$LINENO: result: system version" >&5 | |
2811 | echo "${ECHO_T}system version" >&6 | |
2812 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2813 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2814 | echo "${ECHO_T}builtin version" >&6 | |
2815 | else | |
2816 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2817 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2818 | { (exit 1); exit 1; }; } | |
2819 | fi | |
2820 | ||
2821 | ||
2822 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2823 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2824 | no_cache=0 | |
2825 | ||
2826 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2827 | if test "${with_libjpeg+set}" = set; then | |
2828 | withval="$with_libjpeg" | |
2829 | ||
2830 | if test "$withval" = yes; then | |
2831 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2832 | elif test "$withval" = no; then | |
2833 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2834 | elif test "$withval" = sys; then | |
2835 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2836 | elif test "$withval" = builtin; then | |
2837 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2838 | else | |
2839 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2840 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2841 | { (exit 1); exit 1; }; } | |
2842 | fi | |
2843 | ||
2844 | else | |
2845 | ||
2846 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2847 | if test "x$LINE" != x ; then | |
2848 | eval "DEFAULT_$LINE" | |
2849 | else | |
2850 | no_cache=1 | |
2851 | fi | |
2852 | ||
2853 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2854 | ||
2855 | fi; | |
2856 | ||
2857 | eval "$ac_cv_use_libjpeg" | |
2858 | if test "$no_cache" != 1; then | |
2859 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2860 | fi | |
2861 | ||
2862 | if test "$wxUSE_LIBJPEG" = yes; then | |
2863 | echo "$as_me:$LINENO: result: yes" >&5 | |
2864 | echo "${ECHO_T}yes" >&6 | |
2865 | elif test "$wxUSE_LIBJPEG" = no; then | |
2866 | echo "$as_me:$LINENO: result: no" >&5 | |
2867 | echo "${ECHO_T}no" >&6 | |
2868 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2869 | echo "$as_me:$LINENO: result: system version" >&5 | |
2870 | echo "${ECHO_T}system version" >&6 | |
2871 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2872 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2873 | echo "${ECHO_T}builtin version" >&6 | |
2874 | else | |
2875 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2876 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2877 | { (exit 1); exit 1; }; } | |
2878 | fi | |
2879 | ||
2880 | ||
2881 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2882 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2883 | no_cache=0 | |
2884 | ||
2885 | # Check whether --with-libtiff or --without-libtiff was given. | |
2886 | if test "${with_libtiff+set}" = set; then | |
2887 | withval="$with_libtiff" | |
2888 | ||
2889 | if test "$withval" = yes; then | |
2890 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2891 | elif test "$withval" = no; then | |
2892 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2893 | elif test "$withval" = sys; then | |
2894 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2895 | elif test "$withval" = builtin; then | |
2896 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2897 | else | |
2898 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2899 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2900 | { (exit 1); exit 1; }; } | |
2901 | fi | |
2902 | ||
2903 | else | |
2904 | ||
2905 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2906 | if test "x$LINE" != x ; then | |
2907 | eval "DEFAULT_$LINE" | |
2908 | else | |
2909 | no_cache=1 | |
2910 | fi | |
2911 | ||
2912 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2913 | ||
2914 | fi; | |
2915 | ||
2916 | eval "$ac_cv_use_libtiff" | |
2917 | if test "$no_cache" != 1; then | |
2918 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2919 | fi | |
2920 | ||
2921 | if test "$wxUSE_LIBTIFF" = yes; then | |
2922 | echo "$as_me:$LINENO: result: yes" >&5 | |
2923 | echo "${ECHO_T}yes" >&6 | |
2924 | elif test "$wxUSE_LIBTIFF" = no; then | |
2925 | echo "$as_me:$LINENO: result: no" >&5 | |
2926 | echo "${ECHO_T}no" >&6 | |
2927 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2928 | echo "$as_me:$LINENO: result: system version" >&5 | |
2929 | echo "${ECHO_T}system version" >&6 | |
2930 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2931 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2932 | echo "${ECHO_T}builtin version" >&6 | |
2933 | else | |
2934 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2935 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2936 | { (exit 1); exit 1; }; } | |
2937 | fi | |
2938 | ||
2939 | ||
2940 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2941 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2942 | no_cache=0 | |
2943 | ||
2944 | # Check whether --with-libxpm or --without-libxpm was given. | |
2945 | if test "${with_libxpm+set}" = set; then | |
2946 | withval="$with_libxpm" | |
2947 | ||
2948 | if test "$withval" = yes; then | |
2949 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2950 | elif test "$withval" = no; then | |
2951 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2952 | elif test "$withval" = sys; then | |
2953 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2954 | elif test "$withval" = builtin; then | |
2955 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2956 | else | |
2957 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2958 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2959 | { (exit 1); exit 1; }; } | |
2960 | fi | |
2961 | ||
2962 | else | |
2963 | ||
2964 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2965 | if test "x$LINE" != x ; then | |
2966 | eval "DEFAULT_$LINE" | |
2967 | else | |
2968 | no_cache=1 | |
2969 | fi | |
2970 | ||
2971 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2972 | ||
2973 | fi; | |
2974 | ||
2975 | eval "$ac_cv_use_libxpm" | |
2976 | if test "$no_cache" != 1; then | |
2977 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2978 | fi | |
2979 | ||
2980 | if test "$wxUSE_LIBXPM" = yes; then | |
2981 | echo "$as_me:$LINENO: result: yes" >&5 | |
2982 | echo "${ECHO_T}yes" >&6 | |
2983 | elif test "$wxUSE_LIBXPM" = no; then | |
2984 | echo "$as_me:$LINENO: result: no" >&5 | |
2985 | echo "${ECHO_T}no" >&6 | |
2986 | elif test "$wxUSE_LIBXPM" = sys; then | |
2987 | echo "$as_me:$LINENO: result: system version" >&5 | |
2988 | echo "${ECHO_T}system version" >&6 | |
2989 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2990 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2991 | echo "${ECHO_T}builtin version" >&6 | |
2992 | else | |
2993 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2994 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2995 | { (exit 1); exit 1; }; } | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3000 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3001 | no_cache=0 | |
3002 | ||
3003 | # Check whether --with-libmspack or --without-libmspack was given. | |
3004 | if test "${with_libmspack+set}" = set; then | |
3005 | withval="$with_libmspack" | |
3006 | ||
3007 | if test "$withval" = yes; then | |
3008 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3009 | else | |
3010 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3011 | fi | |
3012 | ||
3013 | else | |
3014 | ||
3015 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3016 | if test "x$LINE" != x ; then | |
3017 | eval "DEFAULT_$LINE" | |
3018 | else | |
3019 | no_cache=1 | |
3020 | fi | |
3021 | ||
3022 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3023 | ||
3024 | fi; | |
3025 | ||
3026 | eval "$ac_cv_use_libmspack" | |
3027 | if test "$no_cache" != 1; then | |
3028 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3029 | fi | |
3030 | ||
3031 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3032 | echo "$as_me:$LINENO: result: yes" >&5 | |
3033 | echo "${ECHO_T}yes" >&6 | |
3034 | else | |
3035 | echo "$as_me:$LINENO: result: no" >&5 | |
3036 | echo "${ECHO_T}no" >&6 | |
3037 | fi | |
3038 | ||
3039 | ||
3040 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3041 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3042 | no_cache=0 | |
3043 | ||
3044 | # Check whether --with-sdl or --without-sdl was given. | |
3045 | if test "${with_sdl+set}" = set; then | |
3046 | withval="$with_sdl" | |
3047 | ||
3048 | if test "$withval" = yes; then | |
3049 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3050 | else | |
3051 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3052 | fi | |
3053 | ||
3054 | else | |
3055 | ||
3056 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3057 | if test "x$LINE" != x ; then | |
3058 | eval "DEFAULT_$LINE" | |
3059 | else | |
3060 | no_cache=1 | |
3061 | fi | |
3062 | ||
3063 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3064 | ||
3065 | fi; | |
3066 | ||
3067 | eval "$ac_cv_use_sdl" | |
3068 | if test "$no_cache" != 1; then | |
3069 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3070 | fi | |
3071 | ||
3072 | if test "$wxUSE_LIBSDL" = yes; then | |
3073 | echo "$as_me:$LINENO: result: yes" >&5 | |
3074 | echo "${ECHO_T}yes" >&6 | |
3075 | else | |
3076 | echo "$as_me:$LINENO: result: no" >&5 | |
3077 | echo "${ECHO_T}no" >&6 | |
3078 | fi | |
3079 | ||
3080 | ||
d1c38808 VZ |
3081 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3082 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3083 | no_cache=0 | |
3084 | ||
3085 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3086 | if test "${with_gnomeprint+set}" = set; then | |
3087 | withval="$with_gnomeprint" | |
3088 | ||
3089 | if test "$withval" = yes; then | |
3090 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3091 | else | |
3092 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3093 | fi | |
3094 | ||
3095 | else | |
3096 | ||
3097 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3098 | if test "x$LINE" != x ; then | |
3099 | eval "DEFAULT_$LINE" | |
3100 | else | |
3101 | no_cache=1 | |
3102 | fi | |
3103 | ||
3104 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3105 | ||
3106 | fi; | |
3107 | ||
3108 | eval "$ac_cv_use_gnomeprint" | |
3109 | if test "$no_cache" != 1; then | |
3110 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3111 | fi | |
3112 | ||
3113 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3114 | echo "$as_me:$LINENO: result: yes" >&5 | |
3115 | echo "${ECHO_T}yes" >&6 | |
3116 | else | |
3117 | echo "$as_me:$LINENO: result: no" >&5 | |
3118 | echo "${ECHO_T}no" >&6 | |
3119 | fi | |
3120 | ||
3121 | ||
a848cd7e SC |
3122 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3123 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3124 | no_cache=0 | |
3125 | ||
3126 | # Check whether --with-opengl or --without-opengl was given. | |
3127 | if test "${with_opengl+set}" = set; then | |
3128 | withval="$with_opengl" | |
3129 | ||
3130 | if test "$withval" = yes; then | |
3131 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3132 | else | |
3133 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3134 | fi | |
3135 | ||
3136 | else | |
3137 | ||
3138 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3139 | if test "x$LINE" != x ; then | |
3140 | eval "DEFAULT_$LINE" | |
3141 | else | |
3142 | no_cache=1 | |
3143 | fi | |
3144 | ||
3145 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3146 | ||
3147 | fi; | |
3148 | ||
3149 | eval "$ac_cv_use_opengl" | |
3150 | if test "$no_cache" != 1; then | |
3151 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3152 | fi | |
3153 | ||
3154 | if test "$wxUSE_OPENGL" = yes; then | |
3155 | echo "$as_me:$LINENO: result: yes" >&5 | |
3156 | echo "${ECHO_T}yes" >&6 | |
3157 | else | |
3158 | echo "$as_me:$LINENO: result: no" >&5 | |
3159 | echo "${ECHO_T}no" >&6 | |
3160 | fi | |
3161 | ||
3162 | ||
3163 | fi | |
3164 | ||
3165 | ||
3166 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3167 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3168 | no_cache=0 | |
3169 | ||
3170 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3171 | if test "${with_dmalloc+set}" = set; then | |
3172 | withval="$with_dmalloc" | |
3173 | ||
3174 | if test "$withval" = yes; then | |
3175 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3176 | else | |
3177 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3178 | fi | |
3179 | ||
3180 | else | |
3181 | ||
3182 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3183 | if test "x$LINE" != x ; then | |
3184 | eval "DEFAULT_$LINE" | |
3185 | else | |
3186 | no_cache=1 | |
3187 | fi | |
3188 | ||
3189 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3190 | ||
3191 | fi; | |
3192 | ||
3193 | eval "$ac_cv_use_dmalloc" | |
3194 | if test "$no_cache" != 1; then | |
3195 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3196 | fi | |
3197 | ||
3198 | if test "$wxUSE_DMALLOC" = yes; then | |
3199 | echo "$as_me:$LINENO: result: yes" >&5 | |
3200 | echo "${ECHO_T}yes" >&6 | |
3201 | else | |
3202 | echo "$as_me:$LINENO: result: no" >&5 | |
3203 | echo "${ECHO_T}no" >&6 | |
3204 | fi | |
3205 | ||
3206 | ||
3207 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3208 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3209 | no_cache=0 | |
3210 | ||
3211 | # Check whether --with-regex or --without-regex was given. | |
3212 | if test "${with_regex+set}" = set; then | |
3213 | withval="$with_regex" | |
3214 | ||
3215 | if test "$withval" = yes; then | |
3216 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3217 | elif test "$withval" = no; then | |
3218 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3219 | elif test "$withval" = sys; then | |
3220 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3221 | elif test "$withval" = builtin; then | |
3222 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3223 | else | |
3224 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3225 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3226 | { (exit 1); exit 1; }; } | |
3227 | fi | |
3228 | ||
3229 | else | |
3230 | ||
3231 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3232 | if test "x$LINE" != x ; then | |
3233 | eval "DEFAULT_$LINE" | |
3234 | else | |
3235 | no_cache=1 | |
3236 | fi | |
3237 | ||
3238 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3239 | ||
3240 | fi; | |
3241 | ||
3242 | eval "$ac_cv_use_regex" | |
3243 | if test "$no_cache" != 1; then | |
3244 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3245 | fi | |
3246 | ||
3247 | if test "$wxUSE_REGEX" = yes; then | |
3248 | echo "$as_me:$LINENO: result: yes" >&5 | |
3249 | echo "${ECHO_T}yes" >&6 | |
3250 | elif test "$wxUSE_REGEX" = no; then | |
3251 | echo "$as_me:$LINENO: result: no" >&5 | |
3252 | echo "${ECHO_T}no" >&6 | |
3253 | elif test "$wxUSE_REGEX" = sys; then | |
3254 | echo "$as_me:$LINENO: result: system version" >&5 | |
3255 | echo "${ECHO_T}system version" >&6 | |
3256 | elif test "$wxUSE_REGEX" = builtin; then | |
3257 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3258 | echo "${ECHO_T}builtin version" >&6 | |
3259 | else | |
3260 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3261 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3262 | { (exit 1); exit 1; }; } | |
3263 | fi | |
3264 | ||
3265 | ||
3266 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3267 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3268 | no_cache=0 | |
3269 | ||
3270 | # Check whether --with-zlib or --without-zlib was given. | |
3271 | if test "${with_zlib+set}" = set; then | |
3272 | withval="$with_zlib" | |
3273 | ||
3274 | if test "$withval" = yes; then | |
3275 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3276 | elif test "$withval" = no; then | |
3277 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3278 | elif test "$withval" = sys; then | |
3279 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3280 | elif test "$withval" = builtin; then | |
3281 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3282 | else | |
3283 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3284 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3285 | { (exit 1); exit 1; }; } | |
3286 | fi | |
3287 | ||
3288 | else | |
3289 | ||
3290 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3291 | if test "x$LINE" != x ; then | |
3292 | eval "DEFAULT_$LINE" | |
3293 | else | |
3294 | no_cache=1 | |
3295 | fi | |
3296 | ||
3297 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3298 | ||
3299 | fi; | |
3300 | ||
3301 | eval "$ac_cv_use_zlib" | |
3302 | if test "$no_cache" != 1; then | |
3303 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3304 | fi | |
3305 | ||
3306 | if test "$wxUSE_ZLIB" = yes; then | |
3307 | echo "$as_me:$LINENO: result: yes" >&5 | |
3308 | echo "${ECHO_T}yes" >&6 | |
3309 | elif test "$wxUSE_ZLIB" = no; then | |
3310 | echo "$as_me:$LINENO: result: no" >&5 | |
3311 | echo "${ECHO_T}no" >&6 | |
3312 | elif test "$wxUSE_ZLIB" = sys; then | |
3313 | echo "$as_me:$LINENO: result: system version" >&5 | |
3314 | echo "${ECHO_T}system version" >&6 | |
3315 | elif test "$wxUSE_ZLIB" = builtin; then | |
3316 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3317 | echo "${ECHO_T}builtin version" >&6 | |
3318 | else | |
3319 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3320 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3321 | { (exit 1); exit 1; }; } | |
3322 | fi | |
3323 | ||
3324 | ||
3325 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3326 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3327 | no_cache=0 | |
3328 | ||
3329 | # Check whether --with-odbc or --without-odbc was given. | |
3330 | if test "${with_odbc+set}" = set; then | |
3331 | withval="$with_odbc" | |
3332 | ||
3333 | if test "$withval" = yes; then | |
3334 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3335 | elif test "$withval" = no; then | |
3336 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3337 | elif test "$withval" = sys; then | |
3338 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3339 | elif test "$withval" = builtin; then | |
3340 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3341 | else | |
3342 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3343 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3344 | { (exit 1); exit 1; }; } | |
3345 | fi | |
3346 | ||
3347 | else | |
3348 | ||
3349 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3350 | if test "x$LINE" != x ; then | |
3351 | eval "DEFAULT_$LINE" | |
3352 | else | |
3353 | no_cache=1 | |
3354 | fi | |
3355 | ||
3356 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3357 | ||
3358 | fi; | |
3359 | ||
3360 | eval "$ac_cv_use_odbc" | |
3361 | if test "$no_cache" != 1; then | |
3362 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3363 | fi | |
3364 | ||
3365 | if test "$wxUSE_ODBC" = yes; then | |
3366 | echo "$as_me:$LINENO: result: yes" >&5 | |
3367 | echo "${ECHO_T}yes" >&6 | |
3368 | elif test "$wxUSE_ODBC" = no; then | |
3369 | echo "$as_me:$LINENO: result: no" >&5 | |
3370 | echo "${ECHO_T}no" >&6 | |
3371 | elif test "$wxUSE_ODBC" = sys; then | |
3372 | echo "$as_me:$LINENO: result: system version" >&5 | |
3373 | echo "${ECHO_T}system version" >&6 | |
3374 | elif test "$wxUSE_ODBC" = builtin; then | |
3375 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3376 | echo "${ECHO_T}builtin version" >&6 | |
3377 | else | |
3378 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3379 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3380 | { (exit 1); exit 1; }; } | |
3381 | fi | |
3382 | ||
3383 | ||
3384 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3385 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3386 | no_cache=0 | |
3387 | ||
3388 | # Check whether --with-expat or --without-expat was given. | |
3389 | if test "${with_expat+set}" = set; then | |
3390 | withval="$with_expat" | |
3391 | ||
3392 | if test "$withval" = yes; then | |
3393 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3394 | elif test "$withval" = no; then | |
3395 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3396 | elif test "$withval" = sys; then | |
3397 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3398 | elif test "$withval" = builtin; then | |
3399 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3400 | else | |
3401 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3402 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3403 | { (exit 1); exit 1; }; } | |
3404 | fi | |
3405 | ||
3406 | else | |
3407 | ||
3408 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3409 | if test "x$LINE" != x ; then | |
3410 | eval "DEFAULT_$LINE" | |
3411 | else | |
3412 | no_cache=1 | |
3413 | fi | |
3414 | ||
3415 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3416 | ||
3417 | fi; | |
3418 | ||
3419 | eval "$ac_cv_use_expat" | |
3420 | if test "$no_cache" != 1; then | |
3421 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3422 | fi | |
3423 | ||
3424 | if test "$wxUSE_EXPAT" = yes; then | |
3425 | echo "$as_me:$LINENO: result: yes" >&5 | |
3426 | echo "${ECHO_T}yes" >&6 | |
3427 | elif test "$wxUSE_EXPAT" = no; then | |
3428 | echo "$as_me:$LINENO: result: no" >&5 | |
3429 | echo "${ECHO_T}no" >&6 | |
3430 | elif test "$wxUSE_EXPAT" = sys; then | |
3431 | echo "$as_me:$LINENO: result: system version" >&5 | |
3432 | echo "${ECHO_T}system version" >&6 | |
3433 | elif test "$wxUSE_EXPAT" = builtin; then | |
3434 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3435 | echo "${ECHO_T}builtin version" >&6 | |
3436 | else | |
3437 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3438 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3439 | { (exit 1); exit 1; }; } | |
3440 | fi | |
3441 | ||
3442 | ||
3443 | ||
3444 | ||
3445 | enablestring= | |
3446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3447 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3448 | no_cache=0 | |
3449 | # Check whether --enable-shared or --disable-shared was given. | |
3450 | if test "${enable_shared+set}" = set; then | |
3451 | enableval="$enable_shared" | |
3452 | ||
3453 | if test "$enableval" = yes; then | |
3454 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3455 | else | |
3456 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3457 | fi | |
3458 | ||
3459 | else | |
3460 | ||
3461 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3462 | if test "x$LINE" != x ; then | |
3463 | eval "DEFAULT_$LINE" | |
3464 | else | |
3465 | no_cache=1 | |
3466 | fi | |
3467 | ||
3468 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3469 | ||
3470 | fi; | |
3471 | ||
3472 | eval "$ac_cv_use_shared" | |
3473 | if test "$no_cache" != 1; then | |
3474 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3475 | fi | |
3476 | ||
3477 | if test "$wxUSE_SHARED" = yes; then | |
3478 | echo "$as_me:$LINENO: result: yes" >&5 | |
3479 | echo "${ECHO_T}yes" >&6 | |
3480 | else | |
3481 | echo "$as_me:$LINENO: result: no" >&5 | |
3482 | echo "${ECHO_T}no" >&6 | |
3483 | fi | |
3484 | ||
3485 | ||
3486 | enablestring= | |
3487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3488 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3489 | no_cache=0 | |
3490 | # Check whether --enable-optimise or --disable-optimise was given. | |
3491 | if test "${enable_optimise+set}" = set; then | |
3492 | enableval="$enable_optimise" | |
3493 | ||
3494 | if test "$enableval" = yes; then | |
3495 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3496 | else | |
3497 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3498 | fi | |
3499 | ||
3500 | else | |
3501 | ||
3502 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3503 | if test "x$LINE" != x ; then | |
3504 | eval "DEFAULT_$LINE" | |
3505 | else | |
3506 | no_cache=1 | |
3507 | fi | |
3508 | ||
3509 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3510 | ||
3511 | fi; | |
3512 | ||
3513 | eval "$ac_cv_use_optimise" | |
3514 | if test "$no_cache" != 1; then | |
3515 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3516 | fi | |
3517 | ||
3518 | if test "$wxUSE_OPTIMISE" = yes; then | |
3519 | echo "$as_me:$LINENO: result: yes" >&5 | |
3520 | echo "${ECHO_T}yes" >&6 | |
3521 | else | |
3522 | echo "$as_me:$LINENO: result: no" >&5 | |
3523 | echo "${ECHO_T}no" >&6 | |
3524 | fi | |
3525 | ||
3526 | ||
3527 | enablestring= | |
3528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3529 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3530 | no_cache=0 | |
3531 | # Check whether --enable-debug or --disable-debug was given. | |
3532 | if test "${enable_debug+set}" = set; then | |
3533 | enableval="$enable_debug" | |
3534 | ||
3535 | if test "$enableval" = yes; then | |
3536 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3537 | else | |
3538 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3539 | fi | |
3540 | ||
3541 | else | |
3542 | ||
3543 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3544 | if test "x$LINE" != x ; then | |
3545 | eval "DEFAULT_$LINE" | |
3546 | else | |
3547 | no_cache=1 | |
3548 | fi | |
3549 | ||
3550 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3551 | ||
3552 | fi; | |
3553 | ||
3554 | eval "$ac_cv_use_debug" | |
3555 | if test "$no_cache" != 1; then | |
3556 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3557 | fi | |
3558 | ||
3559 | if test "$wxUSE_DEBUG" = yes; then | |
3560 | echo "$as_me:$LINENO: result: yes" >&5 | |
3561 | echo "${ECHO_T}yes" >&6 | |
3562 | else | |
3563 | echo "$as_me:$LINENO: result: no" >&5 | |
3564 | echo "${ECHO_T}no" >&6 | |
3565 | fi | |
3566 | ||
3567 | ||
3568 | enablestring= | |
3569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3570 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3571 | no_cache=0 | |
3572 | # Check whether --enable-stl or --disable-stl was given. | |
3573 | if test "${enable_stl+set}" = set; then | |
3574 | enableval="$enable_stl" | |
3575 | ||
3576 | if test "$enableval" = yes; then | |
3577 | ac_cv_use_stl='wxUSE_STL=yes' | |
3578 | else | |
3579 | ac_cv_use_stl='wxUSE_STL=no' | |
3580 | fi | |
3581 | ||
3582 | else | |
3583 | ||
3584 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3585 | if test "x$LINE" != x ; then | |
3586 | eval "DEFAULT_$LINE" | |
3587 | else | |
3588 | no_cache=1 | |
3589 | fi | |
3590 | ||
3591 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3592 | ||
3593 | fi; | |
3594 | ||
3595 | eval "$ac_cv_use_stl" | |
3596 | if test "$no_cache" != 1; then | |
3597 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3598 | fi | |
3599 | ||
3600 | if test "$wxUSE_STL" = yes; then | |
3601 | echo "$as_me:$LINENO: result: yes" >&5 | |
3602 | echo "${ECHO_T}yes" >&6 | |
3603 | else | |
3604 | echo "$as_me:$LINENO: result: no" >&5 | |
3605 | echo "${ECHO_T}no" >&6 | |
3606 | fi | |
3607 | ||
3608 | if test "$USE_OS2" = "1"; then | |
3609 | ||
3610 | enablestring= | |
3611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3612 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3613 | no_cache=0 | |
3614 | # Check whether --enable-omf or --disable-omf was given. | |
3615 | if test "${enable_omf+set}" = set; then | |
3616 | enableval="$enable_omf" | |
3617 | ||
3618 | if test "$enableval" = yes; then | |
3619 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3620 | else | |
3621 | ac_cv_use_omf='wxUSE_OMF=no' | |
3622 | fi | |
3623 | ||
3624 | else | |
3625 | ||
3626 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3627 | if test "x$LINE" != x ; then | |
3628 | eval "DEFAULT_$LINE" | |
3629 | else | |
3630 | no_cache=1 | |
3631 | fi | |
3632 | ||
3633 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3634 | ||
3635 | fi; | |
3636 | ||
3637 | eval "$ac_cv_use_omf" | |
3638 | if test "$no_cache" != 1; then | |
3639 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3640 | fi | |
3641 | ||
3642 | if test "$wxUSE_OMF" = yes; then | |
3643 | echo "$as_me:$LINENO: result: yes" >&5 | |
3644 | echo "${ECHO_T}yes" >&6 | |
3645 | else | |
3646 | echo "$as_me:$LINENO: result: no" >&5 | |
3647 | echo "${ECHO_T}no" >&6 | |
3648 | fi | |
3649 | ||
3650 | fi | |
3651 | ||
3652 | if test "$wxUSE_DEBUG" = "yes"; then | |
3653 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3654 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3655 | BUILD=debug | |
3656 | elif test "$wxUSE_DEBUG" = "no"; then | |
3657 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3658 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3659 | BUILD=release | |
3660 | fi | |
3661 | ||
3662 | ||
3663 | enablestring= | |
3664 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3665 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3666 | no_cache=0 | |
3667 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3668 | if test "${enable_debug_flag+set}" = set; then | |
3669 | enableval="$enable_debug_flag" | |
3670 | ||
3671 | if test "$enableval" = yes; then | |
3672 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3673 | else | |
3674 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3675 | fi | |
3676 | ||
3677 | else | |
3678 | ||
3679 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3680 | if test "x$LINE" != x ; then | |
3681 | eval "DEFAULT_$LINE" | |
3682 | else | |
3683 | no_cache=1 | |
3684 | fi | |
3685 | ||
3686 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3687 | ||
3688 | fi; | |
3689 | ||
3690 | eval "$ac_cv_use_debug_flag" | |
3691 | if test "$no_cache" != 1; then | |
3692 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3693 | fi | |
3694 | ||
3695 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3696 | echo "$as_me:$LINENO: result: yes" >&5 | |
3697 | echo "${ECHO_T}yes" >&6 | |
3698 | else | |
3699 | echo "$as_me:$LINENO: result: no" >&5 | |
3700 | echo "${ECHO_T}no" >&6 | |
3701 | fi | |
3702 | ||
3703 | ||
3704 | enablestring= | |
3705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3706 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3707 | no_cache=0 | |
3708 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3709 | if test "${enable_debug_info+set}" = set; then | |
3710 | enableval="$enable_debug_info" | |
3711 | ||
3712 | if test "$enableval" = yes; then | |
3713 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3714 | else | |
3715 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3716 | fi | |
3717 | ||
3718 | else | |
3719 | ||
3720 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3721 | if test "x$LINE" != x ; then | |
3722 | eval "DEFAULT_$LINE" | |
3723 | else | |
3724 | no_cache=1 | |
3725 | fi | |
3726 | ||
3727 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3728 | ||
3729 | fi; | |
3730 | ||
3731 | eval "$ac_cv_use_debug_info" | |
3732 | if test "$no_cache" != 1; then | |
3733 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3734 | fi | |
3735 | ||
3736 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3737 | echo "$as_me:$LINENO: result: yes" >&5 | |
3738 | echo "${ECHO_T}yes" >&6 | |
3739 | else | |
3740 | echo "$as_me:$LINENO: result: no" >&5 | |
3741 | echo "${ECHO_T}no" >&6 | |
3742 | fi | |
3743 | ||
3744 | ||
3745 | enablestring= | |
3746 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3747 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3748 | no_cache=0 | |
3749 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3750 | if test "${enable_debug_gdb+set}" = set; then | |
3751 | enableval="$enable_debug_gdb" | |
3752 | ||
3753 | if test "$enableval" = yes; then | |
3754 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3755 | else | |
3756 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3757 | fi | |
3758 | ||
3759 | else | |
3760 | ||
3761 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3762 | if test "x$LINE" != x ; then | |
3763 | eval "DEFAULT_$LINE" | |
3764 | else | |
3765 | no_cache=1 | |
3766 | fi | |
3767 | ||
3768 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3769 | ||
3770 | fi; | |
3771 | ||
3772 | eval "$ac_cv_use_debug_gdb" | |
3773 | if test "$no_cache" != 1; then | |
3774 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3775 | fi | |
3776 | ||
3777 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3778 | echo "$as_me:$LINENO: result: yes" >&5 | |
3779 | echo "${ECHO_T}yes" >&6 | |
3780 | else | |
3781 | echo "$as_me:$LINENO: result: no" >&5 | |
3782 | echo "${ECHO_T}no" >&6 | |
3783 | fi | |
3784 | ||
3785 | ||
3786 | enablestring= | |
3787 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3788 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3789 | no_cache=0 | |
3790 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3791 | if test "${enable_debug_cntxt+set}" = set; then | |
3792 | enableval="$enable_debug_cntxt" | |
3793 | ||
3794 | if test "$enableval" = yes; then | |
3795 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3796 | else | |
3797 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3798 | fi | |
3799 | ||
3800 | else | |
3801 | ||
3802 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3803 | if test "x$LINE" != x ; then | |
3804 | eval "DEFAULT_$LINE" | |
3805 | else | |
3806 | no_cache=1 | |
3807 | fi | |
3808 | ||
3809 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3810 | ||
3811 | fi; | |
3812 | ||
3813 | eval "$ac_cv_use_debug_cntxt" | |
3814 | if test "$no_cache" != 1; then | |
3815 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3816 | fi | |
3817 | ||
3818 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3819 | echo "$as_me:$LINENO: result: yes" >&5 | |
3820 | echo "${ECHO_T}yes" >&6 | |
3821 | else | |
3822 | echo "$as_me:$LINENO: result: no" >&5 | |
3823 | echo "${ECHO_T}no" >&6 | |
3824 | fi | |
3825 | ||
3826 | ||
3827 | enablestring= | |
3828 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3829 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3830 | no_cache=0 | |
3831 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3832 | if test "${enable_mem_tracing+set}" = set; then | |
3833 | enableval="$enable_mem_tracing" | |
3834 | ||
3835 | if test "$enableval" = yes; then | |
3836 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3837 | else | |
3838 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3839 | fi | |
3840 | ||
3841 | else | |
3842 | ||
3843 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3844 | if test "x$LINE" != x ; then | |
3845 | eval "DEFAULT_$LINE" | |
3846 | else | |
3847 | no_cache=1 | |
3848 | fi | |
3849 | ||
3850 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3851 | ||
3852 | fi; | |
3853 | ||
3854 | eval "$ac_cv_use_mem_tracing" | |
3855 | if test "$no_cache" != 1; then | |
3856 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3857 | fi | |
3858 | ||
3859 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3860 | echo "$as_me:$LINENO: result: yes" >&5 | |
3861 | echo "${ECHO_T}yes" >&6 | |
3862 | else | |
3863 | echo "$as_me:$LINENO: result: no" >&5 | |
3864 | echo "${ECHO_T}no" >&6 | |
3865 | fi | |
3866 | ||
3867 | ||
3868 | enablestring= | |
3869 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3870 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3871 | no_cache=0 | |
3872 | # Check whether --enable-profile or --disable-profile was given. | |
3873 | if test "${enable_profile+set}" = set; then | |
3874 | enableval="$enable_profile" | |
3875 | ||
3876 | if test "$enableval" = yes; then | |
3877 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3878 | else | |
3879 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3880 | fi | |
3881 | ||
3882 | else | |
3883 | ||
3884 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3885 | if test "x$LINE" != x ; then | |
3886 | eval "DEFAULT_$LINE" | |
3887 | else | |
3888 | no_cache=1 | |
3889 | fi | |
3890 | ||
3891 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3892 | ||
3893 | fi; | |
3894 | ||
3895 | eval "$ac_cv_use_profile" | |
3896 | if test "$no_cache" != 1; then | |
3897 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3898 | fi | |
3899 | ||
3900 | if test "$wxUSE_PROFILE" = yes; then | |
3901 | echo "$as_me:$LINENO: result: yes" >&5 | |
3902 | echo "${ECHO_T}yes" >&6 | |
3903 | else | |
3904 | echo "$as_me:$LINENO: result: no" >&5 | |
3905 | echo "${ECHO_T}no" >&6 | |
3906 | fi | |
3907 | ||
3908 | ||
3909 | enablestring= | |
3910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3911 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3912 | no_cache=0 | |
3913 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3914 | if test "${enable_no_rtti+set}" = set; then | |
3915 | enableval="$enable_no_rtti" | |
3916 | ||
3917 | if test "$enableval" = yes; then | |
3918 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3919 | else | |
3920 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3921 | fi | |
3922 | ||
3923 | else | |
3924 | ||
3925 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3926 | if test "x$LINE" != x ; then | |
3927 | eval "DEFAULT_$LINE" | |
3928 | else | |
3929 | no_cache=1 | |
3930 | fi | |
3931 | ||
3932 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3933 | ||
3934 | fi; | |
3935 | ||
3936 | eval "$ac_cv_use_no_rtti" | |
3937 | if test "$no_cache" != 1; then | |
3938 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3939 | fi | |
3940 | ||
3941 | if test "$wxUSE_NO_RTTI" = yes; then | |
3942 | echo "$as_me:$LINENO: result: yes" >&5 | |
3943 | echo "${ECHO_T}yes" >&6 | |
3944 | else | |
3945 | echo "$as_me:$LINENO: result: no" >&5 | |
3946 | echo "${ECHO_T}no" >&6 | |
3947 | fi | |
3948 | ||
3949 | ||
3950 | enablestring= | |
3951 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3952 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3953 | no_cache=0 | |
3954 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3955 | if test "${enable_no_exceptions+set}" = set; then | |
3956 | enableval="$enable_no_exceptions" | |
3957 | ||
3958 | if test "$enableval" = yes; then | |
3959 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3960 | else | |
3961 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3962 | fi | |
3963 | ||
3964 | else | |
3965 | ||
3966 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3967 | if test "x$LINE" != x ; then | |
3968 | eval "DEFAULT_$LINE" | |
3969 | else | |
3970 | no_cache=1 | |
3971 | fi | |
3972 | ||
3973 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3974 | ||
3975 | fi; | |
3976 | ||
3977 | eval "$ac_cv_use_no_exceptions" | |
3978 | if test "$no_cache" != 1; then | |
3979 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3980 | fi | |
3981 | ||
3982 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3983 | echo "$as_me:$LINENO: result: yes" >&5 | |
3984 | echo "${ECHO_T}yes" >&6 | |
3985 | else | |
3986 | echo "$as_me:$LINENO: result: no" >&5 | |
3987 | echo "${ECHO_T}no" >&6 | |
3988 | fi | |
3989 | ||
3990 | ||
3991 | enablestring= | |
3992 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3993 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3994 | no_cache=0 | |
3995 | # Check whether --enable-permissive or --disable-permissive was given. | |
3996 | if test "${enable_permissive+set}" = set; then | |
3997 | enableval="$enable_permissive" | |
3998 | ||
3999 | if test "$enableval" = yes; then | |
4000 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4001 | else | |
4002 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4003 | fi | |
4004 | ||
4005 | else | |
4006 | ||
4007 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4008 | if test "x$LINE" != x ; then | |
4009 | eval "DEFAULT_$LINE" | |
4010 | else | |
4011 | no_cache=1 | |
4012 | fi | |
4013 | ||
4014 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4015 | ||
4016 | fi; | |
4017 | ||
4018 | eval "$ac_cv_use_permissive" | |
4019 | if test "$no_cache" != 1; then | |
4020 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4021 | fi | |
4022 | ||
4023 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4024 | echo "$as_me:$LINENO: result: yes" >&5 | |
4025 | echo "${ECHO_T}yes" >&6 | |
4026 | else | |
4027 | echo "$as_me:$LINENO: result: no" >&5 | |
4028 | echo "${ECHO_T}no" >&6 | |
4029 | fi | |
4030 | ||
4031 | ||
4032 | enablestring= | |
4033 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4034 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4035 | no_cache=0 | |
4036 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4037 | if test "${enable_no_deps+set}" = set; then | |
4038 | enableval="$enable_no_deps" | |
4039 | ||
4040 | if test "$enableval" = yes; then | |
4041 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4042 | else | |
4043 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4044 | fi | |
4045 | ||
4046 | else | |
4047 | ||
4048 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4049 | if test "x$LINE" != x ; then | |
4050 | eval "DEFAULT_$LINE" | |
4051 | else | |
4052 | no_cache=1 | |
4053 | fi | |
4054 | ||
4055 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4056 | ||
4057 | fi; | |
4058 | ||
4059 | eval "$ac_cv_use_no_deps" | |
4060 | if test "$no_cache" != 1; then | |
4061 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4062 | fi | |
4063 | ||
4064 | if test "$wxUSE_NO_DEPS" = yes; then | |
4065 | echo "$as_me:$LINENO: result: yes" >&5 | |
4066 | echo "${ECHO_T}yes" >&6 | |
4067 | else | |
4068 | echo "$as_me:$LINENO: result: no" >&5 | |
4069 | echo "${ECHO_T}no" >&6 | |
4070 | fi | |
4071 | ||
4072 | ||
4073 | ||
4074 | enablestring= | |
4075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4076 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4077 | no_cache=0 | |
4078 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4079 | if test "${enable_compat22+set}" = set; then | |
4080 | enableval="$enable_compat22" | |
4081 | ||
4082 | if test "$enableval" = yes; then | |
4083 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4084 | else | |
4085 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4086 | fi | |
4087 | ||
4088 | else | |
4089 | ||
4090 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4091 | if test "x$LINE" != x ; then | |
4092 | eval "DEFAULT_$LINE" | |
4093 | else | |
4094 | no_cache=1 | |
4095 | fi | |
4096 | ||
4097 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4098 | ||
4099 | fi; | |
4100 | ||
4101 | eval "$ac_cv_use_compat22" | |
4102 | if test "$no_cache" != 1; then | |
4103 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4104 | fi | |
4105 | ||
4106 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4107 | echo "$as_me:$LINENO: result: yes" >&5 | |
4108 | echo "${ECHO_T}yes" >&6 | |
4109 | else | |
4110 | echo "$as_me:$LINENO: result: no" >&5 | |
4111 | echo "${ECHO_T}no" >&6 | |
4112 | fi | |
4113 | ||
4114 | ||
4115 | enablestring=disable | |
4116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4117 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4118 | no_cache=0 | |
4119 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4120 | if test "${enable_compat24+set}" = set; then | |
4121 | enableval="$enable_compat24" | |
4122 | ||
4123 | if test "$enableval" = yes; then | |
4124 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4125 | else | |
4126 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4127 | fi | |
4128 | ||
4129 | else | |
4130 | ||
4131 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4132 | if test "x$LINE" != x ; then | |
4133 | eval "DEFAULT_$LINE" | |
4134 | else | |
4135 | no_cache=1 | |
4136 | fi | |
4137 | ||
4138 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4139 | ||
4140 | fi; | |
4141 | ||
4142 | eval "$ac_cv_use_compat24" | |
4143 | if test "$no_cache" != 1; then | |
4144 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4145 | fi | |
4146 | ||
4147 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4148 | echo "$as_me:$LINENO: result: yes" >&5 | |
4149 | echo "${ECHO_T}yes" >&6 | |
4150 | else | |
4151 | echo "$as_me:$LINENO: result: no" >&5 | |
4152 | echo "${ECHO_T}no" >&6 | |
4153 | fi | |
4154 | ||
4155 | ||
ffa0583f RL |
4156 | |
4157 | enablestring= | |
4158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4159 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4160 | no_cache=0 | |
4161 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4162 | if test "${enable_rpath+set}" = set; then |
4163 | enableval="$enable_rpath" | |
ffa0583f RL |
4164 | |
4165 | if test "$enableval" = yes; then | |
4166 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4167 | else | |
4168 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4169 | fi | |
4170 | ||
4171 | else | |
4172 | ||
4173 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4174 | if test "x$LINE" != x ; then | |
4175 | eval "DEFAULT_$LINE" | |
4176 | else | |
4177 | no_cache=1 | |
4178 | fi | |
4179 | ||
4180 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4181 | ||
a848cd7e SC |
4182 | fi; |
4183 | ||
ffa0583f RL |
4184 | eval "$ac_cv_use_rpath" |
4185 | if test "$no_cache" != 1; then | |
4186 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4187 | fi | |
4188 | ||
4189 | if test "$wxUSE_RPATH" = yes; then | |
4190 | echo "$as_me:$LINENO: result: yes" >&5 | |
4191 | echo "${ECHO_T}yes" >&6 | |
4192 | else | |
4193 | echo "$as_me:$LINENO: result: no" >&5 | |
4194 | echo "${ECHO_T}no" >&6 | |
4195 | fi | |
4196 | ||
a848cd7e SC |
4197 | |
4198 | ||
4199 | ||
4200 | ||
4201 | enablestring= | |
4202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4203 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4204 | no_cache=0 | |
4205 | # Check whether --enable-intl or --disable-intl was given. | |
4206 | if test "${enable_intl+set}" = set; then | |
4207 | enableval="$enable_intl" | |
4208 | ||
4209 | if test "$enableval" = yes; then | |
4210 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4211 | else | |
4212 | ac_cv_use_intl='wxUSE_INTL=no' | |
4213 | fi | |
4214 | ||
4215 | else | |
4216 | ||
4217 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4218 | if test "x$LINE" != x ; then | |
4219 | eval "DEFAULT_$LINE" | |
4220 | else | |
4221 | no_cache=1 | |
4222 | fi | |
4223 | ||
4224 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4225 | ||
4226 | fi; | |
4227 | ||
4228 | eval "$ac_cv_use_intl" | |
4229 | if test "$no_cache" != 1; then | |
4230 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4231 | fi | |
4232 | ||
4233 | if test "$wxUSE_INTL" = yes; then | |
4234 | echo "$as_me:$LINENO: result: yes" >&5 | |
4235 | echo "${ECHO_T}yes" >&6 | |
4236 | else | |
4237 | echo "$as_me:$LINENO: result: no" >&5 | |
4238 | echo "${ECHO_T}no" >&6 | |
4239 | fi | |
4240 | ||
4241 | ||
4242 | enablestring= | |
4243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4244 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4245 | no_cache=0 | |
4246 | # Check whether --enable-config or --disable-config was given. | |
4247 | if test "${enable_config+set}" = set; then | |
4248 | enableval="$enable_config" | |
4249 | ||
4250 | if test "$enableval" = yes; then | |
4251 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4252 | else | |
4253 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4254 | fi | |
4255 | ||
4256 | else | |
4257 | ||
4258 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4259 | if test "x$LINE" != x ; then | |
4260 | eval "DEFAULT_$LINE" | |
4261 | else | |
4262 | no_cache=1 | |
4263 | fi | |
4264 | ||
4265 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4266 | ||
4267 | fi; | |
4268 | ||
4269 | eval "$ac_cv_use_config" | |
4270 | if test "$no_cache" != 1; then | |
4271 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4272 | fi | |
4273 | ||
4274 | if test "$wxUSE_CONFIG" = yes; then | |
4275 | echo "$as_me:$LINENO: result: yes" >&5 | |
4276 | echo "${ECHO_T}yes" >&6 | |
4277 | else | |
4278 | echo "$as_me:$LINENO: result: no" >&5 | |
4279 | echo "${ECHO_T}no" >&6 | |
4280 | fi | |
4281 | ||
4282 | ||
4283 | ||
4284 | enablestring= | |
4285 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4286 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4287 | no_cache=0 | |
4288 | # Check whether --enable-protocols or --disable-protocols was given. | |
4289 | if test "${enable_protocols+set}" = set; then | |
4290 | enableval="$enable_protocols" | |
4291 | ||
4292 | if test "$enableval" = yes; then | |
4293 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4294 | else | |
4295 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4296 | fi | |
4297 | ||
4298 | else | |
4299 | ||
4300 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4301 | if test "x$LINE" != x ; then | |
4302 | eval "DEFAULT_$LINE" | |
4303 | else | |
4304 | no_cache=1 | |
4305 | fi | |
4306 | ||
4307 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4308 | ||
4309 | fi; | |
4310 | ||
4311 | eval "$ac_cv_use_protocols" | |
4312 | if test "$no_cache" != 1; then | |
4313 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4314 | fi | |
4315 | ||
4316 | if test "$wxUSE_PROTOCOL" = yes; then | |
4317 | echo "$as_me:$LINENO: result: yes" >&5 | |
4318 | echo "${ECHO_T}yes" >&6 | |
4319 | else | |
4320 | echo "$as_me:$LINENO: result: no" >&5 | |
4321 | echo "${ECHO_T}no" >&6 | |
4322 | fi | |
4323 | ||
4324 | ||
4325 | enablestring= | |
4326 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4327 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4328 | no_cache=0 | |
4329 | # Check whether --enable-ftp or --disable-ftp was given. | |
4330 | if test "${enable_ftp+set}" = set; then | |
4331 | enableval="$enable_ftp" | |
4332 | ||
4333 | if test "$enableval" = yes; then | |
4334 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4335 | else | |
4336 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4337 | fi | |
4338 | ||
4339 | else | |
4340 | ||
4341 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4342 | if test "x$LINE" != x ; then | |
4343 | eval "DEFAULT_$LINE" | |
4344 | else | |
4345 | no_cache=1 | |
4346 | fi | |
4347 | ||
4348 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4349 | ||
4350 | fi; | |
4351 | ||
4352 | eval "$ac_cv_use_ftp" | |
4353 | if test "$no_cache" != 1; then | |
4354 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4355 | fi | |
4356 | ||
4357 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4358 | echo "$as_me:$LINENO: result: yes" >&5 | |
4359 | echo "${ECHO_T}yes" >&6 | |
4360 | else | |
4361 | echo "$as_me:$LINENO: result: no" >&5 | |
4362 | echo "${ECHO_T}no" >&6 | |
4363 | fi | |
4364 | ||
4365 | ||
4366 | enablestring= | |
4367 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4368 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4369 | no_cache=0 | |
4370 | # Check whether --enable-http or --disable-http was given. | |
4371 | if test "${enable_http+set}" = set; then | |
4372 | enableval="$enable_http" | |
4373 | ||
4374 | if test "$enableval" = yes; then | |
4375 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4376 | else | |
4377 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4378 | fi | |
4379 | ||
4380 | else | |
4381 | ||
4382 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4383 | if test "x$LINE" != x ; then | |
4384 | eval "DEFAULT_$LINE" | |
4385 | else | |
4386 | no_cache=1 | |
4387 | fi | |
4388 | ||
4389 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4390 | ||
4391 | fi; | |
4392 | ||
4393 | eval "$ac_cv_use_http" | |
4394 | if test "$no_cache" != 1; then | |
4395 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4396 | fi | |
4397 | ||
4398 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4399 | echo "$as_me:$LINENO: result: yes" >&5 | |
4400 | echo "${ECHO_T}yes" >&6 | |
4401 | else | |
4402 | echo "$as_me:$LINENO: result: no" >&5 | |
4403 | echo "${ECHO_T}no" >&6 | |
4404 | fi | |
4405 | ||
4406 | ||
4407 | enablestring= | |
4408 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4409 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4410 | no_cache=0 | |
4411 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4412 | if test "${enable_fileproto+set}" = set; then | |
4413 | enableval="$enable_fileproto" | |
4414 | ||
4415 | if test "$enableval" = yes; then | |
4416 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4417 | else | |
4418 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4419 | fi | |
4420 | ||
4421 | else | |
4422 | ||
4423 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4424 | if test "x$LINE" != x ; then | |
4425 | eval "DEFAULT_$LINE" | |
4426 | else | |
4427 | no_cache=1 | |
4428 | fi | |
4429 | ||
4430 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4431 | ||
4432 | fi; | |
4433 | ||
4434 | eval "$ac_cv_use_fileproto" | |
4435 | if test "$no_cache" != 1; then | |
4436 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4437 | fi | |
4438 | ||
4439 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4440 | echo "$as_me:$LINENO: result: yes" >&5 | |
4441 | echo "${ECHO_T}yes" >&6 | |
4442 | else | |
4443 | echo "$as_me:$LINENO: result: no" >&5 | |
4444 | echo "${ECHO_T}no" >&6 | |
4445 | fi | |
4446 | ||
4447 | ||
4448 | enablestring= | |
4449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4450 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4451 | no_cache=0 | |
4452 | # Check whether --enable-sockets or --disable-sockets was given. | |
4453 | if test "${enable_sockets+set}" = set; then | |
4454 | enableval="$enable_sockets" | |
4455 | ||
4456 | if test "$enableval" = yes; then | |
4457 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4458 | else | |
4459 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4460 | fi | |
4461 | ||
4462 | else | |
4463 | ||
4464 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4465 | if test "x$LINE" != x ; then | |
4466 | eval "DEFAULT_$LINE" | |
4467 | else | |
4468 | no_cache=1 | |
4469 | fi | |
4470 | ||
4471 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4472 | ||
4473 | fi; | |
4474 | ||
4475 | eval "$ac_cv_use_sockets" | |
4476 | if test "$no_cache" != 1; then | |
4477 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4478 | fi | |
4479 | ||
4480 | if test "$wxUSE_SOCKETS" = yes; then | |
4481 | echo "$as_me:$LINENO: result: yes" >&5 | |
4482 | echo "${ECHO_T}yes" >&6 | |
4483 | else | |
4484 | echo "$as_me:$LINENO: result: no" >&5 | |
4485 | echo "${ECHO_T}no" >&6 | |
4486 | fi | |
4487 | ||
4488 | ||
4489 | enablestring= | |
4490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4491 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4492 | no_cache=0 | |
4493 | # Check whether --enable-ole or --disable-ole was given. | |
4494 | if test "${enable_ole+set}" = set; then | |
4495 | enableval="$enable_ole" | |
4496 | ||
4497 | if test "$enableval" = yes; then | |
4498 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4499 | else | |
4500 | ac_cv_use_ole='wxUSE_OLE=no' | |
4501 | fi | |
4502 | ||
4503 | else | |
4504 | ||
4505 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4506 | if test "x$LINE" != x ; then | |
4507 | eval "DEFAULT_$LINE" | |
4508 | else | |
4509 | no_cache=1 | |
4510 | fi | |
4511 | ||
4512 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4513 | ||
4514 | fi; | |
4515 | ||
4516 | eval "$ac_cv_use_ole" | |
4517 | if test "$no_cache" != 1; then | |
4518 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4519 | fi | |
4520 | ||
4521 | if test "$wxUSE_OLE" = yes; then | |
4522 | echo "$as_me:$LINENO: result: yes" >&5 | |
4523 | echo "${ECHO_T}yes" >&6 | |
4524 | else | |
4525 | echo "$as_me:$LINENO: result: no" >&5 | |
4526 | echo "${ECHO_T}no" >&6 | |
4527 | fi | |
4528 | ||
4529 | ||
4530 | enablestring= | |
4531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4532 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4533 | no_cache=0 | |
4534 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4535 | if test "${enable_dataobj+set}" = set; then | |
4536 | enableval="$enable_dataobj" | |
4537 | ||
4538 | if test "$enableval" = yes; then | |
4539 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4540 | else | |
4541 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4542 | fi | |
4543 | ||
4544 | else | |
4545 | ||
4546 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4547 | if test "x$LINE" != x ; then | |
4548 | eval "DEFAULT_$LINE" | |
4549 | else | |
4550 | no_cache=1 | |
4551 | fi | |
4552 | ||
4553 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4554 | ||
4555 | fi; | |
4556 | ||
4557 | eval "$ac_cv_use_dataobj" | |
4558 | if test "$no_cache" != 1; then | |
4559 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4560 | fi | |
4561 | ||
4562 | if test "$wxUSE_DATAOBJ" = yes; then | |
4563 | echo "$as_me:$LINENO: result: yes" >&5 | |
4564 | echo "${ECHO_T}yes" >&6 | |
4565 | else | |
4566 | echo "$as_me:$LINENO: result: no" >&5 | |
4567 | echo "${ECHO_T}no" >&6 | |
4568 | fi | |
4569 | ||
4570 | ||
4571 | ||
4572 | enablestring= | |
4573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4574 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4575 | no_cache=0 | |
4576 | # Check whether --enable-ipc or --disable-ipc was given. | |
4577 | if test "${enable_ipc+set}" = set; then | |
4578 | enableval="$enable_ipc" | |
4579 | ||
4580 | if test "$enableval" = yes; then | |
4581 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4582 | else | |
4583 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4584 | fi | |
4585 | ||
4586 | else | |
4587 | ||
4588 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4589 | if test "x$LINE" != x ; then | |
4590 | eval "DEFAULT_$LINE" | |
4591 | else | |
4592 | no_cache=1 | |
4593 | fi | |
4594 | ||
4595 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4596 | ||
4597 | fi; | |
4598 | ||
4599 | eval "$ac_cv_use_ipc" | |
4600 | if test "$no_cache" != 1; then | |
4601 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4602 | fi | |
4603 | ||
4604 | if test "$wxUSE_IPC" = yes; then | |
4605 | echo "$as_me:$LINENO: result: yes" >&5 | |
4606 | echo "${ECHO_T}yes" >&6 | |
4607 | else | |
4608 | echo "$as_me:$LINENO: result: no" >&5 | |
4609 | echo "${ECHO_T}no" >&6 | |
4610 | fi | |
4611 | ||
4612 | ||
4613 | ||
4614 | enablestring= | |
4615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4616 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4617 | no_cache=0 | |
4618 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4619 | if test "${enable_apple_ieee+set}" = set; then | |
4620 | enableval="$enable_apple_ieee" | |
4621 | ||
4622 | if test "$enableval" = yes; then | |
4623 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4624 | else | |
4625 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4626 | fi | |
4627 | ||
4628 | else | |
4629 | ||
4630 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4631 | if test "x$LINE" != x ; then | |
4632 | eval "DEFAULT_$LINE" | |
4633 | else | |
4634 | no_cache=1 | |
4635 | fi | |
4636 | ||
4637 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4638 | ||
4639 | fi; | |
4640 | ||
4641 | eval "$ac_cv_use_apple_ieee" | |
4642 | if test "$no_cache" != 1; then | |
4643 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4644 | fi | |
4645 | ||
4646 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4647 | echo "$as_me:$LINENO: result: yes" >&5 | |
4648 | echo "${ECHO_T}yes" >&6 | |
4649 | else | |
4650 | echo "$as_me:$LINENO: result: no" >&5 | |
4651 | echo "${ECHO_T}no" >&6 | |
4652 | fi | |
4653 | ||
4654 | ||
4655 | enablestring= | |
4656 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4657 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4658 | no_cache=0 | |
4659 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4660 | if test "${enable_catch_segvs+set}" = set; then | |
4661 | enableval="$enable_catch_segvs" | |
4662 | ||
4663 | if test "$enableval" = yes; then | |
4664 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4665 | else | |
4666 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4667 | fi | |
4668 | ||
4669 | else | |
4670 | ||
4671 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4672 | if test "x$LINE" != x ; then | |
4673 | eval "DEFAULT_$LINE" | |
4674 | else | |
4675 | no_cache=1 | |
4676 | fi | |
4677 | ||
4678 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4679 | ||
4680 | fi; | |
4681 | ||
4682 | eval "$ac_cv_use_catch_segvs" | |
4683 | if test "$no_cache" != 1; then | |
4684 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4685 | fi | |
4686 | ||
4687 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4688 | echo "$as_me:$LINENO: result: yes" >&5 | |
4689 | echo "${ECHO_T}yes" >&6 | |
4690 | else | |
4691 | echo "$as_me:$LINENO: result: no" >&5 | |
4692 | echo "${ECHO_T}no" >&6 | |
4693 | fi | |
4694 | ||
4695 | ||
4696 | enablestring= | |
4697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4698 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4699 | no_cache=0 | |
4700 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4701 | if test "${enable_cmdline+set}" = set; then | |
4702 | enableval="$enable_cmdline" | |
4703 | ||
4704 | if test "$enableval" = yes; then | |
4705 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4706 | else | |
4707 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4708 | fi | |
4709 | ||
4710 | else | |
4711 | ||
4712 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4713 | if test "x$LINE" != x ; then | |
4714 | eval "DEFAULT_$LINE" | |
4715 | else | |
4716 | no_cache=1 | |
4717 | fi | |
4718 | ||
4719 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4720 | ||
4721 | fi; | |
4722 | ||
4723 | eval "$ac_cv_use_cmdline" | |
4724 | if test "$no_cache" != 1; then | |
4725 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4726 | fi | |
4727 | ||
4728 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4729 | echo "$as_me:$LINENO: result: yes" >&5 | |
4730 | echo "${ECHO_T}yes" >&6 | |
4731 | else | |
4732 | echo "$as_me:$LINENO: result: no" >&5 | |
4733 | echo "${ECHO_T}no" >&6 | |
4734 | fi | |
4735 | ||
4736 | ||
4737 | enablestring= | |
4738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4739 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4740 | no_cache=0 | |
4741 | # Check whether --enable-datetime or --disable-datetime was given. | |
4742 | if test "${enable_datetime+set}" = set; then | |
4743 | enableval="$enable_datetime" | |
4744 | ||
4745 | if test "$enableval" = yes; then | |
4746 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4747 | else | |
4748 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4749 | fi | |
4750 | ||
4751 | else | |
4752 | ||
4753 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4761 | ||
4762 | fi; | |
4763 | ||
4764 | eval "$ac_cv_use_datetime" | |
4765 | if test "$no_cache" != 1; then | |
4766 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4767 | fi | |
4768 | ||
4769 | if test "$wxUSE_DATETIME" = yes; then | |
4770 | echo "$as_me:$LINENO: result: yes" >&5 | |
4771 | echo "${ECHO_T}yes" >&6 | |
4772 | else | |
4773 | echo "$as_me:$LINENO: result: no" >&5 | |
4774 | echo "${ECHO_T}no" >&6 | |
4775 | fi | |
4776 | ||
4777 | ||
4778 | enablestring= | |
4779 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4780 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4781 | no_cache=0 | |
4782 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4783 | if test "${enable_dialupman+set}" = set; then | |
4784 | enableval="$enable_dialupman" | |
4785 | ||
4786 | if test "$enableval" = yes; then | |
4787 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4788 | else | |
4789 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4790 | fi | |
4791 | ||
4792 | else | |
4793 | ||
4794 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4795 | if test "x$LINE" != x ; then | |
4796 | eval "DEFAULT_$LINE" | |
4797 | else | |
4798 | no_cache=1 | |
4799 | fi | |
4800 | ||
4801 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4802 | ||
4803 | fi; | |
4804 | ||
4805 | eval "$ac_cv_use_dialupman" | |
4806 | if test "$no_cache" != 1; then | |
4807 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4808 | fi | |
4809 | ||
4810 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4811 | echo "$as_me:$LINENO: result: yes" >&5 | |
4812 | echo "${ECHO_T}yes" >&6 | |
4813 | else | |
4814 | echo "$as_me:$LINENO: result: no" >&5 | |
4815 | echo "${ECHO_T}no" >&6 | |
4816 | fi | |
4817 | ||
4818 | ||
4819 | enablestring= | |
4820 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4821 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4822 | no_cache=0 | |
4823 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4824 | if test "${enable_dynlib+set}" = set; then | |
4825 | enableval="$enable_dynlib" | |
4826 | ||
4827 | if test "$enableval" = yes; then | |
4828 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4829 | else | |
4830 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4831 | fi | |
4832 | ||
4833 | else | |
4834 | ||
4835 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4836 | if test "x$LINE" != x ; then | |
4837 | eval "DEFAULT_$LINE" | |
4838 | else | |
4839 | no_cache=1 | |
4840 | fi | |
4841 | ||
4842 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4843 | ||
4844 | fi; | |
4845 | ||
4846 | eval "$ac_cv_use_dynlib" | |
4847 | if test "$no_cache" != 1; then | |
4848 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4849 | fi | |
4850 | ||
4851 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4852 | echo "$as_me:$LINENO: result: yes" >&5 | |
4853 | echo "${ECHO_T}yes" >&6 | |
4854 | else | |
4855 | echo "$as_me:$LINENO: result: no" >&5 | |
4856 | echo "${ECHO_T}no" >&6 | |
4857 | fi | |
4858 | ||
4859 | ||
4860 | enablestring= | |
4861 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4862 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4863 | no_cache=0 | |
4864 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4865 | if test "${enable_dynamicloader+set}" = set; then | |
4866 | enableval="$enable_dynamicloader" | |
4867 | ||
4868 | if test "$enableval" = yes; then | |
4869 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4870 | else | |
4871 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4872 | fi | |
4873 | ||
4874 | else | |
4875 | ||
4876 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4877 | if test "x$LINE" != x ; then | |
4878 | eval "DEFAULT_$LINE" | |
4879 | else | |
4880 | no_cache=1 | |
4881 | fi | |
4882 | ||
4883 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4884 | ||
4885 | fi; | |
4886 | ||
4887 | eval "$ac_cv_use_dynamicloader" | |
4888 | if test "$no_cache" != 1; then | |
4889 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4890 | fi | |
4891 | ||
4892 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4893 | echo "$as_me:$LINENO: result: yes" >&5 | |
4894 | echo "${ECHO_T}yes" >&6 | |
4895 | else | |
4896 | echo "$as_me:$LINENO: result: no" >&5 | |
4897 | echo "${ECHO_T}no" >&6 | |
4898 | fi | |
4899 | ||
4900 | ||
4901 | enablestring= | |
4902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4903 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4904 | no_cache=0 | |
4905 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4906 | if test "${enable_exceptions+set}" = set; then | |
4907 | enableval="$enable_exceptions" | |
4908 | ||
4909 | if test "$enableval" = yes; then | |
4910 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4911 | else | |
4912 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4913 | fi | |
4914 | ||
4915 | else | |
4916 | ||
4917 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4918 | if test "x$LINE" != x ; then | |
4919 | eval "DEFAULT_$LINE" | |
4920 | else | |
4921 | no_cache=1 | |
4922 | fi | |
4923 | ||
4924 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4925 | ||
4926 | fi; | |
4927 | ||
4928 | eval "$ac_cv_use_exceptions" | |
4929 | if test "$no_cache" != 1; then | |
4930 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4931 | fi | |
4932 | ||
4933 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4934 | echo "$as_me:$LINENO: result: yes" >&5 | |
4935 | echo "${ECHO_T}yes" >&6 | |
4936 | else | |
4937 | echo "$as_me:$LINENO: result: no" >&5 | |
4938 | echo "${ECHO_T}no" >&6 | |
4939 | fi | |
4940 | ||
4941 | ||
4942 | enablestring= | |
4943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4944 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4945 | no_cache=0 | |
4946 | # Check whether --enable-ffile or --disable-ffile was given. | |
4947 | if test "${enable_ffile+set}" = set; then | |
4948 | enableval="$enable_ffile" | |
4949 | ||
4950 | if test "$enableval" = yes; then | |
4951 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4952 | else | |
4953 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4954 | fi | |
4955 | ||
4956 | else | |
4957 | ||
4958 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4959 | if test "x$LINE" != x ; then | |
4960 | eval "DEFAULT_$LINE" | |
4961 | else | |
4962 | no_cache=1 | |
4963 | fi | |
4964 | ||
4965 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4966 | ||
4967 | fi; | |
4968 | ||
4969 | eval "$ac_cv_use_ffile" | |
4970 | if test "$no_cache" != 1; then | |
4971 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4972 | fi | |
4973 | ||
4974 | if test "$wxUSE_FFILE" = yes; then | |
4975 | echo "$as_me:$LINENO: result: yes" >&5 | |
4976 | echo "${ECHO_T}yes" >&6 | |
4977 | else | |
4978 | echo "$as_me:$LINENO: result: no" >&5 | |
4979 | echo "${ECHO_T}no" >&6 | |
4980 | fi | |
4981 | ||
4982 | ||
4983 | enablestring= | |
4984 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4985 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4986 | no_cache=0 | |
4987 | # Check whether --enable-file or --disable-file was given. | |
4988 | if test "${enable_file+set}" = set; then | |
4989 | enableval="$enable_file" | |
4990 | ||
4991 | if test "$enableval" = yes; then | |
4992 | ac_cv_use_file='wxUSE_FILE=yes' | |
4993 | else | |
4994 | ac_cv_use_file='wxUSE_FILE=no' | |
4995 | fi | |
4996 | ||
4997 | else | |
4998 | ||
4999 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5000 | if test "x$LINE" != x ; then | |
5001 | eval "DEFAULT_$LINE" | |
5002 | else | |
5003 | no_cache=1 | |
5004 | fi | |
5005 | ||
5006 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5007 | ||
5008 | fi; | |
5009 | ||
5010 | eval "$ac_cv_use_file" | |
5011 | if test "$no_cache" != 1; then | |
5012 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5013 | fi | |
5014 | ||
5015 | if test "$wxUSE_FILE" = yes; then | |
5016 | echo "$as_me:$LINENO: result: yes" >&5 | |
5017 | echo "${ECHO_T}yes" >&6 | |
5018 | else | |
5019 | echo "$as_me:$LINENO: result: no" >&5 | |
5020 | echo "${ECHO_T}no" >&6 | |
5021 | fi | |
5022 | ||
5023 | ||
5024 | enablestring= | |
5025 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5026 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5027 | no_cache=0 | |
5028 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5029 | if test "${enable_filesystem+set}" = set; then | |
5030 | enableval="$enable_filesystem" | |
5031 | ||
5032 | if test "$enableval" = yes; then | |
5033 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5034 | else | |
5035 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5036 | fi | |
5037 | ||
5038 | else | |
5039 | ||
5040 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5041 | if test "x$LINE" != x ; then | |
5042 | eval "DEFAULT_$LINE" | |
5043 | else | |
5044 | no_cache=1 | |
5045 | fi | |
5046 | ||
5047 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5048 | ||
5049 | fi; | |
5050 | ||
5051 | eval "$ac_cv_use_filesystem" | |
5052 | if test "$no_cache" != 1; then | |
5053 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5054 | fi | |
5055 | ||
5056 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5057 | echo "$as_me:$LINENO: result: yes" >&5 | |
5058 | echo "${ECHO_T}yes" >&6 | |
5059 | else | |
5060 | echo "$as_me:$LINENO: result: no" >&5 | |
5061 | echo "${ECHO_T}no" >&6 | |
5062 | fi | |
5063 | ||
5064 | ||
5065 | enablestring= | |
5066 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5067 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5068 | no_cache=0 | |
5069 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5070 | if test "${enable_fontmap+set}" = set; then | |
5071 | enableval="$enable_fontmap" | |
5072 | ||
5073 | if test "$enableval" = yes; then | |
5074 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5075 | else | |
5076 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5077 | fi | |
5078 | ||
5079 | else | |
5080 | ||
5081 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5082 | if test "x$LINE" != x ; then | |
5083 | eval "DEFAULT_$LINE" | |
5084 | else | |
5085 | no_cache=1 | |
5086 | fi | |
5087 | ||
5088 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5089 | ||
5090 | fi; | |
5091 | ||
5092 | eval "$ac_cv_use_fontmap" | |
5093 | if test "$no_cache" != 1; then | |
5094 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5095 | fi | |
5096 | ||
5097 | if test "$wxUSE_FONTMAP" = yes; then | |
5098 | echo "$as_me:$LINENO: result: yes" >&5 | |
5099 | echo "${ECHO_T}yes" >&6 | |
5100 | else | |
5101 | echo "$as_me:$LINENO: result: no" >&5 | |
5102 | echo "${ECHO_T}no" >&6 | |
5103 | fi | |
5104 | ||
5105 | ||
5106 | enablestring= | |
5107 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5108 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5109 | no_cache=0 | |
5110 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5111 | if test "${enable_fs_inet+set}" = set; then | |
5112 | enableval="$enable_fs_inet" | |
5113 | ||
5114 | if test "$enableval" = yes; then | |
5115 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5116 | else | |
5117 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5118 | fi | |
5119 | ||
5120 | else | |
5121 | ||
5122 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5123 | if test "x$LINE" != x ; then | |
5124 | eval "DEFAULT_$LINE" | |
5125 | else | |
5126 | no_cache=1 | |
5127 | fi | |
5128 | ||
5129 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5130 | ||
5131 | fi; | |
5132 | ||
5133 | eval "$ac_cv_use_fs_inet" | |
5134 | if test "$no_cache" != 1; then | |
5135 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5136 | fi | |
5137 | ||
5138 | if test "$wxUSE_FS_INET" = yes; then | |
5139 | echo "$as_me:$LINENO: result: yes" >&5 | |
5140 | echo "${ECHO_T}yes" >&6 | |
5141 | else | |
5142 | echo "$as_me:$LINENO: result: no" >&5 | |
5143 | echo "${ECHO_T}no" >&6 | |
5144 | fi | |
5145 | ||
5146 | ||
5147 | enablestring= | |
5148 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5149 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5150 | no_cache=0 | |
5151 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5152 | if test "${enable_fs_zip+set}" = set; then | |
5153 | enableval="$enable_fs_zip" | |
5154 | ||
5155 | if test "$enableval" = yes; then | |
5156 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5157 | else | |
5158 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5159 | fi | |
5160 | ||
5161 | else | |
5162 | ||
5163 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5164 | if test "x$LINE" != x ; then | |
5165 | eval "DEFAULT_$LINE" | |
5166 | else | |
5167 | no_cache=1 | |
5168 | fi | |
5169 | ||
5170 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5171 | ||
5172 | fi; | |
5173 | ||
5174 | eval "$ac_cv_use_fs_zip" | |
5175 | if test "$no_cache" != 1; then | |
5176 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5177 | fi | |
5178 | ||
5179 | if test "$wxUSE_FS_ZIP" = yes; then | |
5180 | echo "$as_me:$LINENO: result: yes" >&5 | |
5181 | echo "${ECHO_T}yes" >&6 | |
5182 | else | |
5183 | echo "$as_me:$LINENO: result: no" >&5 | |
5184 | echo "${ECHO_T}no" >&6 | |
5185 | fi | |
5186 | ||
5187 | ||
5188 | enablestring= | |
5189 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5190 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5191 | no_cache=0 | |
5192 | # Check whether --enable-geometry or --disable-geometry was given. | |
5193 | if test "${enable_geometry+set}" = set; then | |
5194 | enableval="$enable_geometry" | |
5195 | ||
5196 | if test "$enableval" = yes; then | |
5197 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5198 | else | |
5199 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5200 | fi | |
5201 | ||
5202 | else | |
5203 | ||
5204 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5205 | if test "x$LINE" != x ; then | |
5206 | eval "DEFAULT_$LINE" | |
5207 | else | |
5208 | no_cache=1 | |
5209 | fi | |
5210 | ||
5211 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5212 | ||
5213 | fi; | |
5214 | ||
5215 | eval "$ac_cv_use_geometry" | |
5216 | if test "$no_cache" != 1; then | |
5217 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5218 | fi | |
5219 | ||
5220 | if test "$wxUSE_GEOMETRY" = yes; then | |
5221 | echo "$as_me:$LINENO: result: yes" >&5 | |
5222 | echo "${ECHO_T}yes" >&6 | |
5223 | else | |
5224 | echo "$as_me:$LINENO: result: no" >&5 | |
5225 | echo "${ECHO_T}no" >&6 | |
5226 | fi | |
5227 | ||
5228 | ||
5229 | enablestring= | |
5230 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5231 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5232 | no_cache=0 | |
5233 | # Check whether --enable-log or --disable-log was given. | |
5234 | if test "${enable_log+set}" = set; then | |
5235 | enableval="$enable_log" | |
5236 | ||
5237 | if test "$enableval" = yes; then | |
5238 | ac_cv_use_log='wxUSE_LOG=yes' | |
5239 | else | |
5240 | ac_cv_use_log='wxUSE_LOG=no' | |
5241 | fi | |
5242 | ||
5243 | else | |
5244 | ||
5245 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5246 | if test "x$LINE" != x ; then | |
5247 | eval "DEFAULT_$LINE" | |
5248 | else | |
5249 | no_cache=1 | |
5250 | fi | |
5251 | ||
5252 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5253 | ||
5254 | fi; | |
5255 | ||
5256 | eval "$ac_cv_use_log" | |
5257 | if test "$no_cache" != 1; then | |
5258 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5259 | fi | |
5260 | ||
5261 | if test "$wxUSE_LOG" = yes; then | |
5262 | echo "$as_me:$LINENO: result: yes" >&5 | |
5263 | echo "${ECHO_T}yes" >&6 | |
5264 | else | |
5265 | echo "$as_me:$LINENO: result: no" >&5 | |
5266 | echo "${ECHO_T}no" >&6 | |
5267 | fi | |
5268 | ||
5269 | ||
5270 | enablestring= | |
5271 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5272 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5273 | no_cache=0 | |
5274 | # Check whether --enable-longlong or --disable-longlong was given. | |
5275 | if test "${enable_longlong+set}" = set; then | |
5276 | enableval="$enable_longlong" | |
5277 | ||
5278 | if test "$enableval" = yes; then | |
5279 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5280 | else | |
5281 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5282 | fi | |
5283 | ||
5284 | else | |
5285 | ||
5286 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5287 | if test "x$LINE" != x ; then | |
5288 | eval "DEFAULT_$LINE" | |
5289 | else | |
5290 | no_cache=1 | |
5291 | fi | |
5292 | ||
5293 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5294 | ||
5295 | fi; | |
5296 | ||
5297 | eval "$ac_cv_use_longlong" | |
5298 | if test "$no_cache" != 1; then | |
5299 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5300 | fi | |
5301 | ||
5302 | if test "$wxUSE_LONGLONG" = yes; then | |
5303 | echo "$as_me:$LINENO: result: yes" >&5 | |
5304 | echo "${ECHO_T}yes" >&6 | |
5305 | else | |
5306 | echo "$as_me:$LINENO: result: no" >&5 | |
5307 | echo "${ECHO_T}no" >&6 | |
5308 | fi | |
5309 | ||
5310 | ||
5311 | enablestring= | |
5312 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5313 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5314 | no_cache=0 | |
5315 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5316 | if test "${enable_mimetype+set}" = set; then | |
5317 | enableval="$enable_mimetype" | |
5318 | ||
5319 | if test "$enableval" = yes; then | |
5320 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5321 | else | |
5322 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5323 | fi | |
5324 | ||
5325 | else | |
5326 | ||
5327 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5328 | if test "x$LINE" != x ; then | |
5329 | eval "DEFAULT_$LINE" | |
5330 | else | |
5331 | no_cache=1 | |
5332 | fi | |
5333 | ||
5334 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5335 | ||
5336 | fi; | |
5337 | ||
5338 | eval "$ac_cv_use_mimetype" | |
5339 | if test "$no_cache" != 1; then | |
5340 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5341 | fi | |
5342 | ||
5343 | if test "$wxUSE_MIMETYPE" = yes; then | |
5344 | echo "$as_me:$LINENO: result: yes" >&5 | |
5345 | echo "${ECHO_T}yes" >&6 | |
5346 | else | |
5347 | echo "$as_me:$LINENO: result: no" >&5 | |
5348 | echo "${ECHO_T}no" >&6 | |
5349 | fi | |
5350 | ||
5351 | ||
5352 | enablestring= | |
5353 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5354 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5355 | no_cache=0 | |
5356 | # Check whether --enable-mslu or --disable-mslu was given. | |
5357 | if test "${enable_mslu+set}" = set; then | |
5358 | enableval="$enable_mslu" | |
5359 | ||
5360 | if test "$enableval" = yes; then | |
5361 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5362 | else | |
5363 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5364 | fi | |
5365 | ||
5366 | else | |
5367 | ||
5368 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5369 | if test "x$LINE" != x ; then | |
5370 | eval "DEFAULT_$LINE" | |
5371 | else | |
5372 | no_cache=1 | |
5373 | fi | |
5374 | ||
5375 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5376 | ||
5377 | fi; | |
5378 | ||
5379 | eval "$ac_cv_use_mslu" | |
5380 | if test "$no_cache" != 1; then | |
5381 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5382 | fi | |
5383 | ||
5384 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5385 | echo "$as_me:$LINENO: result: yes" >&5 | |
5386 | echo "${ECHO_T}yes" >&6 | |
5387 | else | |
5388 | echo "$as_me:$LINENO: result: no" >&5 | |
5389 | echo "${ECHO_T}no" >&6 | |
5390 | fi | |
5391 | ||
5392 | ||
5393 | enablestring= | |
5394 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5395 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5396 | no_cache=0 | |
5397 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5398 | if test "${enable_snglinst+set}" = set; then | |
5399 | enableval="$enable_snglinst" | |
5400 | ||
5401 | if test "$enableval" = yes; then | |
5402 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5403 | else | |
5404 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5405 | fi | |
5406 | ||
5407 | else | |
5408 | ||
5409 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5410 | if test "x$LINE" != x ; then | |
5411 | eval "DEFAULT_$LINE" | |
5412 | else | |
5413 | no_cache=1 | |
5414 | fi | |
5415 | ||
5416 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5417 | ||
5418 | fi; | |
5419 | ||
5420 | eval "$ac_cv_use_snglinst" | |
5421 | if test "$no_cache" != 1; then | |
5422 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5423 | fi | |
5424 | ||
5425 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5426 | echo "$as_me:$LINENO: result: yes" >&5 | |
5427 | echo "${ECHO_T}yes" >&6 | |
5428 | else | |
5429 | echo "$as_me:$LINENO: result: no" >&5 | |
5430 | echo "${ECHO_T}no" >&6 | |
5431 | fi | |
5432 | ||
5433 | ||
5434 | enablestring= | |
5435 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5436 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5437 | no_cache=0 | |
5438 | # Check whether --enable-streams or --disable-streams was given. | |
5439 | if test "${enable_streams+set}" = set; then | |
5440 | enableval="$enable_streams" | |
5441 | ||
5442 | if test "$enableval" = yes; then | |
5443 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5444 | else | |
5445 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5446 | fi | |
5447 | ||
5448 | else | |
5449 | ||
5450 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5451 | if test "x$LINE" != x ; then | |
5452 | eval "DEFAULT_$LINE" | |
5453 | else | |
5454 | no_cache=1 | |
5455 | fi | |
5456 | ||
5457 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5458 | ||
5459 | fi; | |
5460 | ||
5461 | eval "$ac_cv_use_streams" | |
5462 | if test "$no_cache" != 1; then | |
5463 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5464 | fi | |
5465 | ||
5466 | if test "$wxUSE_STREAMS" = yes; then | |
5467 | echo "$as_me:$LINENO: result: yes" >&5 | |
5468 | echo "${ECHO_T}yes" >&6 | |
5469 | else | |
5470 | echo "$as_me:$LINENO: result: no" >&5 | |
5471 | echo "${ECHO_T}no" >&6 | |
5472 | fi | |
5473 | ||
5474 | ||
5475 | enablestring= | |
5476 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5477 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5478 | no_cache=0 | |
5479 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5480 | if test "${enable_std_iostreams+set}" = set; then | |
5481 | enableval="$enable_std_iostreams" | |
5482 | ||
5483 | if test "$enableval" = yes; then | |
5484 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5485 | else | |
5486 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5487 | fi | |
5488 | ||
5489 | else | |
5490 | ||
5491 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5492 | if test "x$LINE" != x ; then | |
5493 | eval "DEFAULT_$LINE" | |
5494 | else | |
5495 | no_cache=1 | |
5496 | fi | |
5497 | ||
5498 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5499 | ||
5500 | fi; | |
5501 | ||
5502 | eval "$ac_cv_use_std_iostreams" | |
5503 | if test "$no_cache" != 1; then | |
5504 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5505 | fi | |
5506 | ||
5507 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5508 | echo "$as_me:$LINENO: result: yes" >&5 | |
5509 | echo "${ECHO_T}yes" >&6 | |
5510 | else | |
5511 | echo "$as_me:$LINENO: result: no" >&5 | |
5512 | echo "${ECHO_T}no" >&6 | |
5513 | fi | |
5514 | ||
5515 | ||
5516 | enablestring= | |
5517 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5518 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5519 | no_cache=0 | |
5520 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5521 | if test "${enable_stopwatch+set}" = set; then | |
5522 | enableval="$enable_stopwatch" | |
5523 | ||
5524 | if test "$enableval" = yes; then | |
5525 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5526 | else | |
5527 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5528 | fi | |
5529 | ||
5530 | else | |
5531 | ||
5532 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5533 | if test "x$LINE" != x ; then | |
5534 | eval "DEFAULT_$LINE" | |
5535 | else | |
5536 | no_cache=1 | |
5537 | fi | |
5538 | ||
5539 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5540 | ||
5541 | fi; | |
5542 | ||
5543 | eval "$ac_cv_use_stopwatch" | |
5544 | if test "$no_cache" != 1; then | |
5545 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5546 | fi | |
5547 | ||
5548 | if test "$wxUSE_STOPWATCH" = yes; then | |
5549 | echo "$as_me:$LINENO: result: yes" >&5 | |
5550 | echo "${ECHO_T}yes" >&6 | |
5551 | else | |
5552 | echo "$as_me:$LINENO: result: no" >&5 | |
5553 | echo "${ECHO_T}no" >&6 | |
5554 | fi | |
5555 | ||
5556 | ||
5557 | enablestring= | |
5558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5559 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5560 | no_cache=0 | |
5561 | # Check whether --enable-system_options or --disable-system_options was given. | |
5562 | if test "${enable_system_options+set}" = set; then | |
5563 | enableval="$enable_system_options" | |
5564 | ||
5565 | if test "$enableval" = yes; then | |
5566 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5567 | else | |
5568 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5569 | fi | |
5570 | ||
5571 | else | |
5572 | ||
5573 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5574 | if test "x$LINE" != x ; then | |
5575 | eval "DEFAULT_$LINE" | |
5576 | else | |
5577 | no_cache=1 | |
5578 | fi | |
5579 | ||
5580 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5581 | ||
5582 | fi; | |
5583 | ||
5584 | eval "$ac_cv_use_system_options" | |
5585 | if test "$no_cache" != 1; then | |
5586 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5587 | fi | |
5588 | ||
5589 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5590 | echo "$as_me:$LINENO: result: yes" >&5 | |
5591 | echo "${ECHO_T}yes" >&6 | |
5592 | else | |
5593 | echo "$as_me:$LINENO: result: no" >&5 | |
5594 | echo "${ECHO_T}no" >&6 | |
5595 | fi | |
5596 | ||
5597 | ||
5598 | enablestring= | |
5599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5600 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5601 | no_cache=0 | |
5602 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5603 | if test "${enable_textbuf+set}" = set; then | |
5604 | enableval="$enable_textbuf" | |
5605 | ||
5606 | if test "$enableval" = yes; then | |
5607 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5608 | else | |
5609 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5610 | fi | |
5611 | ||
5612 | else | |
5613 | ||
5614 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5615 | if test "x$LINE" != x ; then | |
5616 | eval "DEFAULT_$LINE" | |
5617 | else | |
5618 | no_cache=1 | |
5619 | fi | |
5620 | ||
5621 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5622 | ||
5623 | fi; | |
5624 | ||
5625 | eval "$ac_cv_use_textbuf" | |
5626 | if test "$no_cache" != 1; then | |
5627 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5628 | fi | |
5629 | ||
5630 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5631 | echo "$as_me:$LINENO: result: yes" >&5 | |
5632 | echo "${ECHO_T}yes" >&6 | |
5633 | else | |
5634 | echo "$as_me:$LINENO: result: no" >&5 | |
5635 | echo "${ECHO_T}no" >&6 | |
5636 | fi | |
5637 | ||
5638 | ||
5639 | enablestring= | |
5640 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5641 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5642 | no_cache=0 | |
5643 | # Check whether --enable-textfile or --disable-textfile was given. | |
5644 | if test "${enable_textfile+set}" = set; then | |
5645 | enableval="$enable_textfile" | |
5646 | ||
5647 | if test "$enableval" = yes; then | |
5648 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5649 | else | |
5650 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5651 | fi | |
5652 | ||
5653 | else | |
5654 | ||
5655 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5656 | if test "x$LINE" != x ; then | |
5657 | eval "DEFAULT_$LINE" | |
5658 | else | |
5659 | no_cache=1 | |
5660 | fi | |
5661 | ||
5662 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5663 | ||
5664 | fi; | |
5665 | ||
5666 | eval "$ac_cv_use_textfile" | |
5667 | if test "$no_cache" != 1; then | |
5668 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5669 | fi | |
5670 | ||
5671 | if test "$wxUSE_TEXTFILE" = yes; then | |
5672 | echo "$as_me:$LINENO: result: yes" >&5 | |
5673 | echo "${ECHO_T}yes" >&6 | |
5674 | else | |
5675 | echo "$as_me:$LINENO: result: no" >&5 | |
5676 | echo "${ECHO_T}no" >&6 | |
5677 | fi | |
5678 | ||
5679 | ||
5680 | enablestring= | |
5681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5682 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5683 | no_cache=0 | |
5684 | # Check whether --enable-timer or --disable-timer was given. | |
5685 | if test "${enable_timer+set}" = set; then | |
5686 | enableval="$enable_timer" | |
5687 | ||
5688 | if test "$enableval" = yes; then | |
5689 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5690 | else | |
5691 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5692 | fi | |
5693 | ||
5694 | else | |
5695 | ||
5696 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5697 | if test "x$LINE" != x ; then | |
5698 | eval "DEFAULT_$LINE" | |
5699 | else | |
5700 | no_cache=1 | |
5701 | fi | |
5702 | ||
5703 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5704 | ||
5705 | fi; | |
5706 | ||
5707 | eval "$ac_cv_use_timer" | |
5708 | if test "$no_cache" != 1; then | |
5709 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5710 | fi | |
5711 | ||
5712 | if test "$wxUSE_TIMER" = yes; then | |
5713 | echo "$as_me:$LINENO: result: yes" >&5 | |
5714 | echo "${ECHO_T}yes" >&6 | |
5715 | else | |
5716 | echo "$as_me:$LINENO: result: no" >&5 | |
5717 | echo "${ECHO_T}no" >&6 | |
5718 | fi | |
5719 | ||
5720 | ||
5721 | enablestring= | |
5722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5723 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5724 | no_cache=0 | |
5725 | # Check whether --enable-unicode or --disable-unicode was given. | |
5726 | if test "${enable_unicode+set}" = set; then | |
5727 | enableval="$enable_unicode" | |
5728 | ||
5729 | if test "$enableval" = yes; then | |
5730 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5731 | else | |
5732 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5733 | fi | |
5734 | ||
5735 | else | |
5736 | ||
5737 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5738 | if test "x$LINE" != x ; then | |
5739 | eval "DEFAULT_$LINE" | |
5740 | else | |
5741 | no_cache=1 | |
5742 | fi | |
5743 | ||
5744 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5745 | ||
5746 | fi; | |
5747 | ||
5748 | eval "$ac_cv_use_unicode" | |
5749 | if test "$no_cache" != 1; then | |
5750 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5751 | fi | |
5752 | ||
5753 | if test "$wxUSE_UNICODE" = yes; then | |
5754 | echo "$as_me:$LINENO: result: yes" >&5 | |
5755 | echo "${ECHO_T}yes" >&6 | |
5756 | else | |
5757 | echo "$as_me:$LINENO: result: no" >&5 | |
5758 | echo "${ECHO_T}no" >&6 | |
5759 | fi | |
5760 | ||
5761 | ||
5762 | enablestring= | |
5763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5764 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5765 | no_cache=0 | |
5766 | # Check whether --enable-sound or --disable-sound was given. | |
5767 | if test "${enable_sound+set}" = set; then | |
5768 | enableval="$enable_sound" | |
5769 | ||
5770 | if test "$enableval" = yes; then | |
5771 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5772 | else | |
5773 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5774 | fi | |
5775 | ||
5776 | else | |
5777 | ||
5778 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5779 | if test "x$LINE" != x ; then | |
5780 | eval "DEFAULT_$LINE" | |
5781 | else | |
5782 | no_cache=1 | |
5783 | fi | |
5784 | ||
5785 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5786 | ||
5787 | fi; | |
5788 | ||
5789 | eval "$ac_cv_use_sound" | |
5790 | if test "$no_cache" != 1; then | |
5791 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5792 | fi | |
5793 | ||
5794 | if test "$wxUSE_SOUND" = yes; then | |
5795 | echo "$as_me:$LINENO: result: yes" >&5 | |
5796 | echo "${ECHO_T}yes" >&6 | |
5797 | else | |
5798 | echo "$as_me:$LINENO: result: no" >&5 | |
5799 | echo "${ECHO_T}no" >&6 | |
5800 | fi | |
5801 | ||
5802 | ||
5803 | enablestring= | |
5804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5805 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5806 | no_cache=0 | |
5807 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5808 | if test "${enable_wxprintfv+set}" = set; then | |
5809 | enableval="$enable_wxprintfv" | |
5810 | ||
5811 | if test "$enableval" = yes; then | |
5812 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5813 | else | |
5814 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5815 | fi | |
5816 | ||
5817 | else | |
5818 | ||
5819 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5820 | if test "x$LINE" != x ; then | |
5821 | eval "DEFAULT_$LINE" | |
5822 | else | |
5823 | no_cache=1 | |
5824 | fi | |
5825 | ||
5826 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5827 | ||
5828 | fi; | |
5829 | ||
5830 | eval "$ac_cv_use_wxprintfv" | |
5831 | if test "$no_cache" != 1; then | |
5832 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5833 | fi | |
5834 | ||
5835 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5836 | echo "$as_me:$LINENO: result: yes" >&5 | |
5837 | echo "${ECHO_T}yes" >&6 | |
5838 | else | |
5839 | echo "$as_me:$LINENO: result: no" >&5 | |
5840 | echo "${ECHO_T}no" >&6 | |
5841 | fi | |
5842 | ||
5843 | ||
5844 | enablestring= | |
5845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5846 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5847 | no_cache=0 | |
5848 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5849 | if test "${enable_zipstream+set}" = set; then | |
5850 | enableval="$enable_zipstream" | |
5851 | ||
5852 | if test "$enableval" = yes; then | |
5853 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5854 | else | |
5855 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5856 | fi | |
5857 | ||
5858 | else | |
5859 | ||
5860 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5861 | if test "x$LINE" != x ; then | |
5862 | eval "DEFAULT_$LINE" | |
5863 | else | |
5864 | no_cache=1 | |
5865 | fi | |
5866 | ||
5867 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5868 | ||
5869 | fi; | |
5870 | ||
5871 | eval "$ac_cv_use_zipstream" | |
5872 | if test "$no_cache" != 1; then | |
5873 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5874 | fi | |
5875 | ||
5876 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5877 | echo "$as_me:$LINENO: result: yes" >&5 | |
5878 | echo "${ECHO_T}yes" >&6 | |
5879 | else | |
5880 | echo "$as_me:$LINENO: result: no" >&5 | |
5881 | echo "${ECHO_T}no" >&6 | |
5882 | fi | |
5883 | ||
5884 | ||
a848cd7e SC |
5885 | |
5886 | enablestring= | |
5887 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5888 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5889 | no_cache=0 | |
5890 | # Check whether --enable-url or --disable-url was given. | |
5891 | if test "${enable_url+set}" = set; then | |
5892 | enableval="$enable_url" | |
5893 | ||
5894 | if test "$enableval" = yes; then | |
5895 | ac_cv_use_url='wxUSE_URL=yes' | |
5896 | else | |
5897 | ac_cv_use_url='wxUSE_URL=no' | |
5898 | fi | |
5899 | ||
5900 | else | |
5901 | ||
5902 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5903 | if test "x$LINE" != x ; then | |
5904 | eval "DEFAULT_$LINE" | |
5905 | else | |
5906 | no_cache=1 | |
5907 | fi | |
5908 | ||
5909 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5910 | ||
5911 | fi; | |
5912 | ||
5913 | eval "$ac_cv_use_url" | |
5914 | if test "$no_cache" != 1; then | |
5915 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5916 | fi | |
5917 | ||
5918 | if test "$wxUSE_URL" = yes; then | |
5919 | echo "$as_me:$LINENO: result: yes" >&5 | |
5920 | echo "${ECHO_T}yes" >&6 | |
5921 | else | |
5922 | echo "$as_me:$LINENO: result: no" >&5 | |
5923 | echo "${ECHO_T}no" >&6 | |
5924 | fi | |
5925 | ||
5926 | ||
5927 | enablestring= | |
5928 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5929 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5930 | no_cache=0 | |
5931 | # Check whether --enable-protocol or --disable-protocol was given. | |
5932 | if test "${enable_protocol+set}" = set; then | |
5933 | enableval="$enable_protocol" | |
5934 | ||
5935 | if test "$enableval" = yes; then | |
5936 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5937 | else | |
5938 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5939 | fi | |
5940 | ||
5941 | else | |
5942 | ||
5943 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5944 | if test "x$LINE" != x ; then | |
5945 | eval "DEFAULT_$LINE" | |
5946 | else | |
5947 | no_cache=1 | |
5948 | fi | |
5949 | ||
5950 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5951 | ||
5952 | fi; | |
5953 | ||
5954 | eval "$ac_cv_use_protocol" | |
5955 | if test "$no_cache" != 1; then | |
5956 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5957 | fi | |
5958 | ||
5959 | if test "$wxUSE_PROTOCOL" = yes; then | |
5960 | echo "$as_me:$LINENO: result: yes" >&5 | |
5961 | echo "${ECHO_T}yes" >&6 | |
5962 | else | |
5963 | echo "$as_me:$LINENO: result: no" >&5 | |
5964 | echo "${ECHO_T}no" >&6 | |
5965 | fi | |
5966 | ||
5967 | ||
5968 | enablestring= | |
5969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5970 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5971 | no_cache=0 | |
5972 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5973 | if test "${enable_protocol_http+set}" = set; then | |
5974 | enableval="$enable_protocol_http" | |
5975 | ||
5976 | if test "$enableval" = yes; then | |
5977 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5978 | else | |
5979 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5980 | fi | |
5981 | ||
5982 | else | |
5983 | ||
5984 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5985 | if test "x$LINE" != x ; then | |
5986 | eval "DEFAULT_$LINE" | |
5987 | else | |
5988 | no_cache=1 | |
5989 | fi | |
5990 | ||
5991 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5992 | ||
5993 | fi; | |
5994 | ||
5995 | eval "$ac_cv_use_protocol_http" | |
5996 | if test "$no_cache" != 1; then | |
5997 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5998 | fi | |
5999 | ||
6000 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6001 | echo "$as_me:$LINENO: result: yes" >&5 | |
6002 | echo "${ECHO_T}yes" >&6 | |
6003 | else | |
6004 | echo "$as_me:$LINENO: result: no" >&5 | |
6005 | echo "${ECHO_T}no" >&6 | |
6006 | fi | |
6007 | ||
6008 | ||
6009 | enablestring= | |
6010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6011 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6012 | no_cache=0 | |
6013 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6014 | if test "${enable_protocol_ftp+set}" = set; then | |
6015 | enableval="$enable_protocol_ftp" | |
6016 | ||
6017 | if test "$enableval" = yes; then | |
6018 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6019 | else | |
6020 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6021 | fi | |
6022 | ||
6023 | else | |
6024 | ||
6025 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6026 | if test "x$LINE" != x ; then | |
6027 | eval "DEFAULT_$LINE" | |
6028 | else | |
6029 | no_cache=1 | |
6030 | fi | |
6031 | ||
6032 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6033 | ||
6034 | fi; | |
6035 | ||
6036 | eval "$ac_cv_use_protocol_ftp" | |
6037 | if test "$no_cache" != 1; then | |
6038 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6039 | fi | |
6040 | ||
6041 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6042 | echo "$as_me:$LINENO: result: yes" >&5 | |
6043 | echo "${ECHO_T}yes" >&6 | |
6044 | else | |
6045 | echo "$as_me:$LINENO: result: no" >&5 | |
6046 | echo "${ECHO_T}no" >&6 | |
6047 | fi | |
6048 | ||
6049 | ||
6050 | enablestring= | |
6051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6052 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6053 | no_cache=0 | |
6054 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6055 | if test "${enable_protocol_file+set}" = set; then | |
6056 | enableval="$enable_protocol_file" | |
6057 | ||
6058 | if test "$enableval" = yes; then | |
6059 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6060 | else | |
6061 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6062 | fi | |
6063 | ||
6064 | else | |
6065 | ||
6066 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6067 | if test "x$LINE" != x ; then | |
6068 | eval "DEFAULT_$LINE" | |
6069 | else | |
6070 | no_cache=1 | |
6071 | fi | |
6072 | ||
6073 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6074 | ||
6075 | fi; | |
6076 | ||
6077 | eval "$ac_cv_use_protocol_file" | |
6078 | if test "$no_cache" != 1; then | |
6079 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6080 | fi | |
6081 | ||
6082 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6083 | echo "$as_me:$LINENO: result: yes" >&5 | |
6084 | echo "${ECHO_T}yes" >&6 | |
6085 | else | |
6086 | echo "$as_me:$LINENO: result: no" >&5 | |
6087 | echo "${ECHO_T}no" >&6 | |
6088 | fi | |
6089 | ||
6090 | ||
6091 | ||
6092 | ||
6093 | ||
6094 | enablestring= | |
6095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6096 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6097 | no_cache=0 | |
6098 | # Check whether --enable-threads or --disable-threads was given. | |
6099 | if test "${enable_threads+set}" = set; then | |
6100 | enableval="$enable_threads" | |
6101 | ||
6102 | if test "$enableval" = yes; then | |
6103 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6104 | else | |
6105 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6106 | fi | |
6107 | ||
6108 | else | |
6109 | ||
6110 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6111 | if test "x$LINE" != x ; then | |
6112 | eval "DEFAULT_$LINE" | |
6113 | else | |
6114 | no_cache=1 | |
6115 | fi | |
6116 | ||
6117 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6118 | ||
6119 | fi; | |
6120 | ||
6121 | eval "$ac_cv_use_threads" | |
6122 | if test "$no_cache" != 1; then | |
6123 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6124 | fi | |
6125 | ||
6126 | if test "$wxUSE_THREADS" = yes; then | |
6127 | echo "$as_me:$LINENO: result: yes" >&5 | |
6128 | echo "${ECHO_T}yes" >&6 | |
6129 | else | |
6130 | echo "$as_me:$LINENO: result: no" >&5 | |
6131 | echo "${ECHO_T}no" >&6 | |
6132 | fi | |
6133 | ||
6134 | ||
6135 | if test "$wxUSE_GUI" = "yes"; then | |
6136 | ||
6137 | ||
6138 | ||
6139 | enablestring= | |
6140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6141 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6142 | no_cache=0 | |
6143 | # Check whether --enable-docview or --disable-docview was given. | |
6144 | if test "${enable_docview+set}" = set; then | |
6145 | enableval="$enable_docview" | |
6146 | ||
6147 | if test "$enableval" = yes; then | |
6148 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6149 | else | |
6150 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6151 | fi | |
6152 | ||
6153 | else | |
6154 | ||
6155 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6156 | if test "x$LINE" != x ; then | |
6157 | eval "DEFAULT_$LINE" | |
6158 | else | |
6159 | no_cache=1 | |
6160 | fi | |
6161 | ||
6162 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6163 | ||
6164 | fi; | |
6165 | ||
6166 | eval "$ac_cv_use_docview" | |
6167 | if test "$no_cache" != 1; then | |
6168 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6169 | fi | |
6170 | ||
6171 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6172 | echo "$as_me:$LINENO: result: yes" >&5 | |
6173 | echo "${ECHO_T}yes" >&6 | |
6174 | else | |
6175 | echo "$as_me:$LINENO: result: no" >&5 | |
6176 | echo "${ECHO_T}no" >&6 | |
6177 | fi | |
6178 | ||
6179 | ||
6180 | enablestring= | |
6181 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6182 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6183 | no_cache=0 | |
6184 | # Check whether --enable-help or --disable-help was given. | |
6185 | if test "${enable_help+set}" = set; then | |
6186 | enableval="$enable_help" | |
6187 | ||
6188 | if test "$enableval" = yes; then | |
6189 | ac_cv_use_help='wxUSE_HELP=yes' | |
6190 | else | |
6191 | ac_cv_use_help='wxUSE_HELP=no' | |
6192 | fi | |
6193 | ||
6194 | else | |
6195 | ||
6196 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6197 | if test "x$LINE" != x ; then | |
6198 | eval "DEFAULT_$LINE" | |
6199 | else | |
6200 | no_cache=1 | |
6201 | fi | |
6202 | ||
6203 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6204 | ||
6205 | fi; | |
6206 | ||
6207 | eval "$ac_cv_use_help" | |
6208 | if test "$no_cache" != 1; then | |
6209 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6210 | fi | |
6211 | ||
6212 | if test "$wxUSE_HELP" = yes; then | |
6213 | echo "$as_me:$LINENO: result: yes" >&5 | |
6214 | echo "${ECHO_T}yes" >&6 | |
6215 | else | |
6216 | echo "$as_me:$LINENO: result: no" >&5 | |
6217 | echo "${ECHO_T}no" >&6 | |
6218 | fi | |
6219 | ||
6220 | ||
6221 | enablestring= | |
6222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6223 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6224 | no_cache=0 | |
6225 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6226 | if test "${enable_mshtmlhelp+set}" = set; then | |
6227 | enableval="$enable_mshtmlhelp" | |
6228 | ||
6229 | if test "$enableval" = yes; then | |
6230 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6231 | else | |
6232 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6233 | fi | |
6234 | ||
6235 | else | |
6236 | ||
6237 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6238 | if test "x$LINE" != x ; then | |
6239 | eval "DEFAULT_$LINE" | |
6240 | else | |
6241 | no_cache=1 | |
6242 | fi | |
6243 | ||
6244 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6245 | ||
6246 | fi; | |
6247 | ||
6248 | eval "$ac_cv_use_mshtmlhelp" | |
6249 | if test "$no_cache" != 1; then | |
6250 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6251 | fi | |
6252 | ||
6253 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6254 | echo "$as_me:$LINENO: result: yes" >&5 | |
6255 | echo "${ECHO_T}yes" >&6 | |
6256 | else | |
6257 | echo "$as_me:$LINENO: result: no" >&5 | |
6258 | echo "${ECHO_T}no" >&6 | |
6259 | fi | |
6260 | ||
6261 | ||
6262 | enablestring= | |
6263 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6264 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6265 | no_cache=0 | |
6266 | # Check whether --enable-html or --disable-html was given. | |
6267 | if test "${enable_html+set}" = set; then | |
6268 | enableval="$enable_html" | |
6269 | ||
6270 | if test "$enableval" = yes; then | |
6271 | ac_cv_use_html='wxUSE_HTML=yes' | |
6272 | else | |
6273 | ac_cv_use_html='wxUSE_HTML=no' | |
6274 | fi | |
6275 | ||
6276 | else | |
6277 | ||
6278 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6279 | if test "x$LINE" != x ; then | |
6280 | eval "DEFAULT_$LINE" | |
6281 | else | |
6282 | no_cache=1 | |
6283 | fi | |
6284 | ||
6285 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6286 | ||
6287 | fi; | |
6288 | ||
6289 | eval "$ac_cv_use_html" | |
6290 | if test "$no_cache" != 1; then | |
6291 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6292 | fi | |
6293 | ||
6294 | if test "$wxUSE_HTML" = yes; then | |
6295 | echo "$as_me:$LINENO: result: yes" >&5 | |
6296 | echo "${ECHO_T}yes" >&6 | |
6297 | else | |
6298 | echo "$as_me:$LINENO: result: no" >&5 | |
6299 | echo "${ECHO_T}no" >&6 | |
6300 | fi | |
6301 | ||
6302 | ||
6303 | enablestring= | |
6304 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6305 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6306 | no_cache=0 | |
6307 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6308 | if test "${enable_htmlhelp+set}" = set; then | |
6309 | enableval="$enable_htmlhelp" | |
6310 | ||
6311 | if test "$enableval" = yes; then | |
6312 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6313 | else | |
6314 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6315 | fi | |
6316 | ||
6317 | else | |
6318 | ||
6319 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6320 | if test "x$LINE" != x ; then | |
6321 | eval "DEFAULT_$LINE" | |
6322 | else | |
6323 | no_cache=1 | |
6324 | fi | |
6325 | ||
6326 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6327 | ||
6328 | fi; | |
6329 | ||
6330 | eval "$ac_cv_use_htmlhelp" | |
6331 | if test "$no_cache" != 1; then | |
6332 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6333 | fi | |
6334 | ||
6335 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6336 | echo "$as_me:$LINENO: result: yes" >&5 | |
6337 | echo "${ECHO_T}yes" >&6 | |
6338 | else | |
6339 | echo "$as_me:$LINENO: result: no" >&5 | |
6340 | echo "${ECHO_T}no" >&6 | |
6341 | fi | |
6342 | ||
6343 | ||
9a8f0513 VS |
6344 | enablestring= |
6345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6346 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6347 | no_cache=0 | |
6348 | # Check whether --enable-xrc or --disable-xrc was given. | |
6349 | if test "${enable_xrc+set}" = set; then | |
6350 | enableval="$enable_xrc" | |
6351 | ||
6352 | if test "$enableval" = yes; then | |
6353 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6354 | else | |
6355 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6356 | fi | |
6357 | ||
6358 | else | |
6359 | ||
6360 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6361 | if test "x$LINE" != x ; then | |
6362 | eval "DEFAULT_$LINE" | |
6363 | else | |
6364 | no_cache=1 | |
6365 | fi | |
6366 | ||
6367 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6368 | ||
6369 | fi; | |
6370 | ||
6371 | eval "$ac_cv_use_xrc" | |
6372 | if test "$no_cache" != 1; then | |
6373 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6374 | fi | |
6375 | ||
6376 | if test "$wxUSE_XRC" = yes; then | |
6377 | echo "$as_me:$LINENO: result: yes" >&5 | |
6378 | echo "${ECHO_T}yes" >&6 | |
6379 | else | |
6380 | echo "$as_me:$LINENO: result: no" >&5 | |
6381 | echo "${ECHO_T}no" >&6 | |
6382 | fi | |
6383 | ||
6384 | ||
a848cd7e SC |
6385 | enablestring= |
6386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6387 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6388 | no_cache=0 | |
6389 | # Check whether --enable-constraints or --disable-constraints was given. | |
6390 | if test "${enable_constraints+set}" = set; then | |
6391 | enableval="$enable_constraints" | |
6392 | ||
6393 | if test "$enableval" = yes; then | |
6394 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6395 | else | |
6396 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6397 | fi | |
6398 | ||
6399 | else | |
6400 | ||
6401 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6402 | if test "x$LINE" != x ; then | |
6403 | eval "DEFAULT_$LINE" | |
6404 | else | |
6405 | no_cache=1 | |
6406 | fi | |
6407 | ||
6408 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6409 | ||
6410 | fi; | |
6411 | ||
6412 | eval "$ac_cv_use_constraints" | |
6413 | if test "$no_cache" != 1; then | |
6414 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6415 | fi | |
6416 | ||
6417 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6418 | echo "$as_me:$LINENO: result: yes" >&5 | |
6419 | echo "${ECHO_T}yes" >&6 | |
6420 | else | |
6421 | echo "$as_me:$LINENO: result: no" >&5 | |
6422 | echo "${ECHO_T}no" >&6 | |
6423 | fi | |
6424 | ||
6425 | ||
6426 | enablestring= | |
6427 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6428 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6429 | no_cache=0 | |
6430 | # Check whether --enable-printarch or --disable-printarch was given. | |
6431 | if test "${enable_printarch+set}" = set; then | |
6432 | enableval="$enable_printarch" | |
6433 | ||
6434 | if test "$enableval" = yes; then | |
6435 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6436 | else | |
6437 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6438 | fi | |
6439 | ||
6440 | else | |
6441 | ||
6442 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6443 | if test "x$LINE" != x ; then | |
6444 | eval "DEFAULT_$LINE" | |
6445 | else | |
6446 | no_cache=1 | |
6447 | fi | |
6448 | ||
6449 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6450 | ||
6451 | fi; | |
6452 | ||
6453 | eval "$ac_cv_use_printarch" | |
6454 | if test "$no_cache" != 1; then | |
6455 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6456 | fi | |
6457 | ||
6458 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6459 | echo "$as_me:$LINENO: result: yes" >&5 | |
6460 | echo "${ECHO_T}yes" >&6 | |
6461 | else | |
6462 | echo "$as_me:$LINENO: result: no" >&5 | |
6463 | echo "${ECHO_T}no" >&6 | |
6464 | fi | |
6465 | ||
6466 | ||
6467 | enablestring= | |
6468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6469 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6470 | no_cache=0 | |
6471 | # Check whether --enable-mdi or --disable-mdi was given. | |
6472 | if test "${enable_mdi+set}" = set; then | |
6473 | enableval="$enable_mdi" | |
6474 | ||
6475 | if test "$enableval" = yes; then | |
8a7b1113 | 6476 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6477 | else |
8a7b1113 | 6478 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6479 | fi |
6480 | ||
6481 | else | |
6482 | ||
8a7b1113 | 6483 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6484 | if test "x$LINE" != x ; then |
6485 | eval "DEFAULT_$LINE" | |
6486 | else | |
6487 | no_cache=1 | |
6488 | fi | |
6489 | ||
8a7b1113 | 6490 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6491 | |
6492 | fi; | |
6493 | ||
6494 | eval "$ac_cv_use_mdi" | |
6495 | if test "$no_cache" != 1; then | |
6496 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6497 | fi | |
6498 | ||
8a7b1113 VZ |
6499 | if test "$wxUSE_MDI" = yes; then |
6500 | echo "$as_me:$LINENO: result: yes" >&5 | |
6501 | echo "${ECHO_T}yes" >&6 | |
6502 | else | |
6503 | echo "$as_me:$LINENO: result: no" >&5 | |
6504 | echo "${ECHO_T}no" >&6 | |
6505 | fi | |
6506 | ||
6507 | ||
6508 | enablestring= | |
6509 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6510 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6511 | no_cache=0 | |
6512 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6513 | if test "${enable_mdidoc+set}" = set; then | |
6514 | enableval="$enable_mdidoc" | |
6515 | ||
6516 | if test "$enableval" = yes; then | |
6517 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6518 | else | |
6519 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6520 | fi | |
6521 | ||
6522 | else | |
6523 | ||
6524 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6525 | if test "x$LINE" != x ; then | |
6526 | eval "DEFAULT_$LINE" | |
6527 | else | |
6528 | no_cache=1 | |
6529 | fi | |
6530 | ||
6531 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6532 | ||
6533 | fi; | |
6534 | ||
6535 | eval "$ac_cv_use_mdidoc" | |
6536 | if test "$no_cache" != 1; then | |
6537 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6538 | fi | |
6539 | ||
a848cd7e SC |
6540 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6541 | echo "$as_me:$LINENO: result: yes" >&5 | |
6542 | echo "${ECHO_T}yes" >&6 | |
6543 | else | |
6544 | echo "$as_me:$LINENO: result: no" >&5 | |
6545 | echo "${ECHO_T}no" >&6 | |
6546 | fi | |
6547 | ||
6548 | ||
6549 | enablestring= | |
6550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6551 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6552 | no_cache=0 | |
6553 | # Check whether --enable-loggui or --disable-loggui was given. | |
6554 | if test "${enable_loggui+set}" = set; then | |
6555 | enableval="$enable_loggui" | |
6556 | ||
6557 | if test "$enableval" = yes; then | |
6558 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6559 | else | |
6560 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6561 | fi | |
6562 | ||
6563 | else | |
6564 | ||
6565 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6566 | if test "x$LINE" != x ; then | |
6567 | eval "DEFAULT_$LINE" | |
6568 | else | |
6569 | no_cache=1 | |
6570 | fi | |
6571 | ||
6572 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6573 | ||
6574 | fi; | |
6575 | ||
6576 | eval "$ac_cv_use_loggui" | |
6577 | if test "$no_cache" != 1; then | |
6578 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6579 | fi | |
6580 | ||
6581 | if test "$wxUSE_LOGGUI" = yes; then | |
6582 | echo "$as_me:$LINENO: result: yes" >&5 | |
6583 | echo "${ECHO_T}yes" >&6 | |
6584 | else | |
6585 | echo "$as_me:$LINENO: result: no" >&5 | |
6586 | echo "${ECHO_T}no" >&6 | |
6587 | fi | |
6588 | ||
6589 | ||
6590 | enablestring= | |
6591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6592 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6593 | no_cache=0 | |
6594 | # Check whether --enable-logwin or --disable-logwin was given. | |
6595 | if test "${enable_logwin+set}" = set; then | |
6596 | enableval="$enable_logwin" | |
6597 | ||
6598 | if test "$enableval" = yes; then | |
6599 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6600 | else | |
6601 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6602 | fi | |
6603 | ||
6604 | else | |
6605 | ||
6606 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6607 | if test "x$LINE" != x ; then | |
6608 | eval "DEFAULT_$LINE" | |
6609 | else | |
6610 | no_cache=1 | |
6611 | fi | |
6612 | ||
6613 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6614 | ||
6615 | fi; | |
6616 | ||
6617 | eval "$ac_cv_use_logwin" | |
6618 | if test "$no_cache" != 1; then | |
6619 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6620 | fi | |
6621 | ||
6622 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6623 | echo "$as_me:$LINENO: result: yes" >&5 | |
6624 | echo "${ECHO_T}yes" >&6 | |
6625 | else | |
6626 | echo "$as_me:$LINENO: result: no" >&5 | |
6627 | echo "${ECHO_T}no" >&6 | |
6628 | fi | |
6629 | ||
6630 | ||
6631 | enablestring= | |
6632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6633 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6634 | no_cache=0 | |
6635 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6636 | if test "${enable_logdialog+set}" = set; then | |
6637 | enableval="$enable_logdialog" | |
6638 | ||
6639 | if test "$enableval" = yes; then | |
6640 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6641 | else | |
6642 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6643 | fi | |
6644 | ||
6645 | else | |
6646 | ||
6647 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6648 | if test "x$LINE" != x ; then | |
6649 | eval "DEFAULT_$LINE" | |
6650 | else | |
6651 | no_cache=1 | |
6652 | fi | |
6653 | ||
6654 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6655 | ||
6656 | fi; | |
6657 | ||
6658 | eval "$ac_cv_use_logdialog" | |
6659 | if test "$no_cache" != 1; then | |
6660 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6661 | fi | |
6662 | ||
6663 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6664 | echo "$as_me:$LINENO: result: yes" >&5 | |
6665 | echo "${ECHO_T}yes" >&6 | |
6666 | else | |
6667 | echo "$as_me:$LINENO: result: no" >&5 | |
6668 | echo "${ECHO_T}no" >&6 | |
6669 | fi | |
6670 | ||
6671 | ||
646b6ec1 VS |
6672 | enablestring= |
6673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6674 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6675 | no_cache=0 | |
6676 | # Check whether --enable-webkit or --disable-webkit was given. | |
6677 | if test "${enable_webkit+set}" = set; then | |
6678 | enableval="$enable_webkit" | |
6679 | ||
6680 | if test "$enableval" = yes; then | |
6681 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6682 | else | |
6683 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6684 | fi | |
6685 | ||
6686 | else | |
6687 | ||
6688 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6689 | if test "x$LINE" != x ; then | |
6690 | eval "DEFAULT_$LINE" | |
6691 | else | |
6692 | no_cache=1 | |
6693 | fi | |
6694 | ||
6695 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6696 | ||
6697 | fi; | |
6698 | ||
6699 | eval "$ac_cv_use_webkit" | |
6700 | if test "$no_cache" != 1; then | |
6701 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6702 | fi | |
6703 | ||
6704 | if test "$wxUSE_WEBKIT" = yes; then | |
6705 | echo "$as_me:$LINENO: result: yes" >&5 | |
6706 | echo "${ECHO_T}yes" >&6 | |
6707 | else | |
6708 | echo "$as_me:$LINENO: result: no" >&5 | |
6709 | echo "${ECHO_T}no" >&6 | |
6710 | fi | |
6711 | ||
6712 | ||
a848cd7e SC |
6713 | |
6714 | enablestring= | |
6715 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6716 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6717 | no_cache=0 | |
6718 | # Check whether --enable-postscript or --disable-postscript was given. | |
6719 | if test "${enable_postscript+set}" = set; then | |
6720 | enableval="$enable_postscript" | |
6721 | ||
6722 | if test "$enableval" = yes; then | |
6723 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6724 | else | |
6725 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6726 | fi | |
6727 | ||
6728 | else | |
6729 | ||
6730 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6731 | if test "x$LINE" != x ; then | |
6732 | eval "DEFAULT_$LINE" | |
6733 | else | |
6734 | no_cache=1 | |
6735 | fi | |
6736 | ||
6737 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6738 | ||
6739 | fi; | |
6740 | ||
6741 | eval "$ac_cv_use_postscript" | |
6742 | if test "$no_cache" != 1; then | |
6743 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6744 | fi | |
6745 | ||
6746 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6747 | echo "$as_me:$LINENO: result: yes" >&5 | |
6748 | echo "${ECHO_T}yes" >&6 | |
6749 | else | |
6750 | echo "$as_me:$LINENO: result: no" >&5 | |
6751 | echo "${ECHO_T}no" >&6 | |
6752 | fi | |
6753 | ||
6754 | ||
6755 | ||
6756 | ||
6757 | ||
6758 | enablestring= | |
6759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6760 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6761 | no_cache=0 | |
6762 | # Check whether --enable-prologio or --disable-prologio was given. | |
6763 | if test "${enable_prologio+set}" = set; then | |
6764 | enableval="$enable_prologio" | |
6765 | ||
6766 | if test "$enableval" = yes; then | |
6767 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6768 | else | |
6769 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6770 | fi | |
6771 | ||
6772 | else | |
6773 | ||
6774 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6775 | if test "x$LINE" != x ; then | |
6776 | eval "DEFAULT_$LINE" | |
6777 | else | |
6778 | no_cache=1 | |
6779 | fi | |
6780 | ||
6781 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6782 | ||
6783 | fi; | |
6784 | ||
6785 | eval "$ac_cv_use_prologio" | |
6786 | if test "$no_cache" != 1; then | |
6787 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6788 | fi | |
6789 | ||
6790 | if test "$wxUSE_PROLOGIO" = yes; then | |
6791 | echo "$as_me:$LINENO: result: yes" >&5 | |
6792 | echo "${ECHO_T}yes" >&6 | |
6793 | else | |
6794 | echo "$as_me:$LINENO: result: no" >&5 | |
6795 | echo "${ECHO_T}no" >&6 | |
6796 | fi | |
6797 | ||
6798 | ||
6799 | enablestring= | |
6800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6801 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6802 | no_cache=0 | |
6803 | # Check whether --enable-resources or --disable-resources was given. | |
6804 | if test "${enable_resources+set}" = set; then | |
6805 | enableval="$enable_resources" | |
6806 | ||
6807 | if test "$enableval" = yes; then | |
6808 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6809 | else | |
6810 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6811 | fi | |
6812 | ||
6813 | else | |
6814 | ||
6815 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6816 | if test "x$LINE" != x ; then | |
6817 | eval "DEFAULT_$LINE" | |
6818 | else | |
6819 | no_cache=1 | |
6820 | fi | |
6821 | ||
6822 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6823 | ||
6824 | fi; | |
6825 | ||
6826 | eval "$ac_cv_use_resources" | |
6827 | if test "$no_cache" != 1; then | |
6828 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6829 | fi | |
6830 | ||
6831 | if test "$wxUSE_RESOURCES" = yes; then | |
6832 | echo "$as_me:$LINENO: result: yes" >&5 | |
6833 | echo "${ECHO_T}yes" >&6 | |
6834 | else | |
6835 | echo "$as_me:$LINENO: result: no" >&5 | |
6836 | echo "${ECHO_T}no" >&6 | |
6837 | fi | |
6838 | ||
6839 | ||
6840 | ||
6841 | ||
6842 | enablestring= | |
6843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6844 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6845 | no_cache=0 | |
6846 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6847 | if test "${enable_clipboard+set}" = set; then | |
6848 | enableval="$enable_clipboard" | |
6849 | ||
6850 | if test "$enableval" = yes; then | |
6851 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6852 | else | |
6853 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6854 | fi | |
6855 | ||
6856 | else | |
6857 | ||
6858 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6859 | if test "x$LINE" != x ; then | |
6860 | eval "DEFAULT_$LINE" | |
6861 | else | |
6862 | no_cache=1 | |
6863 | fi | |
6864 | ||
6865 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6866 | ||
6867 | fi; | |
6868 | ||
6869 | eval "$ac_cv_use_clipboard" | |
6870 | if test "$no_cache" != 1; then | |
6871 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6872 | fi | |
6873 | ||
6874 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6875 | echo "$as_me:$LINENO: result: yes" >&5 | |
6876 | echo "${ECHO_T}yes" >&6 | |
6877 | else | |
6878 | echo "$as_me:$LINENO: result: no" >&5 | |
6879 | echo "${ECHO_T}no" >&6 | |
6880 | fi | |
6881 | ||
6882 | ||
6883 | enablestring= | |
6884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6885 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6886 | no_cache=0 | |
6887 | # Check whether --enable-dnd or --disable-dnd was given. | |
6888 | if test "${enable_dnd+set}" = set; then | |
6889 | enableval="$enable_dnd" | |
6890 | ||
6891 | if test "$enableval" = yes; then | |
6892 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6893 | else | |
6894 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6895 | fi | |
6896 | ||
6897 | else | |
6898 | ||
6899 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6900 | if test "x$LINE" != x ; then | |
6901 | eval "DEFAULT_$LINE" | |
6902 | else | |
6903 | no_cache=1 | |
6904 | fi | |
6905 | ||
6906 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6907 | ||
6908 | fi; | |
6909 | ||
6910 | eval "$ac_cv_use_dnd" | |
6911 | if test "$no_cache" != 1; then | |
6912 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6913 | fi | |
6914 | ||
6915 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6916 | echo "$as_me:$LINENO: result: yes" >&5 | |
6917 | echo "${ECHO_T}yes" >&6 | |
6918 | else | |
6919 | echo "$as_me:$LINENO: result: no" >&5 | |
6920 | echo "${ECHO_T}no" >&6 | |
6921 | fi | |
6922 | ||
6923 | ||
6924 | enablestring= | |
6925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6926 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6927 | no_cache=0 | |
6928 | # Check whether --enable-metafile or --disable-metafile was given. | |
6929 | if test "${enable_metafile+set}" = set; then | |
6930 | enableval="$enable_metafile" | |
6931 | ||
6932 | if test "$enableval" = yes; then | |
6933 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6934 | else | |
6935 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6936 | fi | |
6937 | ||
6938 | else | |
6939 | ||
6940 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6941 | if test "x$LINE" != x ; then | |
6942 | eval "DEFAULT_$LINE" | |
6943 | else | |
6944 | no_cache=1 | |
6945 | fi | |
6946 | ||
6947 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6948 | ||
6949 | fi; | |
6950 | ||
6951 | eval "$ac_cv_use_metafile" | |
6952 | if test "$no_cache" != 1; then | |
6953 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6954 | fi | |
6955 | ||
6956 | if test "$wxUSE_METAFILE" = yes; then | |
6957 | echo "$as_me:$LINENO: result: yes" >&5 | |
6958 | echo "${ECHO_T}yes" >&6 | |
6959 | else | |
6960 | echo "$as_me:$LINENO: result: no" >&5 | |
6961 | echo "${ECHO_T}no" >&6 | |
6962 | fi | |
6963 | ||
6964 | ||
6965 | ||
6966 | ||
6967 | ||
6968 | enablestring= | |
6969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6970 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6971 | no_cache=0 | |
6972 | # Check whether --enable-controls or --disable-controls was given. | |
6973 | if test "${enable_controls+set}" = set; then | |
6974 | enableval="$enable_controls" | |
6975 | ||
6976 | if test "$enableval" = yes; then | |
6977 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6978 | else | |
6979 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6980 | fi | |
6981 | ||
6982 | else | |
6983 | ||
6984 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6985 | if test "x$LINE" != x ; then | |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
6991 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6992 | ||
6993 | fi; | |
6994 | ||
6995 | eval "$ac_cv_use_controls" | |
6996 | if test "$no_cache" != 1; then | |
6997 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6998 | fi | |
6999 | ||
7000 | if test "$wxUSE_CONTROLS" = yes; then | |
7001 | echo "$as_me:$LINENO: result: yes" >&5 | |
7002 | echo "${ECHO_T}yes" >&6 | |
7003 | else | |
7004 | echo "$as_me:$LINENO: result: no" >&5 | |
7005 | echo "${ECHO_T}no" >&6 | |
7006 | fi | |
7007 | ||
7008 | ||
7009 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7010 | DEFAULT_wxUSE_ACCEL=yes | |
7011 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7012 | DEFAULT_wxUSE_BUTTON=yes | |
7013 | DEFAULT_wxUSE_CALCTRL=no | |
7014 | DEFAULT_wxUSE_CARET=yes | |
7015 | DEFAULT_wxUSE_COMBOBOX=yes | |
7016 | DEFAULT_wxUSE_CHECKBOX=yes | |
7017 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7018 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7019 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
7020 | DEFAULT_wxUSE_GAUGE=yes |
7021 | DEFAULT_wxUSE_GRID=yes | |
7022 | DEFAULT_wxUSE_IMAGLIST=yes | |
7023 | DEFAULT_wxUSE_LISTBOOK=yes | |
7024 | DEFAULT_wxUSE_LISTBOX=yes | |
7025 | DEFAULT_wxUSE_LISTCTRL=yes | |
7026 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7027 | DEFAULT_wxUSE_RADIOBOX=yes | |
7028 | DEFAULT_wxUSE_RADIOBTN=yes | |
7029 | DEFAULT_wxUSE_SASH=yes | |
7030 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7031 | DEFAULT_wxUSE_SLIDER=yes | |
7032 | DEFAULT_wxUSE_SPINBTN=yes | |
7033 | DEFAULT_wxUSE_SPINCTRL=yes | |
7034 | DEFAULT_wxUSE_SPLITTER=yes | |
7035 | DEFAULT_wxUSE_STATBMP=yes | |
7036 | DEFAULT_wxUSE_STATBOX=yes | |
7037 | DEFAULT_wxUSE_STATLINE=yes | |
7038 | DEFAULT_wxUSE_STATUSBAR=yes | |
7039 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7040 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7041 | DEFAULT_wxUSE_TOOLBAR=yes | |
7042 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7043 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7044 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7045 | DEFAULT_wxUSE_TREECTRL=yes | |
7046 | DEFAULT_wxUSE_POPUPWIN=yes | |
7047 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7048 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7049 | DEFAULT_wxUSE_ACCEL=no | |
7050 | DEFAULT_wxUSE_BMPBUTTON=no | |
7051 | DEFAULT_wxUSE_BUTTON=no | |
7052 | DEFAULT_wxUSE_CALCTRL=no | |
7053 | DEFAULT_wxUSE_CARET=no | |
7054 | DEFAULT_wxUSE_COMBOBOX=no | |
7055 | DEFAULT_wxUSE_CHECKBOX=no | |
7056 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7057 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7058 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
7059 | DEFAULT_wxUSE_GAUGE=no |
7060 | DEFAULT_wxUSE_GRID=no | |
7061 | DEFAULT_wxUSE_IMAGLIST=no | |
7062 | DEFAULT_wxUSE_LISTBOOK=no | |
7063 | DEFAULT_wxUSE_LISTBOX=no | |
7064 | DEFAULT_wxUSE_LISTCTRL=no | |
7065 | DEFAULT_wxUSE_NOTEBOOK=no | |
7066 | DEFAULT_wxUSE_RADIOBOX=no | |
7067 | DEFAULT_wxUSE_RADIOBTN=no | |
7068 | DEFAULT_wxUSE_SASH=no | |
7069 | DEFAULT_wxUSE_SCROLLBAR=no | |
7070 | DEFAULT_wxUSE_SLIDER=no | |
7071 | DEFAULT_wxUSE_SPINBTN=no | |
7072 | DEFAULT_wxUSE_SPINCTRL=no | |
7073 | DEFAULT_wxUSE_SPLITTER=no | |
7074 | DEFAULT_wxUSE_STATBMP=no | |
7075 | DEFAULT_wxUSE_STATBOX=no | |
7076 | DEFAULT_wxUSE_STATLINE=no | |
7077 | DEFAULT_wxUSE_STATUSBAR=no | |
7078 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7079 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7080 | DEFAULT_wxUSE_TOOLBAR=no | |
7081 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7082 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7083 | DEFAULT_wxUSE_TOOLTIPS=no | |
7084 | DEFAULT_wxUSE_TREECTRL=no | |
7085 | DEFAULT_wxUSE_POPUPWIN=no | |
7086 | DEFAULT_wxUSE_TIPWINDOW=no | |
7087 | fi | |
7088 | ||
a848cd7e SC |
7089 | |
7090 | enablestring= | |
7091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7092 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7093 | no_cache=0 | |
7094 | # Check whether --enable-accel or --disable-accel was given. | |
7095 | if test "${enable_accel+set}" = set; then | |
7096 | enableval="$enable_accel" | |
7097 | ||
7098 | if test "$enableval" = yes; then | |
7099 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7100 | else | |
7101 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7102 | fi | |
7103 | ||
7104 | else | |
7105 | ||
7106 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7107 | if test "x$LINE" != x ; then | |
7108 | eval "DEFAULT_$LINE" | |
7109 | else | |
7110 | no_cache=1 | |
7111 | fi | |
7112 | ||
7113 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7114 | ||
7115 | fi; | |
7116 | ||
7117 | eval "$ac_cv_use_accel" | |
7118 | if test "$no_cache" != 1; then | |
7119 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7120 | fi | |
7121 | ||
7122 | if test "$wxUSE_ACCEL" = yes; then | |
7123 | echo "$as_me:$LINENO: result: yes" >&5 | |
7124 | echo "${ECHO_T}yes" >&6 | |
7125 | else | |
7126 | echo "$as_me:$LINENO: result: no" >&5 | |
7127 | echo "${ECHO_T}no" >&6 | |
7128 | fi | |
7129 | ||
7130 | ||
7131 | enablestring= | |
7132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7133 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7134 | no_cache=0 | |
7135 | # Check whether --enable-button or --disable-button was given. | |
7136 | if test "${enable_button+set}" = set; then | |
7137 | enableval="$enable_button" | |
7138 | ||
7139 | if test "$enableval" = yes; then | |
7140 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7141 | else | |
7142 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7143 | fi | |
7144 | ||
7145 | else | |
7146 | ||
7147 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7148 | if test "x$LINE" != x ; then | |
7149 | eval "DEFAULT_$LINE" | |
7150 | else | |
7151 | no_cache=1 | |
7152 | fi | |
7153 | ||
7154 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7155 | ||
7156 | fi; | |
7157 | ||
7158 | eval "$ac_cv_use_button" | |
7159 | if test "$no_cache" != 1; then | |
7160 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7161 | fi | |
7162 | ||
7163 | if test "$wxUSE_BUTTON" = yes; then | |
7164 | echo "$as_me:$LINENO: result: yes" >&5 | |
7165 | echo "${ECHO_T}yes" >&6 | |
7166 | else | |
7167 | echo "$as_me:$LINENO: result: no" >&5 | |
7168 | echo "${ECHO_T}no" >&6 | |
7169 | fi | |
7170 | ||
7171 | ||
7172 | enablestring= | |
7173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7174 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7175 | no_cache=0 | |
7176 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7177 | if test "${enable_bmpbutton+set}" = set; then | |
7178 | enableval="$enable_bmpbutton" | |
7179 | ||
7180 | if test "$enableval" = yes; then | |
7181 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7182 | else | |
7183 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7184 | fi | |
7185 | ||
7186 | else | |
7187 | ||
7188 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7189 | if test "x$LINE" != x ; then | |
7190 | eval "DEFAULT_$LINE" | |
7191 | else | |
7192 | no_cache=1 | |
7193 | fi | |
7194 | ||
7195 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7196 | ||
7197 | fi; | |
7198 | ||
7199 | eval "$ac_cv_use_bmpbutton" | |
7200 | if test "$no_cache" != 1; then | |
7201 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7202 | fi | |
7203 | ||
7204 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7205 | echo "$as_me:$LINENO: result: yes" >&5 | |
7206 | echo "${ECHO_T}yes" >&6 | |
7207 | else | |
7208 | echo "$as_me:$LINENO: result: no" >&5 | |
7209 | echo "${ECHO_T}no" >&6 | |
7210 | fi | |
7211 | ||
7212 | ||
7213 | enablestring= | |
7214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7215 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7216 | no_cache=0 | |
7217 | # Check whether --enable-calendar or --disable-calendar was given. | |
7218 | if test "${enable_calendar+set}" = set; then | |
7219 | enableval="$enable_calendar" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7223 | else | |
7224 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7237 | ||
7238 | fi; | |
7239 | ||
7240 | eval "$ac_cv_use_calendar" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_CALCTRL" = yes; then | |
7246 | echo "$as_me:$LINENO: result: yes" >&5 | |
7247 | echo "${ECHO_T}yes" >&6 | |
7248 | else | |
7249 | echo "$as_me:$LINENO: result: no" >&5 | |
7250 | echo "${ECHO_T}no" >&6 | |
7251 | fi | |
7252 | ||
7253 | ||
7254 | enablestring= | |
7255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7256 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7257 | no_cache=0 | |
7258 | # Check whether --enable-caret or --disable-caret was given. | |
7259 | if test "${enable_caret+set}" = set; then | |
7260 | enableval="$enable_caret" | |
7261 | ||
7262 | if test "$enableval" = yes; then | |
7263 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7264 | else | |
7265 | ac_cv_use_caret='wxUSE_CARET=no' | |
7266 | fi | |
7267 | ||
7268 | else | |
7269 | ||
7270 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7271 | if test "x$LINE" != x ; then | |
7272 | eval "DEFAULT_$LINE" | |
7273 | else | |
7274 | no_cache=1 | |
7275 | fi | |
7276 | ||
7277 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7278 | ||
7279 | fi; | |
7280 | ||
7281 | eval "$ac_cv_use_caret" | |
7282 | if test "$no_cache" != 1; then | |
7283 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7284 | fi | |
7285 | ||
7286 | if test "$wxUSE_CARET" = yes; then | |
7287 | echo "$as_me:$LINENO: result: yes" >&5 | |
7288 | echo "${ECHO_T}yes" >&6 | |
7289 | else | |
7290 | echo "$as_me:$LINENO: result: no" >&5 | |
7291 | echo "${ECHO_T}no" >&6 | |
7292 | fi | |
7293 | ||
7294 | ||
7295 | enablestring= | |
7296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7297 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7298 | no_cache=0 | |
7299 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7300 | if test "${enable_checkbox+set}" = set; then | |
7301 | enableval="$enable_checkbox" | |
7302 | ||
7303 | if test "$enableval" = yes; then | |
7304 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7305 | else | |
7306 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7307 | fi | |
7308 | ||
7309 | else | |
7310 | ||
7311 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7312 | if test "x$LINE" != x ; then | |
7313 | eval "DEFAULT_$LINE" | |
7314 | else | |
7315 | no_cache=1 | |
7316 | fi | |
7317 | ||
7318 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7319 | ||
7320 | fi; | |
7321 | ||
7322 | eval "$ac_cv_use_checkbox" | |
7323 | if test "$no_cache" != 1; then | |
7324 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7325 | fi | |
7326 | ||
7327 | if test "$wxUSE_CHECKBOX" = yes; then | |
7328 | echo "$as_me:$LINENO: result: yes" >&5 | |
7329 | echo "${ECHO_T}yes" >&6 | |
7330 | else | |
7331 | echo "$as_me:$LINENO: result: no" >&5 | |
7332 | echo "${ECHO_T}no" >&6 | |
7333 | fi | |
7334 | ||
7335 | ||
7336 | enablestring= | |
7337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7338 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7339 | no_cache=0 | |
7340 | # Check whether --enable-checklst or --disable-checklst was given. | |
7341 | if test "${enable_checklst+set}" = set; then | |
7342 | enableval="$enable_checklst" | |
7343 | ||
7344 | if test "$enableval" = yes; then | |
7345 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7346 | else | |
7347 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7348 | fi | |
7349 | ||
7350 | else | |
7351 | ||
7352 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7353 | if test "x$LINE" != x ; then | |
7354 | eval "DEFAULT_$LINE" | |
7355 | else | |
7356 | no_cache=1 | |
7357 | fi | |
7358 | ||
7359 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7360 | ||
7361 | fi; | |
7362 | ||
7363 | eval "$ac_cv_use_checklst" | |
7364 | if test "$no_cache" != 1; then | |
7365 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7366 | fi | |
7367 | ||
7368 | if test "$wxUSE_CHECKLST" = yes; then | |
7369 | echo "$as_me:$LINENO: result: yes" >&5 | |
7370 | echo "${ECHO_T}yes" >&6 | |
7371 | else | |
7372 | echo "$as_me:$LINENO: result: no" >&5 | |
7373 | echo "${ECHO_T}no" >&6 | |
7374 | fi | |
7375 | ||
7376 | ||
7377 | enablestring= | |
7378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7379 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7380 | no_cache=0 | |
7381 | # Check whether --enable-choice or --disable-choice was given. | |
7382 | if test "${enable_choice+set}" = set; then | |
7383 | enableval="$enable_choice" | |
7384 | ||
7385 | if test "$enableval" = yes; then | |
7386 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7387 | else | |
7388 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7389 | fi | |
7390 | ||
7391 | else | |
7392 | ||
7393 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7394 | if test "x$LINE" != x ; then | |
7395 | eval "DEFAULT_$LINE" | |
7396 | else | |
7397 | no_cache=1 | |
7398 | fi | |
7399 | ||
7400 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7401 | ||
7402 | fi; | |
7403 | ||
7404 | eval "$ac_cv_use_choice" | |
7405 | if test "$no_cache" != 1; then | |
7406 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7407 | fi | |
7408 | ||
7409 | if test "$wxUSE_CHOICE" = yes; then | |
7410 | echo "$as_me:$LINENO: result: yes" >&5 | |
7411 | echo "${ECHO_T}yes" >&6 | |
7412 | else | |
7413 | echo "$as_me:$LINENO: result: no" >&5 | |
7414 | echo "${ECHO_T}no" >&6 | |
7415 | fi | |
7416 | ||
7417 | ||
92bbdbcd WS |
7418 | enablestring= |
7419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7420 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7421 | no_cache=0 | |
7422 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7423 | if test "${enable_choicebook+set}" = set; then | |
7424 | enableval="$enable_choicebook" | |
7425 | ||
7426 | if test "$enableval" = yes; then | |
7427 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7428 | else | |
7429 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7430 | fi | |
7431 | ||
7432 | else | |
7433 | ||
7434 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7435 | if test "x$LINE" != x ; then | |
7436 | eval "DEFAULT_$LINE" | |
7437 | else | |
7438 | no_cache=1 | |
7439 | fi | |
7440 | ||
7441 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7442 | ||
7443 | fi; | |
7444 | ||
7445 | eval "$ac_cv_use_choicebook" | |
7446 | if test "$no_cache" != 1; then | |
7447 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7448 | fi | |
7449 | ||
7450 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7451 | echo "$as_me:$LINENO: result: yes" >&5 | |
7452 | echo "${ECHO_T}yes" >&6 | |
7453 | else | |
7454 | echo "$as_me:$LINENO: result: no" >&5 | |
7455 | echo "${ECHO_T}no" >&6 | |
7456 | fi | |
7457 | ||
7458 | ||
a848cd7e SC |
7459 | enablestring= |
7460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7461 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7462 | no_cache=0 | |
7463 | # Check whether --enable-combobox or --disable-combobox was given. | |
7464 | if test "${enable_combobox+set}" = set; then | |
7465 | enableval="$enable_combobox" | |
7466 | ||
7467 | if test "$enableval" = yes; then | |
7468 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7469 | else | |
7470 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7471 | fi | |
7472 | ||
7473 | else | |
7474 | ||
7475 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7476 | if test "x$LINE" != x ; then | |
7477 | eval "DEFAULT_$LINE" | |
7478 | else | |
7479 | no_cache=1 | |
7480 | fi | |
7481 | ||
7482 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7483 | ||
7484 | fi; | |
7485 | ||
7486 | eval "$ac_cv_use_combobox" | |
7487 | if test "$no_cache" != 1; then | |
7488 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7489 | fi | |
7490 | ||
7491 | if test "$wxUSE_COMBOBOX" = yes; then | |
7492 | echo "$as_me:$LINENO: result: yes" >&5 | |
7493 | echo "${ECHO_T}yes" >&6 | |
7494 | else | |
7495 | echo "$as_me:$LINENO: result: no" >&5 | |
7496 | echo "${ECHO_T}no" >&6 | |
7497 | fi | |
7498 | ||
7499 | ||
7500 | enablestring= | |
7501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7502 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7503 | no_cache=0 | |
7504 | # Check whether --enable-display or --disable-display was given. | |
7505 | if test "${enable_display+set}" = set; then | |
7506 | enableval="$enable_display" | |
7507 | ||
7508 | if test "$enableval" = yes; then | |
7509 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7510 | else | |
7511 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7512 | fi | |
7513 | ||
7514 | else | |
7515 | ||
7516 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7517 | if test "x$LINE" != x ; then | |
7518 | eval "DEFAULT_$LINE" | |
7519 | else | |
7520 | no_cache=1 | |
7521 | fi | |
7522 | ||
7523 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7524 | ||
7525 | fi; | |
7526 | ||
7527 | eval "$ac_cv_use_display" | |
7528 | if test "$no_cache" != 1; then | |
7529 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7530 | fi | |
7531 | ||
7532 | if test "$wxUSE_DISPLAY" = yes; then | |
7533 | echo "$as_me:$LINENO: result: yes" >&5 | |
7534 | echo "${ECHO_T}yes" >&6 | |
7535 | else | |
7536 | echo "$as_me:$LINENO: result: no" >&5 | |
7537 | echo "${ECHO_T}no" >&6 | |
7538 | fi | |
7539 | ||
7540 | ||
7541 | enablestring= | |
7542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7543 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7544 | no_cache=0 | |
7545 | # Check whether --enable-gauge or --disable-gauge was given. | |
7546 | if test "${enable_gauge+set}" = set; then | |
7547 | enableval="$enable_gauge" | |
7548 | ||
7549 | if test "$enableval" = yes; then | |
7550 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7551 | else | |
7552 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7553 | fi | |
7554 | ||
7555 | else | |
7556 | ||
7557 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7558 | if test "x$LINE" != x ; then | |
7559 | eval "DEFAULT_$LINE" | |
7560 | else | |
7561 | no_cache=1 | |
7562 | fi | |
7563 | ||
7564 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7565 | ||
7566 | fi; | |
7567 | ||
7568 | eval "$ac_cv_use_gauge" | |
7569 | if test "$no_cache" != 1; then | |
7570 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7571 | fi | |
7572 | ||
7573 | if test "$wxUSE_GAUGE" = yes; then | |
7574 | echo "$as_me:$LINENO: result: yes" >&5 | |
7575 | echo "${ECHO_T}yes" >&6 | |
7576 | else | |
7577 | echo "$as_me:$LINENO: result: no" >&5 | |
7578 | echo "${ECHO_T}no" >&6 | |
7579 | fi | |
7580 | ||
7581 | ||
7582 | enablestring= | |
7583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7584 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7585 | no_cache=0 | |
7586 | # Check whether --enable-grid or --disable-grid was given. | |
7587 | if test "${enable_grid+set}" = set; then | |
7588 | enableval="$enable_grid" | |
7589 | ||
7590 | if test "$enableval" = yes; then | |
7591 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7592 | else | |
7593 | ac_cv_use_grid='wxUSE_GRID=no' | |
7594 | fi | |
7595 | ||
7596 | else | |
7597 | ||
7598 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7599 | if test "x$LINE" != x ; then | |
7600 | eval "DEFAULT_$LINE" | |
7601 | else | |
7602 | no_cache=1 | |
7603 | fi | |
7604 | ||
7605 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7606 | ||
7607 | fi; | |
7608 | ||
7609 | eval "$ac_cv_use_grid" | |
7610 | if test "$no_cache" != 1; then | |
7611 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7612 | fi | |
7613 | ||
7614 | if test "$wxUSE_GRID" = yes; then | |
7615 | echo "$as_me:$LINENO: result: yes" >&5 | |
7616 | echo "${ECHO_T}yes" >&6 | |
7617 | else | |
7618 | echo "$as_me:$LINENO: result: no" >&5 | |
7619 | echo "${ECHO_T}no" >&6 | |
7620 | fi | |
7621 | ||
7622 | ||
7623 | enablestring= | |
7624 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7625 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7626 | no_cache=0 | |
7627 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7628 | if test "${enable_imaglist+set}" = set; then | |
7629 | enableval="$enable_imaglist" | |
7630 | ||
7631 | if test "$enableval" = yes; then | |
7632 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7633 | else | |
7634 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7635 | fi | |
7636 | ||
7637 | else | |
7638 | ||
7639 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7640 | if test "x$LINE" != x ; then | |
7641 | eval "DEFAULT_$LINE" | |
7642 | else | |
7643 | no_cache=1 | |
7644 | fi | |
7645 | ||
7646 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7647 | ||
7648 | fi; | |
7649 | ||
7650 | eval "$ac_cv_use_imaglist" | |
7651 | if test "$no_cache" != 1; then | |
7652 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7653 | fi | |
7654 | ||
7655 | if test "$wxUSE_IMAGLIST" = yes; then | |
7656 | echo "$as_me:$LINENO: result: yes" >&5 | |
7657 | echo "${ECHO_T}yes" >&6 | |
7658 | else | |
7659 | echo "$as_me:$LINENO: result: no" >&5 | |
7660 | echo "${ECHO_T}no" >&6 | |
7661 | fi | |
7662 | ||
7663 | ||
7664 | enablestring= | |
7665 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7666 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7667 | no_cache=0 | |
7668 | # Check whether --enable-listbook or --disable-listbook was given. | |
7669 | if test "${enable_listbook+set}" = set; then | |
7670 | enableval="$enable_listbook" | |
7671 | ||
7672 | if test "$enableval" = yes; then | |
7673 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7674 | else | |
7675 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7676 | fi | |
7677 | ||
7678 | else | |
7679 | ||
7680 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7681 | if test "x$LINE" != x ; then | |
7682 | eval "DEFAULT_$LINE" | |
7683 | else | |
7684 | no_cache=1 | |
7685 | fi | |
7686 | ||
7687 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7688 | ||
7689 | fi; | |
7690 | ||
7691 | eval "$ac_cv_use_listbook" | |
7692 | if test "$no_cache" != 1; then | |
7693 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7694 | fi | |
7695 | ||
7696 | if test "$wxUSE_LISTBOOK" = yes; then | |
7697 | echo "$as_me:$LINENO: result: yes" >&5 | |
7698 | echo "${ECHO_T}yes" >&6 | |
7699 | else | |
7700 | echo "$as_me:$LINENO: result: no" >&5 | |
7701 | echo "${ECHO_T}no" >&6 | |
7702 | fi | |
7703 | ||
7704 | ||
7705 | enablestring= | |
7706 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7707 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7708 | no_cache=0 | |
7709 | # Check whether --enable-listbox or --disable-listbox was given. | |
7710 | if test "${enable_listbox+set}" = set; then | |
7711 | enableval="$enable_listbox" | |
7712 | ||
7713 | if test "$enableval" = yes; then | |
7714 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7715 | else | |
7716 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7717 | fi | |
7718 | ||
7719 | else | |
7720 | ||
7721 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7722 | if test "x$LINE" != x ; then | |
7723 | eval "DEFAULT_$LINE" | |
7724 | else | |
7725 | no_cache=1 | |
7726 | fi | |
7727 | ||
7728 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7729 | ||
7730 | fi; | |
7731 | ||
7732 | eval "$ac_cv_use_listbox" | |
7733 | if test "$no_cache" != 1; then | |
7734 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7735 | fi | |
7736 | ||
7737 | if test "$wxUSE_LISTBOX" = yes; then | |
7738 | echo "$as_me:$LINENO: result: yes" >&5 | |
7739 | echo "${ECHO_T}yes" >&6 | |
7740 | else | |
7741 | echo "$as_me:$LINENO: result: no" >&5 | |
7742 | echo "${ECHO_T}no" >&6 | |
7743 | fi | |
7744 | ||
7745 | ||
7746 | enablestring= | |
7747 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7748 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7749 | no_cache=0 | |
7750 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7751 | if test "${enable_listctrl+set}" = set; then | |
7752 | enableval="$enable_listctrl" | |
7753 | ||
7754 | if test "$enableval" = yes; then | |
7755 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7756 | else | |
7757 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7758 | fi | |
7759 | ||
7760 | else | |
7761 | ||
7762 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7763 | if test "x$LINE" != x ; then | |
7764 | eval "DEFAULT_$LINE" | |
7765 | else | |
7766 | no_cache=1 | |
7767 | fi | |
7768 | ||
7769 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7770 | ||
7771 | fi; | |
7772 | ||
7773 | eval "$ac_cv_use_listctrl" | |
7774 | if test "$no_cache" != 1; then | |
7775 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7776 | fi | |
7777 | ||
7778 | if test "$wxUSE_LISTCTRL" = yes; then | |
7779 | echo "$as_me:$LINENO: result: yes" >&5 | |
7780 | echo "${ECHO_T}yes" >&6 | |
7781 | else | |
7782 | echo "$as_me:$LINENO: result: no" >&5 | |
7783 | echo "${ECHO_T}no" >&6 | |
7784 | fi | |
7785 | ||
7786 | ||
7787 | enablestring= | |
7788 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7789 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7790 | no_cache=0 | |
7791 | # Check whether --enable-notebook or --disable-notebook was given. | |
7792 | if test "${enable_notebook+set}" = set; then | |
7793 | enableval="$enable_notebook" | |
7794 | ||
7795 | if test "$enableval" = yes; then | |
7796 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7797 | else | |
7798 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7799 | fi | |
7800 | ||
7801 | else | |
7802 | ||
7803 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7804 | if test "x$LINE" != x ; then | |
7805 | eval "DEFAULT_$LINE" | |
7806 | else | |
7807 | no_cache=1 | |
7808 | fi | |
7809 | ||
7810 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7811 | ||
7812 | fi; | |
7813 | ||
7814 | eval "$ac_cv_use_notebook" | |
7815 | if test "$no_cache" != 1; then | |
7816 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7817 | fi | |
7818 | ||
7819 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7820 | echo "$as_me:$LINENO: result: yes" >&5 | |
7821 | echo "${ECHO_T}yes" >&6 | |
7822 | else | |
7823 | echo "$as_me:$LINENO: result: no" >&5 | |
7824 | echo "${ECHO_T}no" >&6 | |
7825 | fi | |
7826 | ||
7827 | ||
7828 | enablestring= | |
7829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7830 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7831 | no_cache=0 | |
7832 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7833 | if test "${enable_radiobox+set}" = set; then | |
7834 | enableval="$enable_radiobox" | |
7835 | ||
7836 | if test "$enableval" = yes; then | |
7837 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7838 | else | |
7839 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7840 | fi | |
7841 | ||
7842 | else | |
7843 | ||
7844 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7845 | if test "x$LINE" != x ; then | |
7846 | eval "DEFAULT_$LINE" | |
7847 | else | |
7848 | no_cache=1 | |
7849 | fi | |
7850 | ||
7851 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7852 | ||
7853 | fi; | |
7854 | ||
7855 | eval "$ac_cv_use_radiobox" | |
7856 | if test "$no_cache" != 1; then | |
7857 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7858 | fi | |
7859 | ||
7860 | if test "$wxUSE_RADIOBOX" = yes; then | |
7861 | echo "$as_me:$LINENO: result: yes" >&5 | |
7862 | echo "${ECHO_T}yes" >&6 | |
7863 | else | |
7864 | echo "$as_me:$LINENO: result: no" >&5 | |
7865 | echo "${ECHO_T}no" >&6 | |
7866 | fi | |
7867 | ||
7868 | ||
7869 | enablestring= | |
7870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7871 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7872 | no_cache=0 | |
7873 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7874 | if test "${enable_radiobtn+set}" = set; then | |
7875 | enableval="$enable_radiobtn" | |
7876 | ||
7877 | if test "$enableval" = yes; then | |
7878 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7879 | else | |
7880 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7881 | fi | |
7882 | ||
7883 | else | |
7884 | ||
7885 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7886 | if test "x$LINE" != x ; then | |
7887 | eval "DEFAULT_$LINE" | |
7888 | else | |
7889 | no_cache=1 | |
7890 | fi | |
7891 | ||
7892 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7893 | ||
7894 | fi; | |
7895 | ||
7896 | eval "$ac_cv_use_radiobtn" | |
7897 | if test "$no_cache" != 1; then | |
7898 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7899 | fi | |
7900 | ||
7901 | if test "$wxUSE_RADIOBTN" = yes; then | |
7902 | echo "$as_me:$LINENO: result: yes" >&5 | |
7903 | echo "${ECHO_T}yes" >&6 | |
7904 | else | |
7905 | echo "$as_me:$LINENO: result: no" >&5 | |
7906 | echo "${ECHO_T}no" >&6 | |
7907 | fi | |
7908 | ||
7909 | ||
7910 | enablestring= | |
7911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7912 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7913 | no_cache=0 | |
7914 | # Check whether --enable-sash or --disable-sash was given. | |
7915 | if test "${enable_sash+set}" = set; then | |
7916 | enableval="$enable_sash" | |
7917 | ||
7918 | if test "$enableval" = yes; then | |
7919 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7920 | else | |
7921 | ac_cv_use_sash='wxUSE_SASH=no' | |
7922 | fi | |
7923 | ||
7924 | else | |
7925 | ||
7926 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7927 | if test "x$LINE" != x ; then | |
7928 | eval "DEFAULT_$LINE" | |
7929 | else | |
7930 | no_cache=1 | |
7931 | fi | |
7932 | ||
7933 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7934 | ||
7935 | fi; | |
7936 | ||
7937 | eval "$ac_cv_use_sash" | |
7938 | if test "$no_cache" != 1; then | |
7939 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7940 | fi | |
7941 | ||
7942 | if test "$wxUSE_SASH" = yes; then | |
7943 | echo "$as_me:$LINENO: result: yes" >&5 | |
7944 | echo "${ECHO_T}yes" >&6 | |
7945 | else | |
7946 | echo "$as_me:$LINENO: result: no" >&5 | |
7947 | echo "${ECHO_T}no" >&6 | |
7948 | fi | |
7949 | ||
7950 | ||
7951 | enablestring= | |
7952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7953 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7954 | no_cache=0 | |
7955 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7956 | if test "${enable_scrollbar+set}" = set; then | |
7957 | enableval="$enable_scrollbar" | |
7958 | ||
7959 | if test "$enableval" = yes; then | |
7960 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7961 | else | |
7962 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7963 | fi | |
7964 | ||
7965 | else | |
7966 | ||
7967 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7968 | if test "x$LINE" != x ; then | |
7969 | eval "DEFAULT_$LINE" | |
7970 | else | |
7971 | no_cache=1 | |
7972 | fi | |
7973 | ||
7974 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7975 | ||
7976 | fi; | |
7977 | ||
7978 | eval "$ac_cv_use_scrollbar" | |
7979 | if test "$no_cache" != 1; then | |
7980 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7981 | fi | |
7982 | ||
7983 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7984 | echo "$as_me:$LINENO: result: yes" >&5 | |
7985 | echo "${ECHO_T}yes" >&6 | |
7986 | else | |
7987 | echo "$as_me:$LINENO: result: no" >&5 | |
7988 | echo "${ECHO_T}no" >&6 | |
7989 | fi | |
7990 | ||
7991 | ||
7992 | enablestring= | |
7993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7994 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7995 | no_cache=0 | |
7996 | # Check whether --enable-slider or --disable-slider was given. | |
7997 | if test "${enable_slider+set}" = set; then | |
7998 | enableval="$enable_slider" | |
7999 | ||
8000 | if test "$enableval" = yes; then | |
8001 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8002 | else | |
8003 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8004 | fi | |
8005 | ||
8006 | else | |
8007 | ||
8008 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8009 | if test "x$LINE" != x ; then | |
8010 | eval "DEFAULT_$LINE" | |
8011 | else | |
8012 | no_cache=1 | |
8013 | fi | |
8014 | ||
8015 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8016 | ||
8017 | fi; | |
8018 | ||
8019 | eval "$ac_cv_use_slider" | |
8020 | if test "$no_cache" != 1; then | |
8021 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8022 | fi | |
8023 | ||
8024 | if test "$wxUSE_SLIDER" = yes; then | |
8025 | echo "$as_me:$LINENO: result: yes" >&5 | |
8026 | echo "${ECHO_T}yes" >&6 | |
8027 | else | |
8028 | echo "$as_me:$LINENO: result: no" >&5 | |
8029 | echo "${ECHO_T}no" >&6 | |
8030 | fi | |
8031 | ||
8032 | ||
8033 | enablestring= | |
8034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8035 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8036 | no_cache=0 | |
8037 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8038 | if test "${enable_spinbtn+set}" = set; then | |
8039 | enableval="$enable_spinbtn" | |
8040 | ||
8041 | if test "$enableval" = yes; then | |
8042 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8043 | else | |
8044 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8045 | fi | |
8046 | ||
8047 | else | |
8048 | ||
8049 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8050 | if test "x$LINE" != x ; then | |
8051 | eval "DEFAULT_$LINE" | |
8052 | else | |
8053 | no_cache=1 | |
8054 | fi | |
8055 | ||
8056 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8057 | ||
8058 | fi; | |
8059 | ||
8060 | eval "$ac_cv_use_spinbtn" | |
8061 | if test "$no_cache" != 1; then | |
8062 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8063 | fi | |
8064 | ||
8065 | if test "$wxUSE_SPINBTN" = yes; then | |
8066 | echo "$as_me:$LINENO: result: yes" >&5 | |
8067 | echo "${ECHO_T}yes" >&6 | |
8068 | else | |
8069 | echo "$as_me:$LINENO: result: no" >&5 | |
8070 | echo "${ECHO_T}no" >&6 | |
8071 | fi | |
8072 | ||
8073 | ||
8074 | enablestring= | |
8075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8076 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8077 | no_cache=0 | |
8078 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8079 | if test "${enable_spinctrl+set}" = set; then | |
8080 | enableval="$enable_spinctrl" | |
8081 | ||
8082 | if test "$enableval" = yes; then | |
8083 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8084 | else | |
8085 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8086 | fi | |
8087 | ||
8088 | else | |
8089 | ||
8090 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8091 | if test "x$LINE" != x ; then | |
8092 | eval "DEFAULT_$LINE" | |
8093 | else | |
8094 | no_cache=1 | |
8095 | fi | |
8096 | ||
8097 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8098 | ||
8099 | fi; | |
8100 | ||
8101 | eval "$ac_cv_use_spinctrl" | |
8102 | if test "$no_cache" != 1; then | |
8103 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8104 | fi | |
8105 | ||
8106 | if test "$wxUSE_SPINCTRL" = yes; then | |
8107 | echo "$as_me:$LINENO: result: yes" >&5 | |
8108 | echo "${ECHO_T}yes" >&6 | |
8109 | else | |
8110 | echo "$as_me:$LINENO: result: no" >&5 | |
8111 | echo "${ECHO_T}no" >&6 | |
8112 | fi | |
8113 | ||
8114 | ||
8115 | enablestring= | |
8116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8117 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8118 | no_cache=0 | |
8119 | # Check whether --enable-splitter or --disable-splitter was given. | |
8120 | if test "${enable_splitter+set}" = set; then | |
8121 | enableval="$enable_splitter" | |
8122 | ||
8123 | if test "$enableval" = yes; then | |
8124 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8125 | else | |
8126 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8127 | fi | |
8128 | ||
8129 | else | |
8130 | ||
8131 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8132 | if test "x$LINE" != x ; then | |
8133 | eval "DEFAULT_$LINE" | |
8134 | else | |
8135 | no_cache=1 | |
8136 | fi | |
8137 | ||
8138 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8139 | ||
8140 | fi; | |
8141 | ||
8142 | eval "$ac_cv_use_splitter" | |
8143 | if test "$no_cache" != 1; then | |
8144 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8145 | fi | |
8146 | ||
8147 | if test "$wxUSE_SPLITTER" = yes; then | |
8148 | echo "$as_me:$LINENO: result: yes" >&5 | |
8149 | echo "${ECHO_T}yes" >&6 | |
8150 | else | |
8151 | echo "$as_me:$LINENO: result: no" >&5 | |
8152 | echo "${ECHO_T}no" >&6 | |
8153 | fi | |
8154 | ||
8155 | ||
8156 | enablestring= | |
8157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8158 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8159 | no_cache=0 | |
8160 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8161 | if test "${enable_statbmp+set}" = set; then | |
8162 | enableval="$enable_statbmp" | |
8163 | ||
8164 | if test "$enableval" = yes; then | |
8165 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8166 | else | |
8167 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8168 | fi | |
8169 | ||
8170 | else | |
8171 | ||
8172 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8173 | if test "x$LINE" != x ; then | |
8174 | eval "DEFAULT_$LINE" | |
8175 | else | |
8176 | no_cache=1 | |
8177 | fi | |
8178 | ||
8179 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8180 | ||
8181 | fi; | |
8182 | ||
8183 | eval "$ac_cv_use_statbmp" | |
8184 | if test "$no_cache" != 1; then | |
8185 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8186 | fi | |
8187 | ||
8188 | if test "$wxUSE_STATBMP" = yes; then | |
8189 | echo "$as_me:$LINENO: result: yes" >&5 | |
8190 | echo "${ECHO_T}yes" >&6 | |
8191 | else | |
8192 | echo "$as_me:$LINENO: result: no" >&5 | |
8193 | echo "${ECHO_T}no" >&6 | |
8194 | fi | |
8195 | ||
8196 | ||
8197 | enablestring= | |
8198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8199 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8200 | no_cache=0 | |
8201 | # Check whether --enable-statbox or --disable-statbox was given. | |
8202 | if test "${enable_statbox+set}" = set; then | |
8203 | enableval="$enable_statbox" | |
8204 | ||
8205 | if test "$enableval" = yes; then | |
8206 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8207 | else | |
8208 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8209 | fi | |
8210 | ||
8211 | else | |
8212 | ||
8213 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8214 | if test "x$LINE" != x ; then | |
8215 | eval "DEFAULT_$LINE" | |
8216 | else | |
8217 | no_cache=1 | |
8218 | fi | |
8219 | ||
8220 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8221 | ||
8222 | fi; | |
8223 | ||
8224 | eval "$ac_cv_use_statbox" | |
8225 | if test "$no_cache" != 1; then | |
8226 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8227 | fi | |
8228 | ||
8229 | if test "$wxUSE_STATBOX" = yes; then | |
8230 | echo "$as_me:$LINENO: result: yes" >&5 | |
8231 | echo "${ECHO_T}yes" >&6 | |
8232 | else | |
8233 | echo "$as_me:$LINENO: result: no" >&5 | |
8234 | echo "${ECHO_T}no" >&6 | |
8235 | fi | |
8236 | ||
8237 | ||
8238 | enablestring= | |
8239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8240 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8241 | no_cache=0 | |
8242 | # Check whether --enable-statline or --disable-statline was given. | |
8243 | if test "${enable_statline+set}" = set; then | |
8244 | enableval="$enable_statline" | |
8245 | ||
8246 | if test "$enableval" = yes; then | |
8247 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8248 | else | |
8249 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8250 | fi | |
8251 | ||
8252 | else | |
8253 | ||
8254 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8255 | if test "x$LINE" != x ; then | |
8256 | eval "DEFAULT_$LINE" | |
8257 | else | |
8258 | no_cache=1 | |
8259 | fi | |
8260 | ||
8261 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8262 | ||
8263 | fi; | |
8264 | ||
8265 | eval "$ac_cv_use_statline" | |
8266 | if test "$no_cache" != 1; then | |
8267 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8268 | fi | |
8269 | ||
8270 | if test "$wxUSE_STATLINE" = yes; then | |
8271 | echo "$as_me:$LINENO: result: yes" >&5 | |
8272 | echo "${ECHO_T}yes" >&6 | |
8273 | else | |
8274 | echo "$as_me:$LINENO: result: no" >&5 | |
8275 | echo "${ECHO_T}no" >&6 | |
8276 | fi | |
8277 | ||
8278 | ||
8279 | enablestring= | |
8280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8281 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8282 | no_cache=0 | |
8283 | # Check whether --enable-stattext or --disable-stattext was given. | |
8284 | if test "${enable_stattext+set}" = set; then | |
8285 | enableval="$enable_stattext" | |
8286 | ||
8287 | if test "$enableval" = yes; then | |
8288 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8289 | else | |
8290 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8291 | fi | |
8292 | ||
8293 | else | |
8294 | ||
8295 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8296 | if test "x$LINE" != x ; then | |
8297 | eval "DEFAULT_$LINE" | |
8298 | else | |
8299 | no_cache=1 | |
8300 | fi | |
8301 | ||
8302 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8303 | ||
8304 | fi; | |
8305 | ||
8306 | eval "$ac_cv_use_stattext" | |
8307 | if test "$no_cache" != 1; then | |
8308 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8309 | fi | |
8310 | ||
8311 | if test "$wxUSE_STATTEXT" = yes; then | |
8312 | echo "$as_me:$LINENO: result: yes" >&5 | |
8313 | echo "${ECHO_T}yes" >&6 | |
8314 | else | |
8315 | echo "$as_me:$LINENO: result: no" >&5 | |
8316 | echo "${ECHO_T}no" >&6 | |
8317 | fi | |
8318 | ||
8319 | ||
8320 | enablestring= | |
8321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8322 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8323 | no_cache=0 | |
8324 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8325 | if test "${enable_statusbar+set}" = set; then | |
8326 | enableval="$enable_statusbar" | |
8327 | ||
8328 | if test "$enableval" = yes; then | |
8329 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8330 | else | |
8331 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8332 | fi | |
8333 | ||
8334 | else | |
8335 | ||
8336 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8337 | if test "x$LINE" != x ; then | |
8338 | eval "DEFAULT_$LINE" | |
8339 | else | |
8340 | no_cache=1 | |
8341 | fi | |
8342 | ||
8343 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8344 | ||
8345 | fi; | |
8346 | ||
8347 | eval "$ac_cv_use_statusbar" | |
8348 | if test "$no_cache" != 1; then | |
8349 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8350 | fi | |
8351 | ||
8352 | if test "$wxUSE_STATUSBAR" = yes; then | |
8353 | echo "$as_me:$LINENO: result: yes" >&5 | |
8354 | echo "${ECHO_T}yes" >&6 | |
8355 | else | |
8356 | echo "$as_me:$LINENO: result: no" >&5 | |
8357 | echo "${ECHO_T}no" >&6 | |
8358 | fi | |
8359 | ||
8360 | ||
8361 | enablestring= | |
8362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8363 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8364 | no_cache=0 | |
8365 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8366 | if test "${enable_tabdialog+set}" = set; then | |
8367 | enableval="$enable_tabdialog" | |
8368 | ||
8369 | if test "$enableval" = yes; then | |
8370 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8371 | else | |
8372 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8373 | fi | |
8374 | ||
8375 | else | |
8376 | ||
8377 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8378 | if test "x$LINE" != x ; then | |
8379 | eval "DEFAULT_$LINE" | |
8380 | else | |
8381 | no_cache=1 | |
8382 | fi | |
8383 | ||
8384 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8385 | ||
8386 | fi; | |
8387 | ||
8388 | eval "$ac_cv_use_tabdialog" | |
8389 | if test "$no_cache" != 1; then | |
8390 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8391 | fi | |
8392 | ||
8393 | if test "$wxUSE_TABDIALOG" = yes; then | |
8394 | echo "$as_me:$LINENO: result: yes" >&5 | |
8395 | echo "${ECHO_T}yes" >&6 | |
8396 | else | |
8397 | echo "$as_me:$LINENO: result: no" >&5 | |
8398 | echo "${ECHO_T}no" >&6 | |
8399 | fi | |
8400 | ||
8401 | ||
8402 | enablestring= | |
8403 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8404 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8405 | no_cache=0 | |
8406 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8407 | if test "${enable_textctrl+set}" = set; then | |
8408 | enableval="$enable_textctrl" | |
8409 | ||
8410 | if test "$enableval" = yes; then | |
8411 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8412 | else | |
8413 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8414 | fi | |
8415 | ||
8416 | else | |
8417 | ||
8418 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8419 | if test "x$LINE" != x ; then | |
8420 | eval "DEFAULT_$LINE" | |
8421 | else | |
8422 | no_cache=1 | |
8423 | fi | |
8424 | ||
8425 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8426 | ||
8427 | fi; | |
8428 | ||
8429 | eval "$ac_cv_use_textctrl" | |
8430 | if test "$no_cache" != 1; then | |
8431 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8432 | fi | |
8433 | ||
8434 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8435 | echo "$as_me:$LINENO: result: yes" >&5 | |
8436 | echo "${ECHO_T}yes" >&6 | |
8437 | else | |
8438 | echo "$as_me:$LINENO: result: no" >&5 | |
8439 | echo "${ECHO_T}no" >&6 | |
8440 | fi | |
8441 | ||
8442 | ||
8443 | enablestring= | |
8444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8445 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8446 | no_cache=0 | |
8447 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8448 | if test "${enable_togglebtn+set}" = set; then | |
8449 | enableval="$enable_togglebtn" | |
8450 | ||
8451 | if test "$enableval" = yes; then | |
8452 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8453 | else | |
8454 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8455 | fi | |
8456 | ||
8457 | else | |
8458 | ||
8459 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8460 | if test "x$LINE" != x ; then | |
8461 | eval "DEFAULT_$LINE" | |
8462 | else | |
8463 | no_cache=1 | |
8464 | fi | |
8465 | ||
8466 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8467 | ||
8468 | fi; | |
8469 | ||
8470 | eval "$ac_cv_use_togglebtn" | |
8471 | if test "$no_cache" != 1; then | |
8472 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8473 | fi | |
8474 | ||
8475 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8476 | echo "$as_me:$LINENO: result: yes" >&5 | |
8477 | echo "${ECHO_T}yes" >&6 | |
8478 | else | |
8479 | echo "$as_me:$LINENO: result: no" >&5 | |
8480 | echo "${ECHO_T}no" >&6 | |
8481 | fi | |
8482 | ||
8483 | ||
8484 | enablestring= | |
8485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8486 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8487 | no_cache=0 | |
8488 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8489 | if test "${enable_toolbar+set}" = set; then | |
8490 | enableval="$enable_toolbar" | |
8491 | ||
8492 | if test "$enableval" = yes; then | |
8493 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8494 | else | |
8495 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8496 | fi | |
8497 | ||
8498 | else | |
8499 | ||
8500 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8501 | if test "x$LINE" != x ; then | |
8502 | eval "DEFAULT_$LINE" | |
8503 | else | |
8504 | no_cache=1 | |
8505 | fi | |
8506 | ||
8507 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8508 | ||
8509 | fi; | |
8510 | ||
8511 | eval "$ac_cv_use_toolbar" | |
8512 | if test "$no_cache" != 1; then | |
8513 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8514 | fi | |
8515 | ||
8516 | if test "$wxUSE_TOOLBAR" = yes; then | |
8517 | echo "$as_me:$LINENO: result: yes" >&5 | |
8518 | echo "${ECHO_T}yes" >&6 | |
8519 | else | |
8520 | echo "$as_me:$LINENO: result: no" >&5 | |
8521 | echo "${ECHO_T}no" >&6 | |
8522 | fi | |
8523 | ||
8524 | ||
8525 | enablestring= | |
8526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8527 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8528 | no_cache=0 | |
8529 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8530 | if test "${enable_tbarnative+set}" = set; then | |
8531 | enableval="$enable_tbarnative" | |
8532 | ||
8533 | if test "$enableval" = yes; then | |
8534 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8535 | else | |
8536 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8537 | fi | |
8538 | ||
8539 | else | |
8540 | ||
8541 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8542 | if test "x$LINE" != x ; then | |
8543 | eval "DEFAULT_$LINE" | |
8544 | else | |
8545 | no_cache=1 | |
8546 | fi | |
8547 | ||
8548 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8549 | ||
8550 | fi; | |
8551 | ||
8552 | eval "$ac_cv_use_tbarnative" | |
8553 | if test "$no_cache" != 1; then | |
8554 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8555 | fi | |
8556 | ||
8557 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8558 | echo "$as_me:$LINENO: result: yes" >&5 | |
8559 | echo "${ECHO_T}yes" >&6 | |
8560 | else | |
8561 | echo "$as_me:$LINENO: result: no" >&5 | |
8562 | echo "${ECHO_T}no" >&6 | |
8563 | fi | |
8564 | ||
8565 | ||
8566 | enablestring= | |
8567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8568 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8569 | no_cache=0 | |
8570 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8571 | if test "${enable_tbarsmpl+set}" = set; then | |
8572 | enableval="$enable_tbarsmpl" | |
8573 | ||
8574 | if test "$enableval" = yes; then | |
8575 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8576 | else | |
8577 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8578 | fi | |
8579 | ||
8580 | else | |
8581 | ||
8582 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8583 | if test "x$LINE" != x ; then | |
8584 | eval "DEFAULT_$LINE" | |
8585 | else | |
8586 | no_cache=1 | |
8587 | fi | |
8588 | ||
8589 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8590 | ||
8591 | fi; | |
8592 | ||
8593 | eval "$ac_cv_use_tbarsmpl" | |
8594 | if test "$no_cache" != 1; then | |
8595 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8596 | fi | |
8597 | ||
8598 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8599 | echo "$as_me:$LINENO: result: yes" >&5 | |
8600 | echo "${ECHO_T}yes" >&6 | |
8601 | else | |
8602 | echo "$as_me:$LINENO: result: no" >&5 | |
8603 | echo "${ECHO_T}no" >&6 | |
8604 | fi | |
8605 | ||
8606 | ||
8607 | enablestring= | |
8608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8609 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8610 | no_cache=0 | |
8611 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8612 | if test "${enable_treectrl+set}" = set; then | |
8613 | enableval="$enable_treectrl" | |
8614 | ||
8615 | if test "$enableval" = yes; then | |
8616 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8617 | else | |
8618 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8619 | fi | |
8620 | ||
8621 | else | |
8622 | ||
8623 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8624 | if test "x$LINE" != x ; then | |
8625 | eval "DEFAULT_$LINE" | |
8626 | else | |
8627 | no_cache=1 | |
8628 | fi | |
8629 | ||
8630 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8631 | ||
8632 | fi; | |
8633 | ||
8634 | eval "$ac_cv_use_treectrl" | |
8635 | if test "$no_cache" != 1; then | |
8636 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8637 | fi | |
8638 | ||
8639 | if test "$wxUSE_TREECTRL" = yes; then | |
8640 | echo "$as_me:$LINENO: result: yes" >&5 | |
8641 | echo "${ECHO_T}yes" >&6 | |
8642 | else | |
8643 | echo "$as_me:$LINENO: result: no" >&5 | |
8644 | echo "${ECHO_T}no" >&6 | |
8645 | fi | |
8646 | ||
8647 | ||
8648 | enablestring= | |
8649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8650 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8651 | no_cache=0 | |
8652 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8653 | if test "${enable_tipwindow+set}" = set; then | |
8654 | enableval="$enable_tipwindow" | |
8655 | ||
8656 | if test "$enableval" = yes; then | |
8657 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8658 | else | |
8659 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8660 | fi | |
8661 | ||
8662 | else | |
8663 | ||
8664 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8665 | if test "x$LINE" != x ; then | |
8666 | eval "DEFAULT_$LINE" | |
8667 | else | |
8668 | no_cache=1 | |
8669 | fi | |
8670 | ||
8671 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8672 | ||
8673 | fi; | |
8674 | ||
8675 | eval "$ac_cv_use_tipwindow" | |
8676 | if test "$no_cache" != 1; then | |
8677 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8678 | fi | |
8679 | ||
8680 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8681 | echo "$as_me:$LINENO: result: yes" >&5 | |
8682 | echo "${ECHO_T}yes" >&6 | |
8683 | else | |
8684 | echo "$as_me:$LINENO: result: no" >&5 | |
8685 | echo "${ECHO_T}no" >&6 | |
8686 | fi | |
8687 | ||
8688 | ||
8689 | enablestring= | |
8690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8691 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8692 | no_cache=0 | |
8693 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8694 | if test "${enable_popupwin+set}" = set; then | |
8695 | enableval="$enable_popupwin" | |
8696 | ||
8697 | if test "$enableval" = yes; then | |
8698 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8699 | else | |
8700 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8701 | fi | |
8702 | ||
8703 | else | |
8704 | ||
8705 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8706 | if test "x$LINE" != x ; then | |
8707 | eval "DEFAULT_$LINE" | |
8708 | else | |
8709 | no_cache=1 | |
8710 | fi | |
8711 | ||
8712 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8713 | ||
8714 | fi; | |
8715 | ||
8716 | eval "$ac_cv_use_popupwin" | |
8717 | if test "$no_cache" != 1; then | |
8718 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8719 | fi | |
8720 | ||
8721 | if test "$wxUSE_POPUPWIN" = yes; then | |
8722 | echo "$as_me:$LINENO: result: yes" >&5 | |
8723 | echo "${ECHO_T}yes" >&6 | |
8724 | else | |
8725 | echo "$as_me:$LINENO: result: no" >&5 | |
8726 | echo "${ECHO_T}no" >&6 | |
8727 | fi | |
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | enablestring= | |
8733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8734 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8735 | no_cache=0 | |
8736 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8737 | if test "${enable_commondlg+set}" = set; then | |
8738 | enableval="$enable_commondlg" | |
8739 | ||
8740 | if test "$enableval" = yes; then | |
8741 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8742 | else | |
8743 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8744 | fi | |
8745 | ||
8746 | else | |
8747 | ||
8748 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8749 | if test "x$LINE" != x ; then | |
8750 | eval "DEFAULT_$LINE" | |
8751 | else | |
8752 | no_cache=1 | |
8753 | fi | |
8754 | ||
8755 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8756 | ||
8757 | fi; | |
8758 | ||
8759 | eval "$ac_cv_use_commondlg" | |
8760 | if test "$no_cache" != 1; then | |
8761 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8762 | fi | |
8763 | ||
8764 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8765 | echo "$as_me:$LINENO: result: yes" >&5 | |
8766 | echo "${ECHO_T}yes" >&6 | |
8767 | else | |
8768 | echo "$as_me:$LINENO: result: no" >&5 | |
8769 | echo "${ECHO_T}no" >&6 | |
8770 | fi | |
8771 | ||
8772 | ||
8773 | enablestring= | |
8774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8775 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8776 | no_cache=0 | |
8777 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8778 | if test "${enable_choicedlg+set}" = set; then | |
8779 | enableval="$enable_choicedlg" | |
8780 | ||
8781 | if test "$enableval" = yes; then | |
8782 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8783 | else | |
8784 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8785 | fi | |
8786 | ||
8787 | else | |
8788 | ||
8789 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8790 | if test "x$LINE" != x ; then | |
8791 | eval "DEFAULT_$LINE" | |
8792 | else | |
8793 | no_cache=1 | |
8794 | fi | |
8795 | ||
8796 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8797 | ||
8798 | fi; | |
8799 | ||
8800 | eval "$ac_cv_use_choicedlg" | |
8801 | if test "$no_cache" != 1; then | |
8802 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8803 | fi | |
8804 | ||
8805 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8806 | echo "$as_me:$LINENO: result: yes" >&5 | |
8807 | echo "${ECHO_T}yes" >&6 | |
8808 | else | |
8809 | echo "$as_me:$LINENO: result: no" >&5 | |
8810 | echo "${ECHO_T}no" >&6 | |
8811 | fi | |
8812 | ||
8813 | ||
8814 | enablestring= | |
8815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8816 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8817 | no_cache=0 | |
8818 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8819 | if test "${enable_coldlg+set}" = set; then | |
8820 | enableval="$enable_coldlg" | |
8821 | ||
8822 | if test "$enableval" = yes; then | |
8823 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8824 | else | |
8825 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8826 | fi | |
8827 | ||
8828 | else | |
8829 | ||
8830 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8831 | if test "x$LINE" != x ; then | |
8832 | eval "DEFAULT_$LINE" | |
8833 | else | |
8834 | no_cache=1 | |
8835 | fi | |
8836 | ||
8837 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8838 | ||
8839 | fi; | |
8840 | ||
8841 | eval "$ac_cv_use_coldlg" | |
8842 | if test "$no_cache" != 1; then | |
8843 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8844 | fi | |
8845 | ||
8846 | if test "$wxUSE_COLOURDLG" = yes; then | |
8847 | echo "$as_me:$LINENO: result: yes" >&5 | |
8848 | echo "${ECHO_T}yes" >&6 | |
8849 | else | |
8850 | echo "$as_me:$LINENO: result: no" >&5 | |
8851 | echo "${ECHO_T}no" >&6 | |
8852 | fi | |
8853 | ||
8854 | ||
8855 | enablestring= | |
8856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8857 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8858 | no_cache=0 | |
8859 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8860 | if test "${enable_filedlg+set}" = set; then | |
8861 | enableval="$enable_filedlg" | |
8862 | ||
8863 | if test "$enableval" = yes; then | |
8864 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8865 | else | |
8866 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8867 | fi | |
8868 | ||
8869 | else | |
8870 | ||
8871 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8872 | if test "x$LINE" != x ; then | |
8873 | eval "DEFAULT_$LINE" | |
8874 | else | |
8875 | no_cache=1 | |
8876 | fi | |
8877 | ||
8878 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8879 | ||
8880 | fi; | |
8881 | ||
8882 | eval "$ac_cv_use_filedlg" | |
8883 | if test "$no_cache" != 1; then | |
8884 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8885 | fi | |
8886 | ||
8887 | if test "$wxUSE_FILEDLG" = yes; then | |
8888 | echo "$as_me:$LINENO: result: yes" >&5 | |
8889 | echo "${ECHO_T}yes" >&6 | |
8890 | else | |
8891 | echo "$as_me:$LINENO: result: no" >&5 | |
8892 | echo "${ECHO_T}no" >&6 | |
8893 | fi | |
8894 | ||
8895 | ||
8896 | enablestring= | |
8897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8898 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8899 | no_cache=0 | |
8900 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8901 | if test "${enable_finddlg+set}" = set; then | |
8902 | enableval="$enable_finddlg" | |
8903 | ||
8904 | if test "$enableval" = yes; then | |
8905 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8906 | else | |
8907 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8908 | fi | |
8909 | ||
8910 | else | |
8911 | ||
8912 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8913 | if test "x$LINE" != x ; then | |
8914 | eval "DEFAULT_$LINE" | |
8915 | else | |
8916 | no_cache=1 | |
8917 | fi | |
8918 | ||
8919 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8920 | ||
8921 | fi; | |
8922 | ||
8923 | eval "$ac_cv_use_finddlg" | |
8924 | if test "$no_cache" != 1; then | |
8925 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8926 | fi | |
8927 | ||
8928 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8929 | echo "$as_me:$LINENO: result: yes" >&5 | |
8930 | echo "${ECHO_T}yes" >&6 | |
8931 | else | |
8932 | echo "$as_me:$LINENO: result: no" >&5 | |
8933 | echo "${ECHO_T}no" >&6 | |
8934 | fi | |
8935 | ||
8936 | ||
8937 | enablestring= | |
8938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8939 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8940 | no_cache=0 | |
8941 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8942 | if test "${enable_fontdlg+set}" = set; then | |
8943 | enableval="$enable_fontdlg" | |
8944 | ||
8945 | if test "$enableval" = yes; then | |
8946 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8947 | else | |
8948 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8949 | fi | |
8950 | ||
8951 | else | |
8952 | ||
8953 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8954 | if test "x$LINE" != x ; then | |
8955 | eval "DEFAULT_$LINE" | |
8956 | else | |
8957 | no_cache=1 | |
8958 | fi | |
8959 | ||
8960 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8961 | ||
8962 | fi; | |
8963 | ||
8964 | eval "$ac_cv_use_fontdlg" | |
8965 | if test "$no_cache" != 1; then | |
8966 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8967 | fi | |
8968 | ||
8969 | if test "$wxUSE_FONTDLG" = yes; then | |
8970 | echo "$as_me:$LINENO: result: yes" >&5 | |
8971 | echo "${ECHO_T}yes" >&6 | |
8972 | else | |
8973 | echo "$as_me:$LINENO: result: no" >&5 | |
8974 | echo "${ECHO_T}no" >&6 | |
8975 | fi | |
8976 | ||
8977 | ||
8978 | enablestring= | |
8979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8980 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8981 | no_cache=0 | |
8982 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8983 | if test "${enable_dirdlg+set}" = set; then | |
8984 | enableval="$enable_dirdlg" | |
8985 | ||
8986 | if test "$enableval" = yes; then | |
8987 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8988 | else | |
8989 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8990 | fi | |
8991 | ||
8992 | else | |
8993 | ||
8994 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8995 | if test "x$LINE" != x ; then | |
8996 | eval "DEFAULT_$LINE" | |
8997 | else | |
8998 | no_cache=1 | |
8999 | fi | |
9000 | ||
9001 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9002 | ||
9003 | fi; | |
9004 | ||
9005 | eval "$ac_cv_use_dirdlg" | |
9006 | if test "$no_cache" != 1; then | |
9007 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9008 | fi | |
9009 | ||
9010 | if test "$wxUSE_DIRDLG" = yes; then | |
9011 | echo "$as_me:$LINENO: result: yes" >&5 | |
9012 | echo "${ECHO_T}yes" >&6 | |
9013 | else | |
9014 | echo "$as_me:$LINENO: result: no" >&5 | |
9015 | echo "${ECHO_T}no" >&6 | |
9016 | fi | |
9017 | ||
9018 | ||
9019 | enablestring= | |
9020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9021 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9022 | no_cache=0 | |
9023 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9024 | if test "${enable_msgdlg+set}" = set; then | |
9025 | enableval="$enable_msgdlg" | |
9026 | ||
9027 | if test "$enableval" = yes; then | |
9028 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9029 | else | |
9030 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9031 | fi | |
9032 | ||
9033 | else | |
9034 | ||
9035 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9036 | if test "x$LINE" != x ; then | |
9037 | eval "DEFAULT_$LINE" | |
9038 | else | |
9039 | no_cache=1 | |
9040 | fi | |
9041 | ||
9042 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9043 | ||
9044 | fi; | |
9045 | ||
9046 | eval "$ac_cv_use_msgdlg" | |
9047 | if test "$no_cache" != 1; then | |
9048 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9049 | fi | |
9050 | ||
9051 | if test "$wxUSE_MSGDLG" = yes; then | |
9052 | echo "$as_me:$LINENO: result: yes" >&5 | |
9053 | echo "${ECHO_T}yes" >&6 | |
9054 | else | |
9055 | echo "$as_me:$LINENO: result: no" >&5 | |
9056 | echo "${ECHO_T}no" >&6 | |
9057 | fi | |
9058 | ||
9059 | ||
9060 | enablestring= | |
9061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9062 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9063 | no_cache=0 | |
9064 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9065 | if test "${enable_numberdlg+set}" = set; then | |
9066 | enableval="$enable_numberdlg" | |
9067 | ||
9068 | if test "$enableval" = yes; then | |
9069 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9070 | else | |
9071 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9072 | fi | |
9073 | ||
9074 | else | |
9075 | ||
9076 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9077 | if test "x$LINE" != x ; then | |
9078 | eval "DEFAULT_$LINE" | |
9079 | else | |
9080 | no_cache=1 | |
9081 | fi | |
9082 | ||
9083 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9084 | ||
9085 | fi; | |
9086 | ||
9087 | eval "$ac_cv_use_numberdlg" | |
9088 | if test "$no_cache" != 1; then | |
9089 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9090 | fi | |
9091 | ||
9092 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9093 | echo "$as_me:$LINENO: result: yes" >&5 | |
9094 | echo "${ECHO_T}yes" >&6 | |
9095 | else | |
9096 | echo "$as_me:$LINENO: result: no" >&5 | |
9097 | echo "${ECHO_T}no" >&6 | |
9098 | fi | |
9099 | ||
9100 | ||
9101 | enablestring= | |
9102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9103 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9104 | no_cache=0 | |
9105 | # Check whether --enable-splash or --disable-splash was given. | |
9106 | if test "${enable_splash+set}" = set; then | |
9107 | enableval="$enable_splash" | |
9108 | ||
9109 | if test "$enableval" = yes; then | |
9110 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9111 | else | |
9112 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9113 | fi | |
9114 | ||
9115 | else | |
9116 | ||
9117 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9118 | if test "x$LINE" != x ; then | |
9119 | eval "DEFAULT_$LINE" | |
9120 | else | |
9121 | no_cache=1 | |
9122 | fi | |
9123 | ||
9124 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9125 | ||
9126 | fi; | |
9127 | ||
9128 | eval "$ac_cv_use_splash" | |
9129 | if test "$no_cache" != 1; then | |
9130 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9131 | fi | |
9132 | ||
9133 | if test "$wxUSE_SPLASH" = yes; then | |
9134 | echo "$as_me:$LINENO: result: yes" >&5 | |
9135 | echo "${ECHO_T}yes" >&6 | |
9136 | else | |
9137 | echo "$as_me:$LINENO: result: no" >&5 | |
9138 | echo "${ECHO_T}no" >&6 | |
9139 | fi | |
9140 | ||
9141 | ||
9142 | enablestring= | |
9143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9144 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9145 | no_cache=0 | |
9146 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9147 | if test "${enable_textdlg+set}" = set; then | |
9148 | enableval="$enable_textdlg" | |
9149 | ||
9150 | if test "$enableval" = yes; then | |
9151 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9152 | else | |
9153 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9154 | fi | |
9155 | ||
9156 | else | |
9157 | ||
9158 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9159 | if test "x$LINE" != x ; then | |
9160 | eval "DEFAULT_$LINE" | |
9161 | else | |
9162 | no_cache=1 | |
9163 | fi | |
9164 | ||
9165 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9166 | ||
9167 | fi; | |
9168 | ||
9169 | eval "$ac_cv_use_textdlg" | |
9170 | if test "$no_cache" != 1; then | |
9171 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9172 | fi | |
9173 | ||
9174 | if test "$wxUSE_TEXTDLG" = yes; then | |
9175 | echo "$as_me:$LINENO: result: yes" >&5 | |
9176 | echo "${ECHO_T}yes" >&6 | |
9177 | else | |
9178 | echo "$as_me:$LINENO: result: no" >&5 | |
9179 | echo "${ECHO_T}no" >&6 | |
9180 | fi | |
9181 | ||
9182 | ||
9183 | enablestring= | |
9184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9185 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9186 | no_cache=0 | |
9187 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9188 | if test "${enable_tipdlg+set}" = set; then | |
9189 | enableval="$enable_tipdlg" | |
9190 | ||
9191 | if test "$enableval" = yes; then | |
9192 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9193 | else | |
9194 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9195 | fi | |
9196 | ||
9197 | else | |
9198 | ||
9199 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9200 | if test "x$LINE" != x ; then | |
9201 | eval "DEFAULT_$LINE" | |
9202 | else | |
9203 | no_cache=1 | |
9204 | fi | |
9205 | ||
9206 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9207 | ||
9208 | fi; | |
9209 | ||
9210 | eval "$ac_cv_use_tipdlg" | |
9211 | if test "$no_cache" != 1; then | |
9212 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9213 | fi | |
9214 | ||
9215 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9216 | echo "$as_me:$LINENO: result: yes" >&5 | |
9217 | echo "${ECHO_T}yes" >&6 | |
9218 | else | |
9219 | echo "$as_me:$LINENO: result: no" >&5 | |
9220 | echo "${ECHO_T}no" >&6 | |
9221 | fi | |
9222 | ||
9223 | ||
9224 | enablestring= | |
9225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9226 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9227 | no_cache=0 | |
9228 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9229 | if test "${enable_progressdlg+set}" = set; then | |
9230 | enableval="$enable_progressdlg" | |
9231 | ||
9232 | if test "$enableval" = yes; then | |
9233 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9234 | else | |
9235 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9236 | fi | |
9237 | ||
9238 | else | |
9239 | ||
9240 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9241 | if test "x$LINE" != x ; then | |
9242 | eval "DEFAULT_$LINE" | |
9243 | else | |
9244 | no_cache=1 | |
9245 | fi | |
9246 | ||
9247 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9248 | ||
9249 | fi; | |
9250 | ||
9251 | eval "$ac_cv_use_progressdlg" | |
9252 | if test "$no_cache" != 1; then | |
9253 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9254 | fi | |
9255 | ||
9256 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9257 | echo "$as_me:$LINENO: result: yes" >&5 | |
9258 | echo "${ECHO_T}yes" >&6 | |
9259 | else | |
9260 | echo "$as_me:$LINENO: result: no" >&5 | |
9261 | echo "${ECHO_T}no" >&6 | |
9262 | fi | |
9263 | ||
9264 | ||
9265 | enablestring= | |
9266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9267 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9268 | no_cache=0 | |
9269 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9270 | if test "${enable_wizarddlg+set}" = set; then | |
9271 | enableval="$enable_wizarddlg" | |
9272 | ||
9273 | if test "$enableval" = yes; then | |
9274 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9275 | else | |
9276 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9277 | fi | |
9278 | ||
9279 | else | |
9280 | ||
9281 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9282 | if test "x$LINE" != x ; then | |
9283 | eval "DEFAULT_$LINE" | |
9284 | else | |
9285 | no_cache=1 | |
9286 | fi | |
9287 | ||
9288 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9289 | ||
9290 | fi; | |
9291 | ||
9292 | eval "$ac_cv_use_wizarddlg" | |
9293 | if test "$no_cache" != 1; then | |
9294 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9295 | fi | |
9296 | ||
9297 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9298 | echo "$as_me:$LINENO: result: yes" >&5 | |
9299 | echo "${ECHO_T}yes" >&6 | |
9300 | else | |
9301 | echo "$as_me:$LINENO: result: no" >&5 | |
9302 | echo "${ECHO_T}no" >&6 | |
9303 | fi | |
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | enablestring= | |
9309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9310 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9311 | no_cache=0 | |
9312 | # Check whether --enable-menus or --disable-menus was given. | |
9313 | if test "${enable_menus+set}" = set; then | |
9314 | enableval="$enable_menus" | |
9315 | ||
9316 | if test "$enableval" = yes; then | |
9317 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9318 | else | |
9319 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9320 | fi | |
9321 | ||
9322 | else | |
9323 | ||
9324 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9325 | if test "x$LINE" != x ; then | |
9326 | eval "DEFAULT_$LINE" | |
9327 | else | |
9328 | no_cache=1 | |
9329 | fi | |
9330 | ||
9331 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9332 | ||
9333 | fi; | |
9334 | ||
9335 | eval "$ac_cv_use_menus" | |
9336 | if test "$no_cache" != 1; then | |
9337 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9338 | fi | |
9339 | ||
9340 | if test "$wxUSE_MENUS" = yes; then | |
9341 | echo "$as_me:$LINENO: result: yes" >&5 | |
9342 | echo "${ECHO_T}yes" >&6 | |
9343 | else | |
9344 | echo "$as_me:$LINENO: result: no" >&5 | |
9345 | echo "${ECHO_T}no" >&6 | |
9346 | fi | |
9347 | ||
9348 | ||
9349 | enablestring= | |
9350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9351 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9352 | no_cache=0 | |
9353 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9354 | if test "${enable_miniframe+set}" = set; then | |
9355 | enableval="$enable_miniframe" | |
9356 | ||
9357 | if test "$enableval" = yes; then | |
9358 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9359 | else | |
9360 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9361 | fi | |
9362 | ||
9363 | else | |
9364 | ||
9365 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9366 | if test "x$LINE" != x ; then | |
9367 | eval "DEFAULT_$LINE" | |
9368 | else | |
9369 | no_cache=1 | |
9370 | fi | |
9371 | ||
9372 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9373 | ||
9374 | fi; | |
9375 | ||
9376 | eval "$ac_cv_use_miniframe" | |
9377 | if test "$no_cache" != 1; then | |
9378 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9379 | fi | |
9380 | ||
9381 | if test "$wxUSE_MINIFRAME" = yes; then | |
9382 | echo "$as_me:$LINENO: result: yes" >&5 | |
9383 | echo "${ECHO_T}yes" >&6 | |
9384 | else | |
9385 | echo "$as_me:$LINENO: result: no" >&5 | |
9386 | echo "${ECHO_T}no" >&6 | |
9387 | fi | |
9388 | ||
9389 | ||
9390 | enablestring= | |
9391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9392 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9393 | no_cache=0 | |
9394 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9395 | if test "${enable_tooltips+set}" = set; then | |
9396 | enableval="$enable_tooltips" | |
9397 | ||
9398 | if test "$enableval" = yes; then | |
9399 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9400 | else | |
9401 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9402 | fi | |
9403 | ||
9404 | else | |
9405 | ||
9406 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9407 | if test "x$LINE" != x ; then | |
9408 | eval "DEFAULT_$LINE" | |
9409 | else | |
9410 | no_cache=1 | |
9411 | fi | |
9412 | ||
9413 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9414 | ||
9415 | fi; | |
9416 | ||
9417 | eval "$ac_cv_use_tooltips" | |
9418 | if test "$no_cache" != 1; then | |
9419 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9420 | fi | |
9421 | ||
9422 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9423 | echo "$as_me:$LINENO: result: yes" >&5 | |
9424 | echo "${ECHO_T}yes" >&6 | |
9425 | else | |
9426 | echo "$as_me:$LINENO: result: no" >&5 | |
9427 | echo "${ECHO_T}no" >&6 | |
9428 | fi | |
9429 | ||
9430 | ||
9431 | enablestring= | |
9432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9433 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9434 | no_cache=0 | |
9435 | # Check whether --enable-splines or --disable-splines was given. | |
9436 | if test "${enable_splines+set}" = set; then | |
9437 | enableval="$enable_splines" | |
9438 | ||
9439 | if test "$enableval" = yes; then | |
9440 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9441 | else | |
9442 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9443 | fi | |
9444 | ||
9445 | else | |
9446 | ||
9447 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9448 | if test "x$LINE" != x ; then | |
9449 | eval "DEFAULT_$LINE" | |
9450 | else | |
9451 | no_cache=1 | |
9452 | fi | |
9453 | ||
9454 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9455 | ||
9456 | fi; | |
9457 | ||
9458 | eval "$ac_cv_use_splines" | |
9459 | if test "$no_cache" != 1; then | |
9460 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9461 | fi | |
9462 | ||
9463 | if test "$wxUSE_SPLINES" = yes; then | |
9464 | echo "$as_me:$LINENO: result: yes" >&5 | |
9465 | echo "${ECHO_T}yes" >&6 | |
9466 | else | |
9467 | echo "$as_me:$LINENO: result: no" >&5 | |
9468 | echo "${ECHO_T}no" >&6 | |
9469 | fi | |
9470 | ||
9471 | ||
9472 | enablestring= | |
9473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9474 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9475 | no_cache=0 | |
9476 | # Check whether --enable-validators or --disable-validators was given. | |
9477 | if test "${enable_validators+set}" = set; then | |
9478 | enableval="$enable_validators" | |
9479 | ||
9480 | if test "$enableval" = yes; then | |
9481 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9482 | else | |
9483 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9484 | fi | |
9485 | ||
9486 | else | |
9487 | ||
9488 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9489 | if test "x$LINE" != x ; then | |
9490 | eval "DEFAULT_$LINE" | |
9491 | else | |
9492 | no_cache=1 | |
9493 | fi | |
9494 | ||
9495 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9496 | ||
9497 | fi; | |
9498 | ||
9499 | eval "$ac_cv_use_validators" | |
9500 | if test "$no_cache" != 1; then | |
9501 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9502 | fi | |
9503 | ||
9504 | if test "$wxUSE_VALIDATORS" = yes; then | |
9505 | echo "$as_me:$LINENO: result: yes" >&5 | |
9506 | echo "${ECHO_T}yes" >&6 | |
9507 | else | |
9508 | echo "$as_me:$LINENO: result: no" >&5 | |
9509 | echo "${ECHO_T}no" >&6 | |
9510 | fi | |
9511 | ||
9512 | ||
9513 | enablestring= | |
9514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9515 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9516 | no_cache=0 | |
9517 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9518 | if test "${enable_busyinfo+set}" = set; then | |
9519 | enableval="$enable_busyinfo" | |
9520 | ||
9521 | if test "$enableval" = yes; then | |
9522 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9523 | else | |
9524 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9525 | fi | |
9526 | ||
9527 | else | |
9528 | ||
9529 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9530 | if test "x$LINE" != x ; then | |
9531 | eval "DEFAULT_$LINE" | |
9532 | else | |
9533 | no_cache=1 | |
9534 | fi | |
9535 | ||
9536 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9537 | ||
9538 | fi; | |
9539 | ||
9540 | eval "$ac_cv_use_busyinfo" | |
9541 | if test "$no_cache" != 1; then | |
9542 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9543 | fi | |
9544 | ||
9545 | if test "$wxUSE_BUSYINFO" = yes; then | |
9546 | echo "$as_me:$LINENO: result: yes" >&5 | |
9547 | echo "${ECHO_T}yes" >&6 | |
9548 | else | |
9549 | echo "$as_me:$LINENO: result: no" >&5 | |
9550 | echo "${ECHO_T}no" >&6 | |
9551 | fi | |
9552 | ||
9553 | ||
9554 | enablestring= | |
9555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9556 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9557 | no_cache=0 | |
9558 | # Check whether --enable-joystick or --disable-joystick was given. | |
9559 | if test "${enable_joystick+set}" = set; then | |
9560 | enableval="$enable_joystick" | |
9561 | ||
9562 | if test "$enableval" = yes; then | |
9563 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9564 | else | |
9565 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9566 | fi | |
9567 | ||
9568 | else | |
9569 | ||
9570 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9571 | if test "x$LINE" != x ; then | |
9572 | eval "DEFAULT_$LINE" | |
9573 | else | |
9574 | no_cache=1 | |
9575 | fi | |
9576 | ||
9577 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9578 | ||
9579 | fi; | |
9580 | ||
9581 | eval "$ac_cv_use_joystick" | |
9582 | if test "$no_cache" != 1; then | |
9583 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9584 | fi | |
9585 | ||
9586 | if test "$wxUSE_JOYSTICK" = yes; then | |
9587 | echo "$as_me:$LINENO: result: yes" >&5 | |
9588 | echo "${ECHO_T}yes" >&6 | |
9589 | else | |
9590 | echo "$as_me:$LINENO: result: no" >&5 | |
9591 | echo "${ECHO_T}no" >&6 | |
9592 | fi | |
9593 | ||
9594 | ||
9595 | enablestring= | |
9596 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9597 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9598 | no_cache=0 | |
9599 | # Check whether --enable-metafile or --disable-metafile was given. | |
9600 | if test "${enable_metafile+set}" = set; then | |
9601 | enableval="$enable_metafile" | |
9602 | ||
9603 | if test "$enableval" = yes; then | |
9604 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9605 | else | |
9606 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9607 | fi | |
9608 | ||
9609 | else | |
9610 | ||
9611 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9612 | if test "x$LINE" != x ; then | |
9613 | eval "DEFAULT_$LINE" | |
9614 | else | |
9615 | no_cache=1 | |
9616 | fi | |
9617 | ||
9618 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9619 | ||
9620 | fi; | |
9621 | ||
9622 | eval "$ac_cv_use_metafile" | |
9623 | if test "$no_cache" != 1; then | |
9624 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9625 | fi | |
9626 | ||
9627 | if test "$wxUSE_METAFILE" = yes; then | |
9628 | echo "$as_me:$LINENO: result: yes" >&5 | |
9629 | echo "${ECHO_T}yes" >&6 | |
9630 | else | |
9631 | echo "$as_me:$LINENO: result: no" >&5 | |
9632 | echo "${ECHO_T}no" >&6 | |
9633 | fi | |
9634 | ||
9635 | ||
9636 | enablestring= | |
9637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9638 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9639 | no_cache=0 | |
9640 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9641 | if test "${enable_dragimage+set}" = set; then | |
9642 | enableval="$enable_dragimage" | |
9643 | ||
9644 | if test "$enableval" = yes; then | |
9645 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9646 | else | |
9647 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9648 | fi | |
9649 | ||
9650 | else | |
9651 | ||
9652 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9653 | if test "x$LINE" != x ; then | |
9654 | eval "DEFAULT_$LINE" | |
9655 | else | |
9656 | no_cache=1 | |
9657 | fi | |
9658 | ||
9659 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9660 | ||
9661 | fi; | |
9662 | ||
9663 | eval "$ac_cv_use_dragimage" | |
9664 | if test "$no_cache" != 1; then | |
9665 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9666 | fi | |
9667 | ||
9668 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9669 | echo "$as_me:$LINENO: result: yes" >&5 | |
9670 | echo "${ECHO_T}yes" >&6 | |
9671 | else | |
9672 | echo "$as_me:$LINENO: result: no" >&5 | |
9673 | echo "${ECHO_T}no" >&6 | |
9674 | fi | |
9675 | ||
9676 | ||
9677 | enablestring= | |
9678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9679 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9680 | no_cache=0 | |
9681 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9682 | if test "${enable_accessibility+set}" = set; then | |
9683 | enableval="$enable_accessibility" | |
9684 | ||
9685 | if test "$enableval" = yes; then | |
9686 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9687 | else | |
9688 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9689 | fi | |
9690 | ||
9691 | else | |
9692 | ||
9693 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9694 | if test "x$LINE" != x ; then | |
9695 | eval "DEFAULT_$LINE" | |
9696 | else | |
9697 | no_cache=1 | |
9698 | fi | |
9699 | ||
9700 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9701 | ||
9702 | fi; | |
9703 | ||
9704 | eval "$ac_cv_use_accessibility" | |
9705 | if test "$no_cache" != 1; then | |
9706 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9707 | fi | |
9708 | ||
9709 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9710 | echo "$as_me:$LINENO: result: yes" >&5 | |
9711 | echo "${ECHO_T}yes" >&6 | |
9712 | else | |
9713 | echo "$as_me:$LINENO: result: no" >&5 | |
9714 | echo "${ECHO_T}no" >&6 | |
9715 | fi | |
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | enablestring= | |
9721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9722 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9723 | no_cache=0 | |
9724 | # Check whether --enable-palette or --disable-palette was given. | |
9725 | if test "${enable_palette+set}" = set; then | |
9726 | enableval="$enable_palette" | |
9727 | ||
9728 | if test "$enableval" = yes; then | |
9729 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9730 | else | |
9731 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9732 | fi | |
9733 | ||
9734 | else | |
9735 | ||
9736 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9737 | if test "x$LINE" != x ; then | |
9738 | eval "DEFAULT_$LINE" | |
9739 | else | |
9740 | no_cache=1 | |
9741 | fi | |
9742 | ||
9743 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9744 | ||
9745 | fi; | |
9746 | ||
9747 | eval "$ac_cv_use_palette" | |
9748 | if test "$no_cache" != 1; then | |
9749 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9750 | fi | |
9751 | ||
9752 | if test "$wxUSE_PALETTE" = yes; then | |
9753 | echo "$as_me:$LINENO: result: yes" >&5 | |
9754 | echo "${ECHO_T}yes" >&6 | |
9755 | else | |
9756 | echo "$as_me:$LINENO: result: no" >&5 | |
9757 | echo "${ECHO_T}no" >&6 | |
9758 | fi | |
9759 | ||
9760 | ||
9761 | enablestring= | |
9762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9763 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9764 | no_cache=0 | |
9765 | # Check whether --enable-image or --disable-image was given. | |
9766 | if test "${enable_image+set}" = set; then | |
9767 | enableval="$enable_image" | |
9768 | ||
9769 | if test "$enableval" = yes; then | |
9770 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9771 | else | |
9772 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9773 | fi | |
9774 | ||
9775 | else | |
9776 | ||
9777 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9778 | if test "x$LINE" != x ; then | |
9779 | eval "DEFAULT_$LINE" | |
9780 | else | |
9781 | no_cache=1 | |
9782 | fi | |
9783 | ||
9784 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9785 | ||
9786 | fi; | |
9787 | ||
9788 | eval "$ac_cv_use_image" | |
9789 | if test "$no_cache" != 1; then | |
9790 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9791 | fi | |
9792 | ||
9793 | if test "$wxUSE_IMAGE" = yes; then | |
9794 | echo "$as_me:$LINENO: result: yes" >&5 | |
9795 | echo "${ECHO_T}yes" >&6 | |
9796 | else | |
9797 | echo "$as_me:$LINENO: result: no" >&5 | |
9798 | echo "${ECHO_T}no" >&6 | |
9799 | fi | |
9800 | ||
9801 | ||
9802 | enablestring= | |
9803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9804 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9805 | no_cache=0 | |
9806 | # Check whether --enable-gif or --disable-gif was given. | |
9807 | if test "${enable_gif+set}" = set; then | |
9808 | enableval="$enable_gif" | |
9809 | ||
9810 | if test "$enableval" = yes; then | |
9811 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9812 | else | |
9813 | ac_cv_use_gif='wxUSE_GIF=no' | |
9814 | fi | |
9815 | ||
9816 | else | |
9817 | ||
9818 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9819 | if test "x$LINE" != x ; then | |
9820 | eval "DEFAULT_$LINE" | |
9821 | else | |
9822 | no_cache=1 | |
9823 | fi | |
9824 | ||
9825 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9826 | ||
9827 | fi; | |
9828 | ||
9829 | eval "$ac_cv_use_gif" | |
9830 | if test "$no_cache" != 1; then | |
9831 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9832 | fi | |
9833 | ||
9834 | if test "$wxUSE_GIF" = yes; then | |
9835 | echo "$as_me:$LINENO: result: yes" >&5 | |
9836 | echo "${ECHO_T}yes" >&6 | |
9837 | else | |
9838 | echo "$as_me:$LINENO: result: no" >&5 | |
9839 | echo "${ECHO_T}no" >&6 | |
9840 | fi | |
9841 | ||
9842 | ||
9843 | enablestring= | |
9844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9845 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9846 | no_cache=0 | |
9847 | # Check whether --enable-pcx or --disable-pcx was given. | |
9848 | if test "${enable_pcx+set}" = set; then | |
9849 | enableval="$enable_pcx" | |
9850 | ||
9851 | if test "$enableval" = yes; then | |
9852 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9853 | else | |
9854 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9855 | fi | |
9856 | ||
9857 | else | |
9858 | ||
9859 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9860 | if test "x$LINE" != x ; then | |
9861 | eval "DEFAULT_$LINE" | |
9862 | else | |
9863 | no_cache=1 | |
9864 | fi | |
9865 | ||
9866 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9867 | ||
9868 | fi; | |
9869 | ||
9870 | eval "$ac_cv_use_pcx" | |
9871 | if test "$no_cache" != 1; then | |
9872 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9873 | fi | |
9874 | ||
9875 | if test "$wxUSE_PCX" = yes; then | |
9876 | echo "$as_me:$LINENO: result: yes" >&5 | |
9877 | echo "${ECHO_T}yes" >&6 | |
9878 | else | |
9879 | echo "$as_me:$LINENO: result: no" >&5 | |
9880 | echo "${ECHO_T}no" >&6 | |
9881 | fi | |
9882 | ||
9883 | ||
9884 | enablestring= | |
9885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9886 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9887 | no_cache=0 | |
9888 | # Check whether --enable-iff or --disable-iff was given. | |
9889 | if test "${enable_iff+set}" = set; then | |
9890 | enableval="$enable_iff" | |
9891 | ||
9892 | if test "$enableval" = yes; then | |
9893 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9894 | else | |
9895 | ac_cv_use_iff='wxUSE_IFF=no' | |
9896 | fi | |
9897 | ||
9898 | else | |
9899 | ||
9900 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9901 | if test "x$LINE" != x ; then | |
9902 | eval "DEFAULT_$LINE" | |
9903 | else | |
9904 | no_cache=1 | |
9905 | fi | |
9906 | ||
9907 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9908 | ||
9909 | fi; | |
9910 | ||
9911 | eval "$ac_cv_use_iff" | |
9912 | if test "$no_cache" != 1; then | |
9913 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9914 | fi | |
9915 | ||
9916 | if test "$wxUSE_IFF" = yes; then | |
9917 | echo "$as_me:$LINENO: result: yes" >&5 | |
9918 | echo "${ECHO_T}yes" >&6 | |
9919 | else | |
9920 | echo "$as_me:$LINENO: result: no" >&5 | |
9921 | echo "${ECHO_T}no" >&6 | |
9922 | fi | |
9923 | ||
9924 | ||
9925 | enablestring= | |
9926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9927 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9928 | no_cache=0 | |
9929 | # Check whether --enable-pnm or --disable-pnm was given. | |
9930 | if test "${enable_pnm+set}" = set; then | |
9931 | enableval="$enable_pnm" | |
9932 | ||
9933 | if test "$enableval" = yes; then | |
9934 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9935 | else | |
9936 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9937 | fi | |
9938 | ||
9939 | else | |
9940 | ||
9941 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9942 | if test "x$LINE" != x ; then | |
9943 | eval "DEFAULT_$LINE" | |
9944 | else | |
9945 | no_cache=1 | |
9946 | fi | |
9947 | ||
9948 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9949 | ||
9950 | fi; | |
9951 | ||
9952 | eval "$ac_cv_use_pnm" | |
9953 | if test "$no_cache" != 1; then | |
9954 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9955 | fi | |
9956 | ||
9957 | if test "$wxUSE_PNM" = yes; then | |
9958 | echo "$as_me:$LINENO: result: yes" >&5 | |
9959 | echo "${ECHO_T}yes" >&6 | |
9960 | else | |
9961 | echo "$as_me:$LINENO: result: no" >&5 | |
9962 | echo "${ECHO_T}no" >&6 | |
9963 | fi | |
9964 | ||
9965 | ||
9966 | enablestring= | |
9967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9968 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9969 | no_cache=0 | |
9970 | # Check whether --enable-xpm or --disable-xpm was given. | |
9971 | if test "${enable_xpm+set}" = set; then | |
9972 | enableval="$enable_xpm" | |
9973 | ||
9974 | if test "$enableval" = yes; then | |
9975 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9976 | else | |
9977 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9978 | fi | |
9979 | ||
9980 | else | |
9981 | ||
9982 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9983 | if test "x$LINE" != x ; then | |
9984 | eval "DEFAULT_$LINE" | |
9985 | else | |
9986 | no_cache=1 | |
9987 | fi | |
9988 | ||
9989 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9990 | ||
9991 | fi; | |
9992 | ||
9993 | eval "$ac_cv_use_xpm" | |
9994 | if test "$no_cache" != 1; then | |
9995 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9996 | fi | |
9997 | ||
9998 | if test "$wxUSE_XPM" = yes; then | |
9999 | echo "$as_me:$LINENO: result: yes" >&5 | |
10000 | echo "${ECHO_T}yes" >&6 | |
10001 | else | |
10002 | echo "$as_me:$LINENO: result: no" >&5 | |
10003 | echo "${ECHO_T}no" >&6 | |
10004 | fi | |
10005 | ||
10006 | ||
10007 | enablestring= | |
10008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10009 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10010 | no_cache=0 | |
10011 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10012 | if test "${enable_ico_cur+set}" = set; then | |
10013 | enableval="$enable_ico_cur" | |
10014 | ||
10015 | if test "$enableval" = yes; then | |
10016 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10017 | else | |
10018 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10019 | fi | |
10020 | ||
10021 | else | |
10022 | ||
10023 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10024 | if test "x$LINE" != x ; then | |
10025 | eval "DEFAULT_$LINE" | |
10026 | else | |
10027 | no_cache=1 | |
10028 | fi | |
10029 | ||
10030 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10031 | ||
10032 | fi; | |
10033 | ||
10034 | eval "$ac_cv_use_ico_cur" | |
10035 | if test "$no_cache" != 1; then | |
10036 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10037 | fi | |
10038 | ||
10039 | if test "$wxUSE_ICO_CUR" = yes; then | |
10040 | echo "$as_me:$LINENO: result: yes" >&5 | |
10041 | echo "${ECHO_T}yes" >&6 | |
10042 | else | |
10043 | echo "$as_me:$LINENO: result: no" >&5 | |
10044 | echo "${ECHO_T}no" >&6 | |
10045 | fi | |
10046 | ||
10047 | ||
10048 | fi | |
10049 | ||
10050 | ||
10051 | ||
ceec2216 RL |
10052 | # Check whether --with-flavour or --without-flavour was given. |
10053 | if test "${with_flavour+set}" = set; then | |
10054 | withval="$with_flavour" | |
10055 | WX_FLAVOUR="$withval" | |
10056 | fi; | |
10057 | ||
10058 | ||
10059 | ||
a848cd7e SC |
10060 | enablestring= |
10061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10062 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10063 | no_cache=0 | |
10064 | # Check whether --enable-official_build or --disable-official_build was given. | |
10065 | if test "${enable_official_build+set}" = set; then | |
10066 | enableval="$enable_official_build" | |
10067 | ||
10068 | if test "$enableval" = yes; then | |
10069 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10070 | else | |
10071 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10072 | fi | |
10073 | ||
10074 | else | |
10075 | ||
10076 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10077 | if test "x$LINE" != x ; then | |
10078 | eval "DEFAULT_$LINE" | |
10079 | else | |
10080 | no_cache=1 | |
10081 | fi | |
10082 | ||
10083 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10084 | ||
10085 | fi; | |
10086 | ||
10087 | eval "$ac_cv_use_official_build" | |
10088 | if test "$no_cache" != 1; then | |
10089 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10090 | fi | |
10091 | ||
10092 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10093 | echo "$as_me:$LINENO: result: yes" >&5 | |
10094 | echo "${ECHO_T}yes" >&6 | |
10095 | else | |
10096 | echo "$as_me:$LINENO: result: no" >&5 | |
10097 | echo "${ECHO_T}no" >&6 | |
10098 | fi | |
10099 | ||
10100 | # Check whether --enable-vendor or --disable-vendor was given. | |
10101 | if test "${enable_vendor+set}" = set; then | |
10102 | enableval="$enable_vendor" | |
10103 | VENDOR="$enableval" | |
10104 | fi; | |
10105 | if test "x$VENDOR" = "x"; then | |
10106 | VENDOR="custom" | |
10107 | fi | |
10108 | ||
a848cd7e SC |
10109 | |
10110 | ||
10111 | ||
10112 | echo "saving argument cache $wx_arg_cache_file" | |
10113 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10114 | ||
10115 | ||
10116 | ||
10117 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10118 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10119 | ||
10120 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10121 | if test "$wxUSE_WINE" = "yes"; then | |
10122 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10123 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10124 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10125 | wxUSE_SHARED=no | |
10126 | fi | |
10127 | ||
10128 | if test "$wxUSE_GUI" = "yes"; then | |
10129 | ||
10130 | if test "$USE_BEOS" = 1; then | |
10131 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10132 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10133 | { (exit 1); exit 1; }; } | |
10134 | fi | |
10135 | ||
10136 | if test "$TOOLKIT_GIVEN" = 1; then | |
10137 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10138 | var=wxUSE_$toolkit | |
10139 | eval "value=\$${var}" | |
10140 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10141 | done | |
10142 | else | |
10143 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10144 | if test "$has_toolkit_in_cache" != 1; then | |
10145 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10146 | else | |
10147 | var=DEFAULT_wxUSE_$toolkit | |
10148 | fi | |
10149 | eval "wxUSE_$toolkit=\$${var}" | |
10150 | done | |
10151 | fi | |
10152 | ||
10153 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10154 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10155 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10156 | ||
10157 | case "${host}" in | |
10158 | *-pc-os2_emx | *-pc-os2-emx ) | |
10159 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10160 | esac | |
10161 | ||
10162 | case "$NUM_TOOLKITS" in | |
10163 | 1) | |
10164 | ;; | |
10165 | 0) | |
10166 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10167 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10168 | { (exit 1); exit 1; }; } | |
10169 | ;; | |
10170 | *) | |
10171 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10172 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10173 | { (exit 1); exit 1; }; } | |
10174 | esac | |
10175 | ||
10176 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10177 | var=wxUSE_$toolkit | |
10178 | eval "value=\$${var}" | |
10179 | if test "x$value" != x; then | |
10180 | cache_var=CACHE_$toolkit | |
10181 | eval "cache=\$${cache_var}" | |
10182 | if test "$cache" = 1; then | |
10183 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10184 | fi | |
10185 | if test "$value" = 1; then | |
10186 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10187 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10188 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10189 | fi | |
10190 | fi | |
10191 | done | |
10192 | else | |
10193 | if test "x$host_alias" != "x"; then | |
10194 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10195 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10196 | else | |
10197 | echo "$as_me:$LINENO: result: base only" >&5 | |
10198 | echo "${ECHO_T}base only" >&6 | |
10199 | fi | |
10200 | fi | |
10201 | ||
10202 | wants_win32=0 | |
10203 | doesnt_want_win32=0 | |
10204 | case "${host}" in | |
10205 | *-*-cygwin*) | |
10206 | if test "$wxUSE_MSW" = 1 ; then | |
10207 | wants_win32=1 | |
10208 | else | |
10209 | doesnt_want_win32=1 | |
10210 | fi | |
10211 | ;; | |
10212 | *-*-mingw*) | |
10213 | wants_win32=1 | |
10214 | ;; | |
10215 | esac | |
10216 | ||
10217 | if test "$wxUSE_WINE" = "yes"; then | |
10218 | wants_win32=1 | |
10219 | CC=winegcc | |
10220 | CXX=wineg++ | |
10221 | RESCOMP=wrc | |
10222 | LDFLAGS_GUI="-mwindows" | |
10223 | fi | |
10224 | ||
10225 | if test "$wants_win32" = 1 ; then | |
10226 | USE_UNIX=0 | |
10227 | USE_WIN32=1 | |
10228 | cat >>confdefs.h <<\_ACEOF | |
10229 | #define __WIN32__ 1 | |
10230 | _ACEOF | |
10231 | ||
10232 | cat >>confdefs.h <<\_ACEOF | |
10233 | #define __WIN95__ 1 | |
10234 | _ACEOF | |
10235 | ||
10236 | cat >>confdefs.h <<\_ACEOF | |
10237 | #define __WINDOWS__ 1 | |
10238 | _ACEOF | |
10239 | ||
10240 | cat >>confdefs.h <<\_ACEOF | |
10241 | #define __GNUWIN32__ 1 | |
10242 | _ACEOF | |
10243 | ||
10244 | cat >>confdefs.h <<\_ACEOF | |
10245 | #define STRICT 1 | |
10246 | _ACEOF | |
10247 | ||
10248 | cat >>confdefs.h <<\_ACEOF | |
10249 | #define WINVER 0x0400 | |
10250 | _ACEOF | |
10251 | ||
10252 | fi | |
10253 | if test "$doesnt_want_win32" = 1 ; then | |
10254 | USE_UNIX=1 | |
10255 | USE_WIN32=0 | |
10256 | fi | |
10257 | ||
10258 | if test "$USE_UNIX" = 1 ; then | |
10259 | wxUSE_UNIX=yes | |
10260 | cat >>confdefs.h <<\_ACEOF | |
10261 | #define __UNIX__ 1 | |
10262 | _ACEOF | |
10263 | ||
10264 | fi | |
10265 | ||
10266 | ||
10267 | cat >confcache <<\_ACEOF | |
10268 | # This file is a shell script that caches the results of configure | |
10269 | # tests run on this system so they can be shared between configure | |
10270 | # scripts and configure runs, see configure's option --config-cache. | |
10271 | # It is not useful on other systems. If it contains results you don't | |
10272 | # want to keep, you may remove or edit it. | |
10273 | # | |
10274 | # config.status only pays attention to the cache file if you give it | |
10275 | # the --recheck option to rerun configure. | |
10276 | # | |
10277 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10278 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10279 | # following values. | |
10280 | ||
10281 | _ACEOF | |
10282 | ||
10283 | # The following way of writing the cache mishandles newlines in values, | |
10284 | # but we know of no workaround that is simple, portable, and efficient. | |
10285 | # So, don't put newlines in cache variables' values. | |
10286 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10287 | # and sets the high bit in the cache file unless we assign to the vars. | |
10288 | { | |
10289 | (set) 2>&1 | | |
10290 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10291 | *ac_space=\ *) | |
10292 | # `set' does not quote correctly, so add quotes (double-quote | |
10293 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10294 | sed -n \ | |
ac1cb8d3 VS |
10295 | "s/'/'\\\\''/g; |
10296 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10297 | ;; |
10298 | *) | |
10299 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10300 | sed -n \ | |
ac1cb8d3 | 10301 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10302 | ;; |
10303 | esac; | |
10304 | } | | |
10305 | sed ' | |
10306 | t clear | |
10307 | : clear | |
10308 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10309 | t end | |
10310 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10311 | : end' >>confcache | |
10312 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10313 | if test -w $cache_file; then | |
10314 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10315 | cat confcache >$cache_file | |
10316 | else | |
10317 | echo "not updating unwritable cache $cache_file" | |
10318 | fi | |
10319 | fi | |
10320 | rm -f confcache | |
10321 | ||
10322 | if test "$build" != "$host" ; then | |
10323 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10324 | CC=$host_alias-gcc | |
10325 | CXX=$host_alias-c++ | |
10326 | AR=$host_alias-ar | |
10327 | RANLIB=$host_alias-ranlib | |
10328 | DLLTOOL=$host_alias-dlltool | |
10329 | RESCOMP=$host_alias-windres | |
a848cd7e SC |
10330 | STRIP=$host_alias-strip |
10331 | else | |
10332 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10333 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10334 | { (exit 1); exit 1; }; } | |
10335 | fi | |
10336 | fi | |
10337 | ||
10338 | CFLAGS=${CFLAGS:=} | |
10339 | ac_ext=c | |
10340 | ac_cpp='$CPP $CPPFLAGS' | |
10341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10344 | if test -n "$ac_tool_prefix"; then | |
10345 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10346 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10347 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10349 | if test "${ac_cv_prog_CC+set}" = set; then | |
10350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10351 | else | |
10352 | if test -n "$CC"; then | |
10353 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10354 | else | |
10355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10356 | for as_dir in $PATH | |
10357 | do | |
10358 | IFS=$as_save_IFS | |
10359 | test -z "$as_dir" && as_dir=. | |
10360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10362 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10364 | break 2 | |
10365 | fi | |
10366 | done | |
10367 | done | |
10368 | ||
10369 | fi | |
10370 | fi | |
10371 | CC=$ac_cv_prog_CC | |
10372 | if test -n "$CC"; then | |
10373 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10374 | echo "${ECHO_T}$CC" >&6 | |
10375 | else | |
10376 | echo "$as_me:$LINENO: result: no" >&5 | |
10377 | echo "${ECHO_T}no" >&6 | |
10378 | fi | |
10379 | ||
10380 | fi | |
10381 | if test -z "$ac_cv_prog_CC"; then | |
10382 | ac_ct_CC=$CC | |
10383 | # Extract the first word of "gcc", so it can be a program name with args. | |
10384 | set dummy gcc; ac_word=$2 | |
10385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10387 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10389 | else | |
10390 | if test -n "$ac_ct_CC"; then | |
10391 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10392 | else | |
10393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10394 | for as_dir in $PATH | |
10395 | do | |
10396 | IFS=$as_save_IFS | |
10397 | test -z "$as_dir" && as_dir=. | |
10398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10400 | ac_cv_prog_ac_ct_CC="gcc" | |
10401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10402 | break 2 | |
10403 | fi | |
10404 | done | |
10405 | done | |
10406 | ||
10407 | fi | |
10408 | fi | |
10409 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10410 | if test -n "$ac_ct_CC"; then | |
10411 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10412 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10413 | else | |
10414 | echo "$as_me:$LINENO: result: no" >&5 | |
10415 | echo "${ECHO_T}no" >&6 | |
10416 | fi | |
10417 | ||
10418 | CC=$ac_ct_CC | |
10419 | else | |
10420 | CC="$ac_cv_prog_CC" | |
10421 | fi | |
10422 | ||
10423 | if test -z "$CC"; then | |
10424 | if test -n "$ac_tool_prefix"; then | |
10425 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10426 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10429 | if test "${ac_cv_prog_CC+set}" = set; then | |
10430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10431 | else | |
10432 | if test -n "$CC"; then | |
10433 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10434 | else | |
10435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10436 | for as_dir in $PATH | |
10437 | do | |
10438 | IFS=$as_save_IFS | |
10439 | test -z "$as_dir" && as_dir=. | |
10440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10442 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10444 | break 2 | |
10445 | fi | |
10446 | done | |
10447 | done | |
10448 | ||
10449 | fi | |
10450 | fi | |
10451 | CC=$ac_cv_prog_CC | |
10452 | if test -n "$CC"; then | |
10453 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10454 | echo "${ECHO_T}$CC" >&6 | |
10455 | else | |
10456 | echo "$as_me:$LINENO: result: no" >&5 | |
10457 | echo "${ECHO_T}no" >&6 | |
10458 | fi | |
10459 | ||
10460 | fi | |
10461 | if test -z "$ac_cv_prog_CC"; then | |
10462 | ac_ct_CC=$CC | |
10463 | # Extract the first word of "cc", so it can be a program name with args. | |
10464 | set dummy cc; ac_word=$2 | |
10465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10467 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10469 | else | |
10470 | if test -n "$ac_ct_CC"; then | |
10471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10472 | else | |
10473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10474 | for as_dir in $PATH | |
10475 | do | |
10476 | IFS=$as_save_IFS | |
10477 | test -z "$as_dir" && as_dir=. | |
10478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10480 | ac_cv_prog_ac_ct_CC="cc" | |
10481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10482 | break 2 | |
10483 | fi | |
10484 | done | |
10485 | done | |
10486 | ||
10487 | fi | |
10488 | fi | |
10489 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10490 | if test -n "$ac_ct_CC"; then | |
10491 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10492 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10493 | else | |
10494 | echo "$as_me:$LINENO: result: no" >&5 | |
10495 | echo "${ECHO_T}no" >&6 | |
10496 | fi | |
10497 | ||
10498 | CC=$ac_ct_CC | |
10499 | else | |
10500 | CC="$ac_cv_prog_CC" | |
10501 | fi | |
10502 | ||
10503 | fi | |
10504 | if test -z "$CC"; then | |
10505 | # Extract the first word of "cc", so it can be a program name with args. | |
10506 | set dummy cc; ac_word=$2 | |
10507 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10509 | if test "${ac_cv_prog_CC+set}" = set; then | |
10510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10511 | else | |
10512 | if test -n "$CC"; then | |
10513 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10514 | else | |
10515 | ac_prog_rejected=no | |
10516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10517 | for as_dir in $PATH | |
10518 | do | |
10519 | IFS=$as_save_IFS | |
10520 | test -z "$as_dir" && as_dir=. | |
10521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10523 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10524 | ac_prog_rejected=yes | |
10525 | continue | |
10526 | fi | |
10527 | ac_cv_prog_CC="cc" | |
10528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10529 | break 2 | |
10530 | fi | |
10531 | done | |
10532 | done | |
10533 | ||
10534 | if test $ac_prog_rejected = yes; then | |
10535 | # We found a bogon in the path, so make sure we never use it. | |
10536 | set dummy $ac_cv_prog_CC | |
10537 | shift | |
10538 | if test $# != 0; then | |
10539 | # We chose a different compiler from the bogus one. | |
10540 | # However, it has the same basename, so the bogon will be chosen | |
10541 | # first if we set CC to just the basename; use the full file name. | |
10542 | shift | |
10543 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10544 | fi | |
10545 | fi | |
10546 | fi | |
10547 | fi | |
10548 | CC=$ac_cv_prog_CC | |
10549 | if test -n "$CC"; then | |
10550 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10551 | echo "${ECHO_T}$CC" >&6 | |
10552 | else | |
10553 | echo "$as_me:$LINENO: result: no" >&5 | |
10554 | echo "${ECHO_T}no" >&6 | |
10555 | fi | |
10556 | ||
10557 | fi | |
10558 | if test -z "$CC"; then | |
10559 | if test -n "$ac_tool_prefix"; then | |
10560 | for ac_prog in cl | |
10561 | do | |
10562 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10563 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10564 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10566 | if test "${ac_cv_prog_CC+set}" = set; then | |
10567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10568 | else | |
10569 | if test -n "$CC"; then | |
10570 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10571 | else | |
10572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10573 | for as_dir in $PATH | |
10574 | do | |
10575 | IFS=$as_save_IFS | |
10576 | test -z "$as_dir" && as_dir=. | |
10577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10578 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10579 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10580 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10581 | break 2 | |
10582 | fi | |
10583 | done | |
10584 | done | |
10585 | ||
10586 | fi | |
10587 | fi | |
10588 | CC=$ac_cv_prog_CC | |
10589 | if test -n "$CC"; then | |
10590 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10591 | echo "${ECHO_T}$CC" >&6 | |
10592 | else | |
10593 | echo "$as_me:$LINENO: result: no" >&5 | |
10594 | echo "${ECHO_T}no" >&6 | |
10595 | fi | |
10596 | ||
10597 | test -n "$CC" && break | |
10598 | done | |
10599 | fi | |
10600 | if test -z "$CC"; then | |
10601 | ac_ct_CC=$CC | |
10602 | for ac_prog in cl | |
10603 | do | |
10604 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10605 | set dummy $ac_prog; ac_word=$2 | |
10606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10608 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10610 | else | |
10611 | if test -n "$ac_ct_CC"; then | |
10612 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10613 | else | |
10614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10615 | for as_dir in $PATH | |
10616 | do | |
10617 | IFS=$as_save_IFS | |
10618 | test -z "$as_dir" && as_dir=. | |
10619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10621 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10623 | break 2 | |
10624 | fi | |
10625 | done | |
10626 | done | |
10627 | ||
10628 | fi | |
10629 | fi | |
10630 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10631 | if test -n "$ac_ct_CC"; then | |
10632 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10633 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10634 | else | |
10635 | echo "$as_me:$LINENO: result: no" >&5 | |
10636 | echo "${ECHO_T}no" >&6 | |
10637 | fi | |
10638 | ||
10639 | test -n "$ac_ct_CC" && break | |
10640 | done | |
10641 | ||
10642 | CC=$ac_ct_CC | |
10643 | fi | |
10644 | ||
10645 | fi | |
10646 | ||
10647 | ||
10648 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10649 | See \`config.log' for more details." >&5 | |
10650 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10651 | See \`config.log' for more details." >&2;} | |
10652 | { (exit 1); exit 1; }; } | |
10653 | ||
10654 | # Provide some information about the compiler. | |
10655 | echo "$as_me:$LINENO:" \ | |
10656 | "checking for C compiler version" >&5 | |
10657 | ac_compiler=`set X $ac_compile; echo $2` | |
10658 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10659 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10660 | ac_status=$? | |
10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10662 | (exit $ac_status); } | |
10663 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10664 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10665 | ac_status=$? | |
10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10667 | (exit $ac_status); } | |
10668 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10669 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10670 | ac_status=$? | |
10671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10672 | (exit $ac_status); } | |
10673 | ||
10674 | cat >conftest.$ac_ext <<_ACEOF | |
10675 | /* confdefs.h. */ | |
10676 | _ACEOF | |
10677 | cat confdefs.h >>conftest.$ac_ext | |
10678 | cat >>conftest.$ac_ext <<_ACEOF | |
10679 | /* end confdefs.h. */ | |
10680 | ||
10681 | int | |
10682 | main () | |
10683 | { | |
10684 | ||
10685 | ; | |
10686 | return 0; | |
10687 | } | |
10688 | _ACEOF | |
10689 | ac_clean_files_save=$ac_clean_files | |
10690 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10691 | # Try to create an executable without -o first, disregard a.out. | |
10692 | # It will help us diagnose broken compilers, and finding out an intuition | |
10693 | # of exeext. | |
ac1cb8d3 VS |
10694 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10695 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10696 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10697 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10698 | (eval $ac_link_default) 2>&5 | |
10699 | ac_status=$? | |
10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10701 | (exit $ac_status); }; then | |
10702 | # Find the output, starting from the most likely. This scheme is | |
10703 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10704 | # resort. | |
10705 | ||
10706 | # Be careful to initialize this variable, since it used to be cached. | |
10707 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10708 | ac_cv_exeext= | |
10709 | # b.out is created by i960 compilers. | |
10710 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10711 | do | |
10712 | test -f "$ac_file" || continue | |
10713 | case $ac_file in | |
10714 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10715 | ;; |
a848cd7e | 10716 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10717 | # This is the source file. |
10718 | ;; | |
a848cd7e | 10719 | [ab].out ) |
ac1cb8d3 VS |
10720 | # We found the default executable, but exeext='' is most |
10721 | # certainly right. | |
10722 | break;; | |
a848cd7e | 10723 | *.* ) |
ac1cb8d3 VS |
10724 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10725 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10726 | # but it would be cool to find out if it's true. Does anybody | |
10727 | # maintain Libtool? --akim. | |
10728 | export ac_cv_exeext | |
10729 | break;; | |
a848cd7e | 10730 | * ) |
ac1cb8d3 | 10731 | break;; |
a848cd7e SC |
10732 | esac |
10733 | done | |
10734 | else | |
10735 | echo "$as_me: failed program was:" >&5 | |
10736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10737 | ||
10738 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10739 | See \`config.log' for more details." >&5 | |
10740 | echo "$as_me: error: C compiler cannot create executables | |
10741 | See \`config.log' for more details." >&2;} | |
10742 | { (exit 77); exit 77; }; } | |
10743 | fi | |
10744 | ||
10745 | ac_exeext=$ac_cv_exeext | |
10746 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10747 | echo "${ECHO_T}$ac_file" >&6 | |
10748 | ||
10749 | # Check the compiler produces executables we can run. If not, either | |
10750 | # the compiler is broken, or we cross compile. | |
10751 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10752 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10753 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10754 | # If not cross compiling, check that we can run a simple program. | |
10755 | if test "$cross_compiling" != yes; then | |
10756 | if { ac_try='./$ac_file' | |
10757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10758 | (eval $ac_try) 2>&5 | |
10759 | ac_status=$? | |
10760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10761 | (exit $ac_status); }; }; then | |
10762 | cross_compiling=no | |
10763 | else | |
10764 | if test "$cross_compiling" = maybe; then | |
10765 | cross_compiling=yes | |
10766 | else | |
10767 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10768 | If you meant to cross compile, use \`--host'. | |
10769 | See \`config.log' for more details." >&5 | |
10770 | echo "$as_me: error: cannot run C compiled programs. | |
10771 | If you meant to cross compile, use \`--host'. | |
10772 | See \`config.log' for more details." >&2;} | |
10773 | { (exit 1); exit 1; }; } | |
10774 | fi | |
10775 | fi | |
10776 | fi | |
10777 | echo "$as_me:$LINENO: result: yes" >&5 | |
10778 | echo "${ECHO_T}yes" >&6 | |
10779 | ||
10780 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10781 | ac_clean_files=$ac_clean_files_save | |
10782 | # Check the compiler produces executables we can run. If not, either | |
10783 | # the compiler is broken, or we cross compile. | |
10784 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10785 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10786 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10787 | echo "${ECHO_T}$cross_compiling" >&6 | |
10788 | ||
10789 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10790 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10792 | (eval $ac_link) 2>&5 | |
10793 | ac_status=$? | |
10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10795 | (exit $ac_status); }; then | |
10796 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10797 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10798 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10799 | # `rm'. | |
10800 | for ac_file in conftest.exe conftest conftest.*; do | |
10801 | test -f "$ac_file" || continue | |
10802 | case $ac_file in | |
10803 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10804 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10805 | export ac_cv_exeext |
10806 | break;; | |
a848cd7e SC |
10807 | * ) break;; |
10808 | esac | |
10809 | done | |
10810 | else | |
10811 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10812 | See \`config.log' for more details." >&5 | |
10813 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10814 | See \`config.log' for more details." >&2;} | |
10815 | { (exit 1); exit 1; }; } | |
10816 | fi | |
10817 | ||
10818 | rm -f conftest$ac_cv_exeext | |
10819 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10820 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10821 | ||
10822 | rm -f conftest.$ac_ext | |
10823 | EXEEXT=$ac_cv_exeext | |
10824 | ac_exeext=$EXEEXT | |
10825 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10826 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10827 | if test "${ac_cv_objext+set}" = set; then | |
10828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10829 | else | |
10830 | cat >conftest.$ac_ext <<_ACEOF | |
10831 | /* confdefs.h. */ | |
10832 | _ACEOF | |
10833 | cat confdefs.h >>conftest.$ac_ext | |
10834 | cat >>conftest.$ac_ext <<_ACEOF | |
10835 | /* end confdefs.h. */ | |
10836 | ||
10837 | int | |
10838 | main () | |
10839 | { | |
10840 | ||
10841 | ; | |
10842 | return 0; | |
10843 | } | |
10844 | _ACEOF | |
10845 | rm -f conftest.o conftest.obj | |
10846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10847 | (eval $ac_compile) 2>&5 | |
10848 | ac_status=$? | |
10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10850 | (exit $ac_status); }; then | |
10851 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10852 | case $ac_file in | |
10853 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10854 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10855 | break;; | |
10856 | esac | |
10857 | done | |
10858 | else | |
10859 | echo "$as_me: failed program was:" >&5 | |
10860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10861 | ||
10862 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10863 | See \`config.log' for more details." >&5 | |
10864 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10865 | See \`config.log' for more details." >&2;} | |
10866 | { (exit 1); exit 1; }; } | |
10867 | fi | |
10868 | ||
10869 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10870 | fi | |
10871 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10872 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10873 | OBJEXT=$ac_cv_objext | |
10874 | ac_objext=$OBJEXT | |
10875 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10876 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10877 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10879 | else | |
10880 | cat >conftest.$ac_ext <<_ACEOF | |
10881 | /* confdefs.h. */ | |
10882 | _ACEOF | |
10883 | cat confdefs.h >>conftest.$ac_ext | |
10884 | cat >>conftest.$ac_ext <<_ACEOF | |
10885 | /* end confdefs.h. */ | |
10886 | ||
10887 | int | |
10888 | main () | |
10889 | { | |
10890 | #ifndef __GNUC__ | |
10891 | choke me | |
10892 | #endif | |
10893 | ||
10894 | ; | |
10895 | return 0; | |
10896 | } | |
10897 | _ACEOF | |
10898 | rm -f conftest.$ac_objext | |
10899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10901 | ac_status=$? |
ac1cb8d3 VS |
10902 | grep -v '^ *+' conftest.er1 >conftest.err |
10903 | rm -f conftest.er1 | |
10904 | cat conftest.err >&5 | |
a848cd7e SC |
10905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10906 | (exit $ac_status); } && | |
2cbbc68d RD |
10907 | { ac_try='test -z "$ac_c_werror_flag" |
10908 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10910 | (eval $ac_try) 2>&5 | |
10911 | ac_status=$? | |
10912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10913 | (exit $ac_status); }; } && | |
10914 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10916 | (eval $ac_try) 2>&5 | |
10917 | ac_status=$? | |
10918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10919 | (exit $ac_status); }; }; then | |
10920 | ac_compiler_gnu=yes | |
10921 | else | |
10922 | echo "$as_me: failed program was:" >&5 | |
10923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10924 | ||
10925 | ac_compiler_gnu=no | |
10926 | fi | |
ac1cb8d3 | 10927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10928 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10929 | ||
10930 | fi | |
10931 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10932 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10933 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10934 | ac_test_CFLAGS=${CFLAGS+set} | |
10935 | ac_save_CFLAGS=$CFLAGS | |
10936 | CFLAGS="-g" | |
10937 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10938 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10939 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10941 | else | |
10942 | cat >conftest.$ac_ext <<_ACEOF | |
10943 | /* confdefs.h. */ | |
10944 | _ACEOF | |
10945 | cat confdefs.h >>conftest.$ac_ext | |
10946 | cat >>conftest.$ac_ext <<_ACEOF | |
10947 | /* end confdefs.h. */ | |
10948 | ||
10949 | int | |
10950 | main () | |
10951 | { | |
10952 | ||
10953 | ; | |
10954 | return 0; | |
10955 | } | |
10956 | _ACEOF | |
10957 | rm -f conftest.$ac_objext | |
10958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10960 | ac_status=$? |
ac1cb8d3 VS |
10961 | grep -v '^ *+' conftest.er1 >conftest.err |
10962 | rm -f conftest.er1 | |
10963 | cat conftest.err >&5 | |
a848cd7e SC |
10964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10965 | (exit $ac_status); } && | |
2cbbc68d RD |
10966 | { ac_try='test -z "$ac_c_werror_flag" |
10967 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10969 | (eval $ac_try) 2>&5 | |
10970 | ac_status=$? | |
10971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10972 | (exit $ac_status); }; } && | |
10973 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10975 | (eval $ac_try) 2>&5 | |
10976 | ac_status=$? | |
10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10978 | (exit $ac_status); }; }; then | |
10979 | ac_cv_prog_cc_g=yes | |
10980 | else | |
10981 | echo "$as_me: failed program was:" >&5 | |
10982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10983 | ||
10984 | ac_cv_prog_cc_g=no | |
10985 | fi | |
ac1cb8d3 | 10986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10987 | fi |
10988 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10989 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10990 | if test "$ac_test_CFLAGS" = set; then | |
10991 | CFLAGS=$ac_save_CFLAGS | |
10992 | elif test $ac_cv_prog_cc_g = yes; then | |
10993 | if test "$GCC" = yes; then | |
10994 | CFLAGS="-g -O2" | |
10995 | else | |
10996 | CFLAGS="-g" | |
10997 | fi | |
10998 | else | |
10999 | if test "$GCC" = yes; then | |
11000 | CFLAGS="-O2" | |
11001 | else | |
11002 | CFLAGS= | |
11003 | fi | |
11004 | fi | |
11005 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11006 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11007 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11009 | else | |
11010 | ac_cv_prog_cc_stdc=no | |
11011 | ac_save_CC=$CC | |
11012 | cat >conftest.$ac_ext <<_ACEOF | |
11013 | /* confdefs.h. */ | |
11014 | _ACEOF | |
11015 | cat confdefs.h >>conftest.$ac_ext | |
11016 | cat >>conftest.$ac_ext <<_ACEOF | |
11017 | /* end confdefs.h. */ | |
11018 | #include <stdarg.h> | |
11019 | #include <stdio.h> | |
11020 | #include <sys/types.h> | |
11021 | #include <sys/stat.h> | |
11022 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11023 | struct buf { int x; }; | |
11024 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11025 | static char *e (p, i) | |
11026 | char **p; | |
11027 | int i; | |
11028 | { | |
11029 | return p[i]; | |
11030 | } | |
11031 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11032 | { | |
11033 | char *s; | |
11034 | va_list v; | |
11035 | va_start (v,p); | |
11036 | s = g (p, va_arg (v,int)); | |
11037 | va_end (v); | |
11038 | return s; | |
11039 | } | |
ac1cb8d3 VS |
11040 | |
11041 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11042 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11043 | These don't provoke an error unfortunately, instead are silently treated | |
11044 | as 'x'. The following induces an error, until -std1 is added to get | |
11045 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11046 | array size at least. It's necessary to write '\x00'==0 to get something | |
11047 | that's true only with -std1. */ | |
11048 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11049 | ||
a848cd7e SC |
11050 | int test (int i, double x); |
11051 | struct s1 {int (*f) (int a);}; | |
11052 | struct s2 {int (*f) (double a);}; | |
11053 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11054 | int argc; | |
11055 | char **argv; | |
11056 | int | |
11057 | main () | |
11058 | { | |
11059 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11060 | ; | |
11061 | return 0; | |
11062 | } | |
11063 | _ACEOF | |
11064 | # Don't try gcc -ansi; that turns off useful extensions and | |
11065 | # breaks some systems' header files. | |
11066 | # AIX -qlanglvl=ansi | |
11067 | # Ultrix and OSF/1 -std1 | |
11068 | # HP-UX 10.20 and later -Ae | |
11069 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11070 | # SVR4 -Xc -D__EXTENSIONS__ | |
11071 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11072 | do | |
11073 | CC="$ac_save_CC $ac_arg" | |
11074 | rm -f conftest.$ac_objext | |
11075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11076 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11077 | ac_status=$? |
ac1cb8d3 VS |
11078 | grep -v '^ *+' conftest.er1 >conftest.err |
11079 | rm -f conftest.er1 | |
11080 | cat conftest.err >&5 | |
a848cd7e SC |
11081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11082 | (exit $ac_status); } && | |
2cbbc68d RD |
11083 | { ac_try='test -z "$ac_c_werror_flag" |
11084 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11086 | (eval $ac_try) 2>&5 | |
11087 | ac_status=$? | |
11088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11089 | (exit $ac_status); }; } && | |
11090 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11092 | (eval $ac_try) 2>&5 | |
11093 | ac_status=$? | |
11094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11095 | (exit $ac_status); }; }; then | |
11096 | ac_cv_prog_cc_stdc=$ac_arg | |
11097 | break | |
11098 | else | |
11099 | echo "$as_me: failed program was:" >&5 | |
11100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11101 | ||
11102 | fi | |
ac1cb8d3 | 11103 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11104 | done |
11105 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11106 | CC=$ac_save_CC | |
11107 | ||
11108 | fi | |
11109 | ||
11110 | case "x$ac_cv_prog_cc_stdc" in | |
11111 | x|xno) | |
11112 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11113 | echo "${ECHO_T}none needed" >&6 ;; | |
11114 | *) | |
11115 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11116 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11117 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11118 | esac | |
11119 | ||
11120 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11121 | # in C++ we need to declare it. In case someone uses the same compiler | |
11122 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11123 | # the declaration of exit, since it's the most demanding environment. | |
11124 | cat >conftest.$ac_ext <<_ACEOF | |
11125 | #ifndef __cplusplus | |
11126 | choke me | |
11127 | #endif | |
11128 | _ACEOF | |
11129 | rm -f conftest.$ac_objext | |
11130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11131 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11132 | ac_status=$? |
ac1cb8d3 VS |
11133 | grep -v '^ *+' conftest.er1 >conftest.err |
11134 | rm -f conftest.er1 | |
11135 | cat conftest.err >&5 | |
a848cd7e SC |
11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11137 | (exit $ac_status); } && | |
2cbbc68d RD |
11138 | { ac_try='test -z "$ac_c_werror_flag" |
11139 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11141 | (eval $ac_try) 2>&5 | |
11142 | ac_status=$? | |
11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11144 | (exit $ac_status); }; } && | |
11145 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11147 | (eval $ac_try) 2>&5 | |
11148 | ac_status=$? | |
11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11150 | (exit $ac_status); }; }; then | |
11151 | for ac_declaration in \ | |
ac1cb8d3 | 11152 | '' \ |
a848cd7e SC |
11153 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11154 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11155 | 'extern "C" void exit (int) throw ();' \ | |
11156 | 'extern "C" void exit (int);' \ | |
11157 | 'void exit (int);' | |
11158 | do | |
11159 | cat >conftest.$ac_ext <<_ACEOF | |
11160 | /* confdefs.h. */ | |
11161 | _ACEOF | |
11162 | cat confdefs.h >>conftest.$ac_ext | |
11163 | cat >>conftest.$ac_ext <<_ACEOF | |
11164 | /* end confdefs.h. */ | |
de59c161 | 11165 | $ac_declaration |
ac1cb8d3 | 11166 | #include <stdlib.h> |
a848cd7e SC |
11167 | int |
11168 | main () | |
11169 | { | |
11170 | exit (42); | |
11171 | ; | |
11172 | return 0; | |
11173 | } | |
11174 | _ACEOF | |
11175 | rm -f conftest.$ac_objext | |
11176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11178 | ac_status=$? |
ac1cb8d3 VS |
11179 | grep -v '^ *+' conftest.er1 >conftest.err |
11180 | rm -f conftest.er1 | |
11181 | cat conftest.err >&5 | |
a848cd7e SC |
11182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11183 | (exit $ac_status); } && | |
2cbbc68d RD |
11184 | { ac_try='test -z "$ac_c_werror_flag" |
11185 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11187 | (eval $ac_try) 2>&5 | |
11188 | ac_status=$? | |
11189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11190 | (exit $ac_status); }; } && | |
11191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11193 | (eval $ac_try) 2>&5 | |
11194 | ac_status=$? | |
11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11196 | (exit $ac_status); }; }; then | |
11197 | : | |
11198 | else | |
11199 | echo "$as_me: failed program was:" >&5 | |
11200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11201 | ||
11202 | continue | |
11203 | fi | |
ac1cb8d3 | 11204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11205 | cat >conftest.$ac_ext <<_ACEOF |
11206 | /* confdefs.h. */ | |
11207 | _ACEOF | |
11208 | cat confdefs.h >>conftest.$ac_ext | |
11209 | cat >>conftest.$ac_ext <<_ACEOF | |
11210 | /* end confdefs.h. */ | |
11211 | $ac_declaration | |
11212 | int | |
11213 | main () | |
11214 | { | |
11215 | exit (42); | |
11216 | ; | |
11217 | return 0; | |
11218 | } | |
11219 | _ACEOF | |
11220 | rm -f conftest.$ac_objext | |
11221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11222 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11223 | ac_status=$? |
ac1cb8d3 VS |
11224 | grep -v '^ *+' conftest.er1 >conftest.err |
11225 | rm -f conftest.er1 | |
11226 | cat conftest.err >&5 | |
a848cd7e SC |
11227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11228 | (exit $ac_status); } && | |
2cbbc68d RD |
11229 | { ac_try='test -z "$ac_c_werror_flag" |
11230 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11232 | (eval $ac_try) 2>&5 | |
11233 | ac_status=$? | |
11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11235 | (exit $ac_status); }; } && | |
11236 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11238 | (eval $ac_try) 2>&5 | |
11239 | ac_status=$? | |
11240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11241 | (exit $ac_status); }; }; then | |
11242 | break | |
11243 | else | |
11244 | echo "$as_me: failed program was:" >&5 | |
11245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11246 | ||
11247 | fi | |
ac1cb8d3 | 11248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11249 | done |
11250 | rm -f conftest* | |
11251 | if test -n "$ac_declaration"; then | |
11252 | echo '#ifdef __cplusplus' >>confdefs.h | |
11253 | echo $ac_declaration >>confdefs.h | |
11254 | echo '#endif' >>confdefs.h | |
11255 | fi | |
11256 | ||
11257 | else | |
11258 | echo "$as_me: failed program was:" >&5 | |
11259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11260 | ||
11261 | fi | |
ac1cb8d3 | 11262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11263 | ac_ext=c |
11264 | ac_cpp='$CPP $CPPFLAGS' | |
11265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11268 | ||
11269 | ||
11270 | ||
11271 | ac_ext=c | |
11272 | ac_cpp='$CPP $CPPFLAGS' | |
11273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11276 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11277 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11278 | # On Suns, sometimes $CPP names a directory. | |
11279 | if test -n "$CPP" && test -d "$CPP"; then | |
11280 | CPP= | |
11281 | fi | |
11282 | if test -z "$CPP"; then | |
11283 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11285 | else | |
11286 | # Double quotes because CPP needs to be expanded | |
11287 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11288 | do | |
11289 | ac_preproc_ok=false | |
11290 | for ac_c_preproc_warn_flag in '' yes | |
11291 | do | |
11292 | # Use a header file that comes with gcc, so configuring glibc | |
11293 | # with a fresh cross-compiler works. | |
11294 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11295 | # <limits.h> exists even on freestanding compilers. | |
11296 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11297 | # not just through cpp. "Syntax error" is here to catch this case. | |
11298 | cat >conftest.$ac_ext <<_ACEOF | |
11299 | /* confdefs.h. */ | |
11300 | _ACEOF | |
11301 | cat confdefs.h >>conftest.$ac_ext | |
11302 | cat >>conftest.$ac_ext <<_ACEOF | |
11303 | /* end confdefs.h. */ | |
11304 | #ifdef __STDC__ | |
11305 | # include <limits.h> | |
11306 | #else | |
11307 | # include <assert.h> | |
11308 | #endif | |
ac1cb8d3 | 11309 | Syntax error |
a848cd7e SC |
11310 | _ACEOF |
11311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11313 | ac_status=$? | |
11314 | grep -v '^ *+' conftest.er1 >conftest.err | |
11315 | rm -f conftest.er1 | |
11316 | cat conftest.err >&5 | |
11317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11318 | (exit $ac_status); } >/dev/null; then | |
11319 | if test -s conftest.err; then | |
11320 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11322 | else |
11323 | ac_cpp_err= | |
11324 | fi | |
11325 | else | |
11326 | ac_cpp_err=yes | |
11327 | fi | |
11328 | if test -z "$ac_cpp_err"; then | |
11329 | : | |
11330 | else | |
11331 | echo "$as_me: failed program was:" >&5 | |
11332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11333 | ||
11334 | # Broken: fails on valid input. | |
11335 | continue | |
11336 | fi | |
11337 | rm -f conftest.err conftest.$ac_ext | |
11338 | ||
11339 | # OK, works on sane cases. Now check whether non-existent headers | |
11340 | # can be detected and how. | |
11341 | cat >conftest.$ac_ext <<_ACEOF | |
11342 | /* confdefs.h. */ | |
11343 | _ACEOF | |
11344 | cat confdefs.h >>conftest.$ac_ext | |
11345 | cat >>conftest.$ac_ext <<_ACEOF | |
11346 | /* end confdefs.h. */ | |
11347 | #include <ac_nonexistent.h> | |
11348 | _ACEOF | |
11349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11351 | ac_status=$? | |
11352 | grep -v '^ *+' conftest.er1 >conftest.err | |
11353 | rm -f conftest.er1 | |
11354 | cat conftest.err >&5 | |
11355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11356 | (exit $ac_status); } >/dev/null; then | |
11357 | if test -s conftest.err; then | |
11358 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11360 | else |
11361 | ac_cpp_err= | |
11362 | fi | |
11363 | else | |
11364 | ac_cpp_err=yes | |
11365 | fi | |
11366 | if test -z "$ac_cpp_err"; then | |
11367 | # Broken: success on invalid input. | |
11368 | continue | |
11369 | else | |
11370 | echo "$as_me: failed program was:" >&5 | |
11371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11372 | ||
11373 | # Passes both tests. | |
11374 | ac_preproc_ok=: | |
11375 | break | |
11376 | fi | |
11377 | rm -f conftest.err conftest.$ac_ext | |
11378 | ||
11379 | done | |
11380 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11381 | rm -f conftest.err conftest.$ac_ext | |
11382 | if $ac_preproc_ok; then | |
11383 | break | |
11384 | fi | |
11385 | ||
11386 | done | |
11387 | ac_cv_prog_CPP=$CPP | |
11388 | ||
11389 | fi | |
11390 | CPP=$ac_cv_prog_CPP | |
11391 | else | |
11392 | ac_cv_prog_CPP=$CPP | |
11393 | fi | |
11394 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11395 | echo "${ECHO_T}$CPP" >&6 | |
11396 | ac_preproc_ok=false | |
11397 | for ac_c_preproc_warn_flag in '' yes | |
11398 | do | |
11399 | # Use a header file that comes with gcc, so configuring glibc | |
11400 | # with a fresh cross-compiler works. | |
11401 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11402 | # <limits.h> exists even on freestanding compilers. | |
11403 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11404 | # not just through cpp. "Syntax error" is here to catch this case. | |
11405 | cat >conftest.$ac_ext <<_ACEOF | |
11406 | /* confdefs.h. */ | |
11407 | _ACEOF | |
11408 | cat confdefs.h >>conftest.$ac_ext | |
11409 | cat >>conftest.$ac_ext <<_ACEOF | |
11410 | /* end confdefs.h. */ | |
11411 | #ifdef __STDC__ | |
11412 | # include <limits.h> | |
11413 | #else | |
11414 | # include <assert.h> | |
11415 | #endif | |
ac1cb8d3 | 11416 | Syntax error |
a848cd7e SC |
11417 | _ACEOF |
11418 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11419 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11420 | ac_status=$? | |
11421 | grep -v '^ *+' conftest.er1 >conftest.err | |
11422 | rm -f conftest.er1 | |
11423 | cat conftest.err >&5 | |
11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11425 | (exit $ac_status); } >/dev/null; then | |
11426 | if test -s conftest.err; then | |
11427 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11429 | else |
11430 | ac_cpp_err= | |
11431 | fi | |
11432 | else | |
11433 | ac_cpp_err=yes | |
11434 | fi | |
11435 | if test -z "$ac_cpp_err"; then | |
11436 | : | |
11437 | else | |
11438 | echo "$as_me: failed program was:" >&5 | |
11439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11440 | ||
11441 | # Broken: fails on valid input. | |
11442 | continue | |
11443 | fi | |
11444 | rm -f conftest.err conftest.$ac_ext | |
11445 | ||
11446 | # OK, works on sane cases. Now check whether non-existent headers | |
11447 | # can be detected and how. | |
11448 | cat >conftest.$ac_ext <<_ACEOF | |
11449 | /* confdefs.h. */ | |
11450 | _ACEOF | |
11451 | cat confdefs.h >>conftest.$ac_ext | |
11452 | cat >>conftest.$ac_ext <<_ACEOF | |
11453 | /* end confdefs.h. */ | |
11454 | #include <ac_nonexistent.h> | |
11455 | _ACEOF | |
11456 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11457 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11458 | ac_status=$? | |
11459 | grep -v '^ *+' conftest.er1 >conftest.err | |
11460 | rm -f conftest.er1 | |
11461 | cat conftest.err >&5 | |
11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11463 | (exit $ac_status); } >/dev/null; then | |
11464 | if test -s conftest.err; then | |
11465 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11467 | else |
11468 | ac_cpp_err= | |
11469 | fi | |
11470 | else | |
11471 | ac_cpp_err=yes | |
11472 | fi | |
11473 | if test -z "$ac_cpp_err"; then | |
11474 | # Broken: success on invalid input. | |
11475 | continue | |
11476 | else | |
11477 | echo "$as_me: failed program was:" >&5 | |
11478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11479 | ||
11480 | # Passes both tests. | |
11481 | ac_preproc_ok=: | |
11482 | break | |
11483 | fi | |
11484 | rm -f conftest.err conftest.$ac_ext | |
11485 | ||
11486 | done | |
11487 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11488 | rm -f conftest.err conftest.$ac_ext | |
11489 | if $ac_preproc_ok; then | |
11490 | : | |
11491 | else | |
11492 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11493 | See \`config.log' for more details." >&5 | |
11494 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11495 | See \`config.log' for more details." >&2;} | |
11496 | { (exit 1); exit 1; }; } | |
11497 | fi | |
11498 | ||
11499 | ac_ext=c | |
11500 | ac_cpp='$CPP $CPPFLAGS' | |
11501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11504 | ||
11505 | ||
11506 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11507 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11508 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11510 | else | |
11511 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11512 | then ac_cv_prog_egrep='grep -E' | |
11513 | else ac_cv_prog_egrep='egrep' | |
11514 | fi | |
11515 | fi | |
11516 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11517 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11518 | EGREP=$ac_cv_prog_egrep | |
11519 | ||
11520 | ||
11521 | if test $ac_cv_c_compiler_gnu = yes; then | |
11522 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11523 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11524 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11526 | else | |
11527 | ac_pattern="Autoconf.*'x'" | |
11528 | cat >conftest.$ac_ext <<_ACEOF | |
11529 | /* confdefs.h. */ | |
11530 | _ACEOF | |
11531 | cat confdefs.h >>conftest.$ac_ext | |
11532 | cat >>conftest.$ac_ext <<_ACEOF | |
11533 | /* end confdefs.h. */ | |
11534 | #include <sgtty.h> | |
11535 | Autoconf TIOCGETP | |
11536 | _ACEOF | |
11537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11538 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11539 | ac_cv_prog_gcc_traditional=yes | |
11540 | else | |
11541 | ac_cv_prog_gcc_traditional=no | |
11542 | fi | |
11543 | rm -f conftest* | |
11544 | ||
11545 | ||
11546 | if test $ac_cv_prog_gcc_traditional = no; then | |
11547 | cat >conftest.$ac_ext <<_ACEOF | |
11548 | /* confdefs.h. */ | |
11549 | _ACEOF | |
11550 | cat confdefs.h >>conftest.$ac_ext | |
11551 | cat >>conftest.$ac_ext <<_ACEOF | |
11552 | /* end confdefs.h. */ | |
11553 | #include <termio.h> | |
11554 | Autoconf TCGETA | |
11555 | _ACEOF | |
11556 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11557 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11558 | ac_cv_prog_gcc_traditional=yes | |
11559 | fi | |
11560 | rm -f conftest* | |
11561 | ||
11562 | fi | |
11563 | fi | |
11564 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11565 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11566 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11567 | CC="$CC -traditional" | |
11568 | fi | |
11569 | fi | |
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ac_ext=cc | |
11575 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11576 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11577 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11578 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11579 | ||
11580 | ||
11581 | CXXFLAGS=${CXXFLAGS:=} | |
11582 | ac_ext=cc | |
11583 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11584 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11585 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11586 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11587 | if test -n "$ac_tool_prefix"; then | |
11588 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11589 | do | |
11590 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11591 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11594 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11596 | else | |
11597 | if test -n "$CXX"; then | |
11598 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11599 | else | |
11600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11601 | for as_dir in $PATH | |
11602 | do | |
11603 | IFS=$as_save_IFS | |
11604 | test -z "$as_dir" && as_dir=. | |
11605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11607 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11609 | break 2 | |
11610 | fi | |
11611 | done | |
11612 | done | |
11613 | ||
11614 | fi | |
11615 | fi | |
11616 | CXX=$ac_cv_prog_CXX | |
11617 | if test -n "$CXX"; then | |
11618 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11619 | echo "${ECHO_T}$CXX" >&6 | |
11620 | else | |
11621 | echo "$as_me:$LINENO: result: no" >&5 | |
11622 | echo "${ECHO_T}no" >&6 | |
11623 | fi | |
11624 | ||
11625 | test -n "$CXX" && break | |
11626 | done | |
11627 | fi | |
11628 | if test -z "$CXX"; then | |
11629 | ac_ct_CXX=$CXX | |
11630 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11631 | do | |
11632 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11633 | set dummy $ac_prog; ac_word=$2 | |
11634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11636 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11638 | else | |
11639 | if test -n "$ac_ct_CXX"; then | |
11640 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11641 | else | |
11642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11643 | for as_dir in $PATH | |
11644 | do | |
11645 | IFS=$as_save_IFS | |
11646 | test -z "$as_dir" && as_dir=. | |
11647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11649 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11651 | break 2 | |
11652 | fi | |
11653 | done | |
11654 | done | |
11655 | ||
11656 | fi | |
11657 | fi | |
11658 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11659 | if test -n "$ac_ct_CXX"; then | |
11660 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11661 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11662 | else | |
11663 | echo "$as_me:$LINENO: result: no" >&5 | |
11664 | echo "${ECHO_T}no" >&6 | |
11665 | fi | |
11666 | ||
11667 | test -n "$ac_ct_CXX" && break | |
11668 | done | |
11669 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11670 | ||
11671 | CXX=$ac_ct_CXX | |
11672 | fi | |
11673 | ||
11674 | ||
11675 | # Provide some information about the compiler. | |
11676 | echo "$as_me:$LINENO:" \ | |
11677 | "checking for C++ compiler version" >&5 | |
11678 | ac_compiler=`set X $ac_compile; echo $2` | |
11679 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11680 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11681 | ac_status=$? | |
11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11683 | (exit $ac_status); } | |
11684 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11685 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11686 | ac_status=$? | |
11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11688 | (exit $ac_status); } | |
11689 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11690 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11691 | ac_status=$? | |
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11693 | (exit $ac_status); } | |
11694 | ||
11695 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11696 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11697 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11699 | else | |
11700 | cat >conftest.$ac_ext <<_ACEOF | |
11701 | /* confdefs.h. */ | |
11702 | _ACEOF | |
11703 | cat confdefs.h >>conftest.$ac_ext | |
11704 | cat >>conftest.$ac_ext <<_ACEOF | |
11705 | /* end confdefs.h. */ | |
11706 | ||
11707 | int | |
11708 | main () | |
11709 | { | |
11710 | #ifndef __GNUC__ | |
11711 | choke me | |
11712 | #endif | |
11713 | ||
11714 | ; | |
11715 | return 0; | |
11716 | } | |
11717 | _ACEOF | |
11718 | rm -f conftest.$ac_objext | |
11719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11720 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11721 | ac_status=$? |
ac1cb8d3 VS |
11722 | grep -v '^ *+' conftest.er1 >conftest.err |
11723 | rm -f conftest.er1 | |
11724 | cat conftest.err >&5 | |
a848cd7e SC |
11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11726 | (exit $ac_status); } && | |
2cbbc68d RD |
11727 | { ac_try='test -z "$ac_cxx_werror_flag" |
11728 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11730 | (eval $ac_try) 2>&5 | |
11731 | ac_status=$? | |
11732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11733 | (exit $ac_status); }; } && | |
11734 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11736 | (eval $ac_try) 2>&5 | |
11737 | ac_status=$? | |
11738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11739 | (exit $ac_status); }; }; then | |
11740 | ac_compiler_gnu=yes | |
11741 | else | |
11742 | echo "$as_me: failed program was:" >&5 | |
11743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11744 | ||
11745 | ac_compiler_gnu=no | |
11746 | fi | |
ac1cb8d3 | 11747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11748 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11749 | ||
11750 | fi | |
11751 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11752 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11753 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11754 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11755 | ac_save_CXXFLAGS=$CXXFLAGS | |
11756 | CXXFLAGS="-g" | |
11757 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11758 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11759 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11761 | else | |
11762 | cat >conftest.$ac_ext <<_ACEOF | |
11763 | /* confdefs.h. */ | |
11764 | _ACEOF | |
11765 | cat confdefs.h >>conftest.$ac_ext | |
11766 | cat >>conftest.$ac_ext <<_ACEOF | |
11767 | /* end confdefs.h. */ | |
11768 | ||
11769 | int | |
11770 | main () | |
11771 | { | |
11772 | ||
11773 | ; | |
11774 | return 0; | |
11775 | } | |
11776 | _ACEOF | |
11777 | rm -f conftest.$ac_objext | |
11778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11780 | ac_status=$? |
ac1cb8d3 VS |
11781 | grep -v '^ *+' conftest.er1 >conftest.err |
11782 | rm -f conftest.er1 | |
11783 | cat conftest.err >&5 | |
a848cd7e SC |
11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11785 | (exit $ac_status); } && | |
2cbbc68d RD |
11786 | { ac_try='test -z "$ac_cxx_werror_flag" |
11787 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11789 | (eval $ac_try) 2>&5 | |
11790 | ac_status=$? | |
11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11792 | (exit $ac_status); }; } && | |
11793 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11795 | (eval $ac_try) 2>&5 | |
11796 | ac_status=$? | |
11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11798 | (exit $ac_status); }; }; then | |
11799 | ac_cv_prog_cxx_g=yes | |
11800 | else | |
11801 | echo "$as_me: failed program was:" >&5 | |
11802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11803 | ||
11804 | ac_cv_prog_cxx_g=no | |
11805 | fi | |
ac1cb8d3 | 11806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11807 | fi |
11808 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11809 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11810 | if test "$ac_test_CXXFLAGS" = set; then | |
11811 | CXXFLAGS=$ac_save_CXXFLAGS | |
11812 | elif test $ac_cv_prog_cxx_g = yes; then | |
11813 | if test "$GXX" = yes; then | |
11814 | CXXFLAGS="-g -O2" | |
11815 | else | |
11816 | CXXFLAGS="-g" | |
11817 | fi | |
11818 | else | |
11819 | if test "$GXX" = yes; then | |
11820 | CXXFLAGS="-O2" | |
11821 | else | |
11822 | CXXFLAGS= | |
11823 | fi | |
11824 | fi | |
11825 | for ac_declaration in \ | |
ac1cb8d3 | 11826 | '' \ |
a848cd7e SC |
11827 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11828 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11829 | 'extern "C" void exit (int) throw ();' \ | |
11830 | 'extern "C" void exit (int);' \ | |
11831 | 'void exit (int);' | |
11832 | do | |
11833 | cat >conftest.$ac_ext <<_ACEOF | |
11834 | /* confdefs.h. */ | |
11835 | _ACEOF | |
11836 | cat confdefs.h >>conftest.$ac_ext | |
11837 | cat >>conftest.$ac_ext <<_ACEOF | |
11838 | /* end confdefs.h. */ | |
de59c161 | 11839 | $ac_declaration |
ac1cb8d3 | 11840 | #include <stdlib.h> |
a848cd7e SC |
11841 | int |
11842 | main () | |
11843 | { | |
11844 | exit (42); | |
11845 | ; | |
11846 | return 0; | |
11847 | } | |
11848 | _ACEOF | |
11849 | rm -f conftest.$ac_objext | |
11850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11851 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11852 | ac_status=$? |
ac1cb8d3 VS |
11853 | grep -v '^ *+' conftest.er1 >conftest.err |
11854 | rm -f conftest.er1 | |
11855 | cat conftest.err >&5 | |
a848cd7e SC |
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11857 | (exit $ac_status); } && | |
2cbbc68d RD |
11858 | { ac_try='test -z "$ac_cxx_werror_flag" |
11859 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11861 | (eval $ac_try) 2>&5 | |
11862 | ac_status=$? | |
11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11864 | (exit $ac_status); }; } && | |
11865 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11867 | (eval $ac_try) 2>&5 | |
11868 | ac_status=$? | |
11869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11870 | (exit $ac_status); }; }; then | |
11871 | : | |
11872 | else | |
11873 | echo "$as_me: failed program was:" >&5 | |
11874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11875 | ||
11876 | continue | |
11877 | fi | |
ac1cb8d3 | 11878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11879 | cat >conftest.$ac_ext <<_ACEOF |
11880 | /* confdefs.h. */ | |
11881 | _ACEOF | |
11882 | cat confdefs.h >>conftest.$ac_ext | |
11883 | cat >>conftest.$ac_ext <<_ACEOF | |
11884 | /* end confdefs.h. */ | |
11885 | $ac_declaration | |
11886 | int | |
11887 | main () | |
11888 | { | |
11889 | exit (42); | |
11890 | ; | |
11891 | return 0; | |
11892 | } | |
11893 | _ACEOF | |
11894 | rm -f conftest.$ac_objext | |
11895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11896 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11897 | ac_status=$? |
ac1cb8d3 VS |
11898 | grep -v '^ *+' conftest.er1 >conftest.err |
11899 | rm -f conftest.er1 | |
11900 | cat conftest.err >&5 | |
a848cd7e SC |
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11902 | (exit $ac_status); } && | |
2cbbc68d RD |
11903 | { ac_try='test -z "$ac_cxx_werror_flag" |
11904 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11906 | (eval $ac_try) 2>&5 | |
11907 | ac_status=$? | |
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11909 | (exit $ac_status); }; } && | |
11910 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11912 | (eval $ac_try) 2>&5 | |
11913 | ac_status=$? | |
11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11915 | (exit $ac_status); }; }; then | |
11916 | break | |
11917 | else | |
11918 | echo "$as_me: failed program was:" >&5 | |
11919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11920 | ||
11921 | fi | |
ac1cb8d3 | 11922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11923 | done |
11924 | rm -f conftest* | |
11925 | if test -n "$ac_declaration"; then | |
11926 | echo '#ifdef __cplusplus' >>confdefs.h | |
11927 | echo $ac_declaration >>confdefs.h | |
11928 | echo '#endif' >>confdefs.h | |
11929 | fi | |
11930 | ||
11931 | ac_ext=cc | |
11932 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11933 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11934 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11935 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11936 | ||
11937 | ||
11938 | ac_ext=c | |
11939 | ac_cpp='$CPP $CPPFLAGS' | |
11940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11943 | ||
11944 | ||
a848cd7e SC |
11945 | if test -n "$ac_tool_prefix"; then |
11946 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11947 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11950 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11952 | else | |
11953 | if test -n "$RANLIB"; then | |
11954 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11955 | else | |
11956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11957 | for as_dir in $PATH | |
11958 | do | |
11959 | IFS=$as_save_IFS | |
11960 | test -z "$as_dir" && as_dir=. | |
11961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11963 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11965 | break 2 | |
11966 | fi | |
11967 | done | |
11968 | done | |
11969 | ||
11970 | fi | |
11971 | fi | |
11972 | RANLIB=$ac_cv_prog_RANLIB | |
11973 | if test -n "$RANLIB"; then | |
11974 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11975 | echo "${ECHO_T}$RANLIB" >&6 | |
11976 | else | |
11977 | echo "$as_me:$LINENO: result: no" >&5 | |
11978 | echo "${ECHO_T}no" >&6 | |
11979 | fi | |
11980 | ||
11981 | fi | |
11982 | if test -z "$ac_cv_prog_RANLIB"; then | |
11983 | ac_ct_RANLIB=$RANLIB | |
11984 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11985 | set dummy ranlib; ac_word=$2 | |
11986 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11988 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11990 | else | |
11991 | if test -n "$ac_ct_RANLIB"; then | |
11992 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11993 | else | |
11994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11995 | for as_dir in $PATH | |
11996 | do | |
11997 | IFS=$as_save_IFS | |
11998 | test -z "$as_dir" && as_dir=. | |
11999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12001 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12003 | break 2 | |
12004 | fi | |
12005 | done | |
12006 | done | |
12007 | ||
12008 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12009 | fi | |
12010 | fi | |
12011 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12012 | if test -n "$ac_ct_RANLIB"; then | |
12013 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12014 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12015 | else | |
12016 | echo "$as_me:$LINENO: result: no" >&5 | |
12017 | echo "${ECHO_T}no" >&6 | |
12018 | fi | |
12019 | ||
12020 | RANLIB=$ac_ct_RANLIB | |
12021 | else | |
12022 | RANLIB="$ac_cv_prog_RANLIB" | |
12023 | fi | |
12024 | ||
12025 | ||
12026 | # Extract the first word of "ar", so it can be a program name with args. | |
12027 | set dummy ar; ac_word=$2 | |
12028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12030 | if test "${ac_cv_prog_AR+set}" = set; then | |
12031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12032 | else | |
12033 | if test -n "$AR"; then | |
12034 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12035 | else | |
12036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12037 | for as_dir in $PATH | |
12038 | do | |
12039 | IFS=$as_save_IFS | |
12040 | test -z "$as_dir" && as_dir=. | |
12041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12043 | ac_cv_prog_AR="ar" | |
12044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12045 | break 2 | |
12046 | fi | |
12047 | done | |
12048 | done | |
12049 | ||
12050 | fi | |
12051 | fi | |
12052 | AR=$ac_cv_prog_AR | |
12053 | if test -n "$AR"; then | |
12054 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12055 | echo "${ECHO_T}$AR" >&6 | |
12056 | else | |
12057 | echo "$as_me:$LINENO: result: no" >&5 | |
12058 | echo "${ECHO_T}no" >&6 | |
12059 | fi | |
12060 | ||
12061 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12062 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12063 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12064 | { (exit 1); exit 1; }; } |
12065 | fi | |
12066 | ||
12067 | # Find a good install program. We prefer a C program (faster), | |
12068 | # so one script is as good as another. But avoid the broken or | |
12069 | # incompatible versions: | |
12070 | # SysV /etc/install, /usr/sbin/install | |
12071 | # SunOS /usr/etc/install | |
12072 | # IRIX /sbin/install | |
12073 | # AIX /bin/install | |
12074 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12075 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12076 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12077 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12078 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12079 | # ./install, which can be erroneously created by make from ./install.sh. |
12080 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12081 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12082 | if test -z "$INSTALL"; then | |
12083 | if test "${ac_cv_path_install+set}" = set; then | |
12084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12085 | else | |
12086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12087 | for as_dir in $PATH | |
12088 | do | |
12089 | IFS=$as_save_IFS | |
12090 | test -z "$as_dir" && as_dir=. | |
12091 | # Account for people who put trailing slashes in PATH elements. | |
12092 | case $as_dir/ in | |
12093 | ./ | .// | /cC/* | \ | |
12094 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12095 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12096 | /usr/ucb/* ) ;; |
12097 | *) | |
12098 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12099 | # Don't use installbsd from OSF since it installs stuff as root | |
12100 | # by default. | |
12101 | for ac_prog in ginstall scoinst install; do | |
12102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12103 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12104 | if test $ac_prog = install && | |
12105 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12106 | # AIX install. It has an incompatible calling convention. | |
12107 | : | |
12108 | elif test $ac_prog = install && | |
12109 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12110 | # program-specific install script used by HP pwplus--don't use. | |
12111 | : | |
12112 | else | |
12113 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12114 | break 3 | |
12115 | fi | |
12116 | fi | |
a848cd7e SC |
12117 | done |
12118 | done | |
12119 | ;; | |
12120 | esac | |
12121 | done | |
12122 | ||
12123 | ||
12124 | fi | |
12125 | if test "${ac_cv_path_install+set}" = set; then | |
12126 | INSTALL=$ac_cv_path_install | |
12127 | else | |
12128 | # As a last resort, use the slow shell script. We don't cache a | |
12129 | # path for INSTALL within a source directory, because that will | |
12130 | # break other packages using the cache if that directory is | |
12131 | # removed, or if the path is relative. | |
12132 | INSTALL=$ac_install_sh | |
12133 | fi | |
12134 | fi | |
12135 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12136 | echo "${ECHO_T}$INSTALL" >&6 | |
12137 | ||
12138 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12139 | # It thinks the first close brace ends the variable substitution. | |
12140 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12141 | ||
12142 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12143 | ||
12144 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12145 | ||
12146 | ||
12147 | case ${INSTALL} in | |
12148 | /* ) # Absolute | |
12149 | ;; | |
12150 | ?:* ) # Drive letter, considered as absolute. | |
12151 | ;; | |
12152 | *) | |
12153 | INSTALL=`pwd`/${INSTALL} ;; | |
12154 | esac | |
12155 | ||
a848cd7e SC |
12156 | |
12157 | case "${host}" in | |
12158 | ||
12159 | powerpc-*-darwin* ) | |
12160 | INSTALL_PROGRAM="cp -fp" | |
12161 | INSTALL_DATA="cp -fp" | |
12162 | ;; | |
12163 | *) | |
12164 | ;; | |
12165 | esac | |
12166 | ||
12167 | # Extract the first word of "strip", so it can be a program name with args. | |
12168 | set dummy strip; ac_word=$2 | |
12169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12171 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12173 | else | |
12174 | if test -n "$STRIP"; then | |
12175 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12176 | else | |
12177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12178 | for as_dir in $PATH | |
12179 | do | |
12180 | IFS=$as_save_IFS | |
12181 | test -z "$as_dir" && as_dir=. | |
12182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12184 | ac_cv_prog_STRIP="strip" | |
12185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12186 | break 2 | |
12187 | fi | |
12188 | done | |
12189 | done | |
12190 | ||
12191 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12192 | fi | |
12193 | fi | |
12194 | STRIP=$ac_cv_prog_STRIP | |
12195 | if test -n "$STRIP"; then | |
12196 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12197 | echo "${ECHO_T}$STRIP" >&6 | |
12198 | else | |
12199 | echo "$as_me:$LINENO: result: no" >&5 | |
12200 | echo "${ECHO_T}no" >&6 | |
12201 | fi | |
12202 | ||
12203 | ||
12204 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12205 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12206 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12208 | else | |
12209 | ||
12210 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12211 | egrep -s GNU > /dev/null); then | |
12212 | wx_cv_prog_makeisgnu="yes" | |
12213 | else | |
12214 | wx_cv_prog_makeisgnu="no" | |
12215 | fi | |
12216 | ||
12217 | fi | |
12218 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12219 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12220 | ||
12221 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12222 | IF_GNU_MAKE="" | |
12223 | else | |
12224 | IF_GNU_MAKE="#" | |
12225 | fi | |
12226 | ||
12227 | ||
12228 | ||
12229 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12230 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12231 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12232 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12234 | else | |
12235 | ||
12236 | cat - << EOF > confMake | |
12237 | check : file | |
12238 | cp \$? \$@ | |
12239 | cp \$? final_file | |
12240 | EOF | |
12241 | ||
12242 | if test ! -d sub ; then | |
12243 | mkdir sub | |
12244 | fi | |
12245 | echo dummy > sub/file | |
12246 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12247 | RESULT=$? | |
12248 | rm -f sub/file check final_file confMake | |
12249 | rmdir sub | |
12250 | if test "$RESULT" = 0; then | |
12251 | wx_cv_prog_makevpath="yes" | |
12252 | else | |
12253 | wx_cv_prog_makevpath="no" | |
12254 | fi | |
12255 | ||
12256 | fi | |
12257 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12258 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12259 | ||
12260 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12261 | { { echo "$as_me:$LINENO: error: | |
12262 | You need a make-utility that is able to use the variable | |
12263 | VPATH correctly. | |
12264 | If your version of make does not support VPATH correctly, | |
12265 | please install GNU-make (possibly as gmake), and start | |
12266 | configure with the following command: | |
12267 | export MAKE=gmake; ./configure for sh-type shells | |
12268 | setenv MAKE gmake; ./configure for csh-type shells | |
12269 | Also please do remember to use gmake in this case every time | |
12270 | you are trying to compile. | |
12271 | " >&5 | |
12272 | echo "$as_me: error: | |
12273 | You need a make-utility that is able to use the variable | |
12274 | VPATH correctly. | |
12275 | If your version of make does not support VPATH correctly, | |
12276 | please install GNU-make (possibly as gmake), and start | |
12277 | configure with the following command: | |
12278 | export MAKE=gmake; ./configure for sh-type shells | |
12279 | setenv MAKE gmake; ./configure for csh-type shells | |
12280 | Also please do remember to use gmake in this case every time | |
12281 | you are trying to compile. | |
12282 | " >&2;} | |
12283 | { (exit 1); exit 1; }; } | |
12284 | fi fi | |
12285 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12286 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12287 | LN_S=$as_ln_s | |
12288 | if test "$LN_S" = "ln -s"; then | |
12289 | echo "$as_me:$LINENO: result: yes" >&5 | |
12290 | echo "${ECHO_T}yes" >&6 | |
12291 | else | |
12292 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12293 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12294 | fi | |
12295 | ||
12296 | ||
12297 | ||
12298 | case "${host}" in | |
12299 | *-pc-os2_emx | *-pc-os2-emx ) | |
12300 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12301 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12302 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12303 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12305 | else | |
12306 | ac_check_lib_save_LIBS=$LIBS | |
12307 | LIBS="-lcExt $LIBS" | |
12308 | cat >conftest.$ac_ext <<_ACEOF | |
12309 | /* confdefs.h. */ | |
12310 | _ACEOF | |
12311 | cat confdefs.h >>conftest.$ac_ext | |
12312 | cat >>conftest.$ac_ext <<_ACEOF | |
12313 | /* end confdefs.h. */ | |
12314 | ||
12315 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12316 | #ifdef __cplusplus | |
12317 | extern "C" | |
12318 | #endif | |
12319 | /* We use char because int might match the return type of a gcc2 | |
12320 | builtin and then its argument prototype would still apply. */ | |
12321 | char drand48 (); | |
12322 | int | |
12323 | main () | |
12324 | { | |
12325 | drand48 (); | |
12326 | ; | |
12327 | return 0; | |
12328 | } | |
12329 | _ACEOF | |
12330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12332 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12333 | ac_status=$? |
ac1cb8d3 VS |
12334 | grep -v '^ *+' conftest.er1 >conftest.err |
12335 | rm -f conftest.er1 | |
12336 | cat conftest.err >&5 | |
a848cd7e SC |
12337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12338 | (exit $ac_status); } && | |
2cbbc68d RD |
12339 | { ac_try='test -z "$ac_c_werror_flag" |
12340 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12342 | (eval $ac_try) 2>&5 | |
12343 | ac_status=$? | |
12344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12345 | (exit $ac_status); }; } && | |
12346 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12348 | (eval $ac_try) 2>&5 | |
12349 | ac_status=$? | |
12350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12351 | (exit $ac_status); }; }; then | |
12352 | ac_cv_lib_cExt_drand48=yes | |
12353 | else | |
12354 | echo "$as_me: failed program was:" >&5 | |
12355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12356 | ||
12357 | ac_cv_lib_cExt_drand48=no | |
12358 | fi | |
ac1cb8d3 VS |
12359 | rm -f conftest.err conftest.$ac_objext \ |
12360 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12361 | LIBS=$ac_check_lib_save_LIBS |
12362 | fi | |
12363 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12364 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12365 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12366 | LIBS="$LIBS -lcExt" | |
12367 | fi | |
12368 | ||
12369 | else | |
12370 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12371 | fi | |
12372 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12373 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12374 | if test "${wx_cv_gccversion+set}" = set; then | |
12375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12376 | else | |
12377 | ||
12378 | cat >conftest.$ac_ext <<_ACEOF | |
12379 | /* confdefs.h. */ | |
12380 | _ACEOF | |
12381 | cat confdefs.h >>conftest.$ac_ext | |
12382 | cat >>conftest.$ac_ext <<_ACEOF | |
12383 | /* end confdefs.h. */ | |
12384 | ||
12385 | int | |
12386 | main () | |
12387 | { | |
12388 | ||
12389 | #if (__GNUC__ < 3) | |
12390 | #error old gcc | |
12391 | #endif | |
12392 | ||
12393 | ; | |
12394 | return 0; | |
12395 | } | |
12396 | _ACEOF | |
12397 | rm -f conftest.$ac_objext | |
12398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12399 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12400 | ac_status=$? |
ac1cb8d3 VS |
12401 | grep -v '^ *+' conftest.er1 >conftest.err |
12402 | rm -f conftest.er1 | |
12403 | cat conftest.err >&5 | |
a848cd7e SC |
12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12405 | (exit $ac_status); } && | |
2cbbc68d RD |
12406 | { ac_try='test -z "$ac_c_werror_flag" |
12407 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12409 | (eval $ac_try) 2>&5 | |
12410 | ac_status=$? | |
12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12412 | (exit $ac_status); }; } && | |
12413 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12415 | (eval $ac_try) 2>&5 | |
12416 | ac_status=$? | |
12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12418 | (exit $ac_status); }; }; then | |
12419 | ||
12420 | cat >conftest.$ac_ext <<_ACEOF | |
12421 | /* confdefs.h. */ | |
12422 | _ACEOF | |
12423 | cat confdefs.h >>conftest.$ac_ext | |
12424 | cat >>conftest.$ac_ext <<_ACEOF | |
12425 | /* end confdefs.h. */ | |
12426 | ||
12427 | int | |
12428 | main () | |
12429 | { | |
12430 | ||
12431 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12432 | #error intermediate gcc | |
12433 | #endif | |
12434 | ||
12435 | ; | |
12436 | return 0; | |
12437 | } | |
12438 | _ACEOF | |
12439 | rm -f conftest.$ac_objext | |
12440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12442 | ac_status=$? |
ac1cb8d3 VS |
12443 | grep -v '^ *+' conftest.er1 >conftest.err |
12444 | rm -f conftest.er1 | |
12445 | cat conftest.err >&5 | |
a848cd7e SC |
12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12447 | (exit $ac_status); } && | |
2cbbc68d RD |
12448 | { ac_try='test -z "$ac_c_werror_flag" |
12449 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12451 | (eval $ac_try) 2>&5 | |
12452 | ac_status=$? | |
12453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12454 | (exit $ac_status); }; } && | |
12455 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12457 | (eval $ac_try) 2>&5 | |
12458 | ac_status=$? | |
12459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12460 | (exit $ac_status); }; }; then | |
12461 | ||
12462 | wx_cv_gccversion=Innotek | |
12463 | ||
12464 | else | |
12465 | echo "$as_me: failed program was:" >&5 | |
12466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12467 | ||
12468 | ||
12469 | wx_cv_gccversion=3 | |
12470 | ||
12471 | ||
12472 | fi | |
ac1cb8d3 | 12473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12474 | |
12475 | else | |
12476 | echo "$as_me: failed program was:" >&5 | |
12477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12478 | ||
12479 | ||
12480 | wx_cv_gccversion=2 | |
12481 | ||
12482 | ||
12483 | fi | |
ac1cb8d3 | 12484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12485 | |
12486 | fi | |
12487 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12488 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12489 | if test "$wx_cv_gccversion" = "2"; then | |
12490 | LIBS="$LIBS -lstdcpp" | |
12491 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12492 | else | |
12493 | if test "$wx_cv_gccversion" = "3"; then | |
12494 | LIBS="$LIBS -lstdcxx" | |
12495 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12496 | else | |
12497 | LIBS="$LIBS -lstdc++" | |
12498 | fi | |
12499 | fi | |
12500 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12501 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12502 | fi |
12503 | ;; | |
12504 | *) | |
12505 | ||
12506 | ||
12507 | ||
12508 | ac_ext=cc | |
12509 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12510 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12511 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12512 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12513 | ||
12514 | ||
12515 | ||
12516 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12517 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12518 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12520 | else | |
12521 | ||
12522 | cat >conftest.$ac_ext <<_ACEOF | |
12523 | /* confdefs.h. */ | |
12524 | _ACEOF | |
12525 | cat confdefs.h >>conftest.$ac_ext | |
12526 | cat >>conftest.$ac_ext <<_ACEOF | |
12527 | /* end confdefs.h. */ | |
12528 | ||
12529 | #include <string.h> | |
12530 | ||
12531 | int | |
12532 | main () | |
12533 | { | |
12534 | ||
12535 | strcasecmp("foo", "bar"); | |
12536 | ||
12537 | ; | |
12538 | return 0; | |
12539 | } | |
12540 | _ACEOF | |
12541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12543 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12544 | ac_status=$? |
ac1cb8d3 VS |
12545 | grep -v '^ *+' conftest.er1 >conftest.err |
12546 | rm -f conftest.er1 | |
12547 | cat conftest.err >&5 | |
a848cd7e SC |
12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12549 | (exit $ac_status); } && | |
2cbbc68d RD |
12550 | { ac_try='test -z "$ac_cxx_werror_flag" |
12551 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12553 | (eval $ac_try) 2>&5 | |
12554 | ac_status=$? | |
12555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12556 | (exit $ac_status); }; } && | |
12557 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12559 | (eval $ac_try) 2>&5 | |
12560 | ac_status=$? | |
12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12562 | (exit $ac_status); }; }; then | |
12563 | ac_cv_string_strcasecmp=yes | |
12564 | else | |
12565 | echo "$as_me: failed program was:" >&5 | |
12566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12567 | ||
12568 | ac_cv_string_strcasecmp=no | |
12569 | ||
12570 | fi | |
ac1cb8d3 VS |
12571 | rm -f conftest.err conftest.$ac_objext \ |
12572 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12573 | |
12574 | fi | |
12575 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12576 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12577 | ||
12578 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12579 | cat >>confdefs.h <<\_ACEOF | |
12580 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12581 | _ACEOF | |
12582 | ||
12583 | else | |
12584 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12585 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12586 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12588 | else | |
12589 | ||
12590 | cat >conftest.$ac_ext <<_ACEOF | |
12591 | /* confdefs.h. */ | |
12592 | _ACEOF | |
12593 | cat confdefs.h >>conftest.$ac_ext | |
12594 | cat >>conftest.$ac_ext <<_ACEOF | |
12595 | /* end confdefs.h. */ | |
12596 | ||
12597 | #include <strings.h> | |
12598 | ||
12599 | int | |
12600 | main () | |
12601 | { | |
12602 | ||
12603 | strcasecmp("foo", "bar"); | |
12604 | ||
12605 | ; | |
12606 | return 0; | |
12607 | } | |
12608 | _ACEOF | |
12609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12611 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12612 | ac_status=$? |
ac1cb8d3 VS |
12613 | grep -v '^ *+' conftest.er1 >conftest.err |
12614 | rm -f conftest.er1 | |
12615 | cat conftest.err >&5 | |
a848cd7e SC |
12616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12617 | (exit $ac_status); } && | |
2cbbc68d RD |
12618 | { ac_try='test -z "$ac_cxx_werror_flag" |
12619 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12621 | (eval $ac_try) 2>&5 | |
12622 | ac_status=$? | |
12623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12624 | (exit $ac_status); }; } && | |
12625 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12627 | (eval $ac_try) 2>&5 | |
12628 | ac_status=$? | |
12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12630 | (exit $ac_status); }; }; then | |
12631 | ac_cv_strings_strcasecmp=yes | |
12632 | else | |
12633 | echo "$as_me: failed program was:" >&5 | |
12634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12635 | ||
12636 | ac_cv_strings_strcasecmp=no | |
12637 | ||
12638 | fi | |
ac1cb8d3 VS |
12639 | rm -f conftest.err conftest.$ac_objext \ |
12640 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12641 | |
12642 | fi | |
12643 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12644 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12645 | ||
0c3c69fc | 12646 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12647 | cat >>confdefs.h <<\_ACEOF |
12648 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12649 | _ACEOF | |
12650 | ||
12651 | else | |
12652 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12653 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12654 | { (exit 1); exit 1; }; } | |
12655 | fi | |
12656 | fi | |
12657 | ||
12658 | ac_ext=c | |
12659 | ac_cpp='$CPP $CPPFLAGS' | |
12660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12663 | ||
12664 | ;; | |
12665 | esac | |
12666 | ||
12667 | ||
12668 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12669 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12670 | if test "${ac_cv_header_stdc+set}" = set; then | |
12671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12672 | else | |
12673 | cat >conftest.$ac_ext <<_ACEOF | |
12674 | /* confdefs.h. */ | |
12675 | _ACEOF | |
12676 | cat confdefs.h >>conftest.$ac_ext | |
12677 | cat >>conftest.$ac_ext <<_ACEOF | |
12678 | /* end confdefs.h. */ | |
12679 | #include <stdlib.h> | |
12680 | #include <stdarg.h> | |
12681 | #include <string.h> | |
12682 | #include <float.h> | |
12683 | ||
12684 | int | |
12685 | main () | |
12686 | { | |
12687 | ||
12688 | ; | |
12689 | return 0; | |
12690 | } | |
12691 | _ACEOF | |
12692 | rm -f conftest.$ac_objext | |
12693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12694 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12695 | ac_status=$? |
ac1cb8d3 VS |
12696 | grep -v '^ *+' conftest.er1 >conftest.err |
12697 | rm -f conftest.er1 | |
12698 | cat conftest.err >&5 | |
a848cd7e SC |
12699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12700 | (exit $ac_status); } && | |
2cbbc68d RD |
12701 | { ac_try='test -z "$ac_c_werror_flag" |
12702 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12704 | (eval $ac_try) 2>&5 | |
12705 | ac_status=$? | |
12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12707 | (exit $ac_status); }; } && | |
12708 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12710 | (eval $ac_try) 2>&5 | |
12711 | ac_status=$? | |
12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12713 | (exit $ac_status); }; }; then | |
12714 | ac_cv_header_stdc=yes | |
12715 | else | |
12716 | echo "$as_me: failed program was:" >&5 | |
12717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12718 | ||
12719 | ac_cv_header_stdc=no | |
12720 | fi | |
ac1cb8d3 | 12721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12722 | |
12723 | if test $ac_cv_header_stdc = yes; then | |
12724 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12725 | cat >conftest.$ac_ext <<_ACEOF | |
12726 | /* confdefs.h. */ | |
12727 | _ACEOF | |
12728 | cat confdefs.h >>conftest.$ac_ext | |
12729 | cat >>conftest.$ac_ext <<_ACEOF | |
12730 | /* end confdefs.h. */ | |
12731 | #include <string.h> | |
12732 | ||
12733 | _ACEOF | |
12734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12735 | $EGREP "memchr" >/dev/null 2>&1; then | |
12736 | : | |
12737 | else | |
12738 | ac_cv_header_stdc=no | |
12739 | fi | |
12740 | rm -f conftest* | |
12741 | ||
12742 | fi | |
12743 | ||
12744 | if test $ac_cv_header_stdc = yes; then | |
12745 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12746 | cat >conftest.$ac_ext <<_ACEOF | |
12747 | /* confdefs.h. */ | |
12748 | _ACEOF | |
12749 | cat confdefs.h >>conftest.$ac_ext | |
12750 | cat >>conftest.$ac_ext <<_ACEOF | |
12751 | /* end confdefs.h. */ | |
12752 | #include <stdlib.h> | |
12753 | ||
12754 | _ACEOF | |
12755 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12756 | $EGREP "free" >/dev/null 2>&1; then | |
12757 | : | |
12758 | else | |
12759 | ac_cv_header_stdc=no | |
12760 | fi | |
12761 | rm -f conftest* | |
12762 | ||
12763 | fi | |
12764 | ||
12765 | if test $ac_cv_header_stdc = yes; then | |
12766 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12767 | if test "$cross_compiling" = yes; then | |
12768 | : | |
12769 | else | |
12770 | cat >conftest.$ac_ext <<_ACEOF | |
12771 | /* confdefs.h. */ | |
12772 | _ACEOF | |
12773 | cat confdefs.h >>conftest.$ac_ext | |
12774 | cat >>conftest.$ac_ext <<_ACEOF | |
12775 | /* end confdefs.h. */ | |
12776 | #include <ctype.h> | |
12777 | #if ((' ' & 0x0FF) == 0x020) | |
12778 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12779 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12780 | #else | |
12781 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12782 | (('a' <= (c) && (c) <= 'i') \ |
12783 | || ('j' <= (c) && (c) <= 'r') \ | |
12784 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12785 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12786 | #endif | |
12787 | ||
12788 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12789 | int | |
12790 | main () | |
12791 | { | |
12792 | int i; | |
12793 | for (i = 0; i < 256; i++) | |
12794 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12795 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12796 | exit(2); |
12797 | exit (0); | |
12798 | } | |
12799 | _ACEOF | |
12800 | rm -f conftest$ac_exeext | |
12801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12802 | (eval $ac_link) 2>&5 | |
12803 | ac_status=$? | |
12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12807 | (eval $ac_try) 2>&5 | |
12808 | ac_status=$? | |
12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12810 | (exit $ac_status); }; }; then | |
12811 | : | |
12812 | else | |
12813 | echo "$as_me: program exited with status $ac_status" >&5 | |
12814 | echo "$as_me: failed program was:" >&5 | |
12815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12816 | ||
12817 | ( exit $ac_status ) | |
12818 | ac_cv_header_stdc=no | |
12819 | fi | |
ac1cb8d3 | 12820 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12821 | fi |
12822 | fi | |
12823 | fi | |
12824 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12825 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12826 | if test $ac_cv_header_stdc = yes; then | |
12827 | ||
12828 | cat >>confdefs.h <<\_ACEOF | |
12829 | #define STDC_HEADERS 1 | |
12830 | _ACEOF | |
12831 | ||
12832 | fi | |
12833 | ||
12834 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12835 | ||
12836 | ||
12837 | ||
12838 | ||
12839 | ||
12840 | ||
12841 | ||
12842 | ||
12843 | ||
12844 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12845 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12846 | do |
12847 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12848 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12852 | else | |
12853 | cat >conftest.$ac_ext <<_ACEOF | |
12854 | /* confdefs.h. */ | |
12855 | _ACEOF | |
12856 | cat confdefs.h >>conftest.$ac_ext | |
12857 | cat >>conftest.$ac_ext <<_ACEOF | |
12858 | /* end confdefs.h. */ | |
12859 | $ac_includes_default | |
12860 | ||
12861 | #include <$ac_header> | |
12862 | _ACEOF | |
12863 | rm -f conftest.$ac_objext | |
12864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12865 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12866 | ac_status=$? |
ac1cb8d3 VS |
12867 | grep -v '^ *+' conftest.er1 >conftest.err |
12868 | rm -f conftest.er1 | |
12869 | cat conftest.err >&5 | |
a848cd7e SC |
12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12871 | (exit $ac_status); } && | |
2cbbc68d RD |
12872 | { ac_try='test -z "$ac_c_werror_flag" |
12873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12875 | (eval $ac_try) 2>&5 | |
12876 | ac_status=$? | |
12877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12878 | (exit $ac_status); }; } && | |
12879 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12881 | (eval $ac_try) 2>&5 | |
12882 | ac_status=$? | |
12883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12884 | (exit $ac_status); }; }; then | |
12885 | eval "$as_ac_Header=yes" | |
12886 | else | |
12887 | echo "$as_me: failed program was:" >&5 | |
12888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12889 | ||
12890 | eval "$as_ac_Header=no" | |
12891 | fi | |
ac1cb8d3 | 12892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12893 | fi |
12894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12897 | cat >>confdefs.h <<_ACEOF | |
12898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12899 | _ACEOF | |
12900 | ||
12901 | fi | |
12902 | ||
12903 | done | |
12904 | ||
12905 | ||
12906 | ||
12907 | for ac_header in stdlib.h | |
12908 | do | |
12909 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12911 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12912 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12913 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12915 | fi | |
12916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12917 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12918 | else | |
12919 | # Is the header compilable? | |
12920 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12921 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12922 | cat >conftest.$ac_ext <<_ACEOF | |
12923 | /* confdefs.h. */ | |
12924 | _ACEOF | |
12925 | cat confdefs.h >>conftest.$ac_ext | |
12926 | cat >>conftest.$ac_ext <<_ACEOF | |
12927 | /* end confdefs.h. */ | |
12928 | $ac_includes_default | |
12929 | #include <$ac_header> | |
12930 | _ACEOF | |
12931 | rm -f conftest.$ac_objext | |
12932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12934 | ac_status=$? |
ac1cb8d3 VS |
12935 | grep -v '^ *+' conftest.er1 >conftest.err |
12936 | rm -f conftest.er1 | |
12937 | cat conftest.err >&5 | |
a848cd7e SC |
12938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12939 | (exit $ac_status); } && | |
2cbbc68d RD |
12940 | { ac_try='test -z "$ac_c_werror_flag" |
12941 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12943 | (eval $ac_try) 2>&5 | |
12944 | ac_status=$? | |
12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12946 | (exit $ac_status); }; } && | |
12947 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12949 | (eval $ac_try) 2>&5 | |
12950 | ac_status=$? | |
12951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12952 | (exit $ac_status); }; }; then | |
12953 | ac_header_compiler=yes | |
12954 | else | |
12955 | echo "$as_me: failed program was:" >&5 | |
12956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12957 | ||
12958 | ac_header_compiler=no | |
12959 | fi | |
ac1cb8d3 | 12960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12961 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12962 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12963 | ||
12964 | # Is the header present? | |
12965 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12966 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12967 | cat >conftest.$ac_ext <<_ACEOF | |
12968 | /* confdefs.h. */ | |
12969 | _ACEOF | |
12970 | cat confdefs.h >>conftest.$ac_ext | |
12971 | cat >>conftest.$ac_ext <<_ACEOF | |
12972 | /* end confdefs.h. */ | |
12973 | #include <$ac_header> | |
12974 | _ACEOF | |
12975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12977 | ac_status=$? | |
12978 | grep -v '^ *+' conftest.er1 >conftest.err | |
12979 | rm -f conftest.er1 | |
12980 | cat conftest.err >&5 | |
12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12982 | (exit $ac_status); } >/dev/null; then | |
12983 | if test -s conftest.err; then | |
12984 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12985 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12986 | else |
12987 | ac_cpp_err= | |
12988 | fi | |
12989 | else | |
12990 | ac_cpp_err=yes | |
12991 | fi | |
12992 | if test -z "$ac_cpp_err"; then | |
12993 | ac_header_preproc=yes | |
12994 | else | |
12995 | echo "$as_me: failed program was:" >&5 | |
12996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12997 | ||
12998 | ac_header_preproc=no | |
12999 | fi | |
13000 | rm -f conftest.err conftest.$ac_ext | |
13001 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13002 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13003 | ||
13004 | # So? What about this header? | |
ac1cb8d3 VS |
13005 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13006 | yes:no: ) | |
a848cd7e SC |
13007 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13008 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13010 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13011 | ac_header_preproc=yes | |
a848cd7e | 13012 | ;; |
ac1cb8d3 | 13013 | no:yes:* ) |
a848cd7e SC |
13014 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13015 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13016 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13017 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13018 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13019 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13020 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13021 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13023 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13024 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13025 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13026 | ( |
13027 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13028 | ## ----------------------------------------- ## |
13029 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13030 | ## ----------------------------------------- ## | |
a848cd7e SC |
13031 | _ASBOX |
13032 | ) | | |
13033 | sed "s/^/$as_me: WARNING: /" >&2 | |
13034 | ;; | |
13035 | esac | |
13036 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13040 | else | |
ac1cb8d3 | 13041 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13042 | fi |
13043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13044 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13045 | ||
13046 | fi | |
13047 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13048 | cat >>confdefs.h <<_ACEOF | |
13049 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13050 | _ACEOF | |
13051 | ||
13052 | fi | |
13053 | ||
13054 | done | |
13055 | ||
13056 | ||
13057 | for ac_header in malloc.h | |
13058 | do | |
13059 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13060 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13065 | fi | |
13066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13067 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13068 | else | |
13069 | # Is the header compilable? | |
13070 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13071 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13072 | cat >conftest.$ac_ext <<_ACEOF | |
13073 | /* confdefs.h. */ | |
13074 | _ACEOF | |
13075 | cat confdefs.h >>conftest.$ac_ext | |
13076 | cat >>conftest.$ac_ext <<_ACEOF | |
13077 | /* end confdefs.h. */ | |
13078 | $ac_includes_default | |
13079 | #include <$ac_header> | |
13080 | _ACEOF | |
13081 | rm -f conftest.$ac_objext | |
13082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13083 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13084 | ac_status=$? |
ac1cb8d3 VS |
13085 | grep -v '^ *+' conftest.er1 >conftest.err |
13086 | rm -f conftest.er1 | |
13087 | cat conftest.err >&5 | |
a848cd7e SC |
13088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13089 | (exit $ac_status); } && | |
2cbbc68d RD |
13090 | { ac_try='test -z "$ac_c_werror_flag" |
13091 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13093 | (eval $ac_try) 2>&5 | |
13094 | ac_status=$? | |
13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13096 | (exit $ac_status); }; } && | |
13097 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13099 | (eval $ac_try) 2>&5 | |
13100 | ac_status=$? | |
13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13102 | (exit $ac_status); }; }; then | |
13103 | ac_header_compiler=yes | |
13104 | else | |
13105 | echo "$as_me: failed program was:" >&5 | |
13106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13107 | ||
13108 | ac_header_compiler=no | |
13109 | fi | |
ac1cb8d3 | 13110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13111 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13112 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13113 | ||
13114 | # Is the header present? | |
13115 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13116 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13117 | cat >conftest.$ac_ext <<_ACEOF | |
13118 | /* confdefs.h. */ | |
13119 | _ACEOF | |
13120 | cat confdefs.h >>conftest.$ac_ext | |
13121 | cat >>conftest.$ac_ext <<_ACEOF | |
13122 | /* end confdefs.h. */ | |
13123 | #include <$ac_header> | |
13124 | _ACEOF | |
13125 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13126 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13127 | ac_status=$? | |
13128 | grep -v '^ *+' conftest.er1 >conftest.err | |
13129 | rm -f conftest.er1 | |
13130 | cat conftest.err >&5 | |
13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13132 | (exit $ac_status); } >/dev/null; then | |
13133 | if test -s conftest.err; then | |
13134 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13135 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13136 | else |
13137 | ac_cpp_err= | |
13138 | fi | |
13139 | else | |
13140 | ac_cpp_err=yes | |
13141 | fi | |
13142 | if test -z "$ac_cpp_err"; then | |
13143 | ac_header_preproc=yes | |
13144 | else | |
13145 | echo "$as_me: failed program was:" >&5 | |
13146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13147 | ||
13148 | ac_header_preproc=no | |
13149 | fi | |
13150 | rm -f conftest.err conftest.$ac_ext | |
13151 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13152 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13153 | ||
13154 | # So? What about this header? | |
ac1cb8d3 VS |
13155 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13156 | yes:no: ) | |
a848cd7e SC |
13157 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13158 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13160 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13161 | ac_header_preproc=yes | |
a848cd7e | 13162 | ;; |
ac1cb8d3 | 13163 | no:yes:* ) |
a848cd7e SC |
13164 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13165 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13166 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13167 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13168 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13169 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13170 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13171 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13173 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13174 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13175 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13176 | ( |
13177 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13178 | ## ----------------------------------------- ## |
13179 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13180 | ## ----------------------------------------- ## | |
a848cd7e SC |
13181 | _ASBOX |
13182 | ) | | |
13183 | sed "s/^/$as_me: WARNING: /" >&2 | |
13184 | ;; | |
13185 | esac | |
13186 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13190 | else | |
ac1cb8d3 | 13191 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13192 | fi |
13193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13194 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13195 | ||
13196 | fi | |
13197 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13198 | cat >>confdefs.h <<_ACEOF | |
13199 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13200 | _ACEOF | |
13201 | ||
13202 | fi | |
13203 | ||
13204 | done | |
13205 | ||
13206 | ||
13207 | for ac_header in unistd.h | |
13208 | do | |
13209 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13210 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13211 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13212 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13213 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13215 | fi | |
13216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13218 | else | |
13219 | # Is the header compilable? | |
13220 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13221 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13222 | cat >conftest.$ac_ext <<_ACEOF | |
13223 | /* confdefs.h. */ | |
13224 | _ACEOF | |
13225 | cat confdefs.h >>conftest.$ac_ext | |
13226 | cat >>conftest.$ac_ext <<_ACEOF | |
13227 | /* end confdefs.h. */ | |
13228 | $ac_includes_default | |
13229 | #include <$ac_header> | |
13230 | _ACEOF | |
13231 | rm -f conftest.$ac_objext | |
13232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13233 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13234 | ac_status=$? |
ac1cb8d3 VS |
13235 | grep -v '^ *+' conftest.er1 >conftest.err |
13236 | rm -f conftest.er1 | |
13237 | cat conftest.err >&5 | |
a848cd7e SC |
13238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13239 | (exit $ac_status); } && | |
2cbbc68d RD |
13240 | { ac_try='test -z "$ac_c_werror_flag" |
13241 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13243 | (eval $ac_try) 2>&5 | |
13244 | ac_status=$? | |
13245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13246 | (exit $ac_status); }; } && | |
13247 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13249 | (eval $ac_try) 2>&5 | |
13250 | ac_status=$? | |
13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13252 | (exit $ac_status); }; }; then | |
13253 | ac_header_compiler=yes | |
13254 | else | |
13255 | echo "$as_me: failed program was:" >&5 | |
13256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13257 | ||
13258 | ac_header_compiler=no | |
13259 | fi | |
ac1cb8d3 | 13260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13261 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13262 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13263 | ||
13264 | # Is the header present? | |
13265 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13266 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13267 | cat >conftest.$ac_ext <<_ACEOF | |
13268 | /* confdefs.h. */ | |
13269 | _ACEOF | |
13270 | cat confdefs.h >>conftest.$ac_ext | |
13271 | cat >>conftest.$ac_ext <<_ACEOF | |
13272 | /* end confdefs.h. */ | |
13273 | #include <$ac_header> | |
13274 | _ACEOF | |
13275 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13276 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13277 | ac_status=$? | |
13278 | grep -v '^ *+' conftest.er1 >conftest.err | |
13279 | rm -f conftest.er1 | |
13280 | cat conftest.err >&5 | |
13281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13282 | (exit $ac_status); } >/dev/null; then | |
13283 | if test -s conftest.err; then | |
13284 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13285 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13286 | else |
13287 | ac_cpp_err= | |
13288 | fi | |
13289 | else | |
13290 | ac_cpp_err=yes | |
13291 | fi | |
13292 | if test -z "$ac_cpp_err"; then | |
13293 | ac_header_preproc=yes | |
13294 | else | |
13295 | echo "$as_me: failed program was:" >&5 | |
13296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13297 | ||
13298 | ac_header_preproc=no | |
13299 | fi | |
13300 | rm -f conftest.err conftest.$ac_ext | |
13301 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13302 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13303 | ||
13304 | # So? What about this header? | |
ac1cb8d3 VS |
13305 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13306 | yes:no: ) | |
a848cd7e SC |
13307 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13308 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13309 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13310 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13311 | ac_header_preproc=yes | |
a848cd7e | 13312 | ;; |
ac1cb8d3 | 13313 | no:yes:* ) |
a848cd7e SC |
13314 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13315 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13316 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13317 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13318 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13319 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13320 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13321 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13322 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13323 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13324 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13325 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13326 | ( |
13327 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13328 | ## ----------------------------------------- ## |
13329 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13330 | ## ----------------------------------------- ## | |
a848cd7e SC |
13331 | _ASBOX |
13332 | ) | | |
13333 | sed "s/^/$as_me: WARNING: /" >&2 | |
13334 | ;; | |
13335 | esac | |
13336 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13337 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13338 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13340 | else | |
ac1cb8d3 | 13341 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13342 | fi |
13343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13344 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13345 | ||
13346 | fi | |
13347 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13348 | cat >>confdefs.h <<_ACEOF | |
13349 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13350 | _ACEOF | |
13351 | ||
13352 | fi | |
13353 | ||
13354 | done | |
13355 | ||
13356 | ||
13357 | for ac_header in wchar.h | |
13358 | do | |
13359 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13365 | fi | |
13366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13367 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13368 | else | |
13369 | # Is the header compilable? | |
13370 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13371 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13372 | cat >conftest.$ac_ext <<_ACEOF | |
13373 | /* confdefs.h. */ | |
13374 | _ACEOF | |
13375 | cat confdefs.h >>conftest.$ac_ext | |
13376 | cat >>conftest.$ac_ext <<_ACEOF | |
13377 | /* end confdefs.h. */ | |
13378 | $ac_includes_default | |
13379 | #include <$ac_header> | |
13380 | _ACEOF | |
13381 | rm -f conftest.$ac_objext | |
13382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13383 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13384 | ac_status=$? |
ac1cb8d3 VS |
13385 | grep -v '^ *+' conftest.er1 >conftest.err |
13386 | rm -f conftest.er1 | |
13387 | cat conftest.err >&5 | |
a848cd7e SC |
13388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13389 | (exit $ac_status); } && | |
2cbbc68d RD |
13390 | { ac_try='test -z "$ac_c_werror_flag" |
13391 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13393 | (eval $ac_try) 2>&5 | |
13394 | ac_status=$? | |
13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13396 | (exit $ac_status); }; } && | |
13397 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13399 | (eval $ac_try) 2>&5 | |
13400 | ac_status=$? | |
13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13402 | (exit $ac_status); }; }; then | |
13403 | ac_header_compiler=yes | |
13404 | else | |
13405 | echo "$as_me: failed program was:" >&5 | |
13406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13407 | ||
13408 | ac_header_compiler=no | |
13409 | fi | |
ac1cb8d3 | 13410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13411 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13412 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13413 | ||
13414 | # Is the header present? | |
13415 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13416 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13417 | cat >conftest.$ac_ext <<_ACEOF | |
13418 | /* confdefs.h. */ | |
13419 | _ACEOF | |
13420 | cat confdefs.h >>conftest.$ac_ext | |
13421 | cat >>conftest.$ac_ext <<_ACEOF | |
13422 | /* end confdefs.h. */ | |
13423 | #include <$ac_header> | |
13424 | _ACEOF | |
13425 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13426 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13427 | ac_status=$? | |
13428 | grep -v '^ *+' conftest.er1 >conftest.err | |
13429 | rm -f conftest.er1 | |
13430 | cat conftest.err >&5 | |
13431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13432 | (exit $ac_status); } >/dev/null; then | |
13433 | if test -s conftest.err; then | |
13434 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13435 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13436 | else |
13437 | ac_cpp_err= | |
13438 | fi | |
13439 | else | |
13440 | ac_cpp_err=yes | |
13441 | fi | |
13442 | if test -z "$ac_cpp_err"; then | |
13443 | ac_header_preproc=yes | |
13444 | else | |
13445 | echo "$as_me: failed program was:" >&5 | |
13446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13447 | ||
13448 | ac_header_preproc=no | |
13449 | fi | |
13450 | rm -f conftest.err conftest.$ac_ext | |
13451 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13452 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13453 | ||
13454 | # So? What about this header? | |
ac1cb8d3 VS |
13455 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13456 | yes:no: ) | |
a848cd7e SC |
13457 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13458 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13460 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13461 | ac_header_preproc=yes | |
a848cd7e | 13462 | ;; |
ac1cb8d3 | 13463 | no:yes:* ) |
a848cd7e SC |
13464 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13465 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13466 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13467 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13468 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13469 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13470 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13471 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13473 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13474 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13475 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13476 | ( |
13477 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13478 | ## ----------------------------------------- ## |
13479 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13480 | ## ----------------------------------------- ## | |
a848cd7e SC |
13481 | _ASBOX |
13482 | ) | | |
13483 | sed "s/^/$as_me: WARNING: /" >&2 | |
13484 | ;; | |
13485 | esac | |
13486 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13490 | else | |
ac1cb8d3 | 13491 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13492 | fi |
13493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13494 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13495 | ||
13496 | fi | |
13497 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13498 | cat >>confdefs.h <<_ACEOF | |
13499 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13500 | _ACEOF | |
13501 | ||
13502 | fi | |
13503 | ||
13504 | done | |
13505 | ||
13506 | ||
13507 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13508 | ||
13509 | for ac_header in wcstr.h | |
13510 | do | |
13511 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13517 | fi | |
13518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13520 | else | |
13521 | # Is the header compilable? | |
13522 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13523 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13524 | cat >conftest.$ac_ext <<_ACEOF | |
13525 | /* confdefs.h. */ | |
13526 | _ACEOF | |
13527 | cat confdefs.h >>conftest.$ac_ext | |
13528 | cat >>conftest.$ac_ext <<_ACEOF | |
13529 | /* end confdefs.h. */ | |
13530 | $ac_includes_default | |
13531 | #include <$ac_header> | |
13532 | _ACEOF | |
13533 | rm -f conftest.$ac_objext | |
13534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13535 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13536 | ac_status=$? |
ac1cb8d3 VS |
13537 | grep -v '^ *+' conftest.er1 >conftest.err |
13538 | rm -f conftest.er1 | |
13539 | cat conftest.err >&5 | |
a848cd7e SC |
13540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13541 | (exit $ac_status); } && | |
2cbbc68d RD |
13542 | { ac_try='test -z "$ac_c_werror_flag" |
13543 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13545 | (eval $ac_try) 2>&5 | |
13546 | ac_status=$? | |
13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13548 | (exit $ac_status); }; } && | |
13549 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13551 | (eval $ac_try) 2>&5 | |
13552 | ac_status=$? | |
13553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13554 | (exit $ac_status); }; }; then | |
13555 | ac_header_compiler=yes | |
13556 | else | |
13557 | echo "$as_me: failed program was:" >&5 | |
13558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13559 | ||
13560 | ac_header_compiler=no | |
13561 | fi | |
ac1cb8d3 | 13562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13563 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13564 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13565 | ||
13566 | # Is the header present? | |
13567 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13568 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13569 | cat >conftest.$ac_ext <<_ACEOF | |
13570 | /* confdefs.h. */ | |
13571 | _ACEOF | |
13572 | cat confdefs.h >>conftest.$ac_ext | |
13573 | cat >>conftest.$ac_ext <<_ACEOF | |
13574 | /* end confdefs.h. */ | |
13575 | #include <$ac_header> | |
13576 | _ACEOF | |
13577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13579 | ac_status=$? | |
13580 | grep -v '^ *+' conftest.er1 >conftest.err | |
13581 | rm -f conftest.er1 | |
13582 | cat conftest.err >&5 | |
13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13584 | (exit $ac_status); } >/dev/null; then | |
13585 | if test -s conftest.err; then | |
13586 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13587 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13588 | else |
13589 | ac_cpp_err= | |
13590 | fi | |
13591 | else | |
13592 | ac_cpp_err=yes | |
13593 | fi | |
13594 | if test -z "$ac_cpp_err"; then | |
13595 | ac_header_preproc=yes | |
13596 | else | |
13597 | echo "$as_me: failed program was:" >&5 | |
13598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13599 | ||
13600 | ac_header_preproc=no | |
13601 | fi | |
13602 | rm -f conftest.err conftest.$ac_ext | |
13603 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13604 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13605 | ||
13606 | # So? What about this header? | |
ac1cb8d3 VS |
13607 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13608 | yes:no: ) | |
a848cd7e SC |
13609 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13610 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13612 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13613 | ac_header_preproc=yes | |
a848cd7e | 13614 | ;; |
ac1cb8d3 | 13615 | no:yes:* ) |
a848cd7e SC |
13616 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13617 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13618 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13619 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13620 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13621 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13622 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13623 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13625 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13626 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13627 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13628 | ( |
13629 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13630 | ## ----------------------------------------- ## |
13631 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13632 | ## ----------------------------------------- ## | |
a848cd7e SC |
13633 | _ASBOX |
13634 | ) | | |
13635 | sed "s/^/$as_me: WARNING: /" >&2 | |
13636 | ;; | |
13637 | esac | |
13638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13642 | else | |
ac1cb8d3 | 13643 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13644 | fi |
13645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13647 | ||
13648 | fi | |
13649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13650 | cat >>confdefs.h <<_ACEOF | |
13651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13652 | _ACEOF | |
13653 | ||
13654 | fi | |
13655 | ||
13656 | done | |
13657 | ||
13658 | fi | |
13659 | ||
13660 | ||
13661 | for ac_header in fnmatch.h | |
13662 | do | |
13663 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13665 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13666 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13667 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13669 | fi | |
13670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13672 | else | |
13673 | # Is the header compilable? | |
13674 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13675 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13676 | cat >conftest.$ac_ext <<_ACEOF | |
13677 | /* confdefs.h. */ | |
13678 | _ACEOF | |
13679 | cat confdefs.h >>conftest.$ac_ext | |
13680 | cat >>conftest.$ac_ext <<_ACEOF | |
13681 | /* end confdefs.h. */ | |
13682 | $ac_includes_default | |
13683 | #include <$ac_header> | |
13684 | _ACEOF | |
13685 | rm -f conftest.$ac_objext | |
13686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13687 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13688 | ac_status=$? |
ac1cb8d3 VS |
13689 | grep -v '^ *+' conftest.er1 >conftest.err |
13690 | rm -f conftest.er1 | |
13691 | cat conftest.err >&5 | |
a848cd7e SC |
13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13693 | (exit $ac_status); } && | |
2cbbc68d RD |
13694 | { ac_try='test -z "$ac_c_werror_flag" |
13695 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13697 | (eval $ac_try) 2>&5 | |
13698 | ac_status=$? | |
13699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13700 | (exit $ac_status); }; } && | |
13701 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13703 | (eval $ac_try) 2>&5 | |
13704 | ac_status=$? | |
13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13706 | (exit $ac_status); }; }; then | |
13707 | ac_header_compiler=yes | |
13708 | else | |
13709 | echo "$as_me: failed program was:" >&5 | |
13710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13711 | ||
13712 | ac_header_compiler=no | |
13713 | fi | |
ac1cb8d3 | 13714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13715 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13716 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13717 | ||
13718 | # Is the header present? | |
13719 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13720 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13721 | cat >conftest.$ac_ext <<_ACEOF | |
13722 | /* confdefs.h. */ | |
13723 | _ACEOF | |
13724 | cat confdefs.h >>conftest.$ac_ext | |
13725 | cat >>conftest.$ac_ext <<_ACEOF | |
13726 | /* end confdefs.h. */ | |
13727 | #include <$ac_header> | |
13728 | _ACEOF | |
13729 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13730 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13731 | ac_status=$? | |
13732 | grep -v '^ *+' conftest.er1 >conftest.err | |
13733 | rm -f conftest.er1 | |
13734 | cat conftest.err >&5 | |
13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13736 | (exit $ac_status); } >/dev/null; then | |
13737 | if test -s conftest.err; then | |
13738 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13739 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13740 | else |
13741 | ac_cpp_err= | |
13742 | fi | |
13743 | else | |
13744 | ac_cpp_err=yes | |
13745 | fi | |
13746 | if test -z "$ac_cpp_err"; then | |
13747 | ac_header_preproc=yes | |
13748 | else | |
13749 | echo "$as_me: failed program was:" >&5 | |
13750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13751 | ||
13752 | ac_header_preproc=no | |
13753 | fi | |
13754 | rm -f conftest.err conftest.$ac_ext | |
13755 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13756 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13757 | ||
13758 | # So? What about this header? | |
ac1cb8d3 VS |
13759 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13760 | yes:no: ) | |
a848cd7e SC |
13761 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13762 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13763 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13764 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13765 | ac_header_preproc=yes | |
a848cd7e | 13766 | ;; |
ac1cb8d3 | 13767 | no:yes:* ) |
a848cd7e SC |
13768 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13769 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13770 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13771 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13772 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13773 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13774 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13775 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13776 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13777 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13778 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13779 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13780 | ( |
13781 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13782 | ## ----------------------------------------- ## |
13783 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13784 | ## ----------------------------------------- ## | |
a848cd7e SC |
13785 | _ASBOX |
13786 | ) | | |
13787 | sed "s/^/$as_me: WARNING: /" >&2 | |
13788 | ;; | |
13789 | esac | |
13790 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13794 | else | |
ac1cb8d3 | 13795 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13796 | fi |
13797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13799 | ||
13800 | fi | |
13801 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13802 | cat >>confdefs.h <<_ACEOF | |
13803 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13804 | _ACEOF | |
13805 | ||
13806 | fi | |
13807 | ||
13808 | done | |
13809 | ||
13810 | ||
13811 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13812 | ||
13813 | for ac_func in fnmatch | |
13814 | do | |
13815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13816 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13818 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13820 | else | |
13821 | cat >conftest.$ac_ext <<_ACEOF | |
13822 | /* confdefs.h. */ | |
13823 | _ACEOF | |
13824 | cat confdefs.h >>conftest.$ac_ext | |
13825 | cat >>conftest.$ac_ext <<_ACEOF | |
13826 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13829 | #define $ac_func innocuous_$ac_func | |
13830 | ||
a848cd7e SC |
13831 | /* System header to define __stub macros and hopefully few prototypes, |
13832 | which can conflict with char $ac_func (); below. | |
13833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13834 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13835 | |
a848cd7e SC |
13836 | #ifdef __STDC__ |
13837 | # include <limits.h> | |
13838 | #else | |
13839 | # include <assert.h> | |
13840 | #endif | |
ac1cb8d3 VS |
13841 | |
13842 | #undef $ac_func | |
13843 | ||
a848cd7e SC |
13844 | /* Override any gcc2 internal prototype to avoid an error. */ |
13845 | #ifdef __cplusplus | |
13846 | extern "C" | |
13847 | { | |
13848 | #endif | |
13849 | /* We use char because int might match the return type of a gcc2 | |
13850 | builtin and then its argument prototype would still apply. */ | |
13851 | char $ac_func (); | |
13852 | /* The GNU C library defines this for functions which it implements | |
13853 | to always fail with ENOSYS. Some functions are actually named | |
13854 | something starting with __ and the normal name is an alias. */ | |
13855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13856 | choke me | |
13857 | #else | |
13858 | char (*f) () = $ac_func; | |
13859 | #endif | |
13860 | #ifdef __cplusplus | |
13861 | } | |
13862 | #endif | |
13863 | ||
13864 | int | |
13865 | main () | |
13866 | { | |
13867 | return f != $ac_func; | |
13868 | ; | |
13869 | return 0; | |
13870 | } | |
13871 | _ACEOF | |
13872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13874 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13875 | ac_status=$? |
ac1cb8d3 VS |
13876 | grep -v '^ *+' conftest.er1 >conftest.err |
13877 | rm -f conftest.er1 | |
13878 | cat conftest.err >&5 | |
a848cd7e SC |
13879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13880 | (exit $ac_status); } && | |
2cbbc68d RD |
13881 | { ac_try='test -z "$ac_c_werror_flag" |
13882 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13884 | (eval $ac_try) 2>&5 | |
13885 | ac_status=$? | |
13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13887 | (exit $ac_status); }; } && | |
13888 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13890 | (eval $ac_try) 2>&5 | |
13891 | ac_status=$? | |
13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13893 | (exit $ac_status); }; }; then | |
13894 | eval "$as_ac_var=yes" | |
13895 | else | |
13896 | echo "$as_me: failed program was:" >&5 | |
13897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13898 | ||
13899 | eval "$as_ac_var=no" | |
13900 | fi | |
ac1cb8d3 VS |
13901 | rm -f conftest.err conftest.$ac_objext \ |
13902 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13903 | fi |
13904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13905 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13906 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13907 | cat >>confdefs.h <<_ACEOF | |
13908 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13909 | _ACEOF | |
13910 | ||
13911 | fi | |
13912 | done | |
13913 | ||
13914 | fi | |
13915 | ||
13916 | ||
13917 | for ac_header in langinfo.h | |
13918 | do | |
13919 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13921 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13925 | fi | |
13926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13928 | else | |
13929 | # Is the header compilable? | |
13930 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13931 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13932 | cat >conftest.$ac_ext <<_ACEOF | |
13933 | /* confdefs.h. */ | |
13934 | _ACEOF | |
13935 | cat confdefs.h >>conftest.$ac_ext | |
13936 | cat >>conftest.$ac_ext <<_ACEOF | |
13937 | /* end confdefs.h. */ | |
13938 | $ac_includes_default | |
13939 | #include <$ac_header> | |
13940 | _ACEOF | |
13941 | rm -f conftest.$ac_objext | |
13942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13943 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13944 | ac_status=$? |
ac1cb8d3 VS |
13945 | grep -v '^ *+' conftest.er1 >conftest.err |
13946 | rm -f conftest.er1 | |
13947 | cat conftest.err >&5 | |
a848cd7e SC |
13948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13949 | (exit $ac_status); } && | |
2cbbc68d RD |
13950 | { ac_try='test -z "$ac_c_werror_flag" |
13951 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13953 | (eval $ac_try) 2>&5 | |
13954 | ac_status=$? | |
13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13956 | (exit $ac_status); }; } && | |
13957 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13959 | (eval $ac_try) 2>&5 | |
13960 | ac_status=$? | |
13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13962 | (exit $ac_status); }; }; then | |
13963 | ac_header_compiler=yes | |
13964 | else | |
13965 | echo "$as_me: failed program was:" >&5 | |
13966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13967 | ||
13968 | ac_header_compiler=no | |
13969 | fi | |
ac1cb8d3 | 13970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13971 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13972 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13973 | ||
13974 | # Is the header present? | |
13975 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13976 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13977 | cat >conftest.$ac_ext <<_ACEOF | |
13978 | /* confdefs.h. */ | |
13979 | _ACEOF | |
13980 | cat confdefs.h >>conftest.$ac_ext | |
13981 | cat >>conftest.$ac_ext <<_ACEOF | |
13982 | /* end confdefs.h. */ | |
13983 | #include <$ac_header> | |
13984 | _ACEOF | |
13985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13987 | ac_status=$? | |
13988 | grep -v '^ *+' conftest.er1 >conftest.err | |
13989 | rm -f conftest.er1 | |
13990 | cat conftest.err >&5 | |
13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13992 | (exit $ac_status); } >/dev/null; then | |
13993 | if test -s conftest.err; then | |
13994 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13995 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13996 | else |
13997 | ac_cpp_err= | |
13998 | fi | |
13999 | else | |
14000 | ac_cpp_err=yes | |
14001 | fi | |
14002 | if test -z "$ac_cpp_err"; then | |
14003 | ac_header_preproc=yes | |
14004 | else | |
14005 | echo "$as_me: failed program was:" >&5 | |
14006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14007 | ||
14008 | ac_header_preproc=no | |
14009 | fi | |
14010 | rm -f conftest.err conftest.$ac_ext | |
14011 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14012 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14013 | ||
14014 | # So? What about this header? | |
ac1cb8d3 VS |
14015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14016 | yes:no: ) | |
a848cd7e SC |
14017 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14018 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14019 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14020 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14021 | ac_header_preproc=yes | |
a848cd7e | 14022 | ;; |
ac1cb8d3 | 14023 | no:yes:* ) |
a848cd7e SC |
14024 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14025 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14026 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14027 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14028 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14029 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14030 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14031 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14032 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14033 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14034 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14035 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14036 | ( |
14037 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14038 | ## ----------------------------------------- ## |
14039 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14040 | ## ----------------------------------------- ## | |
a848cd7e SC |
14041 | _ASBOX |
14042 | ) | | |
14043 | sed "s/^/$as_me: WARNING: /" >&2 | |
14044 | ;; | |
14045 | esac | |
14046 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14047 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14050 | else | |
ac1cb8d3 | 14051 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14052 | fi |
14053 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14054 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14055 | ||
14056 | fi | |
14057 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14058 | cat >>confdefs.h <<_ACEOF | |
14059 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14060 | _ACEOF | |
14061 | ||
14062 | fi | |
14063 | ||
14064 | done | |
14065 | ||
14066 | ||
14067 | case "${host}" in | |
14068 | *-pc-os2_emx | *-pc-os2-emx ) | |
14069 | if test $ac_cv_header_langinfo_h = "yes"; then | |
14070 | LIBS="$LIBS -lintl" | |
14071 | fi | |
14072 | ;; | |
14073 | esac | |
14074 | ||
14075 | if test "$wxUSE_GUI" = "yes"; then | |
14076 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14077 | ||
14078 | for ac_header in X11/Xlib.h | |
14079 | do | |
14080 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14086 | fi | |
14087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14088 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14089 | else | |
14090 | # Is the header compilable? | |
14091 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14092 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14093 | cat >conftest.$ac_ext <<_ACEOF | |
14094 | /* confdefs.h. */ | |
14095 | _ACEOF | |
14096 | cat confdefs.h >>conftest.$ac_ext | |
14097 | cat >>conftest.$ac_ext <<_ACEOF | |
14098 | /* end confdefs.h. */ | |
14099 | $ac_includes_default | |
14100 | #include <$ac_header> | |
14101 | _ACEOF | |
14102 | rm -f conftest.$ac_objext | |
14103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14104 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14105 | ac_status=$? |
ac1cb8d3 VS |
14106 | grep -v '^ *+' conftest.er1 >conftest.err |
14107 | rm -f conftest.er1 | |
14108 | cat conftest.err >&5 | |
a848cd7e SC |
14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14110 | (exit $ac_status); } && | |
2cbbc68d RD |
14111 | { ac_try='test -z "$ac_c_werror_flag" |
14112 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14114 | (eval $ac_try) 2>&5 | |
14115 | ac_status=$? | |
14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14117 | (exit $ac_status); }; } && | |
14118 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14120 | (eval $ac_try) 2>&5 | |
14121 | ac_status=$? | |
14122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14123 | (exit $ac_status); }; }; then | |
14124 | ac_header_compiler=yes | |
14125 | else | |
14126 | echo "$as_me: failed program was:" >&5 | |
14127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14128 | ||
14129 | ac_header_compiler=no | |
14130 | fi | |
ac1cb8d3 | 14131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14132 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14133 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14134 | ||
14135 | # Is the header present? | |
14136 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14137 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14138 | cat >conftest.$ac_ext <<_ACEOF | |
14139 | /* confdefs.h. */ | |
14140 | _ACEOF | |
14141 | cat confdefs.h >>conftest.$ac_ext | |
14142 | cat >>conftest.$ac_ext <<_ACEOF | |
14143 | /* end confdefs.h. */ | |
14144 | #include <$ac_header> | |
14145 | _ACEOF | |
14146 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14147 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14148 | ac_status=$? | |
14149 | grep -v '^ *+' conftest.er1 >conftest.err | |
14150 | rm -f conftest.er1 | |
14151 | cat conftest.err >&5 | |
14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14153 | (exit $ac_status); } >/dev/null; then | |
14154 | if test -s conftest.err; then | |
14155 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14156 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14157 | else |
14158 | ac_cpp_err= | |
14159 | fi | |
14160 | else | |
14161 | ac_cpp_err=yes | |
14162 | fi | |
14163 | if test -z "$ac_cpp_err"; then | |
14164 | ac_header_preproc=yes | |
14165 | else | |
14166 | echo "$as_me: failed program was:" >&5 | |
14167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14168 | ||
14169 | ac_header_preproc=no | |
14170 | fi | |
14171 | rm -f conftest.err conftest.$ac_ext | |
14172 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14173 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14174 | ||
14175 | # So? What about this header? | |
ac1cb8d3 VS |
14176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14177 | yes:no: ) | |
a848cd7e SC |
14178 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14179 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14181 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14182 | ac_header_preproc=yes | |
a848cd7e | 14183 | ;; |
ac1cb8d3 | 14184 | no:yes:* ) |
a848cd7e SC |
14185 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14186 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14187 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14188 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14189 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14190 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14191 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14192 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14195 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14196 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14197 | ( |
14198 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14199 | ## ----------------------------------------- ## |
14200 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14201 | ## ----------------------------------------- ## | |
a848cd7e SC |
14202 | _ASBOX |
14203 | ) | | |
14204 | sed "s/^/$as_me: WARNING: /" >&2 | |
14205 | ;; | |
14206 | esac | |
14207 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14211 | else | |
ac1cb8d3 | 14212 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14213 | fi |
14214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14216 | ||
14217 | fi | |
14218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14219 | cat >>confdefs.h <<_ACEOF | |
14220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14221 | _ACEOF | |
14222 | ||
14223 | fi | |
14224 | ||
14225 | done | |
14226 | ||
14227 | ||
14228 | for ac_header in X11/XKBlib.h | |
14229 | do | |
14230 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14231 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
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 | #if HAVE_X11_XLIB_H | |
14244 | #include <X11/Xlib.h> | |
14245 | #endif | |
14246 | ||
14247 | ||
14248 | #include <$ac_header> | |
14249 | _ACEOF | |
14250 | rm -f conftest.$ac_objext | |
14251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14252 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14253 | ac_status=$? |
ac1cb8d3 VS |
14254 | grep -v '^ *+' conftest.er1 >conftest.err |
14255 | rm -f conftest.er1 | |
14256 | cat conftest.err >&5 | |
a848cd7e SC |
14257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14258 | (exit $ac_status); } && | |
2cbbc68d RD |
14259 | { ac_try='test -z "$ac_c_werror_flag" |
14260 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14262 | (eval $ac_try) 2>&5 | |
14263 | ac_status=$? | |
14264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14265 | (exit $ac_status); }; } && | |
14266 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14268 | (eval $ac_try) 2>&5 | |
14269 | ac_status=$? | |
14270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14271 | (exit $ac_status); }; }; then | |
14272 | eval "$as_ac_Header=yes" | |
14273 | else | |
14274 | echo "$as_me: failed program was:" >&5 | |
14275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14276 | ||
14277 | eval "$as_ac_Header=no" | |
14278 | fi | |
ac1cb8d3 | 14279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14280 | fi |
14281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14283 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14284 | cat >>confdefs.h <<_ACEOF | |
14285 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14286 | _ACEOF | |
14287 | ||
14288 | fi | |
14289 | ||
14290 | done | |
14291 | ||
14292 | fi | |
14293 | fi | |
14294 | ||
14295 | ||
14296 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14297 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14298 | if test "${ac_cv_c_const+set}" = set; then | |
14299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14300 | else | |
14301 | cat >conftest.$ac_ext <<_ACEOF | |
14302 | /* confdefs.h. */ | |
14303 | _ACEOF | |
14304 | cat confdefs.h >>conftest.$ac_ext | |
14305 | cat >>conftest.$ac_ext <<_ACEOF | |
14306 | /* end confdefs.h. */ | |
14307 | ||
14308 | int | |
14309 | main () | |
14310 | { | |
14311 | /* FIXME: Include the comments suggested by Paul. */ | |
14312 | #ifndef __cplusplus | |
14313 | /* Ultrix mips cc rejects this. */ | |
14314 | typedef int charset[2]; | |
14315 | const charset x; | |
14316 | /* SunOS 4.1.1 cc rejects this. */ | |
14317 | char const *const *ccp; | |
14318 | char **p; | |
14319 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14320 | struct point {int x, y;}; | |
14321 | static struct point const zero = {0,0}; | |
14322 | /* AIX XL C 1.02.0.0 rejects this. | |
14323 | It does not let you subtract one const X* pointer from another in | |
14324 | an arm of an if-expression whose if-part is not a constant | |
14325 | expression */ | |
14326 | const char *g = "string"; | |
14327 | ccp = &g + (g ? g-g : 0); | |
14328 | /* HPUX 7.0 cc rejects these. */ | |
14329 | ++ccp; | |
14330 | p = (char**) ccp; | |
14331 | ccp = (char const *const *) p; | |
14332 | { /* SCO 3.2v4 cc rejects this. */ | |
14333 | char *t; | |
14334 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14335 | ||
14336 | *t++ = 0; | |
14337 | } | |
14338 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14339 | int x[] = {25, 17}; | |
14340 | const int *foo = &x[0]; | |
14341 | ++foo; | |
14342 | } | |
14343 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14344 | typedef const int *iptr; | |
14345 | iptr p = 0; | |
14346 | ++p; | |
14347 | } | |
14348 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14349 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14350 | struct s { int j; const int *ap[3]; }; | |
14351 | struct s *b; b->j = 5; | |
14352 | } | |
14353 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14354 | const int foo = 10; | |
14355 | } | |
14356 | #endif | |
14357 | ||
14358 | ; | |
14359 | return 0; | |
14360 | } | |
14361 | _ACEOF | |
14362 | rm -f conftest.$ac_objext | |
14363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14364 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14365 | ac_status=$? |
ac1cb8d3 VS |
14366 | grep -v '^ *+' conftest.er1 >conftest.err |
14367 | rm -f conftest.er1 | |
14368 | cat conftest.err >&5 | |
a848cd7e SC |
14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14370 | (exit $ac_status); } && | |
2cbbc68d RD |
14371 | { ac_try='test -z "$ac_c_werror_flag" |
14372 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14374 | (eval $ac_try) 2>&5 | |
14375 | ac_status=$? | |
14376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14377 | (exit $ac_status); }; } && | |
14378 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14380 | (eval $ac_try) 2>&5 | |
14381 | ac_status=$? | |
14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14383 | (exit $ac_status); }; }; then | |
14384 | ac_cv_c_const=yes | |
14385 | else | |
14386 | echo "$as_me: failed program was:" >&5 | |
14387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14388 | ||
14389 | ac_cv_c_const=no | |
14390 | fi | |
ac1cb8d3 | 14391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14392 | fi |
14393 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14394 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14395 | if test $ac_cv_c_const = no; then | |
14396 | ||
14397 | cat >>confdefs.h <<\_ACEOF | |
14398 | #define const | |
14399 | _ACEOF | |
14400 | ||
14401 | fi | |
14402 | ||
14403 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14404 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14405 | if test "${ac_cv_c_inline+set}" = set; then | |
14406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14407 | else | |
14408 | ac_cv_c_inline=no | |
14409 | for ac_kw in inline __inline__ __inline; do | |
14410 | cat >conftest.$ac_ext <<_ACEOF | |
14411 | /* confdefs.h. */ | |
14412 | _ACEOF | |
14413 | cat confdefs.h >>conftest.$ac_ext | |
14414 | cat >>conftest.$ac_ext <<_ACEOF | |
14415 | /* end confdefs.h. */ | |
14416 | #ifndef __cplusplus | |
14417 | typedef int foo_t; | |
14418 | static $ac_kw foo_t static_foo () {return 0; } | |
14419 | $ac_kw foo_t foo () {return 0; } | |
14420 | #endif | |
14421 | ||
14422 | _ACEOF | |
14423 | rm -f conftest.$ac_objext | |
14424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14425 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14426 | ac_status=$? |
ac1cb8d3 VS |
14427 | grep -v '^ *+' conftest.er1 >conftest.err |
14428 | rm -f conftest.er1 | |
14429 | cat conftest.err >&5 | |
a848cd7e SC |
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14431 | (exit $ac_status); } && | |
2cbbc68d RD |
14432 | { ac_try='test -z "$ac_c_werror_flag" |
14433 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14435 | (eval $ac_try) 2>&5 | |
14436 | ac_status=$? | |
14437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14438 | (exit $ac_status); }; } && | |
14439 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14441 | (eval $ac_try) 2>&5 | |
14442 | ac_status=$? | |
14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14444 | (exit $ac_status); }; }; then | |
14445 | ac_cv_c_inline=$ac_kw; break | |
14446 | else | |
14447 | echo "$as_me: failed program was:" >&5 | |
14448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14449 | ||
14450 | fi | |
ac1cb8d3 | 14451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14452 | done |
14453 | ||
14454 | fi | |
14455 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14456 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14457 | |
14458 | ||
a848cd7e SC |
14459 | case $ac_cv_c_inline in |
14460 | inline | yes) ;; | |
ac1cb8d3 VS |
14461 | *) |
14462 | case $ac_cv_c_inline in | |
14463 | no) ac_val=;; | |
14464 | *) ac_val=$ac_cv_c_inline;; | |
14465 | esac | |
14466 | cat >>confdefs.h <<_ACEOF | |
14467 | #ifndef __cplusplus | |
14468 | #define inline $ac_val | |
14469 | #endif | |
de59c161 | 14470 | _ACEOF |
ac1cb8d3 | 14471 | ;; |
a848cd7e SC |
14472 | esac |
14473 | ||
14474 | ||
14475 | echo "$as_me:$LINENO: checking for char" >&5 | |
14476 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14477 | if test "${ac_cv_type_char+set}" = set; then | |
14478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14479 | else | |
14480 | cat >conftest.$ac_ext <<_ACEOF | |
14481 | /* confdefs.h. */ | |
14482 | _ACEOF | |
14483 | cat confdefs.h >>conftest.$ac_ext | |
14484 | cat >>conftest.$ac_ext <<_ACEOF | |
14485 | /* end confdefs.h. */ | |
14486 | $ac_includes_default | |
14487 | int | |
14488 | main () | |
14489 | { | |
14490 | if ((char *) 0) | |
14491 | return 0; | |
14492 | if (sizeof (char)) | |
14493 | return 0; | |
14494 | ; | |
14495 | return 0; | |
14496 | } | |
14497 | _ACEOF | |
14498 | rm -f conftest.$ac_objext | |
14499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14500 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14501 | ac_status=$? |
ac1cb8d3 VS |
14502 | grep -v '^ *+' conftest.er1 >conftest.err |
14503 | rm -f conftest.er1 | |
14504 | cat conftest.err >&5 | |
a848cd7e SC |
14505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14506 | (exit $ac_status); } && | |
2cbbc68d RD |
14507 | { ac_try='test -z "$ac_c_werror_flag" |
14508 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14510 | (eval $ac_try) 2>&5 | |
14511 | ac_status=$? | |
14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14513 | (exit $ac_status); }; } && | |
14514 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14516 | (eval $ac_try) 2>&5 | |
14517 | ac_status=$? | |
14518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14519 | (exit $ac_status); }; }; then | |
14520 | ac_cv_type_char=yes | |
14521 | else | |
14522 | echo "$as_me: failed program was:" >&5 | |
14523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14524 | ||
14525 | ac_cv_type_char=no | |
14526 | fi | |
ac1cb8d3 | 14527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14528 | fi |
14529 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14530 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14531 | ||
14532 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14533 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14534 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14536 | else | |
14537 | if test "$ac_cv_type_char" = yes; then | |
14538 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14539 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14540 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14541 | # This bug is HP SR number 8606223364. | |
14542 | if test "$cross_compiling" = yes; then | |
14543 | # Depending upon the size, compute the lo and hi bounds. | |
14544 | cat >conftest.$ac_ext <<_ACEOF | |
14545 | /* confdefs.h. */ | |
14546 | _ACEOF | |
14547 | cat confdefs.h >>conftest.$ac_ext | |
14548 | cat >>conftest.$ac_ext <<_ACEOF | |
14549 | /* end confdefs.h. */ | |
14550 | $ac_includes_default | |
14551 | int | |
14552 | main () | |
14553 | { | |
14554 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14555 | test_array [0] = 0 | |
14556 | ||
14557 | ; | |
14558 | return 0; | |
14559 | } | |
14560 | _ACEOF | |
14561 | rm -f conftest.$ac_objext | |
14562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14563 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14564 | ac_status=$? |
ac1cb8d3 VS |
14565 | grep -v '^ *+' conftest.er1 >conftest.err |
14566 | rm -f conftest.er1 | |
14567 | cat conftest.err >&5 | |
a848cd7e SC |
14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14569 | (exit $ac_status); } && | |
2cbbc68d RD |
14570 | { ac_try='test -z "$ac_c_werror_flag" |
14571 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14573 | (eval $ac_try) 2>&5 | |
14574 | ac_status=$? | |
14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14576 | (exit $ac_status); }; } && | |
14577 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14579 | (eval $ac_try) 2>&5 | |
14580 | ac_status=$? | |
14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14582 | (exit $ac_status); }; }; then | |
14583 | ac_lo=0 ac_mid=0 | |
14584 | while :; do | |
14585 | cat >conftest.$ac_ext <<_ACEOF | |
14586 | /* confdefs.h. */ | |
14587 | _ACEOF | |
14588 | cat confdefs.h >>conftest.$ac_ext | |
14589 | cat >>conftest.$ac_ext <<_ACEOF | |
14590 | /* end confdefs.h. */ | |
14591 | $ac_includes_default | |
14592 | int | |
14593 | main () | |
14594 | { | |
14595 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14596 | test_array [0] = 0 | |
14597 | ||
14598 | ; | |
14599 | return 0; | |
14600 | } | |
14601 | _ACEOF | |
14602 | rm -f conftest.$ac_objext | |
14603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14604 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14605 | ac_status=$? |
ac1cb8d3 VS |
14606 | grep -v '^ *+' conftest.er1 >conftest.err |
14607 | rm -f conftest.er1 | |
14608 | cat conftest.err >&5 | |
a848cd7e SC |
14609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14610 | (exit $ac_status); } && | |
2cbbc68d RD |
14611 | { ac_try='test -z "$ac_c_werror_flag" |
14612 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14614 | (eval $ac_try) 2>&5 | |
14615 | ac_status=$? | |
14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14617 | (exit $ac_status); }; } && | |
14618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14620 | (eval $ac_try) 2>&5 | |
14621 | ac_status=$? | |
14622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14623 | (exit $ac_status); }; }; then | |
14624 | ac_hi=$ac_mid; break | |
14625 | else | |
14626 | echo "$as_me: failed program was:" >&5 | |
14627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14628 | ||
14629 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14630 | if test $ac_lo -le $ac_mid; then |
14631 | ac_lo= ac_hi= | |
14632 | break | |
14633 | fi | |
14634 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14635 | fi |
ac1cb8d3 | 14636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14637 | done |
14638 | else | |
14639 | echo "$as_me: failed program was:" >&5 | |
14640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14641 | ||
14642 | cat >conftest.$ac_ext <<_ACEOF | |
14643 | /* confdefs.h. */ | |
14644 | _ACEOF | |
14645 | cat confdefs.h >>conftest.$ac_ext | |
14646 | cat >>conftest.$ac_ext <<_ACEOF | |
14647 | /* end confdefs.h. */ | |
14648 | $ac_includes_default | |
14649 | int | |
14650 | main () | |
14651 | { | |
14652 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14653 | test_array [0] = 0 | |
14654 | ||
14655 | ; | |
14656 | return 0; | |
14657 | } | |
14658 | _ACEOF | |
14659 | rm -f conftest.$ac_objext | |
14660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14661 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14662 | ac_status=$? |
ac1cb8d3 VS |
14663 | grep -v '^ *+' conftest.er1 >conftest.err |
14664 | rm -f conftest.er1 | |
14665 | cat conftest.err >&5 | |
a848cd7e SC |
14666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14667 | (exit $ac_status); } && | |
2cbbc68d RD |
14668 | { ac_try='test -z "$ac_c_werror_flag" |
14669 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14671 | (eval $ac_try) 2>&5 | |
14672 | ac_status=$? | |
14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14674 | (exit $ac_status); }; } && | |
14675 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14677 | (eval $ac_try) 2>&5 | |
14678 | ac_status=$? | |
14679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14680 | (exit $ac_status); }; }; then | |
14681 | ac_hi=-1 ac_mid=-1 | |
14682 | while :; do | |
14683 | cat >conftest.$ac_ext <<_ACEOF | |
14684 | /* confdefs.h. */ | |
14685 | _ACEOF | |
14686 | cat confdefs.h >>conftest.$ac_ext | |
14687 | cat >>conftest.$ac_ext <<_ACEOF | |
14688 | /* end confdefs.h. */ | |
14689 | $ac_includes_default | |
14690 | int | |
14691 | main () | |
14692 | { | |
14693 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14694 | test_array [0] = 0 | |
14695 | ||
14696 | ; | |
14697 | return 0; | |
14698 | } | |
14699 | _ACEOF | |
14700 | rm -f conftest.$ac_objext | |
14701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14702 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14703 | ac_status=$? |
ac1cb8d3 VS |
14704 | grep -v '^ *+' conftest.er1 >conftest.err |
14705 | rm -f conftest.er1 | |
14706 | cat conftest.err >&5 | |
a848cd7e SC |
14707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14708 | (exit $ac_status); } && | |
2cbbc68d RD |
14709 | { ac_try='test -z "$ac_c_werror_flag" |
14710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14712 | (eval $ac_try) 2>&5 | |
14713 | ac_status=$? | |
14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14715 | (exit $ac_status); }; } && | |
14716 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14718 | (eval $ac_try) 2>&5 | |
14719 | ac_status=$? | |
14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14721 | (exit $ac_status); }; }; then | |
14722 | ac_lo=$ac_mid; break | |
14723 | else | |
14724 | echo "$as_me: failed program was:" >&5 | |
14725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14726 | ||
14727 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14728 | if test $ac_mid -le $ac_hi; then |
14729 | ac_lo= ac_hi= | |
14730 | break | |
14731 | fi | |
14732 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14733 | fi |
ac1cb8d3 | 14734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14735 | done |
14736 | else | |
14737 | echo "$as_me: failed program was:" >&5 | |
14738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14739 | ||
14740 | ac_lo= ac_hi= | |
14741 | fi | |
ac1cb8d3 | 14742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14743 | fi |
ac1cb8d3 | 14744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14745 | # Binary search between lo and hi bounds. |
14746 | while test "x$ac_lo" != "x$ac_hi"; do | |
14747 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14748 | cat >conftest.$ac_ext <<_ACEOF | |
14749 | /* confdefs.h. */ | |
14750 | _ACEOF | |
14751 | cat confdefs.h >>conftest.$ac_ext | |
14752 | cat >>conftest.$ac_ext <<_ACEOF | |
14753 | /* end confdefs.h. */ | |
14754 | $ac_includes_default | |
14755 | int | |
14756 | main () | |
14757 | { | |
14758 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14759 | test_array [0] = 0 | |
14760 | ||
14761 | ; | |
14762 | return 0; | |
14763 | } | |
14764 | _ACEOF | |
14765 | rm -f conftest.$ac_objext | |
14766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14767 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14768 | ac_status=$? |
ac1cb8d3 VS |
14769 | grep -v '^ *+' conftest.er1 >conftest.err |
14770 | rm -f conftest.er1 | |
14771 | cat conftest.err >&5 | |
a848cd7e SC |
14772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14773 | (exit $ac_status); } && | |
2cbbc68d RD |
14774 | { ac_try='test -z "$ac_c_werror_flag" |
14775 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14777 | (eval $ac_try) 2>&5 | |
14778 | ac_status=$? | |
14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14780 | (exit $ac_status); }; } && | |
14781 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14783 | (eval $ac_try) 2>&5 | |
14784 | ac_status=$? | |
14785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14786 | (exit $ac_status); }; }; then | |
14787 | ac_hi=$ac_mid | |
14788 | else | |
14789 | echo "$as_me: failed program was:" >&5 | |
14790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14791 | ||
14792 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14793 | fi | |
ac1cb8d3 | 14794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14795 | done |
14796 | case $ac_lo in | |
14797 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14798 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14799 | See \`config.log' for more details." >&5 | |
14800 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14801 | See \`config.log' for more details." >&2;} | |
14802 | { (exit 1); exit 1; }; } ;; | |
14803 | esac | |
14804 | else | |
14805 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
14806 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
14807 | See \`config.log' for more details." >&5 | |
14808 | echo "$as_me: error: cannot run test program while cross compiling | |
14809 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
14810 | { (exit 1); exit 1; }; } |
14811 | else | |
14812 | cat >conftest.$ac_ext <<_ACEOF | |
14813 | /* confdefs.h. */ | |
14814 | _ACEOF | |
14815 | cat confdefs.h >>conftest.$ac_ext | |
14816 | cat >>conftest.$ac_ext <<_ACEOF | |
14817 | /* end confdefs.h. */ | |
14818 | $ac_includes_default | |
14819 | long longval () { return (long) (sizeof (char)); } | |
14820 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14821 | #include <stdio.h> | |
14822 | #include <stdlib.h> | |
14823 | int | |
14824 | main () | |
14825 | { | |
14826 | ||
14827 | FILE *f = fopen ("conftest.val", "w"); | |
14828 | if (! f) | |
14829 | exit (1); | |
14830 | if (((long) (sizeof (char))) < 0) | |
14831 | { | |
14832 | long i = longval (); | |
14833 | if (i != ((long) (sizeof (char)))) | |
14834 | exit (1); | |
14835 | fprintf (f, "%ld\n", i); | |
14836 | } | |
14837 | else | |
14838 | { | |
14839 | unsigned long i = ulongval (); | |
14840 | if (i != ((long) (sizeof (char)))) | |
14841 | exit (1); | |
14842 | fprintf (f, "%lu\n", i); | |
14843 | } | |
14844 | exit (ferror (f) || fclose (f) != 0); | |
14845 | ||
14846 | ; | |
14847 | return 0; | |
14848 | } | |
14849 | _ACEOF | |
14850 | rm -f conftest$ac_exeext | |
14851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14852 | (eval $ac_link) 2>&5 | |
14853 | ac_status=$? | |
14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14857 | (eval $ac_try) 2>&5 | |
14858 | ac_status=$? | |
14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14860 | (exit $ac_status); }; }; then | |
14861 | ac_cv_sizeof_char=`cat conftest.val` | |
14862 | else | |
14863 | echo "$as_me: program exited with status $ac_status" >&5 | |
14864 | echo "$as_me: failed program was:" >&5 | |
14865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14866 | ||
14867 | ( exit $ac_status ) | |
14868 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14869 | See \`config.log' for more details." >&5 | |
14870 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14871 | See \`config.log' for more details." >&2;} | |
14872 | { (exit 1); exit 1; }; } | |
14873 | fi | |
ac1cb8d3 | 14874 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14875 | fi |
14876 | fi | |
14877 | rm -f conftest.val | |
14878 | else | |
14879 | ac_cv_sizeof_char=0 | |
14880 | fi | |
14881 | fi | |
14882 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14883 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14884 | cat >>confdefs.h <<_ACEOF | |
14885 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14886 | _ACEOF | |
14887 | ||
14888 | ||
14889 | echo "$as_me:$LINENO: checking for short" >&5 | |
14890 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14891 | if test "${ac_cv_type_short+set}" = set; then | |
14892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14893 | else | |
14894 | cat >conftest.$ac_ext <<_ACEOF | |
14895 | /* confdefs.h. */ | |
14896 | _ACEOF | |
14897 | cat confdefs.h >>conftest.$ac_ext | |
14898 | cat >>conftest.$ac_ext <<_ACEOF | |
14899 | /* end confdefs.h. */ | |
14900 | $ac_includes_default | |
14901 | int | |
14902 | main () | |
14903 | { | |
14904 | if ((short *) 0) | |
14905 | return 0; | |
14906 | if (sizeof (short)) | |
14907 | return 0; | |
14908 | ; | |
14909 | return 0; | |
14910 | } | |
14911 | _ACEOF | |
14912 | rm -f conftest.$ac_objext | |
14913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14914 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14915 | ac_status=$? |
ac1cb8d3 VS |
14916 | grep -v '^ *+' conftest.er1 >conftest.err |
14917 | rm -f conftest.er1 | |
14918 | cat conftest.err >&5 | |
a848cd7e SC |
14919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14920 | (exit $ac_status); } && | |
2cbbc68d RD |
14921 | { ac_try='test -z "$ac_c_werror_flag" |
14922 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14924 | (eval $ac_try) 2>&5 | |
14925 | ac_status=$? | |
14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14927 | (exit $ac_status); }; } && | |
14928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14930 | (eval $ac_try) 2>&5 | |
14931 | ac_status=$? | |
14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14933 | (exit $ac_status); }; }; then | |
14934 | ac_cv_type_short=yes | |
14935 | else | |
14936 | echo "$as_me: failed program was:" >&5 | |
14937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14938 | ||
14939 | ac_cv_type_short=no | |
14940 | fi | |
ac1cb8d3 | 14941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14942 | fi |
14943 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14944 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14945 | ||
14946 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14947 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14948 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14950 | else | |
14951 | if test "$ac_cv_type_short" = yes; then | |
14952 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14953 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14954 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14955 | # This bug is HP SR number 8606223364. | |
14956 | if test "$cross_compiling" = yes; then | |
14957 | # Depending upon the size, compute the lo and hi bounds. | |
14958 | cat >conftest.$ac_ext <<_ACEOF | |
14959 | /* confdefs.h. */ | |
14960 | _ACEOF | |
14961 | cat confdefs.h >>conftest.$ac_ext | |
14962 | cat >>conftest.$ac_ext <<_ACEOF | |
14963 | /* end confdefs.h. */ | |
14964 | $ac_includes_default | |
14965 | int | |
14966 | main () | |
14967 | { | |
14968 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14969 | test_array [0] = 0 | |
14970 | ||
14971 | ; | |
14972 | return 0; | |
14973 | } | |
14974 | _ACEOF | |
14975 | rm -f conftest.$ac_objext | |
14976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14978 | ac_status=$? |
ac1cb8d3 VS |
14979 | grep -v '^ *+' conftest.er1 >conftest.err |
14980 | rm -f conftest.er1 | |
14981 | cat conftest.err >&5 | |
a848cd7e SC |
14982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14983 | (exit $ac_status); } && | |
2cbbc68d RD |
14984 | { ac_try='test -z "$ac_c_werror_flag" |
14985 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14987 | (eval $ac_try) 2>&5 | |
14988 | ac_status=$? | |
14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14990 | (exit $ac_status); }; } && | |
14991 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14993 | (eval $ac_try) 2>&5 | |
14994 | ac_status=$? | |
14995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14996 | (exit $ac_status); }; }; then | |
14997 | ac_lo=0 ac_mid=0 | |
14998 | while :; do | |
14999 | cat >conftest.$ac_ext <<_ACEOF | |
15000 | /* confdefs.h. */ | |
15001 | _ACEOF | |
15002 | cat confdefs.h >>conftest.$ac_ext | |
15003 | cat >>conftest.$ac_ext <<_ACEOF | |
15004 | /* end confdefs.h. */ | |
15005 | $ac_includes_default | |
15006 | int | |
15007 | main () | |
15008 | { | |
15009 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15010 | test_array [0] = 0 | |
15011 | ||
15012 | ; | |
15013 | return 0; | |
15014 | } | |
15015 | _ACEOF | |
15016 | rm -f conftest.$ac_objext | |
15017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15018 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15019 | ac_status=$? |
ac1cb8d3 VS |
15020 | grep -v '^ *+' conftest.er1 >conftest.err |
15021 | rm -f conftest.er1 | |
15022 | cat conftest.err >&5 | |
a848cd7e SC |
15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15024 | (exit $ac_status); } && | |
2cbbc68d RD |
15025 | { ac_try='test -z "$ac_c_werror_flag" |
15026 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15028 | (eval $ac_try) 2>&5 | |
15029 | ac_status=$? | |
15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15031 | (exit $ac_status); }; } && | |
15032 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15034 | (eval $ac_try) 2>&5 | |
15035 | ac_status=$? | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); }; }; then | |
15038 | ac_hi=$ac_mid; break | |
15039 | else | |
15040 | echo "$as_me: failed program was:" >&5 | |
15041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15042 | ||
15043 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15044 | if test $ac_lo -le $ac_mid; then |
15045 | ac_lo= ac_hi= | |
15046 | break | |
15047 | fi | |
15048 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15049 | fi |
ac1cb8d3 | 15050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15051 | done |
15052 | else | |
15053 | echo "$as_me: failed program was:" >&5 | |
15054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15055 | ||
15056 | cat >conftest.$ac_ext <<_ACEOF | |
15057 | /* confdefs.h. */ | |
15058 | _ACEOF | |
15059 | cat confdefs.h >>conftest.$ac_ext | |
15060 | cat >>conftest.$ac_ext <<_ACEOF | |
15061 | /* end confdefs.h. */ | |
15062 | $ac_includes_default | |
15063 | int | |
15064 | main () | |
15065 | { | |
15066 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15067 | test_array [0] = 0 | |
15068 | ||
15069 | ; | |
15070 | return 0; | |
15071 | } | |
15072 | _ACEOF | |
15073 | rm -f conftest.$ac_objext | |
15074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15076 | ac_status=$? |
ac1cb8d3 VS |
15077 | grep -v '^ *+' conftest.er1 >conftest.err |
15078 | rm -f conftest.er1 | |
15079 | cat conftest.err >&5 | |
a848cd7e SC |
15080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15081 | (exit $ac_status); } && | |
2cbbc68d RD |
15082 | { ac_try='test -z "$ac_c_werror_flag" |
15083 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15085 | (eval $ac_try) 2>&5 | |
15086 | ac_status=$? | |
15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15088 | (exit $ac_status); }; } && | |
15089 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15091 | (eval $ac_try) 2>&5 | |
15092 | ac_status=$? | |
15093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15094 | (exit $ac_status); }; }; then | |
15095 | ac_hi=-1 ac_mid=-1 | |
15096 | while :; do | |
15097 | cat >conftest.$ac_ext <<_ACEOF | |
15098 | /* confdefs.h. */ | |
15099 | _ACEOF | |
15100 | cat confdefs.h >>conftest.$ac_ext | |
15101 | cat >>conftest.$ac_ext <<_ACEOF | |
15102 | /* end confdefs.h. */ | |
15103 | $ac_includes_default | |
15104 | int | |
15105 | main () | |
15106 | { | |
15107 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15108 | test_array [0] = 0 | |
15109 | ||
15110 | ; | |
15111 | return 0; | |
15112 | } | |
15113 | _ACEOF | |
15114 | rm -f conftest.$ac_objext | |
15115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15116 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15117 | ac_status=$? |
ac1cb8d3 VS |
15118 | grep -v '^ *+' conftest.er1 >conftest.err |
15119 | rm -f conftest.er1 | |
15120 | cat conftest.err >&5 | |
a848cd7e SC |
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15122 | (exit $ac_status); } && | |
2cbbc68d RD |
15123 | { ac_try='test -z "$ac_c_werror_flag" |
15124 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15126 | (eval $ac_try) 2>&5 | |
15127 | ac_status=$? | |
15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15129 | (exit $ac_status); }; } && | |
15130 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15132 | (eval $ac_try) 2>&5 | |
15133 | ac_status=$? | |
15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15135 | (exit $ac_status); }; }; then | |
15136 | ac_lo=$ac_mid; break | |
15137 | else | |
15138 | echo "$as_me: failed program was:" >&5 | |
15139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15140 | ||
15141 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15142 | if test $ac_mid -le $ac_hi; then |
15143 | ac_lo= ac_hi= | |
15144 | break | |
15145 | fi | |
15146 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15147 | fi |
ac1cb8d3 | 15148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15149 | done |
15150 | else | |
15151 | echo "$as_me: failed program was:" >&5 | |
15152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15153 | ||
15154 | ac_lo= ac_hi= | |
15155 | fi | |
ac1cb8d3 | 15156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15157 | fi |
ac1cb8d3 | 15158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15159 | # Binary search between lo and hi bounds. |
15160 | while test "x$ac_lo" != "x$ac_hi"; do | |
15161 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15162 | cat >conftest.$ac_ext <<_ACEOF | |
15163 | /* confdefs.h. */ | |
15164 | _ACEOF | |
15165 | cat confdefs.h >>conftest.$ac_ext | |
15166 | cat >>conftest.$ac_ext <<_ACEOF | |
15167 | /* end confdefs.h. */ | |
15168 | $ac_includes_default | |
15169 | int | |
15170 | main () | |
15171 | { | |
15172 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15173 | test_array [0] = 0 | |
15174 | ||
15175 | ; | |
15176 | return 0; | |
15177 | } | |
15178 | _ACEOF | |
15179 | rm -f conftest.$ac_objext | |
15180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15181 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15182 | ac_status=$? |
ac1cb8d3 VS |
15183 | grep -v '^ *+' conftest.er1 >conftest.err |
15184 | rm -f conftest.er1 | |
15185 | cat conftest.err >&5 | |
a848cd7e SC |
15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15187 | (exit $ac_status); } && | |
2cbbc68d RD |
15188 | { ac_try='test -z "$ac_c_werror_flag" |
15189 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15191 | (eval $ac_try) 2>&5 | |
15192 | ac_status=$? | |
15193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15194 | (exit $ac_status); }; } && | |
15195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15197 | (eval $ac_try) 2>&5 | |
15198 | ac_status=$? | |
15199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15200 | (exit $ac_status); }; }; then | |
15201 | ac_hi=$ac_mid | |
15202 | else | |
15203 | echo "$as_me: failed program was:" >&5 | |
15204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15205 | ||
15206 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15207 | fi | |
ac1cb8d3 | 15208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15209 | done |
15210 | case $ac_lo in | |
15211 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15212 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15213 | See \`config.log' for more details." >&5 | |
15214 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15215 | See \`config.log' for more details." >&2;} | |
15216 | { (exit 1); exit 1; }; } ;; | |
15217 | esac | |
15218 | else | |
15219 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
15220 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15221 | See \`config.log' for more details." >&5 | |
15222 | echo "$as_me: error: cannot run test program while cross compiling | |
15223 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15224 | { (exit 1); exit 1; }; } |
15225 | else | |
15226 | cat >conftest.$ac_ext <<_ACEOF | |
15227 | /* confdefs.h. */ | |
15228 | _ACEOF | |
15229 | cat confdefs.h >>conftest.$ac_ext | |
15230 | cat >>conftest.$ac_ext <<_ACEOF | |
15231 | /* end confdefs.h. */ | |
15232 | $ac_includes_default | |
15233 | long longval () { return (long) (sizeof (short)); } | |
15234 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15235 | #include <stdio.h> | |
15236 | #include <stdlib.h> | |
15237 | int | |
15238 | main () | |
15239 | { | |
15240 | ||
15241 | FILE *f = fopen ("conftest.val", "w"); | |
15242 | if (! f) | |
15243 | exit (1); | |
15244 | if (((long) (sizeof (short))) < 0) | |
15245 | { | |
15246 | long i = longval (); | |
15247 | if (i != ((long) (sizeof (short)))) | |
15248 | exit (1); | |
15249 | fprintf (f, "%ld\n", i); | |
15250 | } | |
15251 | else | |
15252 | { | |
15253 | unsigned long i = ulongval (); | |
15254 | if (i != ((long) (sizeof (short)))) | |
15255 | exit (1); | |
15256 | fprintf (f, "%lu\n", i); | |
15257 | } | |
15258 | exit (ferror (f) || fclose (f) != 0); | |
15259 | ||
15260 | ; | |
15261 | return 0; | |
15262 | } | |
15263 | _ACEOF | |
15264 | rm -f conftest$ac_exeext | |
15265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15266 | (eval $ac_link) 2>&5 | |
15267 | ac_status=$? | |
15268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15269 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15271 | (eval $ac_try) 2>&5 | |
15272 | ac_status=$? | |
15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15274 | (exit $ac_status); }; }; then | |
15275 | ac_cv_sizeof_short=`cat conftest.val` | |
15276 | else | |
15277 | echo "$as_me: program exited with status $ac_status" >&5 | |
15278 | echo "$as_me: failed program was:" >&5 | |
15279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15280 | ||
15281 | ( exit $ac_status ) | |
15282 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15283 | See \`config.log' for more details." >&5 | |
15284 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15285 | See \`config.log' for more details." >&2;} | |
15286 | { (exit 1); exit 1; }; } | |
15287 | fi | |
ac1cb8d3 | 15288 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15289 | fi |
15290 | fi | |
15291 | rm -f conftest.val | |
15292 | else | |
15293 | ac_cv_sizeof_short=0 | |
15294 | fi | |
15295 | fi | |
15296 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15297 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15298 | cat >>confdefs.h <<_ACEOF | |
15299 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15300 | _ACEOF | |
15301 | ||
15302 | ||
15303 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15304 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15305 | if test "${ac_cv_type_void_p+set}" = set; then | |
15306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15307 | else | |
15308 | cat >conftest.$ac_ext <<_ACEOF | |
15309 | /* confdefs.h. */ | |
15310 | _ACEOF | |
15311 | cat confdefs.h >>conftest.$ac_ext | |
15312 | cat >>conftest.$ac_ext <<_ACEOF | |
15313 | /* end confdefs.h. */ | |
15314 | $ac_includes_default | |
15315 | int | |
15316 | main () | |
15317 | { | |
15318 | if ((void * *) 0) | |
15319 | return 0; | |
15320 | if (sizeof (void *)) | |
15321 | return 0; | |
15322 | ; | |
15323 | return 0; | |
15324 | } | |
15325 | _ACEOF | |
15326 | rm -f conftest.$ac_objext | |
15327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15328 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15329 | ac_status=$? |
ac1cb8d3 VS |
15330 | grep -v '^ *+' conftest.er1 >conftest.err |
15331 | rm -f conftest.er1 | |
15332 | cat conftest.err >&5 | |
a848cd7e SC |
15333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15334 | (exit $ac_status); } && | |
2cbbc68d RD |
15335 | { ac_try='test -z "$ac_c_werror_flag" |
15336 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15338 | (eval $ac_try) 2>&5 | |
15339 | ac_status=$? | |
15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15341 | (exit $ac_status); }; } && | |
15342 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15344 | (eval $ac_try) 2>&5 | |
15345 | ac_status=$? | |
15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15347 | (exit $ac_status); }; }; then | |
15348 | ac_cv_type_void_p=yes | |
15349 | else | |
15350 | echo "$as_me: failed program was:" >&5 | |
15351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15352 | ||
15353 | ac_cv_type_void_p=no | |
15354 | fi | |
ac1cb8d3 | 15355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15356 | fi |
15357 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15358 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15359 | ||
15360 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15361 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15362 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15364 | else | |
15365 | if test "$ac_cv_type_void_p" = yes; then | |
15366 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15367 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15368 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15369 | # This bug is HP SR number 8606223364. | |
15370 | if test "$cross_compiling" = yes; then | |
15371 | # Depending upon the size, compute the lo and hi bounds. | |
15372 | cat >conftest.$ac_ext <<_ACEOF | |
15373 | /* confdefs.h. */ | |
15374 | _ACEOF | |
15375 | cat confdefs.h >>conftest.$ac_ext | |
15376 | cat >>conftest.$ac_ext <<_ACEOF | |
15377 | /* end confdefs.h. */ | |
15378 | $ac_includes_default | |
15379 | int | |
15380 | main () | |
15381 | { | |
15382 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15383 | test_array [0] = 0 | |
15384 | ||
15385 | ; | |
15386 | return 0; | |
15387 | } | |
15388 | _ACEOF | |
15389 | rm -f conftest.$ac_objext | |
15390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15391 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15392 | ac_status=$? |
ac1cb8d3 VS |
15393 | grep -v '^ *+' conftest.er1 >conftest.err |
15394 | rm -f conftest.er1 | |
15395 | cat conftest.err >&5 | |
a848cd7e SC |
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15397 | (exit $ac_status); } && | |
2cbbc68d RD |
15398 | { ac_try='test -z "$ac_c_werror_flag" |
15399 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15401 | (eval $ac_try) 2>&5 | |
15402 | ac_status=$? | |
15403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15404 | (exit $ac_status); }; } && | |
15405 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15407 | (eval $ac_try) 2>&5 | |
15408 | ac_status=$? | |
15409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15410 | (exit $ac_status); }; }; then | |
15411 | ac_lo=0 ac_mid=0 | |
15412 | while :; do | |
15413 | cat >conftest.$ac_ext <<_ACEOF | |
15414 | /* confdefs.h. */ | |
15415 | _ACEOF | |
15416 | cat confdefs.h >>conftest.$ac_ext | |
15417 | cat >>conftest.$ac_ext <<_ACEOF | |
15418 | /* end confdefs.h. */ | |
15419 | $ac_includes_default | |
15420 | int | |
15421 | main () | |
15422 | { | |
15423 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15424 | test_array [0] = 0 | |
15425 | ||
15426 | ; | |
15427 | return 0; | |
15428 | } | |
15429 | _ACEOF | |
15430 | rm -f conftest.$ac_objext | |
15431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15432 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15433 | ac_status=$? |
ac1cb8d3 VS |
15434 | grep -v '^ *+' conftest.er1 >conftest.err |
15435 | rm -f conftest.er1 | |
15436 | cat conftest.err >&5 | |
a848cd7e SC |
15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15438 | (exit $ac_status); } && | |
2cbbc68d RD |
15439 | { ac_try='test -z "$ac_c_werror_flag" |
15440 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15442 | (eval $ac_try) 2>&5 | |
15443 | ac_status=$? | |
15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15445 | (exit $ac_status); }; } && | |
15446 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15448 | (eval $ac_try) 2>&5 | |
15449 | ac_status=$? | |
15450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15451 | (exit $ac_status); }; }; then | |
15452 | ac_hi=$ac_mid; break | |
15453 | else | |
15454 | echo "$as_me: failed program was:" >&5 | |
15455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15456 | ||
15457 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15458 | if test $ac_lo -le $ac_mid; then |
15459 | ac_lo= ac_hi= | |
15460 | break | |
15461 | fi | |
15462 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15463 | fi |
ac1cb8d3 | 15464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15465 | done |
15466 | else | |
15467 | echo "$as_me: failed program was:" >&5 | |
15468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15469 | ||
15470 | cat >conftest.$ac_ext <<_ACEOF | |
15471 | /* confdefs.h. */ | |
15472 | _ACEOF | |
15473 | cat confdefs.h >>conftest.$ac_ext | |
15474 | cat >>conftest.$ac_ext <<_ACEOF | |
15475 | /* end confdefs.h. */ | |
15476 | $ac_includes_default | |
15477 | int | |
15478 | main () | |
15479 | { | |
15480 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15481 | test_array [0] = 0 | |
15482 | ||
15483 | ; | |
15484 | return 0; | |
15485 | } | |
15486 | _ACEOF | |
15487 | rm -f conftest.$ac_objext | |
15488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15489 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15490 | ac_status=$? |
ac1cb8d3 VS |
15491 | grep -v '^ *+' conftest.er1 >conftest.err |
15492 | rm -f conftest.er1 | |
15493 | cat conftest.err >&5 | |
a848cd7e SC |
15494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15495 | (exit $ac_status); } && | |
2cbbc68d RD |
15496 | { ac_try='test -z "$ac_c_werror_flag" |
15497 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15499 | (eval $ac_try) 2>&5 | |
15500 | ac_status=$? | |
15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15502 | (exit $ac_status); }; } && | |
15503 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15505 | (eval $ac_try) 2>&5 | |
15506 | ac_status=$? | |
15507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15508 | (exit $ac_status); }; }; then | |
15509 | ac_hi=-1 ac_mid=-1 | |
15510 | while :; do | |
15511 | cat >conftest.$ac_ext <<_ACEOF | |
15512 | /* confdefs.h. */ | |
15513 | _ACEOF | |
15514 | cat confdefs.h >>conftest.$ac_ext | |
15515 | cat >>conftest.$ac_ext <<_ACEOF | |
15516 | /* end confdefs.h. */ | |
15517 | $ac_includes_default | |
15518 | int | |
15519 | main () | |
15520 | { | |
15521 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15522 | test_array [0] = 0 | |
15523 | ||
15524 | ; | |
15525 | return 0; | |
15526 | } | |
15527 | _ACEOF | |
15528 | rm -f conftest.$ac_objext | |
15529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15530 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15531 | ac_status=$? |
ac1cb8d3 VS |
15532 | grep -v '^ *+' conftest.er1 >conftest.err |
15533 | rm -f conftest.er1 | |
15534 | cat conftest.err >&5 | |
a848cd7e SC |
15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15536 | (exit $ac_status); } && | |
2cbbc68d RD |
15537 | { ac_try='test -z "$ac_c_werror_flag" |
15538 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15540 | (eval $ac_try) 2>&5 | |
15541 | ac_status=$? | |
15542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15543 | (exit $ac_status); }; } && | |
15544 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15546 | (eval $ac_try) 2>&5 | |
15547 | ac_status=$? | |
15548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15549 | (exit $ac_status); }; }; then | |
15550 | ac_lo=$ac_mid; break | |
15551 | else | |
15552 | echo "$as_me: failed program was:" >&5 | |
15553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15554 | ||
15555 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15556 | if test $ac_mid -le $ac_hi; then |
15557 | ac_lo= ac_hi= | |
15558 | break | |
15559 | fi | |
15560 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15561 | fi |
ac1cb8d3 | 15562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15563 | done |
15564 | else | |
15565 | echo "$as_me: failed program was:" >&5 | |
15566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15567 | ||
15568 | ac_lo= ac_hi= | |
15569 | fi | |
ac1cb8d3 | 15570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15571 | fi |
ac1cb8d3 | 15572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15573 | # Binary search between lo and hi bounds. |
15574 | while test "x$ac_lo" != "x$ac_hi"; do | |
15575 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15576 | cat >conftest.$ac_ext <<_ACEOF | |
15577 | /* confdefs.h. */ | |
15578 | _ACEOF | |
15579 | cat confdefs.h >>conftest.$ac_ext | |
15580 | cat >>conftest.$ac_ext <<_ACEOF | |
15581 | /* end confdefs.h. */ | |
15582 | $ac_includes_default | |
15583 | int | |
15584 | main () | |
15585 | { | |
15586 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15587 | test_array [0] = 0 | |
15588 | ||
15589 | ; | |
15590 | return 0; | |
15591 | } | |
15592 | _ACEOF | |
15593 | rm -f conftest.$ac_objext | |
15594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15595 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15596 | ac_status=$? |
ac1cb8d3 VS |
15597 | grep -v '^ *+' conftest.er1 >conftest.err |
15598 | rm -f conftest.er1 | |
15599 | cat conftest.err >&5 | |
a848cd7e SC |
15600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15601 | (exit $ac_status); } && | |
2cbbc68d RD |
15602 | { ac_try='test -z "$ac_c_werror_flag" |
15603 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15605 | (eval $ac_try) 2>&5 | |
15606 | ac_status=$? | |
15607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15608 | (exit $ac_status); }; } && | |
15609 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15611 | (eval $ac_try) 2>&5 | |
15612 | ac_status=$? | |
15613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15614 | (exit $ac_status); }; }; then | |
15615 | ac_hi=$ac_mid | |
15616 | else | |
15617 | echo "$as_me: failed program was:" >&5 | |
15618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15619 | ||
15620 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15621 | fi | |
ac1cb8d3 | 15622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15623 | done |
15624 | case $ac_lo in | |
15625 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15626 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15627 | See \`config.log' for more details." >&5 | |
15628 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15629 | See \`config.log' for more details." >&2;} | |
15630 | { (exit 1); exit 1; }; } ;; | |
15631 | esac | |
15632 | else | |
15633 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
15634 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15635 | See \`config.log' for more details." >&5 | |
15636 | echo "$as_me: error: cannot run test program while cross compiling | |
15637 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15638 | { (exit 1); exit 1; }; } |
15639 | else | |
15640 | cat >conftest.$ac_ext <<_ACEOF | |
15641 | /* confdefs.h. */ | |
15642 | _ACEOF | |
15643 | cat confdefs.h >>conftest.$ac_ext | |
15644 | cat >>conftest.$ac_ext <<_ACEOF | |
15645 | /* end confdefs.h. */ | |
15646 | $ac_includes_default | |
15647 | long longval () { return (long) (sizeof (void *)); } | |
15648 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15649 | #include <stdio.h> | |
15650 | #include <stdlib.h> | |
15651 | int | |
15652 | main () | |
15653 | { | |
15654 | ||
15655 | FILE *f = fopen ("conftest.val", "w"); | |
15656 | if (! f) | |
15657 | exit (1); | |
15658 | if (((long) (sizeof (void *))) < 0) | |
15659 | { | |
15660 | long i = longval (); | |
15661 | if (i != ((long) (sizeof (void *)))) | |
15662 | exit (1); | |
15663 | fprintf (f, "%ld\n", i); | |
15664 | } | |
15665 | else | |
15666 | { | |
15667 | unsigned long i = ulongval (); | |
15668 | if (i != ((long) (sizeof (void *)))) | |
15669 | exit (1); | |
15670 | fprintf (f, "%lu\n", i); | |
15671 | } | |
15672 | exit (ferror (f) || fclose (f) != 0); | |
15673 | ||
15674 | ; | |
15675 | return 0; | |
15676 | } | |
15677 | _ACEOF | |
15678 | rm -f conftest$ac_exeext | |
15679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15680 | (eval $ac_link) 2>&5 | |
15681 | ac_status=$? | |
15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15683 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15685 | (eval $ac_try) 2>&5 | |
15686 | ac_status=$? | |
15687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15688 | (exit $ac_status); }; }; then | |
15689 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15690 | else | |
15691 | echo "$as_me: program exited with status $ac_status" >&5 | |
15692 | echo "$as_me: failed program was:" >&5 | |
15693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15694 | ||
15695 | ( exit $ac_status ) | |
15696 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15697 | See \`config.log' for more details." >&5 | |
15698 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15699 | See \`config.log' for more details." >&2;} | |
15700 | { (exit 1); exit 1; }; } | |
15701 | fi | |
ac1cb8d3 | 15702 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15703 | fi |
15704 | fi | |
15705 | rm -f conftest.val | |
15706 | else | |
15707 | ac_cv_sizeof_void_p=0 | |
15708 | fi | |
15709 | fi | |
15710 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15711 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15712 | cat >>confdefs.h <<_ACEOF | |
15713 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15714 | _ACEOF | |
15715 | ||
15716 | ||
15717 | echo "$as_me:$LINENO: checking for int" >&5 | |
15718 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15719 | if test "${ac_cv_type_int+set}" = set; then | |
15720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15721 | else | |
15722 | cat >conftest.$ac_ext <<_ACEOF | |
15723 | /* confdefs.h. */ | |
15724 | _ACEOF | |
15725 | cat confdefs.h >>conftest.$ac_ext | |
15726 | cat >>conftest.$ac_ext <<_ACEOF | |
15727 | /* end confdefs.h. */ | |
15728 | $ac_includes_default | |
15729 | int | |
15730 | main () | |
15731 | { | |
15732 | if ((int *) 0) | |
15733 | return 0; | |
15734 | if (sizeof (int)) | |
15735 | return 0; | |
15736 | ; | |
15737 | return 0; | |
15738 | } | |
15739 | _ACEOF | |
15740 | rm -f conftest.$ac_objext | |
15741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15742 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15743 | ac_status=$? |
ac1cb8d3 VS |
15744 | grep -v '^ *+' conftest.er1 >conftest.err |
15745 | rm -f conftest.er1 | |
15746 | cat conftest.err >&5 | |
a848cd7e SC |
15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15748 | (exit $ac_status); } && | |
2cbbc68d RD |
15749 | { ac_try='test -z "$ac_c_werror_flag" |
15750 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15752 | (eval $ac_try) 2>&5 | |
15753 | ac_status=$? | |
15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15755 | (exit $ac_status); }; } && | |
15756 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15758 | (eval $ac_try) 2>&5 | |
15759 | ac_status=$? | |
15760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15761 | (exit $ac_status); }; }; then | |
15762 | ac_cv_type_int=yes | |
15763 | else | |
15764 | echo "$as_me: failed program was:" >&5 | |
15765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15766 | ||
15767 | ac_cv_type_int=no | |
15768 | fi | |
ac1cb8d3 | 15769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15770 | fi |
15771 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15772 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15773 | ||
15774 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15775 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15776 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15778 | else | |
15779 | if test "$ac_cv_type_int" = yes; then | |
15780 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15781 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15782 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15783 | # This bug is HP SR number 8606223364. | |
15784 | if test "$cross_compiling" = yes; then | |
15785 | # Depending upon the size, compute the lo and hi bounds. | |
15786 | cat >conftest.$ac_ext <<_ACEOF | |
15787 | /* confdefs.h. */ | |
15788 | _ACEOF | |
15789 | cat confdefs.h >>conftest.$ac_ext | |
15790 | cat >>conftest.$ac_ext <<_ACEOF | |
15791 | /* end confdefs.h. */ | |
15792 | $ac_includes_default | |
15793 | int | |
15794 | main () | |
15795 | { | |
15796 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15797 | test_array [0] = 0 | |
15798 | ||
15799 | ; | |
15800 | return 0; | |
15801 | } | |
15802 | _ACEOF | |
15803 | rm -f conftest.$ac_objext | |
15804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15805 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15806 | ac_status=$? |
ac1cb8d3 VS |
15807 | grep -v '^ *+' conftest.er1 >conftest.err |
15808 | rm -f conftest.er1 | |
15809 | cat conftest.err >&5 | |
a848cd7e SC |
15810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15811 | (exit $ac_status); } && | |
2cbbc68d RD |
15812 | { ac_try='test -z "$ac_c_werror_flag" |
15813 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15815 | (eval $ac_try) 2>&5 | |
15816 | ac_status=$? | |
15817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15818 | (exit $ac_status); }; } && | |
15819 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15821 | (eval $ac_try) 2>&5 | |
15822 | ac_status=$? | |
15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15824 | (exit $ac_status); }; }; then | |
15825 | ac_lo=0 ac_mid=0 | |
15826 | while :; do | |
15827 | cat >conftest.$ac_ext <<_ACEOF | |
15828 | /* confdefs.h. */ | |
15829 | _ACEOF | |
15830 | cat confdefs.h >>conftest.$ac_ext | |
15831 | cat >>conftest.$ac_ext <<_ACEOF | |
15832 | /* end confdefs.h. */ | |
15833 | $ac_includes_default | |
15834 | int | |
15835 | main () | |
15836 | { | |
15837 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15838 | test_array [0] = 0 | |
15839 | ||
15840 | ; | |
15841 | return 0; | |
15842 | } | |
15843 | _ACEOF | |
15844 | rm -f conftest.$ac_objext | |
15845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15846 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15847 | ac_status=$? |
ac1cb8d3 VS |
15848 | grep -v '^ *+' conftest.er1 >conftest.err |
15849 | rm -f conftest.er1 | |
15850 | cat conftest.err >&5 | |
a848cd7e SC |
15851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15852 | (exit $ac_status); } && | |
2cbbc68d RD |
15853 | { ac_try='test -z "$ac_c_werror_flag" |
15854 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15856 | (eval $ac_try) 2>&5 | |
15857 | ac_status=$? | |
15858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15859 | (exit $ac_status); }; } && | |
15860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15862 | (eval $ac_try) 2>&5 | |
15863 | ac_status=$? | |
15864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15865 | (exit $ac_status); }; }; then | |
15866 | ac_hi=$ac_mid; break | |
15867 | else | |
15868 | echo "$as_me: failed program was:" >&5 | |
15869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15870 | ||
15871 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15872 | if test $ac_lo -le $ac_mid; then |
15873 | ac_lo= ac_hi= | |
15874 | break | |
15875 | fi | |
15876 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15877 | fi |
ac1cb8d3 | 15878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15879 | done |
15880 | else | |
15881 | echo "$as_me: failed program was:" >&5 | |
15882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15883 | ||
15884 | cat >conftest.$ac_ext <<_ACEOF | |
15885 | /* confdefs.h. */ | |
15886 | _ACEOF | |
15887 | cat confdefs.h >>conftest.$ac_ext | |
15888 | cat >>conftest.$ac_ext <<_ACEOF | |
15889 | /* end confdefs.h. */ | |
15890 | $ac_includes_default | |
15891 | int | |
15892 | main () | |
15893 | { | |
15894 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15895 | test_array [0] = 0 | |
15896 | ||
15897 | ; | |
15898 | return 0; | |
15899 | } | |
15900 | _ACEOF | |
15901 | rm -f conftest.$ac_objext | |
15902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15903 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15904 | ac_status=$? |
ac1cb8d3 VS |
15905 | grep -v '^ *+' conftest.er1 >conftest.err |
15906 | rm -f conftest.er1 | |
15907 | cat conftest.err >&5 | |
a848cd7e SC |
15908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15909 | (exit $ac_status); } && | |
2cbbc68d RD |
15910 | { ac_try='test -z "$ac_c_werror_flag" |
15911 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15913 | (eval $ac_try) 2>&5 | |
15914 | ac_status=$? | |
15915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15916 | (exit $ac_status); }; } && | |
15917 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15919 | (eval $ac_try) 2>&5 | |
15920 | ac_status=$? | |
15921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15922 | (exit $ac_status); }; }; then | |
15923 | ac_hi=-1 ac_mid=-1 | |
15924 | while :; do | |
15925 | cat >conftest.$ac_ext <<_ACEOF | |
15926 | /* confdefs.h. */ | |
15927 | _ACEOF | |
15928 | cat confdefs.h >>conftest.$ac_ext | |
15929 | cat >>conftest.$ac_ext <<_ACEOF | |
15930 | /* end confdefs.h. */ | |
15931 | $ac_includes_default | |
15932 | int | |
15933 | main () | |
15934 | { | |
15935 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15936 | test_array [0] = 0 | |
15937 | ||
15938 | ; | |
15939 | return 0; | |
15940 | } | |
15941 | _ACEOF | |
15942 | rm -f conftest.$ac_objext | |
15943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15945 | ac_status=$? |
ac1cb8d3 VS |
15946 | grep -v '^ *+' conftest.er1 >conftest.err |
15947 | rm -f conftest.er1 | |
15948 | cat conftest.err >&5 | |
a848cd7e SC |
15949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15950 | (exit $ac_status); } && | |
2cbbc68d RD |
15951 | { ac_try='test -z "$ac_c_werror_flag" |
15952 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15954 | (eval $ac_try) 2>&5 | |
15955 | ac_status=$? | |
15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15957 | (exit $ac_status); }; } && | |
15958 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15960 | (eval $ac_try) 2>&5 | |
15961 | ac_status=$? | |
15962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15963 | (exit $ac_status); }; }; then | |
15964 | ac_lo=$ac_mid; break | |
15965 | else | |
15966 | echo "$as_me: failed program was:" >&5 | |
15967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15968 | ||
15969 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15970 | if test $ac_mid -le $ac_hi; then |
15971 | ac_lo= ac_hi= | |
15972 | break | |
15973 | fi | |
15974 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15975 | fi |
ac1cb8d3 | 15976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15977 | done |
15978 | else | |
15979 | echo "$as_me: failed program was:" >&5 | |
15980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15981 | ||
15982 | ac_lo= ac_hi= | |
15983 | fi | |
ac1cb8d3 | 15984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15985 | fi |
ac1cb8d3 | 15986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15987 | # Binary search between lo and hi bounds. |
15988 | while test "x$ac_lo" != "x$ac_hi"; do | |
15989 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15990 | cat >conftest.$ac_ext <<_ACEOF | |
15991 | /* confdefs.h. */ | |
15992 | _ACEOF | |
15993 | cat confdefs.h >>conftest.$ac_ext | |
15994 | cat >>conftest.$ac_ext <<_ACEOF | |
15995 | /* end confdefs.h. */ | |
15996 | $ac_includes_default | |
15997 | int | |
15998 | main () | |
15999 | { | |
16000 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16001 | test_array [0] = 0 | |
16002 | ||
16003 | ; | |
16004 | return 0; | |
16005 | } | |
16006 | _ACEOF | |
16007 | rm -f conftest.$ac_objext | |
16008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16009 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16010 | ac_status=$? |
ac1cb8d3 VS |
16011 | grep -v '^ *+' conftest.er1 >conftest.err |
16012 | rm -f conftest.er1 | |
16013 | cat conftest.err >&5 | |
a848cd7e SC |
16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16015 | (exit $ac_status); } && | |
2cbbc68d RD |
16016 | { ac_try='test -z "$ac_c_werror_flag" |
16017 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16019 | (eval $ac_try) 2>&5 | |
16020 | ac_status=$? | |
16021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16022 | (exit $ac_status); }; } && | |
16023 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16025 | (eval $ac_try) 2>&5 | |
16026 | ac_status=$? | |
16027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16028 | (exit $ac_status); }; }; then | |
16029 | ac_hi=$ac_mid | |
16030 | else | |
16031 | echo "$as_me: failed program was:" >&5 | |
16032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16033 | ||
16034 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16035 | fi | |
ac1cb8d3 | 16036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16037 | done |
16038 | case $ac_lo in | |
16039 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16040 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16041 | See \`config.log' for more details." >&5 | |
16042 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16043 | See \`config.log' for more details." >&2;} | |
16044 | { (exit 1); exit 1; }; } ;; | |
16045 | esac | |
16046 | else | |
16047 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
16048 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16049 | See \`config.log' for more details." >&5 | |
16050 | echo "$as_me: error: cannot run test program while cross compiling | |
16051 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16052 | { (exit 1); exit 1; }; } |
16053 | else | |
16054 | cat >conftest.$ac_ext <<_ACEOF | |
16055 | /* confdefs.h. */ | |
16056 | _ACEOF | |
16057 | cat confdefs.h >>conftest.$ac_ext | |
16058 | cat >>conftest.$ac_ext <<_ACEOF | |
16059 | /* end confdefs.h. */ | |
16060 | $ac_includes_default | |
16061 | long longval () { return (long) (sizeof (int)); } | |
16062 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16063 | #include <stdio.h> | |
16064 | #include <stdlib.h> | |
16065 | int | |
16066 | main () | |
16067 | { | |
16068 | ||
16069 | FILE *f = fopen ("conftest.val", "w"); | |
16070 | if (! f) | |
16071 | exit (1); | |
16072 | if (((long) (sizeof (int))) < 0) | |
16073 | { | |
16074 | long i = longval (); | |
16075 | if (i != ((long) (sizeof (int)))) | |
16076 | exit (1); | |
16077 | fprintf (f, "%ld\n", i); | |
16078 | } | |
16079 | else | |
16080 | { | |
16081 | unsigned long i = ulongval (); | |
16082 | if (i != ((long) (sizeof (int)))) | |
16083 | exit (1); | |
16084 | fprintf (f, "%lu\n", i); | |
16085 | } | |
16086 | exit (ferror (f) || fclose (f) != 0); | |
16087 | ||
16088 | ; | |
16089 | return 0; | |
16090 | } | |
16091 | _ACEOF | |
16092 | rm -f conftest$ac_exeext | |
16093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16094 | (eval $ac_link) 2>&5 | |
16095 | ac_status=$? | |
16096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16097 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16099 | (eval $ac_try) 2>&5 | |
16100 | ac_status=$? | |
16101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16102 | (exit $ac_status); }; }; then | |
16103 | ac_cv_sizeof_int=`cat conftest.val` | |
16104 | else | |
16105 | echo "$as_me: program exited with status $ac_status" >&5 | |
16106 | echo "$as_me: failed program was:" >&5 | |
16107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16108 | ||
16109 | ( exit $ac_status ) | |
16110 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16111 | See \`config.log' for more details." >&5 | |
16112 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16113 | See \`config.log' for more details." >&2;} | |
16114 | { (exit 1); exit 1; }; } | |
16115 | fi | |
ac1cb8d3 | 16116 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16117 | fi |
16118 | fi | |
16119 | rm -f conftest.val | |
16120 | else | |
16121 | ac_cv_sizeof_int=0 | |
16122 | fi | |
16123 | fi | |
16124 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16125 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16126 | cat >>confdefs.h <<_ACEOF | |
16127 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16128 | _ACEOF | |
16129 | ||
16130 | ||
16131 | echo "$as_me:$LINENO: checking for long" >&5 | |
16132 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16133 | if test "${ac_cv_type_long+set}" = set; then | |
16134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16135 | else | |
16136 | cat >conftest.$ac_ext <<_ACEOF | |
16137 | /* confdefs.h. */ | |
16138 | _ACEOF | |
16139 | cat confdefs.h >>conftest.$ac_ext | |
16140 | cat >>conftest.$ac_ext <<_ACEOF | |
16141 | /* end confdefs.h. */ | |
16142 | $ac_includes_default | |
16143 | int | |
16144 | main () | |
16145 | { | |
16146 | if ((long *) 0) | |
16147 | return 0; | |
16148 | if (sizeof (long)) | |
16149 | return 0; | |
16150 | ; | |
16151 | return 0; | |
16152 | } | |
16153 | _ACEOF | |
16154 | rm -f conftest.$ac_objext | |
16155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16156 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16157 | ac_status=$? |
ac1cb8d3 VS |
16158 | grep -v '^ *+' conftest.er1 >conftest.err |
16159 | rm -f conftest.er1 | |
16160 | cat conftest.err >&5 | |
a848cd7e SC |
16161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16162 | (exit $ac_status); } && | |
2cbbc68d RD |
16163 | { ac_try='test -z "$ac_c_werror_flag" |
16164 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16166 | (eval $ac_try) 2>&5 | |
16167 | ac_status=$? | |
16168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16169 | (exit $ac_status); }; } && | |
16170 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16172 | (eval $ac_try) 2>&5 | |
16173 | ac_status=$? | |
16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16175 | (exit $ac_status); }; }; then | |
16176 | ac_cv_type_long=yes | |
16177 | else | |
16178 | echo "$as_me: failed program was:" >&5 | |
16179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16180 | ||
16181 | ac_cv_type_long=no | |
16182 | fi | |
ac1cb8d3 | 16183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16184 | fi |
16185 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16186 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16187 | ||
16188 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16189 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16190 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16192 | else | |
16193 | if test "$ac_cv_type_long" = yes; then | |
16194 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16195 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16196 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16197 | # This bug is HP SR number 8606223364. | |
16198 | if test "$cross_compiling" = yes; then | |
16199 | # Depending upon the size, compute the lo and hi bounds. | |
16200 | cat >conftest.$ac_ext <<_ACEOF | |
16201 | /* confdefs.h. */ | |
16202 | _ACEOF | |
16203 | cat confdefs.h >>conftest.$ac_ext | |
16204 | cat >>conftest.$ac_ext <<_ACEOF | |
16205 | /* end confdefs.h. */ | |
16206 | $ac_includes_default | |
16207 | int | |
16208 | main () | |
16209 | { | |
16210 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16211 | test_array [0] = 0 | |
16212 | ||
16213 | ; | |
16214 | return 0; | |
16215 | } | |
16216 | _ACEOF | |
16217 | rm -f conftest.$ac_objext | |
16218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16219 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16220 | ac_status=$? |
ac1cb8d3 VS |
16221 | grep -v '^ *+' conftest.er1 >conftest.err |
16222 | rm -f conftest.er1 | |
16223 | cat conftest.err >&5 | |
a848cd7e SC |
16224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16225 | (exit $ac_status); } && | |
2cbbc68d RD |
16226 | { ac_try='test -z "$ac_c_werror_flag" |
16227 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16229 | (eval $ac_try) 2>&5 | |
16230 | ac_status=$? | |
16231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16232 | (exit $ac_status); }; } && | |
16233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16235 | (eval $ac_try) 2>&5 | |
16236 | ac_status=$? | |
16237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16238 | (exit $ac_status); }; }; then | |
16239 | ac_lo=0 ac_mid=0 | |
16240 | while :; do | |
16241 | cat >conftest.$ac_ext <<_ACEOF | |
16242 | /* confdefs.h. */ | |
16243 | _ACEOF | |
16244 | cat confdefs.h >>conftest.$ac_ext | |
16245 | cat >>conftest.$ac_ext <<_ACEOF | |
16246 | /* end confdefs.h. */ | |
16247 | $ac_includes_default | |
16248 | int | |
16249 | main () | |
16250 | { | |
16251 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16252 | test_array [0] = 0 | |
16253 | ||
16254 | ; | |
16255 | return 0; | |
16256 | } | |
16257 | _ACEOF | |
16258 | rm -f conftest.$ac_objext | |
16259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16261 | ac_status=$? |
ac1cb8d3 VS |
16262 | grep -v '^ *+' conftest.er1 >conftest.err |
16263 | rm -f conftest.er1 | |
16264 | cat conftest.err >&5 | |
a848cd7e SC |
16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16266 | (exit $ac_status); } && | |
2cbbc68d RD |
16267 | { ac_try='test -z "$ac_c_werror_flag" |
16268 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16270 | (eval $ac_try) 2>&5 | |
16271 | ac_status=$? | |
16272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16273 | (exit $ac_status); }; } && | |
16274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16276 | (eval $ac_try) 2>&5 | |
16277 | ac_status=$? | |
16278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16279 | (exit $ac_status); }; }; then | |
16280 | ac_hi=$ac_mid; break | |
16281 | else | |
16282 | echo "$as_me: failed program was:" >&5 | |
16283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16284 | ||
16285 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16286 | if test $ac_lo -le $ac_mid; then |
16287 | ac_lo= ac_hi= | |
16288 | break | |
16289 | fi | |
16290 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16291 | fi |
ac1cb8d3 | 16292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16293 | done |
16294 | else | |
16295 | echo "$as_me: failed program was:" >&5 | |
16296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16297 | ||
16298 | cat >conftest.$ac_ext <<_ACEOF | |
16299 | /* confdefs.h. */ | |
16300 | _ACEOF | |
16301 | cat confdefs.h >>conftest.$ac_ext | |
16302 | cat >>conftest.$ac_ext <<_ACEOF | |
16303 | /* end confdefs.h. */ | |
16304 | $ac_includes_default | |
16305 | int | |
16306 | main () | |
16307 | { | |
16308 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16309 | test_array [0] = 0 | |
16310 | ||
16311 | ; | |
16312 | return 0; | |
16313 | } | |
16314 | _ACEOF | |
16315 | rm -f conftest.$ac_objext | |
16316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16317 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16318 | ac_status=$? |
ac1cb8d3 VS |
16319 | grep -v '^ *+' conftest.er1 >conftest.err |
16320 | rm -f conftest.er1 | |
16321 | cat conftest.err >&5 | |
a848cd7e SC |
16322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16323 | (exit $ac_status); } && | |
2cbbc68d RD |
16324 | { ac_try='test -z "$ac_c_werror_flag" |
16325 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16327 | (eval $ac_try) 2>&5 | |
16328 | ac_status=$? | |
16329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16330 | (exit $ac_status); }; } && | |
16331 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16333 | (eval $ac_try) 2>&5 | |
16334 | ac_status=$? | |
16335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16336 | (exit $ac_status); }; }; then | |
16337 | ac_hi=-1 ac_mid=-1 | |
16338 | while :; do | |
16339 | cat >conftest.$ac_ext <<_ACEOF | |
16340 | /* confdefs.h. */ | |
16341 | _ACEOF | |
16342 | cat confdefs.h >>conftest.$ac_ext | |
16343 | cat >>conftest.$ac_ext <<_ACEOF | |
16344 | /* end confdefs.h. */ | |
16345 | $ac_includes_default | |
16346 | int | |
16347 | main () | |
16348 | { | |
16349 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16350 | test_array [0] = 0 | |
16351 | ||
16352 | ; | |
16353 | return 0; | |
16354 | } | |
16355 | _ACEOF | |
16356 | rm -f conftest.$ac_objext | |
16357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16358 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16359 | ac_status=$? |
ac1cb8d3 VS |
16360 | grep -v '^ *+' conftest.er1 >conftest.err |
16361 | rm -f conftest.er1 | |
16362 | cat conftest.err >&5 | |
a848cd7e SC |
16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16364 | (exit $ac_status); } && | |
2cbbc68d RD |
16365 | { ac_try='test -z "$ac_c_werror_flag" |
16366 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16368 | (eval $ac_try) 2>&5 | |
16369 | ac_status=$? | |
16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16371 | (exit $ac_status); }; } && | |
16372 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16374 | (eval $ac_try) 2>&5 | |
16375 | ac_status=$? | |
16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16377 | (exit $ac_status); }; }; then | |
16378 | ac_lo=$ac_mid; break | |
16379 | else | |
16380 | echo "$as_me: failed program was:" >&5 | |
16381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16382 | ||
16383 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16384 | if test $ac_mid -le $ac_hi; then |
16385 | ac_lo= ac_hi= | |
16386 | break | |
16387 | fi | |
16388 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16389 | fi |
ac1cb8d3 | 16390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16391 | done |
16392 | else | |
16393 | echo "$as_me: failed program was:" >&5 | |
16394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16395 | ||
16396 | ac_lo= ac_hi= | |
16397 | fi | |
ac1cb8d3 | 16398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16399 | fi |
ac1cb8d3 | 16400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16401 | # Binary search between lo and hi bounds. |
16402 | while test "x$ac_lo" != "x$ac_hi"; do | |
16403 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16404 | cat >conftest.$ac_ext <<_ACEOF | |
16405 | /* confdefs.h. */ | |
16406 | _ACEOF | |
16407 | cat confdefs.h >>conftest.$ac_ext | |
16408 | cat >>conftest.$ac_ext <<_ACEOF | |
16409 | /* end confdefs.h. */ | |
16410 | $ac_includes_default | |
16411 | int | |
16412 | main () | |
16413 | { | |
16414 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16415 | test_array [0] = 0 | |
16416 | ||
16417 | ; | |
16418 | return 0; | |
16419 | } | |
16420 | _ACEOF | |
16421 | rm -f conftest.$ac_objext | |
16422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16423 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16424 | ac_status=$? |
ac1cb8d3 VS |
16425 | grep -v '^ *+' conftest.er1 >conftest.err |
16426 | rm -f conftest.er1 | |
16427 | cat conftest.err >&5 | |
a848cd7e SC |
16428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16429 | (exit $ac_status); } && | |
2cbbc68d RD |
16430 | { ac_try='test -z "$ac_c_werror_flag" |
16431 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16433 | (eval $ac_try) 2>&5 | |
16434 | ac_status=$? | |
16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16436 | (exit $ac_status); }; } && | |
16437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16439 | (eval $ac_try) 2>&5 | |
16440 | ac_status=$? | |
16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16442 | (exit $ac_status); }; }; then | |
16443 | ac_hi=$ac_mid | |
16444 | else | |
16445 | echo "$as_me: failed program was:" >&5 | |
16446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16447 | ||
16448 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16449 | fi | |
ac1cb8d3 | 16450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16451 | done |
16452 | case $ac_lo in | |
16453 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16454 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16455 | See \`config.log' for more details." >&5 | |
16456 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16457 | See \`config.log' for more details." >&2;} | |
16458 | { (exit 1); exit 1; }; } ;; | |
16459 | esac | |
16460 | else | |
16461 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
16462 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16463 | See \`config.log' for more details." >&5 | |
16464 | echo "$as_me: error: cannot run test program while cross compiling | |
16465 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16466 | { (exit 1); exit 1; }; } |
16467 | else | |
16468 | cat >conftest.$ac_ext <<_ACEOF | |
16469 | /* confdefs.h. */ | |
16470 | _ACEOF | |
16471 | cat confdefs.h >>conftest.$ac_ext | |
16472 | cat >>conftest.$ac_ext <<_ACEOF | |
16473 | /* end confdefs.h. */ | |
16474 | $ac_includes_default | |
16475 | long longval () { return (long) (sizeof (long)); } | |
16476 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16477 | #include <stdio.h> | |
16478 | #include <stdlib.h> | |
16479 | int | |
16480 | main () | |
16481 | { | |
16482 | ||
16483 | FILE *f = fopen ("conftest.val", "w"); | |
16484 | if (! f) | |
16485 | exit (1); | |
16486 | if (((long) (sizeof (long))) < 0) | |
16487 | { | |
16488 | long i = longval (); | |
16489 | if (i != ((long) (sizeof (long)))) | |
16490 | exit (1); | |
16491 | fprintf (f, "%ld\n", i); | |
16492 | } | |
16493 | else | |
16494 | { | |
16495 | unsigned long i = ulongval (); | |
16496 | if (i != ((long) (sizeof (long)))) | |
16497 | exit (1); | |
16498 | fprintf (f, "%lu\n", i); | |
16499 | } | |
16500 | exit (ferror (f) || fclose (f) != 0); | |
16501 | ||
16502 | ; | |
16503 | return 0; | |
16504 | } | |
16505 | _ACEOF | |
16506 | rm -f conftest$ac_exeext | |
16507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16508 | (eval $ac_link) 2>&5 | |
16509 | ac_status=$? | |
16510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16511 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16513 | (eval $ac_try) 2>&5 | |
16514 | ac_status=$? | |
16515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16516 | (exit $ac_status); }; }; then | |
16517 | ac_cv_sizeof_long=`cat conftest.val` | |
16518 | else | |
16519 | echo "$as_me: program exited with status $ac_status" >&5 | |
16520 | echo "$as_me: failed program was:" >&5 | |
16521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16522 | ||
16523 | ( exit $ac_status ) | |
16524 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16525 | See \`config.log' for more details." >&5 | |
16526 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16527 | See \`config.log' for more details." >&2;} | |
16528 | { (exit 1); exit 1; }; } | |
16529 | fi | |
ac1cb8d3 | 16530 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16531 | fi |
16532 | fi | |
16533 | rm -f conftest.val | |
16534 | else | |
16535 | ac_cv_sizeof_long=0 | |
16536 | fi | |
16537 | fi | |
16538 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16539 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16540 | cat >>confdefs.h <<_ACEOF | |
16541 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16542 | _ACEOF | |
16543 | ||
16544 | ||
16545 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16546 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16547 | if test "${ac_cv_type_size_t+set}" = set; then | |
16548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16549 | else | |
16550 | cat >conftest.$ac_ext <<_ACEOF | |
16551 | /* confdefs.h. */ | |
16552 | _ACEOF | |
16553 | cat confdefs.h >>conftest.$ac_ext | |
16554 | cat >>conftest.$ac_ext <<_ACEOF | |
16555 | /* end confdefs.h. */ | |
16556 | $ac_includes_default | |
16557 | int | |
16558 | main () | |
16559 | { | |
16560 | if ((size_t *) 0) | |
16561 | return 0; | |
16562 | if (sizeof (size_t)) | |
16563 | return 0; | |
16564 | ; | |
16565 | return 0; | |
16566 | } | |
16567 | _ACEOF | |
16568 | rm -f conftest.$ac_objext | |
16569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16570 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16571 | ac_status=$? |
ac1cb8d3 VS |
16572 | grep -v '^ *+' conftest.er1 >conftest.err |
16573 | rm -f conftest.er1 | |
16574 | cat conftest.err >&5 | |
a848cd7e SC |
16575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16576 | (exit $ac_status); } && | |
2cbbc68d RD |
16577 | { ac_try='test -z "$ac_c_werror_flag" |
16578 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16580 | (eval $ac_try) 2>&5 | |
16581 | ac_status=$? | |
16582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16583 | (exit $ac_status); }; } && | |
16584 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16586 | (eval $ac_try) 2>&5 | |
16587 | ac_status=$? | |
16588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16589 | (exit $ac_status); }; }; then | |
16590 | ac_cv_type_size_t=yes | |
16591 | else | |
16592 | echo "$as_me: failed program was:" >&5 | |
16593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16594 | ||
16595 | ac_cv_type_size_t=no | |
16596 | fi | |
ac1cb8d3 | 16597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16598 | fi |
16599 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16600 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16601 | ||
16602 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16603 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16604 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16606 | else | |
16607 | if test "$ac_cv_type_size_t" = yes; then | |
16608 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16609 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16610 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16611 | # This bug is HP SR number 8606223364. | |
16612 | if test "$cross_compiling" = yes; then | |
16613 | # Depending upon the size, compute the lo and hi bounds. | |
16614 | cat >conftest.$ac_ext <<_ACEOF | |
16615 | /* confdefs.h. */ | |
16616 | _ACEOF | |
16617 | cat confdefs.h >>conftest.$ac_ext | |
16618 | cat >>conftest.$ac_ext <<_ACEOF | |
16619 | /* end confdefs.h. */ | |
16620 | $ac_includes_default | |
16621 | int | |
16622 | main () | |
16623 | { | |
16624 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16625 | test_array [0] = 0 | |
16626 | ||
16627 | ; | |
16628 | return 0; | |
16629 | } | |
16630 | _ACEOF | |
16631 | rm -f conftest.$ac_objext | |
16632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16633 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16634 | ac_status=$? |
ac1cb8d3 VS |
16635 | grep -v '^ *+' conftest.er1 >conftest.err |
16636 | rm -f conftest.er1 | |
16637 | cat conftest.err >&5 | |
a848cd7e SC |
16638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16639 | (exit $ac_status); } && | |
2cbbc68d RD |
16640 | { ac_try='test -z "$ac_c_werror_flag" |
16641 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16643 | (eval $ac_try) 2>&5 | |
16644 | ac_status=$? | |
16645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16646 | (exit $ac_status); }; } && | |
16647 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16649 | (eval $ac_try) 2>&5 | |
16650 | ac_status=$? | |
16651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16652 | (exit $ac_status); }; }; then | |
16653 | ac_lo=0 ac_mid=0 | |
16654 | while :; do | |
16655 | cat >conftest.$ac_ext <<_ACEOF | |
16656 | /* confdefs.h. */ | |
16657 | _ACEOF | |
16658 | cat confdefs.h >>conftest.$ac_ext | |
16659 | cat >>conftest.$ac_ext <<_ACEOF | |
16660 | /* end confdefs.h. */ | |
16661 | $ac_includes_default | |
16662 | int | |
16663 | main () | |
16664 | { | |
16665 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16666 | test_array [0] = 0 | |
16667 | ||
16668 | ; | |
16669 | return 0; | |
16670 | } | |
16671 | _ACEOF | |
16672 | rm -f conftest.$ac_objext | |
16673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16674 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16675 | ac_status=$? |
ac1cb8d3 VS |
16676 | grep -v '^ *+' conftest.er1 >conftest.err |
16677 | rm -f conftest.er1 | |
16678 | cat conftest.err >&5 | |
a848cd7e SC |
16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16680 | (exit $ac_status); } && | |
2cbbc68d RD |
16681 | { ac_try='test -z "$ac_c_werror_flag" |
16682 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16684 | (eval $ac_try) 2>&5 | |
16685 | ac_status=$? | |
16686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16687 | (exit $ac_status); }; } && | |
16688 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16690 | (eval $ac_try) 2>&5 | |
16691 | ac_status=$? | |
16692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16693 | (exit $ac_status); }; }; then | |
16694 | ac_hi=$ac_mid; break | |
16695 | else | |
16696 | echo "$as_me: failed program was:" >&5 | |
16697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16698 | ||
16699 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16700 | if test $ac_lo -le $ac_mid; then |
16701 | ac_lo= ac_hi= | |
16702 | break | |
16703 | fi | |
16704 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16705 | fi |
ac1cb8d3 | 16706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16707 | done |
16708 | else | |
16709 | echo "$as_me: failed program was:" >&5 | |
16710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16711 | ||
16712 | cat >conftest.$ac_ext <<_ACEOF | |
16713 | /* confdefs.h. */ | |
16714 | _ACEOF | |
16715 | cat confdefs.h >>conftest.$ac_ext | |
16716 | cat >>conftest.$ac_ext <<_ACEOF | |
16717 | /* end confdefs.h. */ | |
16718 | $ac_includes_default | |
16719 | int | |
16720 | main () | |
16721 | { | |
16722 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16723 | test_array [0] = 0 | |
16724 | ||
16725 | ; | |
16726 | return 0; | |
16727 | } | |
16728 | _ACEOF | |
16729 | rm -f conftest.$ac_objext | |
16730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16732 | ac_status=$? |
ac1cb8d3 VS |
16733 | grep -v '^ *+' conftest.er1 >conftest.err |
16734 | rm -f conftest.er1 | |
16735 | cat conftest.err >&5 | |
a848cd7e SC |
16736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16737 | (exit $ac_status); } && | |
2cbbc68d RD |
16738 | { ac_try='test -z "$ac_c_werror_flag" |
16739 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16741 | (eval $ac_try) 2>&5 | |
16742 | ac_status=$? | |
16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16744 | (exit $ac_status); }; } && | |
16745 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16747 | (eval $ac_try) 2>&5 | |
16748 | ac_status=$? | |
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16750 | (exit $ac_status); }; }; then | |
16751 | ac_hi=-1 ac_mid=-1 | |
16752 | while :; do | |
16753 | cat >conftest.$ac_ext <<_ACEOF | |
16754 | /* confdefs.h. */ | |
16755 | _ACEOF | |
16756 | cat confdefs.h >>conftest.$ac_ext | |
16757 | cat >>conftest.$ac_ext <<_ACEOF | |
16758 | /* end confdefs.h. */ | |
16759 | $ac_includes_default | |
16760 | int | |
16761 | main () | |
16762 | { | |
16763 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16764 | test_array [0] = 0 | |
16765 | ||
16766 | ; | |
16767 | return 0; | |
16768 | } | |
16769 | _ACEOF | |
16770 | rm -f conftest.$ac_objext | |
16771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16772 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16773 | ac_status=$? |
ac1cb8d3 VS |
16774 | grep -v '^ *+' conftest.er1 >conftest.err |
16775 | rm -f conftest.er1 | |
16776 | cat conftest.err >&5 | |
a848cd7e SC |
16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16778 | (exit $ac_status); } && | |
2cbbc68d RD |
16779 | { ac_try='test -z "$ac_c_werror_flag" |
16780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16782 | (eval $ac_try) 2>&5 | |
16783 | ac_status=$? | |
16784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16785 | (exit $ac_status); }; } && | |
16786 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16788 | (eval $ac_try) 2>&5 | |
16789 | ac_status=$? | |
16790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16791 | (exit $ac_status); }; }; then | |
16792 | ac_lo=$ac_mid; break | |
16793 | else | |
16794 | echo "$as_me: failed program was:" >&5 | |
16795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16796 | ||
16797 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16798 | if test $ac_mid -le $ac_hi; then |
16799 | ac_lo= ac_hi= | |
16800 | break | |
16801 | fi | |
16802 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16803 | fi |
ac1cb8d3 | 16804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16805 | done |
16806 | else | |
16807 | echo "$as_me: failed program was:" >&5 | |
16808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16809 | ||
16810 | ac_lo= ac_hi= | |
16811 | fi | |
ac1cb8d3 | 16812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16813 | fi |
ac1cb8d3 | 16814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16815 | # Binary search between lo and hi bounds. |
16816 | while test "x$ac_lo" != "x$ac_hi"; do | |
16817 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16818 | cat >conftest.$ac_ext <<_ACEOF | |
16819 | /* confdefs.h. */ | |
16820 | _ACEOF | |
16821 | cat confdefs.h >>conftest.$ac_ext | |
16822 | cat >>conftest.$ac_ext <<_ACEOF | |
16823 | /* end confdefs.h. */ | |
16824 | $ac_includes_default | |
16825 | int | |
16826 | main () | |
16827 | { | |
16828 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16829 | test_array [0] = 0 | |
16830 | ||
16831 | ; | |
16832 | return 0; | |
16833 | } | |
16834 | _ACEOF | |
16835 | rm -f conftest.$ac_objext | |
16836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16837 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16838 | ac_status=$? |
ac1cb8d3 VS |
16839 | grep -v '^ *+' conftest.er1 >conftest.err |
16840 | rm -f conftest.er1 | |
16841 | cat conftest.err >&5 | |
a848cd7e SC |
16842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16843 | (exit $ac_status); } && | |
2cbbc68d RD |
16844 | { ac_try='test -z "$ac_c_werror_flag" |
16845 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16847 | (eval $ac_try) 2>&5 | |
16848 | ac_status=$? | |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16850 | (exit $ac_status); }; } && | |
16851 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16853 | (eval $ac_try) 2>&5 | |
16854 | ac_status=$? | |
16855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16856 | (exit $ac_status); }; }; then | |
16857 | ac_hi=$ac_mid | |
16858 | else | |
16859 | echo "$as_me: failed program was:" >&5 | |
16860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16861 | ||
16862 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16863 | fi | |
ac1cb8d3 | 16864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16865 | done |
16866 | case $ac_lo in | |
16867 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16868 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16869 | See \`config.log' for more details." >&5 | |
16870 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16871 | See \`config.log' for more details." >&2;} | |
16872 | { (exit 1); exit 1; }; } ;; | |
16873 | esac | |
16874 | else | |
16875 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
16876 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16877 | See \`config.log' for more details." >&5 | |
16878 | echo "$as_me: error: cannot run test program while cross compiling | |
16879 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16880 | { (exit 1); exit 1; }; } |
16881 | else | |
16882 | cat >conftest.$ac_ext <<_ACEOF | |
16883 | /* confdefs.h. */ | |
16884 | _ACEOF | |
16885 | cat confdefs.h >>conftest.$ac_ext | |
16886 | cat >>conftest.$ac_ext <<_ACEOF | |
16887 | /* end confdefs.h. */ | |
16888 | $ac_includes_default | |
16889 | long longval () { return (long) (sizeof (size_t)); } | |
16890 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16891 | #include <stdio.h> | |
16892 | #include <stdlib.h> | |
16893 | int | |
16894 | main () | |
16895 | { | |
16896 | ||
16897 | FILE *f = fopen ("conftest.val", "w"); | |
16898 | if (! f) | |
16899 | exit (1); | |
16900 | if (((long) (sizeof (size_t))) < 0) | |
16901 | { | |
16902 | long i = longval (); | |
16903 | if (i != ((long) (sizeof (size_t)))) | |
16904 | exit (1); | |
16905 | fprintf (f, "%ld\n", i); | |
16906 | } | |
16907 | else | |
16908 | { | |
16909 | unsigned long i = ulongval (); | |
16910 | if (i != ((long) (sizeof (size_t)))) | |
16911 | exit (1); | |
16912 | fprintf (f, "%lu\n", i); | |
16913 | } | |
16914 | exit (ferror (f) || fclose (f) != 0); | |
16915 | ||
16916 | ; | |
16917 | return 0; | |
16918 | } | |
16919 | _ACEOF | |
16920 | rm -f conftest$ac_exeext | |
16921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16922 | (eval $ac_link) 2>&5 | |
16923 | ac_status=$? | |
16924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16927 | (eval $ac_try) 2>&5 | |
16928 | ac_status=$? | |
16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16930 | (exit $ac_status); }; }; then | |
16931 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16932 | else | |
16933 | echo "$as_me: program exited with status $ac_status" >&5 | |
16934 | echo "$as_me: failed program was:" >&5 | |
16935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16936 | ||
16937 | ( exit $ac_status ) | |
16938 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16939 | See \`config.log' for more details." >&5 | |
16940 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16941 | See \`config.log' for more details." >&2;} | |
16942 | { (exit 1); exit 1; }; } | |
16943 | fi | |
ac1cb8d3 | 16944 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16945 | fi |
16946 | fi | |
16947 | rm -f conftest.val | |
16948 | else | |
16949 | ac_cv_sizeof_size_t=0 | |
16950 | fi | |
16951 | fi | |
16952 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16953 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16954 | cat >>confdefs.h <<_ACEOF | |
16955 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16956 | _ACEOF | |
16957 | ||
16958 | ||
16959 | ||
16960 | case "${host}" in | |
16961 | arm-*-linux* ) | |
16962 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16963 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16964 | if test "${ac_cv_type_long_long+set}" = set; then | |
16965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16966 | else | |
16967 | cat >conftest.$ac_ext <<_ACEOF | |
16968 | /* confdefs.h. */ | |
16969 | _ACEOF | |
16970 | cat confdefs.h >>conftest.$ac_ext | |
16971 | cat >>conftest.$ac_ext <<_ACEOF | |
16972 | /* end confdefs.h. */ | |
16973 | $ac_includes_default | |
16974 | int | |
16975 | main () | |
16976 | { | |
16977 | if ((long long *) 0) | |
16978 | return 0; | |
16979 | if (sizeof (long long)) | |
16980 | return 0; | |
16981 | ; | |
16982 | return 0; | |
16983 | } | |
16984 | _ACEOF | |
16985 | rm -f conftest.$ac_objext | |
16986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16987 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16988 | ac_status=$? |
ac1cb8d3 VS |
16989 | grep -v '^ *+' conftest.er1 >conftest.err |
16990 | rm -f conftest.er1 | |
16991 | cat conftest.err >&5 | |
a848cd7e SC |
16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16993 | (exit $ac_status); } && | |
2cbbc68d RD |
16994 | { ac_try='test -z "$ac_c_werror_flag" |
16995 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16997 | (eval $ac_try) 2>&5 | |
16998 | ac_status=$? | |
16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17000 | (exit $ac_status); }; } && | |
17001 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17003 | (eval $ac_try) 2>&5 | |
17004 | ac_status=$? | |
17005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17006 | (exit $ac_status); }; }; then | |
17007 | ac_cv_type_long_long=yes | |
17008 | else | |
17009 | echo "$as_me: failed program was:" >&5 | |
17010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17011 | ||
17012 | ac_cv_type_long_long=no | |
17013 | fi | |
ac1cb8d3 | 17014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17015 | fi |
17016 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17017 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17018 | ||
17019 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17020 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17021 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17023 | else | |
17024 | if test "$ac_cv_type_long_long" = yes; then | |
17025 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17026 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17027 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17028 | # This bug is HP SR number 8606223364. | |
17029 | if test "$cross_compiling" = yes; then | |
17030 | # Depending upon the size, compute the lo and hi bounds. | |
17031 | cat >conftest.$ac_ext <<_ACEOF | |
17032 | /* confdefs.h. */ | |
17033 | _ACEOF | |
17034 | cat confdefs.h >>conftest.$ac_ext | |
17035 | cat >>conftest.$ac_ext <<_ACEOF | |
17036 | /* end confdefs.h. */ | |
17037 | $ac_includes_default | |
17038 | int | |
17039 | main () | |
17040 | { | |
17041 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17042 | test_array [0] = 0 | |
17043 | ||
17044 | ; | |
17045 | return 0; | |
17046 | } | |
17047 | _ACEOF | |
17048 | rm -f conftest.$ac_objext | |
17049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17050 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17051 | ac_status=$? |
ac1cb8d3 VS |
17052 | grep -v '^ *+' conftest.er1 >conftest.err |
17053 | rm -f conftest.er1 | |
17054 | cat conftest.err >&5 | |
a848cd7e SC |
17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17056 | (exit $ac_status); } && | |
2cbbc68d RD |
17057 | { ac_try='test -z "$ac_c_werror_flag" |
17058 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17060 | (eval $ac_try) 2>&5 | |
17061 | ac_status=$? | |
17062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17063 | (exit $ac_status); }; } && | |
17064 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17066 | (eval $ac_try) 2>&5 | |
17067 | ac_status=$? | |
17068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17069 | (exit $ac_status); }; }; then | |
17070 | ac_lo=0 ac_mid=0 | |
17071 | while :; do | |
17072 | cat >conftest.$ac_ext <<_ACEOF | |
17073 | /* confdefs.h. */ | |
17074 | _ACEOF | |
17075 | cat confdefs.h >>conftest.$ac_ext | |
17076 | cat >>conftest.$ac_ext <<_ACEOF | |
17077 | /* end confdefs.h. */ | |
17078 | $ac_includes_default | |
17079 | int | |
17080 | main () | |
17081 | { | |
17082 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17083 | test_array [0] = 0 | |
17084 | ||
17085 | ; | |
17086 | return 0; | |
17087 | } | |
17088 | _ACEOF | |
17089 | rm -f conftest.$ac_objext | |
17090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17091 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17092 | ac_status=$? |
ac1cb8d3 VS |
17093 | grep -v '^ *+' conftest.er1 >conftest.err |
17094 | rm -f conftest.er1 | |
17095 | cat conftest.err >&5 | |
a848cd7e SC |
17096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17097 | (exit $ac_status); } && | |
2cbbc68d RD |
17098 | { ac_try='test -z "$ac_c_werror_flag" |
17099 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17101 | (eval $ac_try) 2>&5 | |
17102 | ac_status=$? | |
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17104 | (exit $ac_status); }; } && | |
17105 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17107 | (eval $ac_try) 2>&5 | |
17108 | ac_status=$? | |
17109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17110 | (exit $ac_status); }; }; then | |
17111 | ac_hi=$ac_mid; break | |
17112 | else | |
17113 | echo "$as_me: failed program was:" >&5 | |
17114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17115 | ||
17116 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17117 | if test $ac_lo -le $ac_mid; then |
17118 | ac_lo= ac_hi= | |
17119 | break | |
17120 | fi | |
17121 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17122 | fi |
ac1cb8d3 | 17123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17124 | done |
17125 | else | |
17126 | echo "$as_me: failed program was:" >&5 | |
17127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17128 | ||
17129 | cat >conftest.$ac_ext <<_ACEOF | |
17130 | /* confdefs.h. */ | |
17131 | _ACEOF | |
17132 | cat confdefs.h >>conftest.$ac_ext | |
17133 | cat >>conftest.$ac_ext <<_ACEOF | |
17134 | /* end confdefs.h. */ | |
17135 | $ac_includes_default | |
17136 | int | |
17137 | main () | |
17138 | { | |
17139 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17140 | test_array [0] = 0 | |
17141 | ||
17142 | ; | |
17143 | return 0; | |
17144 | } | |
17145 | _ACEOF | |
17146 | rm -f conftest.$ac_objext | |
17147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17148 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17149 | ac_status=$? |
ac1cb8d3 VS |
17150 | grep -v '^ *+' conftest.er1 >conftest.err |
17151 | rm -f conftest.er1 | |
17152 | cat conftest.err >&5 | |
a848cd7e SC |
17153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17154 | (exit $ac_status); } && | |
2cbbc68d RD |
17155 | { ac_try='test -z "$ac_c_werror_flag" |
17156 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17158 | (eval $ac_try) 2>&5 | |
17159 | ac_status=$? | |
17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17161 | (exit $ac_status); }; } && | |
17162 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17164 | (eval $ac_try) 2>&5 | |
17165 | ac_status=$? | |
17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17167 | (exit $ac_status); }; }; then | |
17168 | ac_hi=-1 ac_mid=-1 | |
17169 | while :; do | |
17170 | cat >conftest.$ac_ext <<_ACEOF | |
17171 | /* confdefs.h. */ | |
17172 | _ACEOF | |
17173 | cat confdefs.h >>conftest.$ac_ext | |
17174 | cat >>conftest.$ac_ext <<_ACEOF | |
17175 | /* end confdefs.h. */ | |
17176 | $ac_includes_default | |
17177 | int | |
17178 | main () | |
17179 | { | |
17180 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17181 | test_array [0] = 0 | |
17182 | ||
17183 | ; | |
17184 | return 0; | |
17185 | } | |
17186 | _ACEOF | |
17187 | rm -f conftest.$ac_objext | |
17188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17190 | ac_status=$? |
ac1cb8d3 VS |
17191 | grep -v '^ *+' conftest.er1 >conftest.err |
17192 | rm -f conftest.er1 | |
17193 | cat conftest.err >&5 | |
a848cd7e SC |
17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17195 | (exit $ac_status); } && | |
2cbbc68d RD |
17196 | { ac_try='test -z "$ac_c_werror_flag" |
17197 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17199 | (eval $ac_try) 2>&5 | |
17200 | ac_status=$? | |
17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17202 | (exit $ac_status); }; } && | |
17203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17205 | (eval $ac_try) 2>&5 | |
17206 | ac_status=$? | |
17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17208 | (exit $ac_status); }; }; then | |
17209 | ac_lo=$ac_mid; break | |
17210 | else | |
17211 | echo "$as_me: failed program was:" >&5 | |
17212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17213 | ||
17214 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17215 | if test $ac_mid -le $ac_hi; then |
17216 | ac_lo= ac_hi= | |
17217 | break | |
17218 | fi | |
17219 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17220 | fi |
ac1cb8d3 | 17221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17222 | done |
17223 | else | |
17224 | echo "$as_me: failed program was:" >&5 | |
17225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17226 | ||
17227 | ac_lo= ac_hi= | |
17228 | fi | |
ac1cb8d3 | 17229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17230 | fi |
ac1cb8d3 | 17231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17232 | # Binary search between lo and hi bounds. |
17233 | while test "x$ac_lo" != "x$ac_hi"; do | |
17234 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17235 | cat >conftest.$ac_ext <<_ACEOF | |
17236 | /* confdefs.h. */ | |
17237 | _ACEOF | |
17238 | cat confdefs.h >>conftest.$ac_ext | |
17239 | cat >>conftest.$ac_ext <<_ACEOF | |
17240 | /* end confdefs.h. */ | |
17241 | $ac_includes_default | |
17242 | int | |
17243 | main () | |
17244 | { | |
17245 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17246 | test_array [0] = 0 | |
17247 | ||
17248 | ; | |
17249 | return 0; | |
17250 | } | |
17251 | _ACEOF | |
17252 | rm -f conftest.$ac_objext | |
17253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17254 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17255 | ac_status=$? |
ac1cb8d3 VS |
17256 | grep -v '^ *+' conftest.er1 >conftest.err |
17257 | rm -f conftest.er1 | |
17258 | cat conftest.err >&5 | |
a848cd7e SC |
17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17260 | (exit $ac_status); } && | |
2cbbc68d RD |
17261 | { ac_try='test -z "$ac_c_werror_flag" |
17262 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17264 | (eval $ac_try) 2>&5 | |
17265 | ac_status=$? | |
17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17267 | (exit $ac_status); }; } && | |
17268 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17270 | (eval $ac_try) 2>&5 | |
17271 | ac_status=$? | |
17272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17273 | (exit $ac_status); }; }; then | |
17274 | ac_hi=$ac_mid | |
17275 | else | |
17276 | echo "$as_me: failed program was:" >&5 | |
17277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17278 | ||
17279 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17280 | fi | |
ac1cb8d3 | 17281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17282 | done |
17283 | case $ac_lo in | |
17284 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17285 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17286 | See \`config.log' for more details." >&5 | |
17287 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17288 | See \`config.log' for more details." >&2;} | |
17289 | { (exit 1); exit 1; }; } ;; | |
17290 | esac | |
17291 | else | |
17292 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
17293 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17294 | See \`config.log' for more details." >&5 | |
17295 | echo "$as_me: error: cannot run test program while cross compiling | |
17296 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17297 | { (exit 1); exit 1; }; } |
17298 | else | |
17299 | cat >conftest.$ac_ext <<_ACEOF | |
17300 | /* confdefs.h. */ | |
17301 | _ACEOF | |
17302 | cat confdefs.h >>conftest.$ac_ext | |
17303 | cat >>conftest.$ac_ext <<_ACEOF | |
17304 | /* end confdefs.h. */ | |
17305 | $ac_includes_default | |
17306 | long longval () { return (long) (sizeof (long long)); } | |
17307 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17308 | #include <stdio.h> | |
17309 | #include <stdlib.h> | |
17310 | int | |
17311 | main () | |
17312 | { | |
17313 | ||
17314 | FILE *f = fopen ("conftest.val", "w"); | |
17315 | if (! f) | |
17316 | exit (1); | |
17317 | if (((long) (sizeof (long long))) < 0) | |
17318 | { | |
17319 | long i = longval (); | |
17320 | if (i != ((long) (sizeof (long long)))) | |
17321 | exit (1); | |
17322 | fprintf (f, "%ld\n", i); | |
17323 | } | |
17324 | else | |
17325 | { | |
17326 | unsigned long i = ulongval (); | |
17327 | if (i != ((long) (sizeof (long long)))) | |
17328 | exit (1); | |
17329 | fprintf (f, "%lu\n", i); | |
17330 | } | |
17331 | exit (ferror (f) || fclose (f) != 0); | |
17332 | ||
17333 | ; | |
17334 | return 0; | |
17335 | } | |
17336 | _ACEOF | |
17337 | rm -f conftest$ac_exeext | |
17338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17339 | (eval $ac_link) 2>&5 | |
17340 | ac_status=$? | |
17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17344 | (eval $ac_try) 2>&5 | |
17345 | ac_status=$? | |
17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17347 | (exit $ac_status); }; }; then | |
17348 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17349 | else | |
17350 | echo "$as_me: program exited with status $ac_status" >&5 | |
17351 | echo "$as_me: failed program was:" >&5 | |
17352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17353 | ||
17354 | ( exit $ac_status ) | |
17355 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17356 | See \`config.log' for more details." >&5 | |
17357 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17358 | See \`config.log' for more details." >&2;} | |
17359 | { (exit 1); exit 1; }; } | |
17360 | fi | |
ac1cb8d3 | 17361 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17362 | fi |
17363 | fi | |
17364 | rm -f conftest.val | |
17365 | else | |
17366 | ac_cv_sizeof_long_long=0 | |
17367 | fi | |
17368 | fi | |
17369 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17370 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17371 | cat >>confdefs.h <<_ACEOF | |
17372 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17373 | _ACEOF | |
17374 | ||
17375 | ||
17376 | ;; | |
17377 | *-hp-hpux* ) | |
17378 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17379 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17380 | if test "${ac_cv_type_long_long+set}" = set; then | |
17381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17382 | else | |
17383 | cat >conftest.$ac_ext <<_ACEOF | |
17384 | /* confdefs.h. */ | |
17385 | _ACEOF | |
17386 | cat confdefs.h >>conftest.$ac_ext | |
17387 | cat >>conftest.$ac_ext <<_ACEOF | |
17388 | /* end confdefs.h. */ | |
17389 | $ac_includes_default | |
17390 | int | |
17391 | main () | |
17392 | { | |
17393 | if ((long long *) 0) | |
17394 | return 0; | |
17395 | if (sizeof (long long)) | |
17396 | return 0; | |
17397 | ; | |
17398 | return 0; | |
17399 | } | |
17400 | _ACEOF | |
17401 | rm -f conftest.$ac_objext | |
17402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17404 | ac_status=$? |
ac1cb8d3 VS |
17405 | grep -v '^ *+' conftest.er1 >conftest.err |
17406 | rm -f conftest.er1 | |
17407 | cat conftest.err >&5 | |
a848cd7e SC |
17408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17409 | (exit $ac_status); } && | |
2cbbc68d RD |
17410 | { ac_try='test -z "$ac_c_werror_flag" |
17411 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17413 | (eval $ac_try) 2>&5 | |
17414 | ac_status=$? | |
17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17416 | (exit $ac_status); }; } && | |
17417 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17419 | (eval $ac_try) 2>&5 | |
17420 | ac_status=$? | |
17421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17422 | (exit $ac_status); }; }; then | |
17423 | ac_cv_type_long_long=yes | |
17424 | else | |
17425 | echo "$as_me: failed program was:" >&5 | |
17426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17427 | ||
17428 | ac_cv_type_long_long=no | |
17429 | fi | |
ac1cb8d3 | 17430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17431 | fi |
17432 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17433 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17434 | ||
17435 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17436 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17437 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17439 | else | |
17440 | if test "$ac_cv_type_long_long" = yes; then | |
17441 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17442 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17443 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17444 | # This bug is HP SR number 8606223364. | |
17445 | if test "$cross_compiling" = yes; then | |
17446 | # Depending upon the size, compute the lo and hi bounds. | |
17447 | cat >conftest.$ac_ext <<_ACEOF | |
17448 | /* confdefs.h. */ | |
17449 | _ACEOF | |
17450 | cat confdefs.h >>conftest.$ac_ext | |
17451 | cat >>conftest.$ac_ext <<_ACEOF | |
17452 | /* end confdefs.h. */ | |
17453 | $ac_includes_default | |
17454 | int | |
17455 | main () | |
17456 | { | |
17457 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17458 | test_array [0] = 0 | |
17459 | ||
17460 | ; | |
17461 | return 0; | |
17462 | } | |
17463 | _ACEOF | |
17464 | rm -f conftest.$ac_objext | |
17465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17466 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17467 | ac_status=$? |
ac1cb8d3 VS |
17468 | grep -v '^ *+' conftest.er1 >conftest.err |
17469 | rm -f conftest.er1 | |
17470 | cat conftest.err >&5 | |
a848cd7e SC |
17471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17472 | (exit $ac_status); } && | |
2cbbc68d RD |
17473 | { ac_try='test -z "$ac_c_werror_flag" |
17474 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17476 | (eval $ac_try) 2>&5 | |
17477 | ac_status=$? | |
17478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17479 | (exit $ac_status); }; } && | |
17480 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17482 | (eval $ac_try) 2>&5 | |
17483 | ac_status=$? | |
17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17485 | (exit $ac_status); }; }; then | |
17486 | ac_lo=0 ac_mid=0 | |
17487 | while :; do | |
17488 | cat >conftest.$ac_ext <<_ACEOF | |
17489 | /* confdefs.h. */ | |
17490 | _ACEOF | |
17491 | cat confdefs.h >>conftest.$ac_ext | |
17492 | cat >>conftest.$ac_ext <<_ACEOF | |
17493 | /* end confdefs.h. */ | |
17494 | $ac_includes_default | |
17495 | int | |
17496 | main () | |
17497 | { | |
17498 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17499 | test_array [0] = 0 | |
17500 | ||
17501 | ; | |
17502 | return 0; | |
17503 | } | |
17504 | _ACEOF | |
17505 | rm -f conftest.$ac_objext | |
17506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17507 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17508 | ac_status=$? |
ac1cb8d3 VS |
17509 | grep -v '^ *+' conftest.er1 >conftest.err |
17510 | rm -f conftest.er1 | |
17511 | cat conftest.err >&5 | |
a848cd7e SC |
17512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17513 | (exit $ac_status); } && | |
2cbbc68d RD |
17514 | { ac_try='test -z "$ac_c_werror_flag" |
17515 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17517 | (eval $ac_try) 2>&5 | |
17518 | ac_status=$? | |
17519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17520 | (exit $ac_status); }; } && | |
17521 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17523 | (eval $ac_try) 2>&5 | |
17524 | ac_status=$? | |
17525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17526 | (exit $ac_status); }; }; then | |
17527 | ac_hi=$ac_mid; break | |
17528 | else | |
17529 | echo "$as_me: failed program was:" >&5 | |
17530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17531 | ||
17532 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17533 | if test $ac_lo -le $ac_mid; then |
17534 | ac_lo= ac_hi= | |
17535 | break | |
17536 | fi | |
17537 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17538 | fi |
ac1cb8d3 | 17539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17540 | done |
17541 | else | |
17542 | echo "$as_me: failed program was:" >&5 | |
17543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17544 | ||
17545 | cat >conftest.$ac_ext <<_ACEOF | |
17546 | /* confdefs.h. */ | |
17547 | _ACEOF | |
17548 | cat confdefs.h >>conftest.$ac_ext | |
17549 | cat >>conftest.$ac_ext <<_ACEOF | |
17550 | /* end confdefs.h. */ | |
17551 | $ac_includes_default | |
17552 | int | |
17553 | main () | |
17554 | { | |
17555 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17556 | test_array [0] = 0 | |
17557 | ||
17558 | ; | |
17559 | return 0; | |
17560 | } | |
17561 | _ACEOF | |
17562 | rm -f conftest.$ac_objext | |
17563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17564 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17565 | ac_status=$? |
ac1cb8d3 VS |
17566 | grep -v '^ *+' conftest.er1 >conftest.err |
17567 | rm -f conftest.er1 | |
17568 | cat conftest.err >&5 | |
a848cd7e SC |
17569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17570 | (exit $ac_status); } && | |
2cbbc68d RD |
17571 | { ac_try='test -z "$ac_c_werror_flag" |
17572 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17574 | (eval $ac_try) 2>&5 | |
17575 | ac_status=$? | |
17576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17577 | (exit $ac_status); }; } && | |
17578 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17580 | (eval $ac_try) 2>&5 | |
17581 | ac_status=$? | |
17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17583 | (exit $ac_status); }; }; then | |
17584 | ac_hi=-1 ac_mid=-1 | |
17585 | while :; do | |
17586 | cat >conftest.$ac_ext <<_ACEOF | |
17587 | /* confdefs.h. */ | |
17588 | _ACEOF | |
17589 | cat confdefs.h >>conftest.$ac_ext | |
17590 | cat >>conftest.$ac_ext <<_ACEOF | |
17591 | /* end confdefs.h. */ | |
17592 | $ac_includes_default | |
17593 | int | |
17594 | main () | |
17595 | { | |
17596 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17597 | test_array [0] = 0 | |
17598 | ||
17599 | ; | |
17600 | return 0; | |
17601 | } | |
17602 | _ACEOF | |
17603 | rm -f conftest.$ac_objext | |
17604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17606 | ac_status=$? |
ac1cb8d3 VS |
17607 | grep -v '^ *+' conftest.er1 >conftest.err |
17608 | rm -f conftest.er1 | |
17609 | cat conftest.err >&5 | |
a848cd7e SC |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17611 | (exit $ac_status); } && | |
2cbbc68d RD |
17612 | { ac_try='test -z "$ac_c_werror_flag" |
17613 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17615 | (eval $ac_try) 2>&5 | |
17616 | ac_status=$? | |
17617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17618 | (exit $ac_status); }; } && | |
17619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17621 | (eval $ac_try) 2>&5 | |
17622 | ac_status=$? | |
17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17624 | (exit $ac_status); }; }; then | |
17625 | ac_lo=$ac_mid; break | |
17626 | else | |
17627 | echo "$as_me: failed program was:" >&5 | |
17628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17629 | ||
17630 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17631 | if test $ac_mid -le $ac_hi; then |
17632 | ac_lo= ac_hi= | |
17633 | break | |
17634 | fi | |
17635 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17636 | fi |
ac1cb8d3 | 17637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17638 | done |
17639 | else | |
17640 | echo "$as_me: failed program was:" >&5 | |
17641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17642 | ||
17643 | ac_lo= ac_hi= | |
17644 | fi | |
ac1cb8d3 | 17645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17646 | fi |
ac1cb8d3 | 17647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17648 | # Binary search between lo and hi bounds. |
17649 | while test "x$ac_lo" != "x$ac_hi"; do | |
17650 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17651 | cat >conftest.$ac_ext <<_ACEOF | |
17652 | /* confdefs.h. */ | |
17653 | _ACEOF | |
17654 | cat confdefs.h >>conftest.$ac_ext | |
17655 | cat >>conftest.$ac_ext <<_ACEOF | |
17656 | /* end confdefs.h. */ | |
17657 | $ac_includes_default | |
17658 | int | |
17659 | main () | |
17660 | { | |
17661 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17662 | test_array [0] = 0 | |
17663 | ||
17664 | ; | |
17665 | return 0; | |
17666 | } | |
17667 | _ACEOF | |
17668 | rm -f conftest.$ac_objext | |
17669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17670 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17671 | ac_status=$? |
ac1cb8d3 VS |
17672 | grep -v '^ *+' conftest.er1 >conftest.err |
17673 | rm -f conftest.er1 | |
17674 | cat conftest.err >&5 | |
a848cd7e SC |
17675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17676 | (exit $ac_status); } && | |
2cbbc68d RD |
17677 | { ac_try='test -z "$ac_c_werror_flag" |
17678 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17680 | (eval $ac_try) 2>&5 | |
17681 | ac_status=$? | |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17683 | (exit $ac_status); }; } && | |
17684 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17686 | (eval $ac_try) 2>&5 | |
17687 | ac_status=$? | |
17688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17689 | (exit $ac_status); }; }; then | |
17690 | ac_hi=$ac_mid | |
17691 | else | |
17692 | echo "$as_me: failed program was:" >&5 | |
17693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17694 | ||
17695 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17696 | fi | |
ac1cb8d3 | 17697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17698 | done |
17699 | case $ac_lo in | |
17700 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17701 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17702 | See \`config.log' for more details." >&5 | |
17703 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17704 | See \`config.log' for more details." >&2;} | |
17705 | { (exit 1); exit 1; }; } ;; | |
17706 | esac | |
17707 | else | |
17708 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
17709 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17710 | See \`config.log' for more details." >&5 | |
17711 | echo "$as_me: error: cannot run test program while cross compiling | |
17712 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17713 | { (exit 1); exit 1; }; } |
17714 | else | |
17715 | cat >conftest.$ac_ext <<_ACEOF | |
17716 | /* confdefs.h. */ | |
17717 | _ACEOF | |
17718 | cat confdefs.h >>conftest.$ac_ext | |
17719 | cat >>conftest.$ac_ext <<_ACEOF | |
17720 | /* end confdefs.h. */ | |
17721 | $ac_includes_default | |
17722 | long longval () { return (long) (sizeof (long long)); } | |
17723 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17724 | #include <stdio.h> | |
17725 | #include <stdlib.h> | |
17726 | int | |
17727 | main () | |
17728 | { | |
17729 | ||
17730 | FILE *f = fopen ("conftest.val", "w"); | |
17731 | if (! f) | |
17732 | exit (1); | |
17733 | if (((long) (sizeof (long long))) < 0) | |
17734 | { | |
17735 | long i = longval (); | |
17736 | if (i != ((long) (sizeof (long long)))) | |
17737 | exit (1); | |
17738 | fprintf (f, "%ld\n", i); | |
17739 | } | |
17740 | else | |
17741 | { | |
17742 | unsigned long i = ulongval (); | |
17743 | if (i != ((long) (sizeof (long long)))) | |
17744 | exit (1); | |
17745 | fprintf (f, "%lu\n", i); | |
17746 | } | |
17747 | exit (ferror (f) || fclose (f) != 0); | |
17748 | ||
17749 | ; | |
17750 | return 0; | |
17751 | } | |
17752 | _ACEOF | |
17753 | rm -f conftest$ac_exeext | |
17754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17755 | (eval $ac_link) 2>&5 | |
17756 | ac_status=$? | |
17757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17760 | (eval $ac_try) 2>&5 | |
17761 | ac_status=$? | |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17763 | (exit $ac_status); }; }; then | |
17764 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17765 | else | |
17766 | echo "$as_me: program exited with status $ac_status" >&5 | |
17767 | echo "$as_me: failed program was:" >&5 | |
17768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17769 | ||
17770 | ( exit $ac_status ) | |
17771 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17772 | See \`config.log' for more details." >&5 | |
17773 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17774 | See \`config.log' for more details." >&2;} | |
17775 | { (exit 1); exit 1; }; } | |
17776 | fi | |
ac1cb8d3 | 17777 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17778 | fi |
17779 | fi | |
17780 | rm -f conftest.val | |
17781 | else | |
17782 | ac_cv_sizeof_long_long=0 | |
17783 | fi | |
17784 | fi | |
17785 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17786 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17787 | cat >>confdefs.h <<_ACEOF | |
17788 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17789 | _ACEOF | |
17790 | ||
17791 | ||
17792 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17793 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17794 | fi | |
17795 | ;; | |
17796 | * ) | |
17797 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17798 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17799 | if test "${ac_cv_type_long_long+set}" = set; then | |
17800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17801 | else | |
17802 | cat >conftest.$ac_ext <<_ACEOF | |
17803 | /* confdefs.h. */ | |
17804 | _ACEOF | |
17805 | cat confdefs.h >>conftest.$ac_ext | |
17806 | cat >>conftest.$ac_ext <<_ACEOF | |
17807 | /* end confdefs.h. */ | |
17808 | $ac_includes_default | |
17809 | int | |
17810 | main () | |
17811 | { | |
17812 | if ((long long *) 0) | |
17813 | return 0; | |
17814 | if (sizeof (long long)) | |
17815 | return 0; | |
17816 | ; | |
17817 | return 0; | |
17818 | } | |
17819 | _ACEOF | |
17820 | rm -f conftest.$ac_objext | |
17821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17822 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17823 | ac_status=$? |
ac1cb8d3 VS |
17824 | grep -v '^ *+' conftest.er1 >conftest.err |
17825 | rm -f conftest.er1 | |
17826 | cat conftest.err >&5 | |
a848cd7e SC |
17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17828 | (exit $ac_status); } && | |
2cbbc68d RD |
17829 | { ac_try='test -z "$ac_c_werror_flag" |
17830 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17832 | (eval $ac_try) 2>&5 | |
17833 | ac_status=$? | |
17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17835 | (exit $ac_status); }; } && | |
17836 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17838 | (eval $ac_try) 2>&5 | |
17839 | ac_status=$? | |
17840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17841 | (exit $ac_status); }; }; then | |
17842 | ac_cv_type_long_long=yes | |
17843 | else | |
17844 | echo "$as_me: failed program was:" >&5 | |
17845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17846 | ||
17847 | ac_cv_type_long_long=no | |
17848 | fi | |
ac1cb8d3 | 17849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17850 | fi |
17851 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17852 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17853 | ||
17854 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17855 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17856 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17858 | else | |
17859 | if test "$ac_cv_type_long_long" = yes; then | |
17860 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17861 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17862 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17863 | # This bug is HP SR number 8606223364. | |
17864 | if test "$cross_compiling" = yes; then | |
17865 | # Depending upon the size, compute the lo and hi bounds. | |
17866 | cat >conftest.$ac_ext <<_ACEOF | |
17867 | /* confdefs.h. */ | |
17868 | _ACEOF | |
17869 | cat confdefs.h >>conftest.$ac_ext | |
17870 | cat >>conftest.$ac_ext <<_ACEOF | |
17871 | /* end confdefs.h. */ | |
17872 | $ac_includes_default | |
17873 | int | |
17874 | main () | |
17875 | { | |
17876 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17877 | test_array [0] = 0 | |
17878 | ||
17879 | ; | |
17880 | return 0; | |
17881 | } | |
17882 | _ACEOF | |
17883 | rm -f conftest.$ac_objext | |
17884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17885 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17886 | ac_status=$? |
ac1cb8d3 VS |
17887 | grep -v '^ *+' conftest.er1 >conftest.err |
17888 | rm -f conftest.er1 | |
17889 | cat conftest.err >&5 | |
a848cd7e SC |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17891 | (exit $ac_status); } && | |
2cbbc68d RD |
17892 | { ac_try='test -z "$ac_c_werror_flag" |
17893 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17895 | (eval $ac_try) 2>&5 | |
17896 | ac_status=$? | |
17897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17898 | (exit $ac_status); }; } && | |
17899 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17901 | (eval $ac_try) 2>&5 | |
17902 | ac_status=$? | |
17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17904 | (exit $ac_status); }; }; then | |
17905 | ac_lo=0 ac_mid=0 | |
17906 | while :; do | |
17907 | cat >conftest.$ac_ext <<_ACEOF | |
17908 | /* confdefs.h. */ | |
17909 | _ACEOF | |
17910 | cat confdefs.h >>conftest.$ac_ext | |
17911 | cat >>conftest.$ac_ext <<_ACEOF | |
17912 | /* end confdefs.h. */ | |
17913 | $ac_includes_default | |
17914 | int | |
17915 | main () | |
17916 | { | |
17917 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17918 | test_array [0] = 0 | |
17919 | ||
17920 | ; | |
17921 | return 0; | |
17922 | } | |
17923 | _ACEOF | |
17924 | rm -f conftest.$ac_objext | |
17925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17926 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17927 | ac_status=$? |
ac1cb8d3 VS |
17928 | grep -v '^ *+' conftest.er1 >conftest.err |
17929 | rm -f conftest.er1 | |
17930 | cat conftest.err >&5 | |
a848cd7e SC |
17931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17932 | (exit $ac_status); } && | |
2cbbc68d RD |
17933 | { ac_try='test -z "$ac_c_werror_flag" |
17934 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17936 | (eval $ac_try) 2>&5 | |
17937 | ac_status=$? | |
17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17939 | (exit $ac_status); }; } && | |
17940 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17942 | (eval $ac_try) 2>&5 | |
17943 | ac_status=$? | |
17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17945 | (exit $ac_status); }; }; then | |
17946 | ac_hi=$ac_mid; break | |
17947 | else | |
17948 | echo "$as_me: failed program was:" >&5 | |
17949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17950 | ||
17951 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17952 | if test $ac_lo -le $ac_mid; then |
17953 | ac_lo= ac_hi= | |
17954 | break | |
17955 | fi | |
17956 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17957 | fi |
ac1cb8d3 | 17958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17959 | done |
17960 | else | |
17961 | echo "$as_me: failed program was:" >&5 | |
17962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17963 | ||
17964 | cat >conftest.$ac_ext <<_ACEOF | |
17965 | /* confdefs.h. */ | |
17966 | _ACEOF | |
17967 | cat confdefs.h >>conftest.$ac_ext | |
17968 | cat >>conftest.$ac_ext <<_ACEOF | |
17969 | /* end confdefs.h. */ | |
17970 | $ac_includes_default | |
17971 | int | |
17972 | main () | |
17973 | { | |
17974 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17975 | test_array [0] = 0 | |
17976 | ||
17977 | ; | |
17978 | return 0; | |
17979 | } | |
17980 | _ACEOF | |
17981 | rm -f conftest.$ac_objext | |
17982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17983 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17984 | ac_status=$? |
ac1cb8d3 VS |
17985 | grep -v '^ *+' conftest.er1 >conftest.err |
17986 | rm -f conftest.er1 | |
17987 | cat conftest.err >&5 | |
a848cd7e SC |
17988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17989 | (exit $ac_status); } && | |
2cbbc68d RD |
17990 | { ac_try='test -z "$ac_c_werror_flag" |
17991 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17993 | (eval $ac_try) 2>&5 | |
17994 | ac_status=$? | |
17995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17996 | (exit $ac_status); }; } && | |
17997 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17999 | (eval $ac_try) 2>&5 | |
18000 | ac_status=$? | |
18001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18002 | (exit $ac_status); }; }; then | |
18003 | ac_hi=-1 ac_mid=-1 | |
18004 | while :; do | |
18005 | cat >conftest.$ac_ext <<_ACEOF | |
18006 | /* confdefs.h. */ | |
18007 | _ACEOF | |
18008 | cat confdefs.h >>conftest.$ac_ext | |
18009 | cat >>conftest.$ac_ext <<_ACEOF | |
18010 | /* end confdefs.h. */ | |
18011 | $ac_includes_default | |
18012 | int | |
18013 | main () | |
18014 | { | |
18015 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18016 | test_array [0] = 0 | |
18017 | ||
18018 | ; | |
18019 | return 0; | |
18020 | } | |
18021 | _ACEOF | |
18022 | rm -f conftest.$ac_objext | |
18023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18025 | ac_status=$? |
ac1cb8d3 VS |
18026 | grep -v '^ *+' conftest.er1 >conftest.err |
18027 | rm -f conftest.er1 | |
18028 | cat conftest.err >&5 | |
a848cd7e SC |
18029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18030 | (exit $ac_status); } && | |
2cbbc68d RD |
18031 | { ac_try='test -z "$ac_c_werror_flag" |
18032 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18034 | (eval $ac_try) 2>&5 | |
18035 | ac_status=$? | |
18036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18037 | (exit $ac_status); }; } && | |
18038 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18040 | (eval $ac_try) 2>&5 | |
18041 | ac_status=$? | |
18042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18043 | (exit $ac_status); }; }; then | |
18044 | ac_lo=$ac_mid; break | |
18045 | else | |
18046 | echo "$as_me: failed program was:" >&5 | |
18047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18048 | ||
18049 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18050 | if test $ac_mid -le $ac_hi; then |
18051 | ac_lo= ac_hi= | |
18052 | break | |
18053 | fi | |
18054 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18055 | fi |
ac1cb8d3 | 18056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18057 | done |
18058 | else | |
18059 | echo "$as_me: failed program was:" >&5 | |
18060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18061 | ||
18062 | ac_lo= ac_hi= | |
18063 | fi | |
ac1cb8d3 | 18064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18065 | fi |
ac1cb8d3 | 18066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18067 | # Binary search between lo and hi bounds. |
18068 | while test "x$ac_lo" != "x$ac_hi"; do | |
18069 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18070 | cat >conftest.$ac_ext <<_ACEOF | |
18071 | /* confdefs.h. */ | |
18072 | _ACEOF | |
18073 | cat confdefs.h >>conftest.$ac_ext | |
18074 | cat >>conftest.$ac_ext <<_ACEOF | |
18075 | /* end confdefs.h. */ | |
18076 | $ac_includes_default | |
18077 | int | |
18078 | main () | |
18079 | { | |
18080 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18081 | test_array [0] = 0 | |
18082 | ||
18083 | ; | |
18084 | return 0; | |
18085 | } | |
18086 | _ACEOF | |
18087 | rm -f conftest.$ac_objext | |
18088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18089 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18090 | ac_status=$? |
ac1cb8d3 VS |
18091 | grep -v '^ *+' conftest.er1 >conftest.err |
18092 | rm -f conftest.er1 | |
18093 | cat conftest.err >&5 | |
a848cd7e SC |
18094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18095 | (exit $ac_status); } && | |
2cbbc68d RD |
18096 | { ac_try='test -z "$ac_c_werror_flag" |
18097 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18099 | (eval $ac_try) 2>&5 | |
18100 | ac_status=$? | |
18101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18102 | (exit $ac_status); }; } && | |
18103 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18105 | (eval $ac_try) 2>&5 | |
18106 | ac_status=$? | |
18107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18108 | (exit $ac_status); }; }; then | |
18109 | ac_hi=$ac_mid | |
18110 | else | |
18111 | echo "$as_me: failed program was:" >&5 | |
18112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18113 | ||
18114 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18115 | fi | |
ac1cb8d3 | 18116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18117 | done |
18118 | case $ac_lo in | |
18119 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18120 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18121 | See \`config.log' for more details." >&5 | |
18122 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18123 | See \`config.log' for more details." >&2;} | |
18124 | { (exit 1); exit 1; }; } ;; | |
18125 | esac | |
18126 | else | |
18127 | if test "$cross_compiling" = yes; then | |
2cbbc68d RD |
18128 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18129 | See \`config.log' for more details." >&5 | |
18130 | echo "$as_me: error: cannot run test program while cross compiling | |
18131 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18132 | { (exit 1); exit 1; }; } |
18133 | else | |
18134 | cat >conftest.$ac_ext <<_ACEOF | |
18135 | /* confdefs.h. */ | |
18136 | _ACEOF | |
18137 | cat confdefs.h >>conftest.$ac_ext | |
18138 | cat >>conftest.$ac_ext <<_ACEOF | |
18139 | /* end confdefs.h. */ | |
18140 | $ac_includes_default | |
18141 | long longval () { return (long) (sizeof (long long)); } | |
18142 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18143 | #include <stdio.h> | |
18144 | #include <stdlib.h> | |
18145 | int | |
18146 | main () | |
18147 | { | |
18148 | ||
18149 | FILE *f = fopen ("conftest.val", "w"); | |
18150 | if (! f) | |
18151 | exit (1); | |
18152 | if (((long) (sizeof (long long))) < 0) | |
18153 | { | |
18154 | long i = longval (); | |
18155 | if (i != ((long) (sizeof (long long)))) | |
18156 | exit (1); | |
18157 | fprintf (f, "%ld\n", i); | |
18158 | } | |
18159 | else | |
18160 | { | |
18161 | unsigned long i = ulongval (); | |
18162 | if (i != ((long) (sizeof (long long)))) | |
18163 | exit (1); | |
18164 | fprintf (f, "%lu\n", i); | |
18165 | } | |
18166 | exit (ferror (f) || fclose (f) != 0); | |
18167 | ||
18168 | ; | |
18169 | return 0; | |
18170 | } | |
18171 | _ACEOF | |
18172 | rm -f conftest$ac_exeext | |
18173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18174 | (eval $ac_link) 2>&5 | |
18175 | ac_status=$? | |
18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18177 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18179 | (eval $ac_try) 2>&5 | |
18180 | ac_status=$? | |
18181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18182 | (exit $ac_status); }; }; then | |
18183 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18184 | else | |
18185 | echo "$as_me: program exited with status $ac_status" >&5 | |
18186 | echo "$as_me: failed program was:" >&5 | |
18187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18188 | ||
18189 | ( exit $ac_status ) | |
18190 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18191 | See \`config.log' for more details." >&5 | |
18192 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18193 | See \`config.log' for more details." >&2;} | |
18194 | { (exit 1); exit 1; }; } | |
18195 | fi | |
ac1cb8d3 | 18196 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18197 | fi |
18198 | fi | |
18199 | rm -f conftest.val | |
18200 | else | |
18201 | ac_cv_sizeof_long_long=0 | |
18202 | fi | |
18203 | fi | |
18204 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18205 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18206 | cat >>confdefs.h <<_ACEOF | |
18207 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18208 | _ACEOF | |
18209 | ||
18210 | ||
18211 | esac | |
18212 | ||
18213 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18214 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18215 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18217 | else | |
18218 | ||
18219 | if test "$cross_compiling" = yes; then | |
18220 | ||
18221 | case "${host}" in | |
18222 | *-pc-msdosdjgpp ) | |
18223 | wx_cv_sizeof_wchar_t=0 | |
18224 | ;; | |
18225 | * ) | |
18226 | wx_cv_sizeof_wchar_t=4 | |
18227 | ;; | |
18228 | esac | |
18229 | ||
18230 | ||
18231 | else | |
18232 | cat >conftest.$ac_ext <<_ACEOF | |
18233 | /* confdefs.h. */ | |
18234 | _ACEOF | |
18235 | cat confdefs.h >>conftest.$ac_ext | |
18236 | cat >>conftest.$ac_ext <<_ACEOF | |
18237 | /* end confdefs.h. */ | |
18238 | ||
18239 | /* DJGPP only has fake wchar_t: */ | |
18240 | #ifdef __DJGPP__ | |
18241 | # error "fake wchar_t" | |
18242 | #endif | |
18243 | #ifdef HAVE_WCHAR_H | |
18244 | # ifdef __CYGWIN__ | |
18245 | # include <stddef.h> | |
18246 | # endif | |
18247 | # include <wchar.h> | |
18248 | #endif | |
18249 | #ifdef HAVE_STDLIB_H | |
18250 | # include <stdlib.h> | |
18251 | #endif | |
18252 | #include <stdio.h> | |
18253 | int main() | |
18254 | { | |
18255 | FILE *f=fopen("conftestval", "w"); | |
18256 | if (!f) exit(1); | |
18257 | fprintf(f, "%i", sizeof(wchar_t)); | |
18258 | exit(0); | |
18259 | } | |
18260 | ||
18261 | _ACEOF | |
18262 | rm -f conftest$ac_exeext | |
18263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18264 | (eval $ac_link) 2>&5 | |
18265 | ac_status=$? | |
18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18267 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18269 | (eval $ac_try) 2>&5 | |
18270 | ac_status=$? | |
18271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18272 | (exit $ac_status); }; }; then | |
18273 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18274 | else | |
18275 | echo "$as_me: program exited with status $ac_status" >&5 | |
18276 | echo "$as_me: failed program was:" >&5 | |
18277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18278 | ||
18279 | ( exit $ac_status ) | |
18280 | wx_cv_sizeof_wchar_t=0 | |
18281 | fi | |
ac1cb8d3 | 18282 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18283 | fi |
18284 | ||
18285 | fi | |
18286 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18287 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18288 | ||
18289 | cat >>confdefs.h <<_ACEOF | |
18290 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18291 | _ACEOF | |
18292 | ||
18293 | ||
ba3d13e1 VZ |
18294 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18295 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18296 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18298 | else | |
18299 | ||
18300 | cat >conftest.$ac_ext <<_ACEOF | |
18301 | ||
18302 | #include <stdarg.h> | |
18303 | void foo(char *f, ...) | |
18304 | { | |
18305 | va_list ap1, ap2; | |
18306 | va_start(ap1, f); | |
18307 | va_copy(ap2, ap1); | |
18308 | va_end(ap2); | |
18309 | va_end(ap1); | |
18310 | } | |
18311 | _ACEOF | |
18312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18314 | (eval $ac_link) 2>conftest.er1 | |
18315 | ac_status=$? | |
18316 | grep -v '^ *+' conftest.er1 >conftest.err | |
18317 | rm -f conftest.er1 | |
18318 | cat conftest.err >&5 | |
18319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18320 | (exit $ac_status); } && | |
2cbbc68d RD |
18321 | { ac_try='test -z "$ac_c_werror_flag" |
18322 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
18323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18324 | (eval $ac_try) 2>&5 | |
18325 | ac_status=$? | |
18326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18327 | (exit $ac_status); }; } && | |
18328 | { ac_try='test -s conftest$ac_exeext' | |
18329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18330 | (eval $ac_try) 2>&5 | |
18331 | ac_status=$? | |
18332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18333 | (exit $ac_status); }; }; then | |
18334 | wx_cv_func_va_copy=yes | |
18335 | else | |
18336 | echo "$as_me: failed program was:" >&5 | |
18337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18338 | ||
18339 | wx_cv_func_va_copy=no | |
18340 | ||
18341 | fi | |
18342 | rm -f conftest.err conftest.$ac_objext \ | |
18343 | conftest$ac_exeext conftest.$ac_ext | |
18344 | ||
18345 | ||
18346 | fi | |
18347 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18348 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18349 | ||
18350 | if test $wx_cv_func_va_copy = "yes"; then | |
18351 | cat >>confdefs.h <<\_ACEOF | |
18352 | #define HAVE_VA_COPY 1 | |
18353 | _ACEOF | |
18354 | ||
18355 | else | |
18356 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18357 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18358 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18360 | else | |
18361 | ||
18362 | if test "$cross_compiling" = yes; then | |
18363 | wx_cv_type_va_list_lvalue=yes | |
18364 | ||
18365 | else | |
18366 | cat >conftest.$ac_ext <<_ACEOF | |
18367 | ||
18368 | #include <stdarg.h> | |
18369 | int foo(char *f, ...) | |
18370 | { | |
18371 | va_list ap1, ap2; | |
18372 | va_start(ap1, f); | |
18373 | ap2 = ap1; | |
18374 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18375 | return 1; | |
18376 | va_end(ap2); | |
18377 | va_end(ap1); | |
18378 | return 0; | |
18379 | } | |
18380 | int main() | |
18381 | { | |
18382 | return foo("hi", 17); | |
18383 | } | |
18384 | _ACEOF | |
18385 | rm -f conftest$ac_exeext | |
18386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18387 | (eval $ac_link) 2>&5 | |
18388 | ac_status=$? | |
18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18392 | (eval $ac_try) 2>&5 | |
18393 | ac_status=$? | |
18394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18395 | (exit $ac_status); }; }; then | |
18396 | wx_cv_type_va_list_lvalue=yes | |
18397 | else | |
18398 | echo "$as_me: program exited with status $ac_status" >&5 | |
18399 | echo "$as_me: failed program was:" >&5 | |
18400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18401 | ||
18402 | ( exit $ac_status ) | |
18403 | wx_cv_type_va_list_lvalue=no | |
18404 | fi | |
18405 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18406 | fi | |
18407 | ||
18408 | ||
18409 | fi | |
18410 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18411 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18412 | ||
18413 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18414 | cat >>confdefs.h <<\_ACEOF | |
18415 | #define VA_LIST_IS_ARRAY 1 | |
18416 | _ACEOF | |
18417 | ||
18418 | fi | |
18419 | fi | |
18420 | ||
a848cd7e SC |
18421 | # Check whether --enable-largefile or --disable-largefile was given. |
18422 | if test "${enable_largefile+set}" = set; then | |
18423 | enableval="$enable_largefile" | |
18424 | ||
18425 | fi; | |
18426 | if test "$enable_largefile" != no; then | |
18427 | wx_largefile=no | |
18428 | ||
18429 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18430 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18431 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18433 | else | |
18434 | ||
18435 | cat >conftest.$ac_ext <<_ACEOF | |
18436 | /* confdefs.h. */ | |
18437 | _ACEOF | |
18438 | cat confdefs.h >>conftest.$ac_ext | |
18439 | cat >>conftest.$ac_ext <<_ACEOF | |
18440 | /* end confdefs.h. */ | |
18441 | #define _FILE_OFFSET_BITS 64 | |
18442 | #include <sys/types.h> | |
18443 | int | |
18444 | main () | |
18445 | { | |
18446 | typedef struct { | |
18447 | unsigned int field: sizeof(off_t) == 8; | |
18448 | } wxlf; | |
18449 | ||
18450 | ; | |
18451 | return 0; | |
18452 | } | |
18453 | _ACEOF | |
18454 | rm -f conftest.$ac_objext | |
18455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18456 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18457 | ac_status=$? |
ac1cb8d3 VS |
18458 | grep -v '^ *+' conftest.er1 >conftest.err |
18459 | rm -f conftest.er1 | |
18460 | cat conftest.err >&5 | |
a848cd7e SC |
18461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18462 | (exit $ac_status); } && | |
2cbbc68d RD |
18463 | { ac_try='test -z "$ac_c_werror_flag" |
18464 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18466 | (eval $ac_try) 2>&5 | |
18467 | ac_status=$? | |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18469 | (exit $ac_status); }; } && | |
18470 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18472 | (eval $ac_try) 2>&5 | |
18473 | ac_status=$? | |
18474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18475 | (exit $ac_status); }; }; then | |
18476 | ac_cv_sys_file_offset_bits=64 | |
18477 | else | |
18478 | echo "$as_me: failed program was:" >&5 | |
18479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18480 | ||
18481 | ac_cv_sys_file_offset_bits=no | |
18482 | fi | |
ac1cb8d3 | 18483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18484 | |
18485 | ||
18486 | fi | |
18487 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18488 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18489 | ||
18490 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18491 | wx_largefile=yes | |
18492 | cat >>confdefs.h <<_ACEOF | |
18493 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18494 | _ACEOF | |
18495 | ||
18496 | fi | |
18497 | ||
18498 | if test "x$wx_largefile" != "xyes"; then | |
18499 | ||
18500 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18501 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18502 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18504 | else | |
18505 | ||
18506 | cat >conftest.$ac_ext <<_ACEOF | |
18507 | /* confdefs.h. */ | |
18508 | _ACEOF | |
18509 | cat confdefs.h >>conftest.$ac_ext | |
18510 | cat >>conftest.$ac_ext <<_ACEOF | |
18511 | /* end confdefs.h. */ | |
18512 | #define _LARGE_FILES 1 | |
18513 | #include <sys/types.h> | |
18514 | int | |
18515 | main () | |
18516 | { | |
18517 | typedef struct { | |
18518 | unsigned int field: sizeof(off_t) == 8; | |
18519 | } wxlf; | |
18520 | ||
18521 | ; | |
18522 | return 0; | |
18523 | } | |
18524 | _ACEOF | |
18525 | rm -f conftest.$ac_objext | |
18526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18528 | ac_status=$? |
ac1cb8d3 VS |
18529 | grep -v '^ *+' conftest.er1 >conftest.err |
18530 | rm -f conftest.er1 | |
18531 | cat conftest.err >&5 | |
a848cd7e SC |
18532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18533 | (exit $ac_status); } && | |
2cbbc68d RD |
18534 | { ac_try='test -z "$ac_c_werror_flag" |
18535 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18537 | (eval $ac_try) 2>&5 | |
18538 | ac_status=$? | |
18539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18540 | (exit $ac_status); }; } && | |
18541 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18543 | (eval $ac_try) 2>&5 | |
18544 | ac_status=$? | |
18545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18546 | (exit $ac_status); }; }; then | |
18547 | ac_cv_sys_large_files=1 | |
18548 | else | |
18549 | echo "$as_me: failed program was:" >&5 | |
18550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18551 | ||
18552 | ac_cv_sys_large_files=no | |
18553 | fi | |
ac1cb8d3 | 18554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18555 | |
18556 | ||
18557 | fi | |
18558 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18559 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18560 | ||
18561 | if test "$ac_cv_sys_large_files" != no; then | |
18562 | wx_largefile=yes | |
18563 | cat >>confdefs.h <<_ACEOF | |
18564 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18565 | _ACEOF | |
18566 | ||
18567 | fi | |
18568 | ||
18569 | fi | |
18570 | ||
18571 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18572 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18573 | if test "x$wx_largefile" = "xyes"; then | |
18574 | cat >>confdefs.h <<\_ACEOF | |
18575 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18576 | _ACEOF | |
18577 | ||
18578 | fi | |
18579 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18580 | echo "${ECHO_T}$wx_largefile" >&6 | |
18581 | fi | |
18582 | ||
18583 | ||
18584 | if test "x$wx_largefile" = "xyes"; then | |
18585 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18586 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18587 | else | |
18588 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18589 | fi | |
18590 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18591 | fi | |
18592 | ||
18593 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18594 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18595 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18597 | else | |
18598 | ac_cv_c_bigendian=unknown | |
18599 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18600 | cat >conftest.$ac_ext <<_ACEOF | |
18601 | /* confdefs.h. */ | |
18602 | _ACEOF | |
18603 | cat confdefs.h >>conftest.$ac_ext | |
18604 | cat >>conftest.$ac_ext <<_ACEOF | |
18605 | /* end confdefs.h. */ | |
18606 | #include <sys/types.h> | |
18607 | #include <sys/param.h> | |
18608 | int | |
18609 | main () | |
18610 | { | |
18611 | ||
18612 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18613 | bogus endian macros | |
18614 | #endif | |
18615 | ; | |
18616 | return 0; | |
18617 | } | |
18618 | _ACEOF | |
18619 | rm -f conftest.$ac_objext | |
18620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18621 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18622 | ac_status=$? |
ac1cb8d3 VS |
18623 | grep -v '^ *+' conftest.er1 >conftest.err |
18624 | rm -f conftest.er1 | |
18625 | cat conftest.err >&5 | |
a848cd7e SC |
18626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18627 | (exit $ac_status); } && | |
2cbbc68d RD |
18628 | { ac_try='test -z "$ac_c_werror_flag" |
18629 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18631 | (eval $ac_try) 2>&5 | |
18632 | ac_status=$? | |
18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18634 | (exit $ac_status); }; } && | |
18635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18637 | (eval $ac_try) 2>&5 | |
18638 | ac_status=$? | |
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); }; }; then | |
18641 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18642 | cat >conftest.$ac_ext <<_ACEOF | |
18643 | /* confdefs.h. */ | |
18644 | _ACEOF | |
18645 | cat confdefs.h >>conftest.$ac_ext | |
18646 | cat >>conftest.$ac_ext <<_ACEOF | |
18647 | /* end confdefs.h. */ | |
18648 | #include <sys/types.h> | |
18649 | #include <sys/param.h> | |
18650 | int | |
18651 | main () | |
18652 | { | |
18653 | ||
18654 | #if BYTE_ORDER != BIG_ENDIAN | |
18655 | not big endian | |
18656 | #endif | |
18657 | ; | |
18658 | return 0; | |
18659 | } | |
18660 | _ACEOF | |
18661 | rm -f conftest.$ac_objext | |
18662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18663 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18664 | ac_status=$? |
ac1cb8d3 VS |
18665 | grep -v '^ *+' conftest.er1 >conftest.err |
18666 | rm -f conftest.er1 | |
18667 | cat conftest.err >&5 | |
a848cd7e SC |
18668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18669 | (exit $ac_status); } && | |
2cbbc68d RD |
18670 | { ac_try='test -z "$ac_c_werror_flag" |
18671 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18673 | (eval $ac_try) 2>&5 | |
18674 | ac_status=$? | |
18675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18676 | (exit $ac_status); }; } && | |
18677 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18679 | (eval $ac_try) 2>&5 | |
18680 | ac_status=$? | |
18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18682 | (exit $ac_status); }; }; then | |
18683 | ac_cv_c_bigendian=yes | |
18684 | else | |
18685 | echo "$as_me: failed program was:" >&5 | |
18686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18687 | ||
18688 | ac_cv_c_bigendian=no | |
18689 | fi | |
ac1cb8d3 | 18690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18691 | else |
18692 | echo "$as_me: failed program was:" >&5 | |
18693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18694 | ||
18695 | fi | |
ac1cb8d3 | 18696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18697 | if test $ac_cv_c_bigendian = unknown; then |
18698 | if test "$cross_compiling" = yes; then | |
18699 | ac_cv_c_bigendian=unknown | |
18700 | else | |
18701 | cat >conftest.$ac_ext <<_ACEOF | |
18702 | /* confdefs.h. */ | |
18703 | _ACEOF | |
18704 | cat confdefs.h >>conftest.$ac_ext | |
18705 | cat >>conftest.$ac_ext <<_ACEOF | |
18706 | /* end confdefs.h. */ | |
18707 | main () { | |
18708 | /* Are we little or big endian? From Harbison&Steele. */ | |
18709 | union | |
18710 | { | |
18711 | long l; | |
18712 | char c[sizeof (long)]; | |
18713 | } u; | |
18714 | u.l = 1; | |
18715 | exit (u.c[sizeof (long) - 1] == 1); | |
18716 | } | |
18717 | _ACEOF | |
18718 | rm -f conftest$ac_exeext | |
18719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18720 | (eval $ac_link) 2>&5 | |
18721 | ac_status=$? | |
18722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18723 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18725 | (eval $ac_try) 2>&5 | |
18726 | ac_status=$? | |
18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18728 | (exit $ac_status); }; }; then | |
18729 | ac_cv_c_bigendian=no | |
18730 | else | |
18731 | echo "$as_me: program exited with status $ac_status" >&5 | |
18732 | echo "$as_me: failed program was:" >&5 | |
18733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18734 | ||
18735 | ( exit $ac_status ) | |
18736 | ac_cv_c_bigendian=yes | |
18737 | fi | |
ac1cb8d3 | 18738 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18739 | fi |
18740 | fi | |
18741 | fi | |
18742 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18743 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18744 | if test $ac_cv_c_bigendian = unknown; then | |
18745 | { 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 | |
18746 | 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;} | |
18747 | fi | |
18748 | if test $ac_cv_c_bigendian = yes; then | |
18749 | cat >>confdefs.h <<\_ACEOF | |
18750 | #define WORDS_BIGENDIAN 1 | |
18751 | _ACEOF | |
18752 | ||
18753 | fi | |
18754 | ||
18755 | ||
18756 | ac_ext=cc | |
18757 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18758 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18759 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18760 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18761 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18762 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18763 | if test -z "$CXXCPP"; then | |
18764 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18766 | else | |
18767 | # Double quotes because CXXCPP needs to be expanded | |
18768 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18769 | do | |
18770 | ac_preproc_ok=false | |
18771 | for ac_cxx_preproc_warn_flag in '' yes | |
18772 | do | |
18773 | # Use a header file that comes with gcc, so configuring glibc | |
18774 | # with a fresh cross-compiler works. | |
18775 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18776 | # <limits.h> exists even on freestanding compilers. | |
18777 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18778 | # not just through cpp. "Syntax error" is here to catch this case. | |
18779 | cat >conftest.$ac_ext <<_ACEOF | |
18780 | /* confdefs.h. */ | |
18781 | _ACEOF | |
18782 | cat confdefs.h >>conftest.$ac_ext | |
18783 | cat >>conftest.$ac_ext <<_ACEOF | |
18784 | /* end confdefs.h. */ | |
18785 | #ifdef __STDC__ | |
18786 | # include <limits.h> | |
18787 | #else | |
18788 | # include <assert.h> | |
18789 | #endif | |
ac1cb8d3 | 18790 | Syntax error |
a848cd7e SC |
18791 | _ACEOF |
18792 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18793 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18794 | ac_status=$? | |
18795 | grep -v '^ *+' conftest.er1 >conftest.err | |
18796 | rm -f conftest.er1 | |
18797 | cat conftest.err >&5 | |
18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18799 | (exit $ac_status); } >/dev/null; then | |
18800 | if test -s conftest.err; then | |
18801 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18802 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18803 | else |
18804 | ac_cpp_err= | |
18805 | fi | |
18806 | else | |
18807 | ac_cpp_err=yes | |
18808 | fi | |
18809 | if test -z "$ac_cpp_err"; then | |
18810 | : | |
18811 | else | |
18812 | echo "$as_me: failed program was:" >&5 | |
18813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18814 | ||
18815 | # Broken: fails on valid input. | |
18816 | continue | |
18817 | fi | |
18818 | rm -f conftest.err conftest.$ac_ext | |
18819 | ||
18820 | # OK, works on sane cases. Now check whether non-existent headers | |
18821 | # can be detected and how. | |
18822 | cat >conftest.$ac_ext <<_ACEOF | |
18823 | /* confdefs.h. */ | |
18824 | _ACEOF | |
18825 | cat confdefs.h >>conftest.$ac_ext | |
18826 | cat >>conftest.$ac_ext <<_ACEOF | |
18827 | /* end confdefs.h. */ | |
18828 | #include <ac_nonexistent.h> | |
18829 | _ACEOF | |
18830 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18831 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18832 | ac_status=$? | |
18833 | grep -v '^ *+' conftest.er1 >conftest.err | |
18834 | rm -f conftest.er1 | |
18835 | cat conftest.err >&5 | |
18836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18837 | (exit $ac_status); } >/dev/null; then | |
18838 | if test -s conftest.err; then | |
18839 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18840 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18841 | else |
18842 | ac_cpp_err= | |
18843 | fi | |
18844 | else | |
18845 | ac_cpp_err=yes | |
18846 | fi | |
18847 | if test -z "$ac_cpp_err"; then | |
18848 | # Broken: success on invalid input. | |
18849 | continue | |
18850 | else | |
18851 | echo "$as_me: failed program was:" >&5 | |
18852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18853 | ||
18854 | # Passes both tests. | |
18855 | ac_preproc_ok=: | |
18856 | break | |
18857 | fi | |
18858 | rm -f conftest.err conftest.$ac_ext | |
18859 | ||
18860 | done | |
18861 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18862 | rm -f conftest.err conftest.$ac_ext | |
18863 | if $ac_preproc_ok; then | |
18864 | break | |
18865 | fi | |
18866 | ||
18867 | done | |
18868 | ac_cv_prog_CXXCPP=$CXXCPP | |
18869 | ||
18870 | fi | |
18871 | CXXCPP=$ac_cv_prog_CXXCPP | |
18872 | else | |
18873 | ac_cv_prog_CXXCPP=$CXXCPP | |
18874 | fi | |
18875 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18876 | echo "${ECHO_T}$CXXCPP" >&6 | |
18877 | ac_preproc_ok=false | |
18878 | for ac_cxx_preproc_warn_flag in '' yes | |
18879 | do | |
18880 | # Use a header file that comes with gcc, so configuring glibc | |
18881 | # with a fresh cross-compiler works. | |
18882 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18883 | # <limits.h> exists even on freestanding compilers. | |
18884 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18885 | # not just through cpp. "Syntax error" is here to catch this case. | |
18886 | cat >conftest.$ac_ext <<_ACEOF | |
18887 | /* confdefs.h. */ | |
18888 | _ACEOF | |
18889 | cat confdefs.h >>conftest.$ac_ext | |
18890 | cat >>conftest.$ac_ext <<_ACEOF | |
18891 | /* end confdefs.h. */ | |
18892 | #ifdef __STDC__ | |
18893 | # include <limits.h> | |
18894 | #else | |
18895 | # include <assert.h> | |
18896 | #endif | |
ac1cb8d3 | 18897 | Syntax error |
a848cd7e SC |
18898 | _ACEOF |
18899 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18900 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18901 | ac_status=$? | |
18902 | grep -v '^ *+' conftest.er1 >conftest.err | |
18903 | rm -f conftest.er1 | |
18904 | cat conftest.err >&5 | |
18905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18906 | (exit $ac_status); } >/dev/null; then | |
18907 | if test -s conftest.err; then | |
18908 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18909 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18910 | else |
18911 | ac_cpp_err= | |
18912 | fi | |
18913 | else | |
18914 | ac_cpp_err=yes | |
18915 | fi | |
18916 | if test -z "$ac_cpp_err"; then | |
18917 | : | |
18918 | else | |
18919 | echo "$as_me: failed program was:" >&5 | |
18920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18921 | ||
18922 | # Broken: fails on valid input. | |
18923 | continue | |
18924 | fi | |
18925 | rm -f conftest.err conftest.$ac_ext | |
18926 | ||
18927 | # OK, works on sane cases. Now check whether non-existent headers | |
18928 | # can be detected and how. | |
18929 | cat >conftest.$ac_ext <<_ACEOF | |
18930 | /* confdefs.h. */ | |
18931 | _ACEOF | |
18932 | cat confdefs.h >>conftest.$ac_ext | |
18933 | cat >>conftest.$ac_ext <<_ACEOF | |
18934 | /* end confdefs.h. */ | |
18935 | #include <ac_nonexistent.h> | |
18936 | _ACEOF | |
18937 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18938 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18939 | ac_status=$? | |
18940 | grep -v '^ *+' conftest.er1 >conftest.err | |
18941 | rm -f conftest.er1 | |
18942 | cat conftest.err >&5 | |
18943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18944 | (exit $ac_status); } >/dev/null; then | |
18945 | if test -s conftest.err; then | |
18946 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18947 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18948 | else |
18949 | ac_cpp_err= | |
18950 | fi | |
18951 | else | |
18952 | ac_cpp_err=yes | |
18953 | fi | |
18954 | if test -z "$ac_cpp_err"; then | |
18955 | # Broken: success on invalid input. | |
18956 | continue | |
18957 | else | |
18958 | echo "$as_me: failed program was:" >&5 | |
18959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18960 | ||
18961 | # Passes both tests. | |
18962 | ac_preproc_ok=: | |
18963 | break | |
18964 | fi | |
18965 | rm -f conftest.err conftest.$ac_ext | |
18966 | ||
18967 | done | |
18968 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18969 | rm -f conftest.err conftest.$ac_ext | |
18970 | if $ac_preproc_ok; then | |
18971 | : | |
18972 | else | |
18973 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18974 | See \`config.log' for more details." >&5 | |
18975 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18976 | See \`config.log' for more details." >&2;} | |
18977 | { (exit 1); exit 1; }; } | |
18978 | fi | |
18979 | ||
18980 | ac_ext=cc | |
18981 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18982 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18983 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18984 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18985 | ||
18986 | ||
18987 | ||
18988 | ||
18989 | ||
18990 | ac_ext=cc | |
18991 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18992 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18993 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18994 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18995 | ||
18996 | ||
18997 | ||
18998 | for ac_header in iostream | |
18999 | do | |
19000 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19002 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19003 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19006 | fi | |
19007 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19008 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19009 | else | |
19010 | # Is the header compilable? | |
19011 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19012 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19013 | cat >conftest.$ac_ext <<_ACEOF | |
19014 | /* confdefs.h. */ | |
19015 | _ACEOF | |
19016 | cat confdefs.h >>conftest.$ac_ext | |
19017 | cat >>conftest.$ac_ext <<_ACEOF | |
19018 | /* end confdefs.h. */ | |
19019 | $ac_includes_default | |
19020 | #include <$ac_header> | |
19021 | _ACEOF | |
19022 | rm -f conftest.$ac_objext | |
19023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19025 | ac_status=$? |
ac1cb8d3 VS |
19026 | grep -v '^ *+' conftest.er1 >conftest.err |
19027 | rm -f conftest.er1 | |
19028 | cat conftest.err >&5 | |
a848cd7e SC |
19029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19030 | (exit $ac_status); } && | |
2cbbc68d RD |
19031 | { ac_try='test -z "$ac_cxx_werror_flag" |
19032 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19034 | (eval $ac_try) 2>&5 | |
19035 | ac_status=$? | |
19036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19037 | (exit $ac_status); }; } && | |
19038 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19040 | (eval $ac_try) 2>&5 | |
19041 | ac_status=$? | |
19042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19043 | (exit $ac_status); }; }; then | |
19044 | ac_header_compiler=yes | |
19045 | else | |
19046 | echo "$as_me: failed program was:" >&5 | |
19047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19048 | ||
19049 | ac_header_compiler=no | |
19050 | fi | |
ac1cb8d3 | 19051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19052 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19053 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19054 | ||
19055 | # Is the header present? | |
19056 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19057 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19058 | cat >conftest.$ac_ext <<_ACEOF | |
19059 | /* confdefs.h. */ | |
19060 | _ACEOF | |
19061 | cat confdefs.h >>conftest.$ac_ext | |
19062 | cat >>conftest.$ac_ext <<_ACEOF | |
19063 | /* end confdefs.h. */ | |
19064 | #include <$ac_header> | |
19065 | _ACEOF | |
19066 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19067 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19068 | ac_status=$? | |
19069 | grep -v '^ *+' conftest.er1 >conftest.err | |
19070 | rm -f conftest.er1 | |
19071 | cat conftest.err >&5 | |
19072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19073 | (exit $ac_status); } >/dev/null; then | |
19074 | if test -s conftest.err; then | |
19075 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19076 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19077 | else |
19078 | ac_cpp_err= | |
19079 | fi | |
19080 | else | |
19081 | ac_cpp_err=yes | |
19082 | fi | |
19083 | if test -z "$ac_cpp_err"; then | |
19084 | ac_header_preproc=yes | |
19085 | else | |
19086 | echo "$as_me: failed program was:" >&5 | |
19087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19088 | ||
19089 | ac_header_preproc=no | |
19090 | fi | |
19091 | rm -f conftest.err conftest.$ac_ext | |
19092 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19093 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19094 | ||
19095 | # So? What about this header? | |
ac1cb8d3 VS |
19096 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19097 | yes:no: ) | |
a848cd7e SC |
19098 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19099 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19100 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19101 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19102 | ac_header_preproc=yes | |
a848cd7e | 19103 | ;; |
ac1cb8d3 | 19104 | no:yes:* ) |
a848cd7e SC |
19105 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19106 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19107 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19108 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19109 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19110 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19111 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19112 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
19113 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19114 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19115 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19116 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
19117 | ( |
19118 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19119 | ## ----------------------------------------- ## |
19120 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19121 | ## ----------------------------------------- ## | |
a848cd7e SC |
19122 | _ASBOX |
19123 | ) | | |
19124 | sed "s/^/$as_me: WARNING: /" >&2 | |
19125 | ;; | |
19126 | esac | |
19127 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19129 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19131 | else | |
ac1cb8d3 | 19132 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
19133 | fi |
19134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19135 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19136 | ||
19137 | fi | |
19138 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19139 | cat >>confdefs.h <<_ACEOF | |
19140 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19141 | _ACEOF | |
19142 | ||
19143 | fi | |
19144 | ||
19145 | done | |
19146 | ||
19147 | ||
19148 | if test "$ac_cv_header_iostream" = "yes" ; then | |
19149 | : | |
19150 | else | |
19151 | cat >>confdefs.h <<\_ACEOF | |
19152 | #define wxUSE_IOSTREAMH 1 | |
19153 | _ACEOF | |
19154 | ||
19155 | fi | |
19156 | ||
19157 | ac_ext=c | |
19158 | ac_cpp='$CPP $CPPFLAGS' | |
19159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19162 | ||
19163 | ||
19164 | ||
19165 | ||
19166 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
19167 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
19168 | if test "${wx_cv_cpp_bool+set}" = set; then | |
19169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19170 | else | |
19171 | ||
19172 | ||
19173 | ||
19174 | ac_ext=cc | |
19175 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19176 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19177 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19178 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19179 | ||
19180 | ||
19181 | cat >conftest.$ac_ext <<_ACEOF | |
19182 | /* confdefs.h. */ | |
19183 | _ACEOF | |
19184 | cat confdefs.h >>conftest.$ac_ext | |
19185 | cat >>conftest.$ac_ext <<_ACEOF | |
19186 | /* end confdefs.h. */ | |
19187 | ||
19188 | ||
19189 | int | |
19190 | main () | |
19191 | { | |
19192 | ||
19193 | bool b = true; | |
19194 | ||
19195 | return 0; | |
19196 | ||
19197 | ; | |
19198 | return 0; | |
19199 | } | |
19200 | _ACEOF | |
19201 | rm -f conftest.$ac_objext | |
19202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19203 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19204 | ac_status=$? |
ac1cb8d3 VS |
19205 | grep -v '^ *+' conftest.er1 >conftest.err |
19206 | rm -f conftest.er1 | |
19207 | cat conftest.err >&5 | |
a848cd7e SC |
19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19209 | (exit $ac_status); } && | |
2cbbc68d RD |
19210 | { ac_try='test -z "$ac_cxx_werror_flag" |
19211 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19213 | (eval $ac_try) 2>&5 | |
19214 | ac_status=$? | |
19215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19216 | (exit $ac_status); }; } && | |
19217 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19219 | (eval $ac_try) 2>&5 | |
19220 | ac_status=$? | |
19221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19222 | (exit $ac_status); }; }; then | |
19223 | ||
19224 | wx_cv_cpp_bool=yes | |
19225 | ||
19226 | else | |
19227 | echo "$as_me: failed program was:" >&5 | |
19228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19229 | ||
19230 | ||
19231 | wx_cv_cpp_bool=no | |
19232 | ||
19233 | ||
19234 | fi | |
ac1cb8d3 | 19235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19236 | |
19237 | ac_ext=c | |
19238 | ac_cpp='$CPP $CPPFLAGS' | |
19239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19242 | ||
19243 | ||
19244 | fi | |
19245 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19246 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19247 | ||
19248 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19249 | cat >>confdefs.h <<\_ACEOF | |
19250 | #define HAVE_BOOL 1 | |
19251 | _ACEOF | |
19252 | ||
19253 | fi | |
19254 | ||
19255 | ||
19256 | ||
19257 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19258 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19259 | if test "${wx_cv_explicit+set}" = set; then | |
19260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19261 | else | |
19262 | ||
19263 | ||
19264 | ||
19265 | ac_ext=cc | |
19266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19270 | ||
19271 | ||
19272 | cat >conftest.$ac_ext <<_ACEOF | |
19273 | /* confdefs.h. */ | |
19274 | _ACEOF | |
19275 | cat confdefs.h >>conftest.$ac_ext | |
19276 | cat >>conftest.$ac_ext <<_ACEOF | |
19277 | /* end confdefs.h. */ | |
19278 | ||
19279 | class Foo { public: explicit Foo(int) {} }; | |
19280 | ||
19281 | int | |
19282 | main () | |
19283 | { | |
19284 | ||
19285 | return 0; | |
19286 | ||
19287 | ; | |
19288 | return 0; | |
19289 | } | |
19290 | _ACEOF | |
19291 | rm -f conftest.$ac_objext | |
19292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19293 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19294 | ac_status=$? |
ac1cb8d3 VS |
19295 | grep -v '^ *+' conftest.er1 >conftest.err |
19296 | rm -f conftest.er1 | |
19297 | cat conftest.err >&5 | |
a848cd7e SC |
19298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19299 | (exit $ac_status); } && | |
2cbbc68d RD |
19300 | { ac_try='test -z "$ac_cxx_werror_flag" |
19301 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19303 | (eval $ac_try) 2>&5 | |
19304 | ac_status=$? | |
19305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19306 | (exit $ac_status); }; } && | |
19307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19309 | (eval $ac_try) 2>&5 | |
19310 | ac_status=$? | |
19311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19312 | (exit $ac_status); }; }; then | |
19313 | ||
19314 | cat >conftest.$ac_ext <<_ACEOF | |
19315 | /* confdefs.h. */ | |
19316 | _ACEOF | |
19317 | cat confdefs.h >>conftest.$ac_ext | |
19318 | cat >>conftest.$ac_ext <<_ACEOF | |
19319 | /* end confdefs.h. */ | |
19320 | ||
19321 | class Foo { public: explicit Foo(int) {} }; | |
19322 | static void TakeFoo(const Foo& foo) { } | |
19323 | ||
19324 | int | |
19325 | main () | |
19326 | { | |
19327 | ||
19328 | TakeFoo(17); | |
19329 | return 0; | |
19330 | ||
19331 | ; | |
19332 | return 0; | |
19333 | } | |
19334 | _ACEOF | |
19335 | rm -f conftest.$ac_objext | |
19336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19337 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19338 | ac_status=$? |
ac1cb8d3 VS |
19339 | grep -v '^ *+' conftest.er1 >conftest.err |
19340 | rm -f conftest.er1 | |
19341 | cat conftest.err >&5 | |
a848cd7e SC |
19342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19343 | (exit $ac_status); } && | |
2cbbc68d RD |
19344 | { ac_try='test -z "$ac_cxx_werror_flag" |
19345 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19347 | (eval $ac_try) 2>&5 | |
19348 | ac_status=$? | |
19349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19350 | (exit $ac_status); }; } && | |
19351 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19353 | (eval $ac_try) 2>&5 | |
19354 | ac_status=$? | |
19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19356 | (exit $ac_status); }; }; then | |
19357 | wx_cv_explicit=no | |
19358 | else | |
19359 | echo "$as_me: failed program was:" >&5 | |
19360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19361 | ||
19362 | wx_cv_explicit=yes | |
19363 | ||
19364 | fi | |
ac1cb8d3 | 19365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19366 | |
19367 | else | |
19368 | echo "$as_me: failed program was:" >&5 | |
19369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19370 | ||
19371 | wx_cv_explicit=no | |
19372 | ||
19373 | fi | |
ac1cb8d3 | 19374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19375 | |
19376 | ac_ext=c | |
19377 | ac_cpp='$CPP $CPPFLAGS' | |
19378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19381 | ||
19382 | ||
19383 | fi | |
19384 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19385 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19386 | ||
19387 | if test "$wx_cv_explicit" = "yes"; then | |
19388 | cat >>confdefs.h <<\_ACEOF | |
19389 | #define HAVE_EXPLICIT 1 | |
19390 | _ACEOF | |
19391 | ||
19392 | fi | |
19393 | ||
19394 | ||
19395 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19396 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19397 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19399 | else | |
19400 | ||
19401 | ||
19402 | ac_ext=cc | |
19403 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19404 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19405 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19406 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19407 | ||
19408 | cat >conftest.$ac_ext <<_ACEOF | |
19409 | /* confdefs.h. */ | |
19410 | _ACEOF | |
19411 | cat confdefs.h >>conftest.$ac_ext | |
19412 | cat >>conftest.$ac_ext <<_ACEOF | |
19413 | /* end confdefs.h. */ | |
19414 | ||
19415 | int | |
19416 | main () | |
19417 | { | |
19418 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19419 | ; | |
19420 | return 0; | |
19421 | } | |
19422 | _ACEOF | |
19423 | rm -f conftest.$ac_objext | |
19424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19425 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19426 | ac_status=$? |
ac1cb8d3 VS |
19427 | grep -v '^ *+' conftest.er1 >conftest.err |
19428 | rm -f conftest.er1 | |
19429 | cat conftest.err >&5 | |
a848cd7e SC |
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19431 | (exit $ac_status); } && | |
2cbbc68d RD |
19432 | { ac_try='test -z "$ac_cxx_werror_flag" |
19433 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19435 | (eval $ac_try) 2>&5 | |
19436 | ac_status=$? | |
19437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19438 | (exit $ac_status); }; } && | |
19439 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19441 | (eval $ac_try) 2>&5 | |
19442 | ac_status=$? | |
19443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19444 | (exit $ac_status); }; }; then | |
19445 | ac_cv_cxx_const_cast=yes | |
19446 | else | |
19447 | echo "$as_me: failed program was:" >&5 | |
19448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19449 | ||
19450 | ac_cv_cxx_const_cast=no | |
19451 | fi | |
ac1cb8d3 | 19452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19453 | ac_ext=c |
19454 | ac_cpp='$CPP $CPPFLAGS' | |
19455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19458 | ||
19459 | ||
19460 | fi | |
19461 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19462 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19463 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19464 | ||
19465 | cat >>confdefs.h <<\_ACEOF | |
19466 | #define HAVE_CONST_CAST | |
19467 | _ACEOF | |
19468 | ||
19469 | fi | |
19470 | ||
7714864e RL |
19471 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19472 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19473 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19475 | else | |
19476 | ||
19477 | ||
19478 | ac_ext=cc | |
19479 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19480 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19481 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19482 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19483 | ||
19484 | cat >conftest.$ac_ext <<_ACEOF | |
19485 | /* confdefs.h. */ | |
19486 | _ACEOF | |
19487 | cat confdefs.h >>conftest.$ac_ext | |
19488 | cat >>conftest.$ac_ext <<_ACEOF | |
19489 | /* end confdefs.h. */ | |
19490 | #include <typeinfo> | |
19491 | class Base { public : Base () {} virtual void f () = 0;}; | |
19492 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19493 | class Unrelated { public : Unrelated () {} }; | |
19494 | int g (Unrelated&) { return 0; } | |
19495 | int | |
19496 | main () | |
19497 | { | |
19498 | ||
19499 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
19500 | ; | |
19501 | return 0; | |
19502 | } | |
19503 | _ACEOF | |
19504 | rm -f conftest.$ac_objext | |
19505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19506 | (eval $ac_compile) 2>conftest.er1 | |
19507 | ac_status=$? | |
19508 | grep -v '^ *+' conftest.er1 >conftest.err | |
19509 | rm -f conftest.er1 | |
19510 | cat conftest.err >&5 | |
19511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19512 | (exit $ac_status); } && | |
2cbbc68d RD |
19513 | { ac_try='test -z "$ac_cxx_werror_flag" |
19514 | || test ! -s conftest.err' | |
7714864e RL |
19515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19516 | (eval $ac_try) 2>&5 | |
19517 | ac_status=$? | |
19518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19519 | (exit $ac_status); }; } && | |
19520 | { ac_try='test -s conftest.$ac_objext' | |
19521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19522 | (eval $ac_try) 2>&5 | |
19523 | ac_status=$? | |
19524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19525 | (exit $ac_status); }; }; then | |
19526 | ac_cv_cxx_reinterpret_cast=yes | |
19527 | else | |
19528 | echo "$as_me: failed program was:" >&5 | |
19529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19530 | ||
19531 | ac_cv_cxx_reinterpret_cast=no | |
19532 | fi | |
19533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19534 | ac_ext=c | |
19535 | ac_cpp='$CPP $CPPFLAGS' | |
19536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19539 | ||
19540 | ||
19541 | fi | |
19542 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
19543 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
19544 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
19545 | ||
19546 | cat >>confdefs.h <<\_ACEOF | |
19547 | #define HAVE_REINTERPRET_CAST | |
19548 | _ACEOF | |
19549 | ||
19550 | fi | |
19551 | ||
a848cd7e SC |
19552 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19553 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19554 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19556 | else | |
19557 | ||
19558 | ||
19559 | ac_ext=cc | |
19560 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19561 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19562 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19563 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19564 | ||
19565 | cat >conftest.$ac_ext <<_ACEOF | |
19566 | /* confdefs.h. */ | |
19567 | _ACEOF | |
19568 | cat confdefs.h >>conftest.$ac_ext | |
19569 | cat >>conftest.$ac_ext <<_ACEOF | |
19570 | /* end confdefs.h. */ | |
19571 | #include <typeinfo> | |
19572 | class Base { public : Base () {} virtual void f () = 0; }; | |
19573 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19574 | int g (Derived&) { return 0; } | |
19575 | int | |
19576 | main () | |
19577 | { | |
19578 | ||
19579 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19580 | ; | |
19581 | return 0; | |
19582 | } | |
19583 | _ACEOF | |
19584 | rm -f conftest.$ac_objext | |
19585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19586 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19587 | ac_status=$? |
ac1cb8d3 VS |
19588 | grep -v '^ *+' conftest.er1 >conftest.err |
19589 | rm -f conftest.er1 | |
19590 | cat conftest.err >&5 | |
a848cd7e SC |
19591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19592 | (exit $ac_status); } && | |
2cbbc68d RD |
19593 | { ac_try='test -z "$ac_cxx_werror_flag" |
19594 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
19600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19602 | (eval $ac_try) 2>&5 | |
19603 | ac_status=$? | |
19604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19605 | (exit $ac_status); }; }; then | |
19606 | ac_cv_cxx_static_cast=yes | |
19607 | else | |
19608 | echo "$as_me: failed program was:" >&5 | |
19609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19610 | ||
19611 | ac_cv_cxx_static_cast=no | |
19612 | fi | |
ac1cb8d3 | 19613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19614 | ac_ext=c |
19615 | ac_cpp='$CPP $CPPFLAGS' | |
19616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19619 | ||
19620 | ||
19621 | fi | |
19622 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19623 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19624 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19625 | ||
19626 | cat >>confdefs.h <<\_ACEOF | |
19627 | #define HAVE_STATIC_CAST | |
19628 | _ACEOF | |
19629 | ||
19630 | fi | |
19631 | ||
19632 | ||
19633 | if test "$wxUSE_STL" = "yes"; then | |
19634 | ac_ext=cc | |
19635 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19636 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19637 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19638 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19639 | ||
19640 | ||
19641 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19642 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19643 | cat >conftest.$ac_ext <<_ACEOF | |
19644 | /* confdefs.h. */ | |
19645 | _ACEOF | |
19646 | cat confdefs.h >>conftest.$ac_ext | |
19647 | cat >>conftest.$ac_ext <<_ACEOF | |
19648 | /* end confdefs.h. */ | |
19649 | #include <string> | |
19650 | #include <functional> | |
19651 | #include <algorithm> | |
19652 | #include <vector> | |
19653 | #include <list> | |
19654 | int | |
19655 | main () | |
19656 | { | |
19657 | std::vector<int> moo; | |
19658 | std::list<int> foo; | |
19659 | std::vector<int>::iterator it = | |
19660 | std::find_if(moo.begin(), moo.end(), | |
19661 | std::bind2nd(std::less<int>(), 3)); | |
19662 | ; | |
19663 | return 0; | |
19664 | } | |
19665 | _ACEOF | |
19666 | rm -f conftest.$ac_objext | |
19667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19668 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19669 | ac_status=$? |
ac1cb8d3 VS |
19670 | grep -v '^ *+' conftest.er1 >conftest.err |
19671 | rm -f conftest.er1 | |
19672 | cat conftest.err >&5 | |
a848cd7e SC |
19673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19674 | (exit $ac_status); } && | |
2cbbc68d RD |
19675 | { ac_try='test -z "$ac_cxx_werror_flag" |
19676 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19678 | (eval $ac_try) 2>&5 | |
19679 | ac_status=$? | |
19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19681 | (exit $ac_status); }; } && | |
19682 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19684 | (eval $ac_try) 2>&5 | |
19685 | ac_status=$? | |
19686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19687 | (exit $ac_status); }; }; then | |
19688 | echo "$as_me:$LINENO: result: yes" >&5 | |
19689 | echo "${ECHO_T}yes" >&6 | |
19690 | else | |
19691 | echo "$as_me: failed program was:" >&5 | |
19692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19693 | ||
19694 | echo "$as_me:$LINENO: result: no" >&5 | |
19695 | echo "${ECHO_T}no" >&6 | |
19696 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19697 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19698 | { (exit 1); exit 1; }; } | |
19699 | fi | |
ac1cb8d3 | 19700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19701 | |
19702 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19703 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19704 | cat >conftest.$ac_ext <<_ACEOF | |
19705 | /* confdefs.h. */ | |
19706 | _ACEOF | |
19707 | cat confdefs.h >>conftest.$ac_ext | |
19708 | cat >>conftest.$ac_ext <<_ACEOF | |
19709 | /* end confdefs.h. */ | |
19710 | #include <string> | |
19711 | int | |
19712 | main () | |
19713 | { | |
19714 | std::wstring foo; | |
19715 | ; | |
19716 | return 0; | |
19717 | } | |
19718 | _ACEOF | |
19719 | rm -f conftest.$ac_objext | |
19720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19721 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19722 | ac_status=$? |
ac1cb8d3 VS |
19723 | grep -v '^ *+' conftest.er1 >conftest.err |
19724 | rm -f conftest.er1 | |
19725 | cat conftest.err >&5 | |
a848cd7e SC |
19726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19727 | (exit $ac_status); } && | |
2cbbc68d RD |
19728 | { ac_try='test -z "$ac_cxx_werror_flag" |
19729 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19731 | (eval $ac_try) 2>&5 | |
19732 | ac_status=$? | |
19733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19734 | (exit $ac_status); }; } && | |
19735 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19737 | (eval $ac_try) 2>&5 | |
19738 | ac_status=$? | |
19739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19740 | (exit $ac_status); }; }; then | |
19741 | echo "$as_me:$LINENO: result: yes" >&5 | |
19742 | echo "${ECHO_T}yes" >&6 | |
19743 | cat >>confdefs.h <<\_ACEOF | |
19744 | #define HAVE_STD_WSTRING 1 | |
19745 | _ACEOF | |
19746 | ||
19747 | else | |
19748 | echo "$as_me: failed program was:" >&5 | |
19749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19750 | ||
19751 | echo "$as_me:$LINENO: result: no" >&5 | |
19752 | echo "${ECHO_T}no" >&6 | |
19753 | fi | |
ac1cb8d3 | 19754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19755 | |
19756 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19757 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19758 | cat >conftest.$ac_ext <<_ACEOF | |
19759 | /* confdefs.h. */ | |
19760 | _ACEOF | |
19761 | cat confdefs.h >>conftest.$ac_ext | |
19762 | cat >>conftest.$ac_ext <<_ACEOF | |
19763 | /* end confdefs.h. */ | |
19764 | #include <string> | |
19765 | int | |
19766 | main () | |
19767 | { | |
19768 | std::string foo, bar; | |
19769 | foo.compare(bar); | |
19770 | foo.compare(1, 1, bar); | |
19771 | foo.compare(1, 1, bar, 1, 1); | |
19772 | foo.compare(""); | |
19773 | foo.compare(1, 1, ""); | |
19774 | foo.compare(1, 1, "", 2); | |
19775 | ; | |
19776 | return 0; | |
19777 | } | |
19778 | _ACEOF | |
19779 | rm -f conftest.$ac_objext | |
19780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19781 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19782 | ac_status=$? |
ac1cb8d3 VS |
19783 | grep -v '^ *+' conftest.er1 >conftest.err |
19784 | rm -f conftest.er1 | |
19785 | cat conftest.err >&5 | |
a848cd7e SC |
19786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19787 | (exit $ac_status); } && | |
2cbbc68d RD |
19788 | { ac_try='test -z "$ac_cxx_werror_flag" |
19789 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19791 | (eval $ac_try) 2>&5 | |
19792 | ac_status=$? | |
19793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19794 | (exit $ac_status); }; } && | |
19795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19797 | (eval $ac_try) 2>&5 | |
19798 | ac_status=$? | |
19799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19800 | (exit $ac_status); }; }; then | |
19801 | echo "$as_me:$LINENO: result: yes" >&5 | |
19802 | echo "${ECHO_T}yes" >&6 | |
19803 | cat >>confdefs.h <<\_ACEOF | |
19804 | #define HAVE_STD_STRING_COMPARE 1 | |
19805 | _ACEOF | |
19806 | ||
19807 | else | |
19808 | echo "$as_me: failed program was:" >&5 | |
19809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19810 | ||
19811 | echo "$as_me:$LINENO: result: no" >&5 | |
19812 | echo "${ECHO_T}no" >&6 | |
19813 | fi | |
ac1cb8d3 | 19814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19815 | |
19816 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19817 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19818 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19819 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19821 | fi | |
19822 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19823 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19824 | else | |
19825 | # Is the header compilable? | |
19826 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19827 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19828 | cat >conftest.$ac_ext <<_ACEOF | |
19829 | /* confdefs.h. */ | |
19830 | _ACEOF | |
19831 | cat confdefs.h >>conftest.$ac_ext | |
19832 | cat >>conftest.$ac_ext <<_ACEOF | |
19833 | /* end confdefs.h. */ | |
19834 | $ac_includes_default | |
19835 | #include <hash_map> | |
19836 | _ACEOF | |
19837 | rm -f conftest.$ac_objext | |
19838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19839 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19840 | ac_status=$? |
ac1cb8d3 VS |
19841 | grep -v '^ *+' conftest.er1 >conftest.err |
19842 | rm -f conftest.er1 | |
19843 | cat conftest.err >&5 | |
bdcade0a MB |
19844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19845 | (exit $ac_status); } && | |
2cbbc68d RD |
19846 | { ac_try='test -z "$ac_cxx_werror_flag" |
19847 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19849 | (eval $ac_try) 2>&5 | |
19850 | ac_status=$? | |
19851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19852 | (exit $ac_status); }; } && | |
19853 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19855 | (eval $ac_try) 2>&5 | |
19856 | ac_status=$? | |
19857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19858 | (exit $ac_status); }; }; then | |
19859 | ac_header_compiler=yes | |
19860 | else | |
19861 | echo "$as_me: failed program was:" >&5 | |
19862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19863 | ||
19864 | ac_header_compiler=no | |
19865 | fi | |
ac1cb8d3 | 19866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19867 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19868 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19869 | ||
19870 | # Is the header present? | |
19871 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19872 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19873 | cat >conftest.$ac_ext <<_ACEOF | |
19874 | /* confdefs.h. */ | |
19875 | _ACEOF | |
19876 | cat confdefs.h >>conftest.$ac_ext | |
19877 | cat >>conftest.$ac_ext <<_ACEOF | |
19878 | /* end confdefs.h. */ | |
19879 | #include <hash_map> | |
19880 | _ACEOF | |
19881 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19882 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19883 | ac_status=$? | |
19884 | grep -v '^ *+' conftest.er1 >conftest.err | |
19885 | rm -f conftest.er1 | |
19886 | cat conftest.err >&5 | |
19887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19888 | (exit $ac_status); } >/dev/null; then | |
19889 | if test -s conftest.err; then | |
19890 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19891 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19892 | else |
19893 | ac_cpp_err= | |
19894 | fi | |
19895 | else | |
19896 | ac_cpp_err=yes | |
19897 | fi | |
19898 | if test -z "$ac_cpp_err"; then | |
19899 | ac_header_preproc=yes | |
19900 | else | |
19901 | echo "$as_me: failed program was:" >&5 | |
19902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19903 | ||
19904 | ac_header_preproc=no | |
19905 | fi | |
19906 | rm -f conftest.err conftest.$ac_ext | |
19907 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19908 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19909 | ||
19910 | # So? What about this header? | |
ac1cb8d3 VS |
19911 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19912 | yes:no: ) | |
bdcade0a MB |
19913 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19914 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19915 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19916 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19917 | ac_header_preproc=yes | |
bdcade0a | 19918 | ;; |
ac1cb8d3 | 19919 | no:yes:* ) |
bdcade0a MB |
19920 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19921 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19922 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19923 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19924 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19925 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19926 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19927 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19928 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19929 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19930 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19931 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19932 | ( |
19933 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19934 | ## ----------------------------------------- ## |
19935 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19936 | ## ----------------------------------------- ## | |
bdcade0a MB |
19937 | _ASBOX |
19938 | ) | | |
19939 | sed "s/^/$as_me: WARNING: /" >&2 | |
19940 | ;; | |
19941 | esac | |
19942 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19943 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19944 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19946 | else | |
19947 | ac_cv_header_hash_map=$ac_header_preproc | |
19948 | fi | |
19949 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19950 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19951 | ||
19952 | fi | |
19953 | if test $ac_cv_header_hash_map = yes; then | |
19954 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19955 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19956 | cat >conftest.$ac_ext <<_ACEOF | |
19957 | /* confdefs.h. */ | |
19958 | _ACEOF | |
19959 | cat confdefs.h >>conftest.$ac_ext | |
19960 | cat >>conftest.$ac_ext <<_ACEOF | |
19961 | /* end confdefs.h. */ | |
19962 | #include <hash_map> | |
19963 | #include <hash_set> | |
19964 | int | |
19965 | main () | |
19966 | { | |
19967 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19968 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19969 | ; | |
19970 | return 0; | |
19971 | } | |
19972 | _ACEOF | |
19973 | rm -f conftest.$ac_objext | |
19974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19975 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19976 | ac_status=$? |
ac1cb8d3 VS |
19977 | grep -v '^ *+' conftest.er1 >conftest.err |
19978 | rm -f conftest.er1 | |
19979 | cat conftest.err >&5 | |
bdcade0a MB |
19980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19981 | (exit $ac_status); } && | |
2cbbc68d RD |
19982 | { ac_try='test -z "$ac_cxx_werror_flag" |
19983 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19985 | (eval $ac_try) 2>&5 | |
19986 | ac_status=$? | |
19987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19988 | (exit $ac_status); }; } && | |
19989 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19991 | (eval $ac_try) 2>&5 | |
19992 | ac_status=$? | |
19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19994 | (exit $ac_status); }; }; then | |
19995 | echo "$as_me:$LINENO: result: yes" >&5 | |
19996 | echo "${ECHO_T}yes" >&6 | |
19997 | cat >>confdefs.h <<\_ACEOF | |
19998 | #define HAVE_HASH_MAP 1 | |
19999 | _ACEOF | |
20000 | ||
20001 | cat >>confdefs.h <<\_ACEOF | |
20002 | #define HAVE_STD_HASH_MAP 1 | |
20003 | _ACEOF | |
20004 | ||
20005 | else | |
20006 | echo "$as_me: failed program was:" >&5 | |
20007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20008 | ||
20009 | echo "$as_me:$LINENO: result: no" >&5 | |
20010 | echo "${ECHO_T}no" >&6 | |
20011 | fi | |
ac1cb8d3 | 20012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20013 | |
20014 | fi | |
20015 | ||
20016 | ||
20017 | ||
20018 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20019 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20020 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20021 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20023 | fi | |
20024 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20025 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20026 | else | |
20027 | # Is the header compilable? | |
20028 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
20029 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
20030 | cat >conftest.$ac_ext <<_ACEOF | |
20031 | /* confdefs.h. */ | |
20032 | _ACEOF | |
20033 | cat confdefs.h >>conftest.$ac_ext | |
20034 | cat >>conftest.$ac_ext <<_ACEOF | |
20035 | /* end confdefs.h. */ | |
20036 | $ac_includes_default | |
20037 | #include <ext/hash_map> | |
20038 | _ACEOF | |
20039 | rm -f conftest.$ac_objext | |
20040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20041 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20042 | ac_status=$? |
ac1cb8d3 VS |
20043 | grep -v '^ *+' conftest.er1 >conftest.err |
20044 | rm -f conftest.er1 | |
20045 | cat conftest.err >&5 | |
bdcade0a MB |
20046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20047 | (exit $ac_status); } && | |
2cbbc68d RD |
20048 | { ac_try='test -z "$ac_cxx_werror_flag" |
20049 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20051 | (eval $ac_try) 2>&5 | |
20052 | ac_status=$? | |
20053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20054 | (exit $ac_status); }; } && | |
20055 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20057 | (eval $ac_try) 2>&5 | |
20058 | ac_status=$? | |
20059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20060 | (exit $ac_status); }; }; then | |
20061 | ac_header_compiler=yes | |
20062 | else | |
20063 | echo "$as_me: failed program was:" >&5 | |
20064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20065 | ||
20066 | ac_header_compiler=no | |
20067 | fi | |
ac1cb8d3 | 20068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20069 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20070 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20071 | ||
20072 | # Is the header present? | |
20073 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
20074 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
20075 | cat >conftest.$ac_ext <<_ACEOF | |
20076 | /* confdefs.h. */ | |
20077 | _ACEOF | |
20078 | cat confdefs.h >>conftest.$ac_ext | |
20079 | cat >>conftest.$ac_ext <<_ACEOF | |
20080 | /* end confdefs.h. */ | |
20081 | #include <ext/hash_map> | |
20082 | _ACEOF | |
20083 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20084 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20085 | ac_status=$? | |
20086 | grep -v '^ *+' conftest.er1 >conftest.err | |
20087 | rm -f conftest.er1 | |
20088 | cat conftest.err >&5 | |
20089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20090 | (exit $ac_status); } >/dev/null; then | |
20091 | if test -s conftest.err; then | |
20092 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20093 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20094 | else |
20095 | ac_cpp_err= | |
20096 | fi | |
20097 | else | |
20098 | ac_cpp_err=yes | |
20099 | fi | |
20100 | if test -z "$ac_cpp_err"; then | |
20101 | ac_header_preproc=yes | |
20102 | else | |
20103 | echo "$as_me: failed program was:" >&5 | |
20104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20105 | ||
20106 | ac_header_preproc=no | |
20107 | fi | |
20108 | rm -f conftest.err conftest.$ac_ext | |
20109 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20110 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20111 | ||
20112 | # So? What about this header? | |
ac1cb8d3 VS |
20113 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20114 | yes:no: ) | |
bdcade0a MB |
20115 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20116 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20117 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
20118 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
20119 | ac_header_preproc=yes | |
bdcade0a | 20120 | ;; |
ac1cb8d3 | 20121 | no:yes:* ) |
bdcade0a MB |
20122 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
20123 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20124 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
20125 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
20126 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
20127 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
20128 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20129 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20130 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
20131 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20132 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
20133 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20134 | ( |
20135 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20136 | ## ----------------------------------------- ## |
20137 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20138 | ## ----------------------------------------- ## | |
bdcade0a MB |
20139 | _ASBOX |
20140 | ) | | |
20141 | sed "s/^/$as_me: WARNING: /" >&2 | |
20142 | ;; | |
20143 | esac | |
20144 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20145 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20146 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20148 | else | |
20149 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
20150 | fi | |
20151 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20152 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20153 | ||
20154 | fi | |
20155 | if test $ac_cv_header_ext_hash_map = yes; then | |
20156 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20157 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20158 | cat >conftest.$ac_ext <<_ACEOF | |
20159 | /* confdefs.h. */ | |
20160 | _ACEOF | |
20161 | cat confdefs.h >>conftest.$ac_ext | |
20162 | cat >>conftest.$ac_ext <<_ACEOF | |
20163 | /* end confdefs.h. */ | |
20164 | #include <ext/hash_map> | |
20165 | #include <ext/hash_set> | |
20166 | int | |
20167 | main () | |
20168 | { | |
20169 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
20170 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
20171 | ; | |
20172 | return 0; | |
20173 | } | |
20174 | _ACEOF | |
20175 | rm -f conftest.$ac_objext | |
20176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20177 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20178 | ac_status=$? |
ac1cb8d3 VS |
20179 | grep -v '^ *+' conftest.er1 >conftest.err |
20180 | rm -f conftest.er1 | |
20181 | cat conftest.err >&5 | |
bdcade0a MB |
20182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20183 | (exit $ac_status); } && | |
2cbbc68d RD |
20184 | { ac_try='test -z "$ac_cxx_werror_flag" |
20185 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20187 | (eval $ac_try) 2>&5 | |
20188 | ac_status=$? | |
20189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20190 | (exit $ac_status); }; } && | |
20191 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20193 | (eval $ac_try) 2>&5 | |
20194 | ac_status=$? | |
20195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20196 | (exit $ac_status); }; }; then | |
20197 | echo "$as_me:$LINENO: result: yes" >&5 | |
20198 | echo "${ECHO_T}yes" >&6 | |
20199 | cat >>confdefs.h <<\_ACEOF | |
20200 | #define HAVE_EXT_HASH_MAP 1 | |
20201 | _ACEOF | |
20202 | ||
20203 | cat >>confdefs.h <<\_ACEOF | |
20204 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20205 | _ACEOF | |
20206 | ||
20207 | else | |
20208 | echo "$as_me: failed program was:" >&5 | |
20209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20210 | ||
20211 | echo "$as_me:$LINENO: result: no" >&5 | |
20212 | echo "${ECHO_T}no" >&6 | |
20213 | fi | |
ac1cb8d3 | 20214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20215 | |
20216 | fi | |
20217 | ||
20218 | ||
a848cd7e SC |
20219 | |
20220 | ac_ext=c | |
20221 | ac_cpp='$CPP $CPPFLAGS' | |
20222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20225 | ||
20226 | fi | |
20227 | ||
20228 | ||
20229 | SEARCH_INCLUDE="\ | |
20230 | /usr/local/include \ | |
20231 | \ | |
20232 | /usr/Motif-2.1/include \ | |
20233 | /usr/Motif-1.2/include \ | |
20234 | /usr/include/Motif1.2 \ | |
20235 | /opt/xpm/include/X11 \ | |
20236 | /opt/GBxpm/include/ \ | |
20237 | /opt/GBxpm/X11/include/ \ | |
20238 | \ | |
20239 | /usr/dt/include \ | |
20240 | /usr/openwin/include \ | |
20241 | \ | |
20242 | /usr/include/Xm \ | |
20243 | \ | |
20244 | /usr/X11R6/include \ | |
20245 | /usr/X11R6.4/include \ | |
20246 | /usr/X11R5/include \ | |
20247 | /usr/X11R4/include \ | |
20248 | \ | |
20249 | /usr/include/X11R6 \ | |
20250 | /usr/include/X11R5 \ | |
20251 | /usr/include/X11R4 \ | |
20252 | \ | |
20253 | /usr/local/X11R6/include \ | |
20254 | /usr/local/X11R5/include \ | |
20255 | /usr/local/X11R4/include \ | |
20256 | \ | |
20257 | /usr/local/include/X11R6 \ | |
20258 | /usr/local/include/X11R5 \ | |
20259 | /usr/local/include/X11R4 \ | |
20260 | \ | |
20261 | /usr/X11/include \ | |
20262 | /usr/include/X11 \ | |
20263 | /usr/local/X11/include \ | |
20264 | /usr/local/include/X11 \ | |
20265 | \ | |
20266 | /usr/X386/include \ | |
20267 | /usr/x386/include \ | |
20268 | /usr/XFree86/include/X11 \ | |
20269 | \ | |
20270 | X:/XFree86/include \ | |
20271 | X:/XFree86/include/X11 \ | |
20272 | \ | |
20273 | /usr/include/gtk \ | |
20274 | /usr/local/include/gtk \ | |
20275 | /usr/include/glib \ | |
20276 | /usr/local/include/glib \ | |
20277 | \ | |
20278 | /usr/include/qt \ | |
20279 | /usr/local/include/qt \ | |
20280 | \ | |
20281 | /usr/local/arm/3.3.2/include \ | |
20282 | \ | |
20283 | /usr/include/windows \ | |
20284 | /usr/include/wine \ | |
20285 | /usr/local/include/wine \ | |
20286 | \ | |
20287 | /usr/unsupported/include \ | |
20288 | /usr/athena/include \ | |
20289 | /usr/local/x11r5/include \ | |
20290 | /usr/lpp/Xamples/include \ | |
20291 | \ | |
20292 | /usr/openwin/share/include" | |
20293 | ||
20294 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20295 | ||
20296 | ||
20297 | cat >confcache <<\_ACEOF | |
20298 | # This file is a shell script that caches the results of configure | |
20299 | # tests run on this system so they can be shared between configure | |
20300 | # scripts and configure runs, see configure's option --config-cache. | |
20301 | # It is not useful on other systems. If it contains results you don't | |
20302 | # want to keep, you may remove or edit it. | |
20303 | # | |
20304 | # config.status only pays attention to the cache file if you give it | |
20305 | # the --recheck option to rerun configure. | |
20306 | # | |
20307 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20308 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20309 | # following values. | |
20310 | ||
20311 | _ACEOF | |
20312 | ||
20313 | # The following way of writing the cache mishandles newlines in values, | |
20314 | # but we know of no workaround that is simple, portable, and efficient. | |
20315 | # So, don't put newlines in cache variables' values. | |
20316 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20317 | # and sets the high bit in the cache file unless we assign to the vars. | |
20318 | { | |
20319 | (set) 2>&1 | | |
20320 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20321 | *ac_space=\ *) | |
20322 | # `set' does not quote correctly, so add quotes (double-quote | |
20323 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20324 | sed -n \ | |
ac1cb8d3 VS |
20325 | "s/'/'\\\\''/g; |
20326 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20327 | ;; |
20328 | *) | |
20329 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20330 | sed -n \ | |
ac1cb8d3 | 20331 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20332 | ;; |
20333 | esac; | |
20334 | } | | |
20335 | sed ' | |
20336 | t clear | |
20337 | : clear | |
20338 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20339 | t end | |
20340 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20341 | : end' >>confcache | |
20342 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20343 | if test -w $cache_file; then | |
20344 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20345 | cat confcache >$cache_file | |
20346 | else | |
20347 | echo "not updating unwritable cache $cache_file" | |
20348 | fi | |
20349 | fi | |
20350 | rm -f confcache | |
20351 | ||
20352 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20353 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20354 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20355 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20357 | else | |
20358 | ||
20359 | cat >conftest.$ac_ext <<_ACEOF | |
20360 | /* confdefs.h. */ | |
20361 | _ACEOF | |
20362 | cat confdefs.h >>conftest.$ac_ext | |
20363 | cat >>conftest.$ac_ext <<_ACEOF | |
20364 | /* end confdefs.h. */ | |
20365 | #include <features.h> | |
20366 | int | |
20367 | main () | |
20368 | { | |
20369 | ||
20370 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20371 | #error not glibc2.1 | |
20372 | #endif | |
20373 | ||
20374 | ; | |
20375 | return 0; | |
20376 | } | |
20377 | _ACEOF | |
20378 | rm -f conftest.$ac_objext | |
20379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20381 | ac_status=$? |
ac1cb8d3 VS |
20382 | grep -v '^ *+' conftest.er1 >conftest.err |
20383 | rm -f conftest.er1 | |
20384 | cat conftest.err >&5 | |
a848cd7e SC |
20385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20386 | (exit $ac_status); } && | |
2cbbc68d RD |
20387 | { ac_try='test -z "$ac_c_werror_flag" |
20388 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20390 | (eval $ac_try) 2>&5 | |
20391 | ac_status=$? | |
20392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20393 | (exit $ac_status); }; } && | |
20394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20396 | (eval $ac_try) 2>&5 | |
20397 | ac_status=$? | |
20398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20399 | (exit $ac_status); }; }; then | |
20400 | ||
20401 | wx_cv_lib_glibc21=yes | |
20402 | ||
20403 | else | |
20404 | echo "$as_me: failed program was:" >&5 | |
20405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20406 | ||
20407 | ||
20408 | wx_cv_lib_glibc21=no | |
20409 | ||
20410 | ||
20411 | fi | |
ac1cb8d3 | 20412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20413 | |
20414 | fi | |
20415 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20416 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20417 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20418 | cat >>confdefs.h <<\_ACEOF | |
20419 | #define wxHAVE_GLIBC2 1 | |
20420 | _ACEOF | |
20421 | ||
20422 | fi | |
20423 | fi | |
20424 | ||
20425 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20426 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20427 | cat >>confdefs.h <<\_ACEOF | |
20428 | #define _GNU_SOURCE 1 | |
20429 | _ACEOF | |
20430 | ||
20431 | fi | |
20432 | fi | |
20433 | ||
20434 | ||
20435 | ||
20436 | if test "$wxUSE_REGEX" != "no"; then | |
20437 | cat >>confdefs.h <<\_ACEOF | |
20438 | #define wxUSE_REGEX 1 | |
20439 | _ACEOF | |
20440 | ||
20441 | ||
20442 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20443 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20444 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20445 | wxUSE_REGEX=builtin | |
20446 | fi | |
20447 | ||
20448 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20449 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20450 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20451 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20452 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20454 | fi | |
20455 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20456 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20457 | else | |
20458 | # Is the header compilable? | |
20459 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20460 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20461 | cat >conftest.$ac_ext <<_ACEOF | |
20462 | /* confdefs.h. */ | |
20463 | _ACEOF | |
20464 | cat confdefs.h >>conftest.$ac_ext | |
20465 | cat >>conftest.$ac_ext <<_ACEOF | |
20466 | /* end confdefs.h. */ | |
20467 | $ac_includes_default | |
20468 | #include <regex.h> | |
20469 | _ACEOF | |
20470 | rm -f conftest.$ac_objext | |
20471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20472 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20473 | ac_status=$? |
ac1cb8d3 VS |
20474 | grep -v '^ *+' conftest.er1 >conftest.err |
20475 | rm -f conftest.er1 | |
20476 | cat conftest.err >&5 | |
a848cd7e SC |
20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20478 | (exit $ac_status); } && | |
2cbbc68d RD |
20479 | { ac_try='test -z "$ac_c_werror_flag" |
20480 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20482 | (eval $ac_try) 2>&5 | |
20483 | ac_status=$? | |
20484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20485 | (exit $ac_status); }; } && | |
20486 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20488 | (eval $ac_try) 2>&5 | |
20489 | ac_status=$? | |
20490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20491 | (exit $ac_status); }; }; then | |
20492 | ac_header_compiler=yes | |
20493 | else | |
20494 | echo "$as_me: failed program was:" >&5 | |
20495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20496 | ||
20497 | ac_header_compiler=no | |
20498 | fi | |
ac1cb8d3 | 20499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20500 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20501 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20502 | ||
20503 | # Is the header present? | |
20504 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20505 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20506 | cat >conftest.$ac_ext <<_ACEOF | |
20507 | /* confdefs.h. */ | |
20508 | _ACEOF | |
20509 | cat confdefs.h >>conftest.$ac_ext | |
20510 | cat >>conftest.$ac_ext <<_ACEOF | |
20511 | /* end confdefs.h. */ | |
20512 | #include <regex.h> | |
20513 | _ACEOF | |
20514 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20515 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20516 | ac_status=$? | |
20517 | grep -v '^ *+' conftest.er1 >conftest.err | |
20518 | rm -f conftest.er1 | |
20519 | cat conftest.err >&5 | |
20520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20521 | (exit $ac_status); } >/dev/null; then | |
20522 | if test -s conftest.err; then | |
20523 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20524 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20525 | else |
20526 | ac_cpp_err= | |
20527 | fi | |
20528 | else | |
20529 | ac_cpp_err=yes | |
20530 | fi | |
20531 | if test -z "$ac_cpp_err"; then | |
20532 | ac_header_preproc=yes | |
20533 | else | |
20534 | echo "$as_me: failed program was:" >&5 | |
20535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20536 | ||
20537 | ac_header_preproc=no | |
20538 | fi | |
20539 | rm -f conftest.err conftest.$ac_ext | |
20540 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20541 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20542 | ||
20543 | # So? What about this header? | |
ac1cb8d3 VS |
20544 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20545 | yes:no: ) | |
a848cd7e SC |
20546 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20547 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20548 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20549 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20550 | ac_header_preproc=yes | |
a848cd7e | 20551 | ;; |
ac1cb8d3 | 20552 | no:yes:* ) |
a848cd7e SC |
20553 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20554 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20555 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20556 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20557 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20558 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20559 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20560 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20561 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20562 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20563 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20564 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20565 | ( |
20566 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20567 | ## ----------------------------------------- ## |
20568 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20569 | ## ----------------------------------------- ## | |
a848cd7e SC |
20570 | _ASBOX |
20571 | ) | | |
20572 | sed "s/^/$as_me: WARNING: /" >&2 | |
20573 | ;; | |
20574 | esac | |
20575 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20576 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20577 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20579 | else | |
20580 | ac_cv_header_regex_h=$ac_header_preproc | |
20581 | fi | |
20582 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20583 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20584 | ||
20585 | fi | |
20586 | if test $ac_cv_header_regex_h = yes; then | |
20587 | ||
20588 | for ac_func in regcomp | |
20589 | do | |
20590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20591 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20593 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20595 | else | |
20596 | cat >conftest.$ac_ext <<_ACEOF | |
20597 | /* confdefs.h. */ | |
20598 | _ACEOF | |
20599 | cat confdefs.h >>conftest.$ac_ext | |
20600 | cat >>conftest.$ac_ext <<_ACEOF | |
20601 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20602 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20604 | #define $ac_func innocuous_$ac_func | |
20605 | ||
a848cd7e SC |
20606 | /* System header to define __stub macros and hopefully few prototypes, |
20607 | which can conflict with char $ac_func (); below. | |
20608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20609 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20610 | |
a848cd7e SC |
20611 | #ifdef __STDC__ |
20612 | # include <limits.h> | |
20613 | #else | |
20614 | # include <assert.h> | |
20615 | #endif | |
ac1cb8d3 VS |
20616 | |
20617 | #undef $ac_func | |
20618 | ||
a848cd7e SC |
20619 | /* Override any gcc2 internal prototype to avoid an error. */ |
20620 | #ifdef __cplusplus | |
20621 | extern "C" | |
20622 | { | |
20623 | #endif | |
20624 | /* We use char because int might match the return type of a gcc2 | |
20625 | builtin and then its argument prototype would still apply. */ | |
20626 | char $ac_func (); | |
20627 | /* The GNU C library defines this for functions which it implements | |
20628 | to always fail with ENOSYS. Some functions are actually named | |
20629 | something starting with __ and the normal name is an alias. */ | |
20630 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20631 | choke me | |
20632 | #else | |
20633 | char (*f) () = $ac_func; | |
20634 | #endif | |
20635 | #ifdef __cplusplus | |
20636 | } | |
20637 | #endif | |
20638 | ||
20639 | int | |
20640 | main () | |
20641 | { | |
20642 | return f != $ac_func; | |
20643 | ; | |
20644 | return 0; | |
20645 | } | |
20646 | _ACEOF | |
20647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20649 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20650 | ac_status=$? |
ac1cb8d3 VS |
20651 | grep -v '^ *+' conftest.er1 >conftest.err |
20652 | rm -f conftest.er1 | |
20653 | cat conftest.err >&5 | |
a848cd7e SC |
20654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20655 | (exit $ac_status); } && | |
2cbbc68d RD |
20656 | { ac_try='test -z "$ac_c_werror_flag" |
20657 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
20663 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20665 | (eval $ac_try) 2>&5 | |
20666 | ac_status=$? | |
20667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20668 | (exit $ac_status); }; }; then | |
20669 | eval "$as_ac_var=yes" | |
20670 | else | |
20671 | echo "$as_me: failed program was:" >&5 | |
20672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20673 | ||
20674 | eval "$as_ac_var=no" | |
20675 | fi | |
ac1cb8d3 VS |
20676 | rm -f conftest.err conftest.$ac_objext \ |
20677 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20678 | fi |
20679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20680 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20681 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20682 | cat >>confdefs.h <<_ACEOF | |
20683 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20684 | _ACEOF | |
20685 | ||
20686 | fi | |
20687 | done | |
20688 | ||
20689 | fi | |
20690 | ||
20691 | ||
20692 | ||
20693 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20694 | if test "$wxUSE_REGEX" = "sys" ; then | |
20695 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20696 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20697 | { (exit 1); exit 1; }; } | |
20698 | else | |
20699 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20700 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20701 | wxUSE_REGEX=builtin | |
20702 | fi | |
20703 | else | |
20704 | wxUSE_REGEX=sys | |
20705 | cat >>confdefs.h <<\_ACEOF | |
20706 | #define WX_NO_REGEX_ADVANCED 1 | |
20707 | _ACEOF | |
20708 | ||
20709 | fi | |
20710 | fi | |
20711 | fi | |
20712 | ||
20713 | ||
20714 | ZLIB_LINK= | |
20715 | if test "$wxUSE_ZLIB" != "no" ; then | |
20716 | cat >>confdefs.h <<\_ACEOF | |
20717 | #define wxUSE_ZLIB 1 | |
20718 | _ACEOF | |
20719 | ||
20720 | ||
20721 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20722 | if test "$USE_DARWIN" = 1; then | |
20723 | system_zlib_h_ok="yes" | |
20724 | else | |
20725 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20726 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20727 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20729 | else | |
20730 | if test "$cross_compiling" = yes; then | |
20731 | unset ac_cv_header_zlib_h | |
20732 | ||
20733 | else | |
20734 | cat >conftest.$ac_ext <<_ACEOF | |
20735 | /* confdefs.h. */ | |
20736 | _ACEOF | |
20737 | cat confdefs.h >>conftest.$ac_ext | |
20738 | cat >>conftest.$ac_ext <<_ACEOF | |
20739 | /* end confdefs.h. */ | |
20740 | ||
20741 | #include <zlib.h> | |
20742 | #include <stdio.h> | |
20743 | ||
20744 | int main() | |
20745 | { | |
20746 | FILE *f=fopen("conftestval", "w"); | |
20747 | if (!f) exit(1); | |
20748 | fprintf(f, "%s", | |
20749 | ZLIB_VERSION[0] == '1' && | |
20750 | (ZLIB_VERSION[2] > '1' || | |
20751 | (ZLIB_VERSION[2] == '1' && | |
20752 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20753 | exit(0); | |
20754 | } | |
20755 | ||
20756 | _ACEOF | |
20757 | rm -f conftest$ac_exeext | |
20758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20759 | (eval $ac_link) 2>&5 | |
20760 | ac_status=$? | |
20761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20762 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20764 | (eval $ac_try) 2>&5 | |
20765 | ac_status=$? | |
20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20767 | (exit $ac_status); }; }; then | |
20768 | ac_cv_header_zlib_h=`cat conftestval` | |
20769 | else | |
20770 | echo "$as_me: program exited with status $ac_status" >&5 | |
20771 | echo "$as_me: failed program was:" >&5 | |
20772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20773 | ||
20774 | ( exit $ac_status ) | |
20775 | ac_cv_header_zlib_h=no | |
20776 | fi | |
ac1cb8d3 | 20777 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20778 | fi |
20779 | ||
20780 | fi | |
20781 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20782 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20783 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20784 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20785 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20786 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20788 | fi | |
20789 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20790 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20791 | else | |
20792 | # Is the header compilable? | |
20793 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20794 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20795 | cat >conftest.$ac_ext <<_ACEOF | |
20796 | /* confdefs.h. */ | |
20797 | _ACEOF | |
20798 | cat confdefs.h >>conftest.$ac_ext | |
20799 | cat >>conftest.$ac_ext <<_ACEOF | |
20800 | /* end confdefs.h. */ | |
20801 | $ac_includes_default | |
20802 | #include <zlib.h> | |
20803 | _ACEOF | |
20804 | rm -f conftest.$ac_objext | |
20805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20806 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20807 | ac_status=$? |
ac1cb8d3 VS |
20808 | grep -v '^ *+' conftest.er1 >conftest.err |
20809 | rm -f conftest.er1 | |
20810 | cat conftest.err >&5 | |
a848cd7e SC |
20811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20812 | (exit $ac_status); } && | |
2cbbc68d RD |
20813 | { ac_try='test -z "$ac_c_werror_flag" |
20814 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20816 | (eval $ac_try) 2>&5 | |
20817 | ac_status=$? | |
20818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20819 | (exit $ac_status); }; } && | |
20820 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20822 | (eval $ac_try) 2>&5 | |
20823 | ac_status=$? | |
20824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20825 | (exit $ac_status); }; }; then | |
20826 | ac_header_compiler=yes | |
20827 | else | |
20828 | echo "$as_me: failed program was:" >&5 | |
20829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20830 | ||
20831 | ac_header_compiler=no | |
20832 | fi | |
ac1cb8d3 | 20833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20834 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20835 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20836 | ||
20837 | # Is the header present? | |
20838 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20839 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20840 | cat >conftest.$ac_ext <<_ACEOF | |
20841 | /* confdefs.h. */ | |
20842 | _ACEOF | |
20843 | cat confdefs.h >>conftest.$ac_ext | |
20844 | cat >>conftest.$ac_ext <<_ACEOF | |
20845 | /* end confdefs.h. */ | |
20846 | #include <zlib.h> | |
20847 | _ACEOF | |
20848 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20850 | ac_status=$? | |
20851 | grep -v '^ *+' conftest.er1 >conftest.err | |
20852 | rm -f conftest.er1 | |
20853 | cat conftest.err >&5 | |
20854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20855 | (exit $ac_status); } >/dev/null; then | |
20856 | if test -s conftest.err; then | |
20857 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20858 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20859 | else |
20860 | ac_cpp_err= | |
20861 | fi | |
20862 | else | |
20863 | ac_cpp_err=yes | |
20864 | fi | |
20865 | if test -z "$ac_cpp_err"; then | |
20866 | ac_header_preproc=yes | |
20867 | else | |
20868 | echo "$as_me: failed program was:" >&5 | |
20869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20870 | ||
20871 | ac_header_preproc=no | |
20872 | fi | |
20873 | rm -f conftest.err conftest.$ac_ext | |
20874 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20875 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20876 | ||
20877 | # So? What about this header? | |
ac1cb8d3 VS |
20878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20879 | yes:no: ) | |
a848cd7e SC |
20880 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20881 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20882 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20883 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20884 | ac_header_preproc=yes | |
a848cd7e | 20885 | ;; |
ac1cb8d3 | 20886 | no:yes:* ) |
a848cd7e SC |
20887 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20888 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20889 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20890 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20891 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20892 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20893 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20894 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20895 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20896 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20897 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20898 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20899 | ( |
20900 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20901 | ## ----------------------------------------- ## |
20902 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20903 | ## ----------------------------------------- ## | |
a848cd7e SC |
20904 | _ASBOX |
20905 | ) | | |
20906 | sed "s/^/$as_me: WARNING: /" >&2 | |
20907 | ;; | |
20908 | esac | |
20909 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20910 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20911 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20913 | else | |
20914 | ac_cv_header_zlib_h=$ac_header_preproc | |
20915 | fi | |
20916 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20917 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20918 | ||
20919 | fi | |
20920 | ||
20921 | ||
20922 | ||
20923 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20924 | fi | |
20925 | ||
20926 | if test "$system_zlib_h_ok" = "yes"; then | |
20927 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20928 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20929 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20931 | else | |
20932 | ac_check_lib_save_LIBS=$LIBS | |
20933 | LIBS="-lz $LIBS" | |
20934 | cat >conftest.$ac_ext <<_ACEOF | |
20935 | /* confdefs.h. */ | |
20936 | _ACEOF | |
20937 | cat confdefs.h >>conftest.$ac_ext | |
20938 | cat >>conftest.$ac_ext <<_ACEOF | |
20939 | /* end confdefs.h. */ | |
20940 | ||
20941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20942 | #ifdef __cplusplus | |
20943 | extern "C" | |
20944 | #endif | |
20945 | /* We use char because int might match the return type of a gcc2 | |
20946 | builtin and then its argument prototype would still apply. */ | |
20947 | char deflate (); | |
20948 | int | |
20949 | main () | |
20950 | { | |
20951 | deflate (); | |
20952 | ; | |
20953 | return 0; | |
20954 | } | |
20955 | _ACEOF | |
20956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20958 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20959 | ac_status=$? |
ac1cb8d3 VS |
20960 | grep -v '^ *+' conftest.er1 >conftest.err |
20961 | rm -f conftest.er1 | |
20962 | cat conftest.err >&5 | |
a848cd7e SC |
20963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20964 | (exit $ac_status); } && | |
2cbbc68d RD |
20965 | { ac_try='test -z "$ac_c_werror_flag" |
20966 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
20972 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20974 | (eval $ac_try) 2>&5 | |
20975 | ac_status=$? | |
20976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20977 | (exit $ac_status); }; }; then | |
20978 | ac_cv_lib_z_deflate=yes | |
20979 | else | |
20980 | echo "$as_me: failed program was:" >&5 | |
20981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20982 | ||
20983 | ac_cv_lib_z_deflate=no | |
20984 | fi | |
ac1cb8d3 VS |
20985 | rm -f conftest.err conftest.$ac_objext \ |
20986 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20987 | LIBS=$ac_check_lib_save_LIBS |
20988 | fi | |
20989 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20990 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20991 | if test $ac_cv_lib_z_deflate = yes; then | |
20992 | ZLIB_LINK=" -lz" | |
20993 | fi | |
20994 | ||
20995 | fi | |
20996 | ||
20997 | if test "x$ZLIB_LINK" = "x" ; then | |
20998 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20999 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
21000 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
21001 | { (exit 1); exit 1; }; } | |
21002 | else | |
21003 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
21004 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21005 | wxUSE_ZLIB=builtin | |
21006 | fi | |
21007 | else | |
21008 | wxUSE_ZLIB=sys | |
21009 | fi | |
21010 | fi | |
21011 | fi | |
21012 | ||
21013 | ||
21014 | PNG_LINK= | |
21015 | if test "$wxUSE_LIBPNG" != "no" ; then | |
21016 | cat >>confdefs.h <<\_ACEOF | |
21017 | #define wxUSE_LIBPNG 1 | |
21018 | _ACEOF | |
21019 | ||
21020 | ||
21021 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
21022 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
21023 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21024 | wxUSE_LIBPNG=sys | |
21025 | fi | |
21026 | ||
21027 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
21028 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
21029 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21030 | wxUSE_LIBPNG=builtin | |
21031 | fi | |
21032 | ||
21033 | if test "$wxUSE_MGL" != 1 ; then | |
21034 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
21035 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
21036 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
21037 | if test "${ac_cv_header_png_h+set}" = set; then | |
21038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21039 | else | |
21040 | if test "$cross_compiling" = yes; then | |
21041 | unset ac_cv_header_png_h | |
21042 | ||
21043 | else | |
21044 | cat >conftest.$ac_ext <<_ACEOF | |
21045 | /* confdefs.h. */ | |
21046 | _ACEOF | |
21047 | cat confdefs.h >>conftest.$ac_ext | |
21048 | cat >>conftest.$ac_ext <<_ACEOF | |
21049 | /* end confdefs.h. */ | |
21050 | ||
21051 | #include <png.h> | |
21052 | #include <stdio.h> | |
21053 | ||
21054 | int main() | |
21055 | { | |
21056 | FILE *f=fopen("conftestval", "w"); | |
21057 | if (!f) exit(1); | |
21058 | fprintf(f, "%s", | |
21059 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
21060 | exit(0); | |
21061 | } | |
21062 | ||
21063 | _ACEOF | |
21064 | rm -f conftest$ac_exeext | |
21065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21066 | (eval $ac_link) 2>&5 | |
21067 | ac_status=$? | |
21068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21071 | (eval $ac_try) 2>&5 | |
21072 | ac_status=$? | |
21073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21074 | (exit $ac_status); }; }; then | |
21075 | ac_cv_header_png_h=`cat conftestval` | |
21076 | else | |
21077 | echo "$as_me: program exited with status $ac_status" >&5 | |
21078 | echo "$as_me: failed program was:" >&5 | |
21079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21080 | ||
21081 | ( exit $ac_status ) | |
21082 | ac_cv_header_png_h=no | |
21083 | fi | |
ac1cb8d3 | 21084 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21085 | fi |
21086 | ||
21087 | fi | |
21088 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21089 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21090 | if test "${ac_cv_header_png_h+set}" = set; then | |
21091 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21092 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21093 | if test "${ac_cv_header_png_h+set}" = set; then | |
21094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21095 | fi | |
21096 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21097 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21098 | else | |
21099 | # Is the header compilable? | |
21100 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
21101 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
21102 | cat >conftest.$ac_ext <<_ACEOF | |
21103 | /* confdefs.h. */ | |
21104 | _ACEOF | |
21105 | cat confdefs.h >>conftest.$ac_ext | |
21106 | cat >>conftest.$ac_ext <<_ACEOF | |
21107 | /* end confdefs.h. */ | |
21108 | $ac_includes_default | |
21109 | #include <png.h> | |
21110 | _ACEOF | |
21111 | rm -f conftest.$ac_objext | |
21112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21113 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21114 | ac_status=$? |
ac1cb8d3 VS |
21115 | grep -v '^ *+' conftest.er1 >conftest.err |
21116 | rm -f conftest.er1 | |
21117 | cat conftest.err >&5 | |
a848cd7e SC |
21118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21119 | (exit $ac_status); } && | |
2cbbc68d RD |
21120 | { ac_try='test -z "$ac_c_werror_flag" |
21121 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21123 | (eval $ac_try) 2>&5 | |
21124 | ac_status=$? | |
21125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21126 | (exit $ac_status); }; } && | |
21127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21129 | (eval $ac_try) 2>&5 | |
21130 | ac_status=$? | |
21131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21132 | (exit $ac_status); }; }; then | |
21133 | ac_header_compiler=yes | |
21134 | else | |
21135 | echo "$as_me: failed program was:" >&5 | |
21136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21137 | ||
21138 | ac_header_compiler=no | |
21139 | fi | |
ac1cb8d3 | 21140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21141 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21142 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21143 | ||
21144 | # Is the header present? | |
21145 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
21146 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
21147 | cat >conftest.$ac_ext <<_ACEOF | |
21148 | /* confdefs.h. */ | |
21149 | _ACEOF | |
21150 | cat confdefs.h >>conftest.$ac_ext | |
21151 | cat >>conftest.$ac_ext <<_ACEOF | |
21152 | /* end confdefs.h. */ | |
21153 | #include <png.h> | |
21154 | _ACEOF | |
21155 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21156 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21157 | ac_status=$? | |
21158 | grep -v '^ *+' conftest.er1 >conftest.err | |
21159 | rm -f conftest.er1 | |
21160 | cat conftest.err >&5 | |
21161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21162 | (exit $ac_status); } >/dev/null; then | |
21163 | if test -s conftest.err; then | |
21164 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21165 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21166 | else |
21167 | ac_cpp_err= | |
21168 | fi | |
21169 | else | |
21170 | ac_cpp_err=yes | |
21171 | fi | |
21172 | if test -z "$ac_cpp_err"; then | |
21173 | ac_header_preproc=yes | |
21174 | else | |
21175 | echo "$as_me: failed program was:" >&5 | |
21176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21177 | ||
21178 | ac_header_preproc=no | |
21179 | fi | |
21180 | rm -f conftest.err conftest.$ac_ext | |
21181 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21182 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21183 | ||
21184 | # So? What about this header? | |
ac1cb8d3 VS |
21185 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21186 | yes:no: ) | |
a848cd7e SC |
21187 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21188 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21189 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
21190 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
21191 | ac_header_preproc=yes | |
a848cd7e | 21192 | ;; |
ac1cb8d3 | 21193 | no:yes:* ) |
a848cd7e SC |
21194 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
21195 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21196 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21197 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21198 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21199 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21200 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21201 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21202 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21203 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21204 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21205 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21206 | ( |
21207 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21208 | ## ----------------------------------------- ## |
21209 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21210 | ## ----------------------------------------- ## | |
a848cd7e SC |
21211 | _ASBOX |
21212 | ) | | |
21213 | sed "s/^/$as_me: WARNING: /" >&2 | |
21214 | ;; | |
21215 | esac | |
21216 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21217 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21218 | if test "${ac_cv_header_png_h+set}" = set; then | |
21219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21220 | else | |
21221 | ac_cv_header_png_h=$ac_header_preproc | |
21222 | fi | |
21223 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21224 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21225 | ||
21226 | fi | |
21227 | ||
21228 | ||
21229 | ||
21230 | if test "$ac_cv_header_png_h" = "yes"; then | |
21231 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21232 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21233 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21235 | else | |
21236 | ac_check_lib_save_LIBS=$LIBS | |
21237 | LIBS="-lpng -lz -lm $LIBS" | |
21238 | cat >conftest.$ac_ext <<_ACEOF | |
21239 | /* confdefs.h. */ | |
21240 | _ACEOF | |
21241 | cat confdefs.h >>conftest.$ac_ext | |
21242 | cat >>conftest.$ac_ext <<_ACEOF | |
21243 | /* end confdefs.h. */ | |
21244 | ||
21245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21246 | #ifdef __cplusplus | |
21247 | extern "C" | |
21248 | #endif | |
21249 | /* We use char because int might match the return type of a gcc2 | |
21250 | builtin and then its argument prototype would still apply. */ | |
21251 | char png_check_sig (); | |
21252 | int | |
21253 | main () | |
21254 | { | |
21255 | png_check_sig (); | |
21256 | ; | |
21257 | return 0; | |
21258 | } | |
21259 | _ACEOF | |
21260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21262 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21263 | ac_status=$? |
ac1cb8d3 VS |
21264 | grep -v '^ *+' conftest.er1 >conftest.err |
21265 | rm -f conftest.er1 | |
21266 | cat conftest.err >&5 | |
a848cd7e SC |
21267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21268 | (exit $ac_status); } && | |
2cbbc68d RD |
21269 | { ac_try='test -z "$ac_c_werror_flag" |
21270 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21272 | (eval $ac_try) 2>&5 | |
21273 | ac_status=$? | |
21274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21275 | (exit $ac_status); }; } && | |
21276 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21278 | (eval $ac_try) 2>&5 | |
21279 | ac_status=$? | |
21280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21281 | (exit $ac_status); }; }; then | |
21282 | ac_cv_lib_png_png_check_sig=yes | |
21283 | else | |
21284 | echo "$as_me: failed program was:" >&5 | |
21285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21286 | ||
21287 | ac_cv_lib_png_png_check_sig=no | |
21288 | fi | |
ac1cb8d3 VS |
21289 | rm -f conftest.err conftest.$ac_objext \ |
21290 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21291 | LIBS=$ac_check_lib_save_LIBS |
21292 | fi | |
21293 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21294 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21295 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21296 | PNG_LINK=" -lpng -lz" | |
21297 | fi | |
21298 | ||
21299 | fi | |
21300 | ||
21301 | if test "x$PNG_LINK" = "x" ; then | |
21302 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21303 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21304 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21305 | { (exit 1); exit 1; }; } | |
21306 | else | |
21307 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21308 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21309 | wxUSE_LIBPNG=builtin | |
21310 | fi | |
21311 | else | |
21312 | wxUSE_LIBPNG=sys | |
21313 | fi | |
21314 | fi | |
21315 | fi | |
21316 | ||
21317 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21318 | fi | |
21319 | ||
21320 | ||
21321 | JPEG_LINK= | |
21322 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21323 | cat >>confdefs.h <<\_ACEOF | |
21324 | #define wxUSE_LIBJPEG 1 | |
21325 | _ACEOF | |
21326 | ||
21327 | ||
21328 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21329 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21330 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21331 | wxUSE_LIBJPEG=sys | |
21332 | fi | |
21333 | ||
21334 | if test "$wxUSE_MGL" != 1 ; then | |
21335 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21336 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21337 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21338 | if test "${ac_cv_header_jpeglib_h+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 | ||
21348 | #undef HAVE_STDLIB_H | |
21349 | #include <stdio.h> | |
21350 | #include <jpeglib.h> | |
21351 | ||
21352 | int | |
21353 | main () | |
21354 | { | |
21355 | ||
21356 | ||
21357 | ; | |
21358 | return 0; | |
21359 | } | |
21360 | _ACEOF | |
21361 | rm -f conftest.$ac_objext | |
21362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21364 | ac_status=$? |
ac1cb8d3 VS |
21365 | grep -v '^ *+' conftest.er1 >conftest.err |
21366 | rm -f conftest.er1 | |
21367 | cat conftest.err >&5 | |
a848cd7e SC |
21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21369 | (exit $ac_status); } && | |
2cbbc68d RD |
21370 | { ac_try='test -z "$ac_c_werror_flag" |
21371 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21373 | (eval $ac_try) 2>&5 | |
21374 | ac_status=$? | |
21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21376 | (exit $ac_status); }; } && | |
21377 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21379 | (eval $ac_try) 2>&5 | |
21380 | ac_status=$? | |
21381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21382 | (exit $ac_status); }; }; then | |
21383 | ac_cv_header_jpeglib_h=yes | |
21384 | else | |
21385 | echo "$as_me: failed program was:" >&5 | |
21386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21387 | ||
21388 | ac_cv_header_jpeglib_h=no | |
21389 | ||
21390 | fi | |
ac1cb8d3 | 21391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21392 | |
21393 | fi | |
21394 | ||
21395 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21396 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21397 | ||
21398 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21399 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21400 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21401 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21403 | else | |
21404 | ac_check_lib_save_LIBS=$LIBS | |
21405 | LIBS="-ljpeg $LIBS" | |
21406 | cat >conftest.$ac_ext <<_ACEOF | |
21407 | /* confdefs.h. */ | |
21408 | _ACEOF | |
21409 | cat confdefs.h >>conftest.$ac_ext | |
21410 | cat >>conftest.$ac_ext <<_ACEOF | |
21411 | /* end confdefs.h. */ | |
21412 | ||
21413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21414 | #ifdef __cplusplus | |
21415 | extern "C" | |
21416 | #endif | |
21417 | /* We use char because int might match the return type of a gcc2 | |
21418 | builtin and then its argument prototype would still apply. */ | |
21419 | char jpeg_read_header (); | |
21420 | int | |
21421 | main () | |
21422 | { | |
21423 | jpeg_read_header (); | |
21424 | ; | |
21425 | return 0; | |
21426 | } | |
21427 | _ACEOF | |
21428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21430 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21431 | ac_status=$? |
ac1cb8d3 VS |
21432 | grep -v '^ *+' conftest.er1 >conftest.err |
21433 | rm -f conftest.er1 | |
21434 | cat conftest.err >&5 | |
a848cd7e SC |
21435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21436 | (exit $ac_status); } && | |
2cbbc68d RD |
21437 | { ac_try='test -z "$ac_c_werror_flag" |
21438 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21440 | (eval $ac_try) 2>&5 | |
21441 | ac_status=$? | |
21442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21443 | (exit $ac_status); }; } && | |
21444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21446 | (eval $ac_try) 2>&5 | |
21447 | ac_status=$? | |
21448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21449 | (exit $ac_status); }; }; then | |
21450 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21451 | else | |
21452 | echo "$as_me: failed program was:" >&5 | |
21453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21454 | ||
21455 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21456 | fi | |
ac1cb8d3 VS |
21457 | rm -f conftest.err conftest.$ac_objext \ |
21458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21459 | LIBS=$ac_check_lib_save_LIBS |
21460 | fi | |
21461 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21462 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21463 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21464 | JPEG_LINK=" -ljpeg" | |
21465 | fi | |
21466 | ||
21467 | fi | |
21468 | ||
21469 | if test "x$JPEG_LINK" = "x" ; then | |
21470 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21471 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21472 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21473 | { (exit 1); exit 1; }; } | |
21474 | else | |
21475 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21476 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21477 | wxUSE_LIBJPEG=builtin | |
21478 | fi | |
21479 | else | |
21480 | wxUSE_LIBJPEG=sys | |
21481 | fi | |
21482 | fi | |
21483 | fi | |
21484 | fi | |
21485 | ||
21486 | ||
21487 | TIFF_LINK= | |
21488 | TIFF_PREREQ_LINKS=-lm | |
21489 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21490 | cat >>confdefs.h <<\_ACEOF | |
21491 | #define wxUSE_LIBTIFF 1 | |
21492 | _ACEOF | |
21493 | ||
21494 | ||
21495 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21496 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21497 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21498 | fi | |
21499 | if test "$wxUSE_ZLIB" = "sys"; then | |
21500 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21501 | fi | |
21502 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21503 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21504 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21505 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21507 | fi | |
21508 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21509 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21510 | else | |
21511 | # Is the header compilable? | |
21512 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21513 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21514 | cat >conftest.$ac_ext <<_ACEOF | |
21515 | /* confdefs.h. */ | |
21516 | _ACEOF | |
21517 | cat confdefs.h >>conftest.$ac_ext | |
21518 | cat >>conftest.$ac_ext <<_ACEOF | |
21519 | /* end confdefs.h. */ | |
21520 | $ac_includes_default | |
21521 | #include <tiffio.h> | |
21522 | _ACEOF | |
21523 | rm -f conftest.$ac_objext | |
21524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21525 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21526 | ac_status=$? |
ac1cb8d3 VS |
21527 | grep -v '^ *+' conftest.er1 >conftest.err |
21528 | rm -f conftest.er1 | |
21529 | cat conftest.err >&5 | |
a848cd7e SC |
21530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21531 | (exit $ac_status); } && | |
2cbbc68d RD |
21532 | { ac_try='test -z "$ac_c_werror_flag" |
21533 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21535 | (eval $ac_try) 2>&5 | |
21536 | ac_status=$? | |
21537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21538 | (exit $ac_status); }; } && | |
21539 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21541 | (eval $ac_try) 2>&5 | |
21542 | ac_status=$? | |
21543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21544 | (exit $ac_status); }; }; then | |
21545 | ac_header_compiler=yes | |
21546 | else | |
21547 | echo "$as_me: failed program was:" >&5 | |
21548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21549 | ||
21550 | ac_header_compiler=no | |
21551 | fi | |
ac1cb8d3 | 21552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21553 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21554 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21555 | ||
21556 | # Is the header present? | |
21557 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21558 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21559 | cat >conftest.$ac_ext <<_ACEOF | |
21560 | /* confdefs.h. */ | |
21561 | _ACEOF | |
21562 | cat confdefs.h >>conftest.$ac_ext | |
21563 | cat >>conftest.$ac_ext <<_ACEOF | |
21564 | /* end confdefs.h. */ | |
21565 | #include <tiffio.h> | |
21566 | _ACEOF | |
21567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21569 | ac_status=$? | |
21570 | grep -v '^ *+' conftest.er1 >conftest.err | |
21571 | rm -f conftest.er1 | |
21572 | cat conftest.err >&5 | |
21573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21574 | (exit $ac_status); } >/dev/null; then | |
21575 | if test -s conftest.err; then | |
21576 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21577 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21578 | else |
21579 | ac_cpp_err= | |
21580 | fi | |
21581 | else | |
21582 | ac_cpp_err=yes | |
21583 | fi | |
21584 | if test -z "$ac_cpp_err"; then | |
21585 | ac_header_preproc=yes | |
21586 | else | |
21587 | echo "$as_me: failed program was:" >&5 | |
21588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21589 | ||
21590 | ac_header_preproc=no | |
21591 | fi | |
21592 | rm -f conftest.err conftest.$ac_ext | |
21593 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21594 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21595 | ||
21596 | # So? What about this header? | |
ac1cb8d3 VS |
21597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21598 | yes:no: ) | |
a848cd7e SC |
21599 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21600 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21601 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21602 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21603 | ac_header_preproc=yes | |
a848cd7e | 21604 | ;; |
ac1cb8d3 | 21605 | no:yes:* ) |
a848cd7e SC |
21606 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21607 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21608 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21609 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21610 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21611 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21612 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21613 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21614 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21615 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21616 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21617 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21618 | ( |
21619 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21620 | ## ----------------------------------------- ## |
21621 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21622 | ## ----------------------------------------- ## | |
a848cd7e SC |
21623 | _ASBOX |
21624 | ) | | |
21625 | sed "s/^/$as_me: WARNING: /" >&2 | |
21626 | ;; | |
21627 | esac | |
21628 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21629 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21630 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21632 | else | |
21633 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21634 | fi | |
21635 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21636 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21637 | ||
21638 | fi | |
21639 | if test $ac_cv_header_tiffio_h = yes; then | |
21640 | ||
21641 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21642 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21643 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21645 | else | |
21646 | ac_check_lib_save_LIBS=$LIBS | |
21647 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21648 | cat >conftest.$ac_ext <<_ACEOF | |
21649 | /* confdefs.h. */ | |
21650 | _ACEOF | |
21651 | cat confdefs.h >>conftest.$ac_ext | |
21652 | cat >>conftest.$ac_ext <<_ACEOF | |
21653 | /* end confdefs.h. */ | |
21654 | ||
21655 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21656 | #ifdef __cplusplus | |
21657 | extern "C" | |
21658 | #endif | |
21659 | /* We use char because int might match the return type of a gcc2 | |
21660 | builtin and then its argument prototype would still apply. */ | |
21661 | char TIFFError (); | |
21662 | int | |
21663 | main () | |
21664 | { | |
21665 | TIFFError (); | |
21666 | ; | |
21667 | return 0; | |
21668 | } | |
21669 | _ACEOF | |
21670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21672 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21673 | ac_status=$? |
ac1cb8d3 VS |
21674 | grep -v '^ *+' conftest.er1 >conftest.err |
21675 | rm -f conftest.er1 | |
21676 | cat conftest.err >&5 | |
a848cd7e SC |
21677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21678 | (exit $ac_status); } && | |
2cbbc68d RD |
21679 | { ac_try='test -z "$ac_c_werror_flag" |
21680 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21682 | (eval $ac_try) 2>&5 | |
21683 | ac_status=$? | |
21684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21685 | (exit $ac_status); }; } && | |
21686 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21688 | (eval $ac_try) 2>&5 | |
21689 | ac_status=$? | |
21690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21691 | (exit $ac_status); }; }; then | |
21692 | ac_cv_lib_tiff_TIFFError=yes | |
21693 | else | |
21694 | echo "$as_me: failed program was:" >&5 | |
21695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21696 | ||
21697 | ac_cv_lib_tiff_TIFFError=no | |
21698 | fi | |
ac1cb8d3 VS |
21699 | rm -f conftest.err conftest.$ac_objext \ |
21700 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21701 | LIBS=$ac_check_lib_save_LIBS |
21702 | fi | |
21703 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21704 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21705 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21706 | TIFF_LINK=" -ltiff" | |
21707 | fi | |
21708 | ||
21709 | ||
21710 | ||
21711 | fi | |
21712 | ||
21713 | ||
21714 | ||
21715 | if test "x$TIFF_LINK" = "x" ; then | |
21716 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21717 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21718 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21719 | { (exit 1); exit 1; }; } | |
21720 | else | |
21721 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21722 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21723 | wxUSE_LIBTIFF=builtin | |
21724 | fi | |
21725 | else | |
21726 | wxUSE_LIBTIFF=sys | |
21727 | fi | |
21728 | fi | |
21729 | fi | |
21730 | ||
21731 | ||
21732 | if test "$wxUSE_EXPAT" != "no"; then | |
21733 | wxUSE_XML=yes | |
21734 | cat >>confdefs.h <<\_ACEOF | |
21735 | #define wxUSE_EXPAT 1 | |
21736 | _ACEOF | |
21737 | ||
21738 | cat >>confdefs.h <<\_ACEOF | |
21739 | #define wxUSE_XML 1 | |
21740 | _ACEOF | |
21741 | ||
21742 | ||
21743 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21744 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21745 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21746 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21747 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21749 | fi | |
21750 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21751 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21752 | else | |
21753 | # Is the header compilable? | |
21754 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21755 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21756 | cat >conftest.$ac_ext <<_ACEOF | |
21757 | /* confdefs.h. */ | |
21758 | _ACEOF | |
21759 | cat confdefs.h >>conftest.$ac_ext | |
21760 | cat >>conftest.$ac_ext <<_ACEOF | |
21761 | /* end confdefs.h. */ | |
21762 | $ac_includes_default | |
21763 | #include <expat.h> | |
21764 | _ACEOF | |
21765 | rm -f conftest.$ac_objext | |
21766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21767 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21768 | ac_status=$? |
ac1cb8d3 VS |
21769 | grep -v '^ *+' conftest.er1 >conftest.err |
21770 | rm -f conftest.er1 | |
21771 | cat conftest.err >&5 | |
a848cd7e SC |
21772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21773 | (exit $ac_status); } && | |
2cbbc68d RD |
21774 | { ac_try='test -z "$ac_c_werror_flag" |
21775 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21777 | (eval $ac_try) 2>&5 | |
21778 | ac_status=$? | |
21779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21780 | (exit $ac_status); }; } && | |
21781 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21783 | (eval $ac_try) 2>&5 | |
21784 | ac_status=$? | |
21785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21786 | (exit $ac_status); }; }; then | |
21787 | ac_header_compiler=yes | |
21788 | else | |
21789 | echo "$as_me: failed program was:" >&5 | |
21790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21791 | ||
21792 | ac_header_compiler=no | |
21793 | fi | |
ac1cb8d3 | 21794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21795 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21796 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21797 | ||
21798 | # Is the header present? | |
21799 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21800 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21801 | cat >conftest.$ac_ext <<_ACEOF | |
21802 | /* confdefs.h. */ | |
21803 | _ACEOF | |
21804 | cat confdefs.h >>conftest.$ac_ext | |
21805 | cat >>conftest.$ac_ext <<_ACEOF | |
21806 | /* end confdefs.h. */ | |
21807 | #include <expat.h> | |
21808 | _ACEOF | |
21809 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21810 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21811 | ac_status=$? | |
21812 | grep -v '^ *+' conftest.er1 >conftest.err | |
21813 | rm -f conftest.er1 | |
21814 | cat conftest.err >&5 | |
21815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21816 | (exit $ac_status); } >/dev/null; then | |
21817 | if test -s conftest.err; then | |
21818 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21819 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21820 | else |
21821 | ac_cpp_err= | |
21822 | fi | |
21823 | else | |
21824 | ac_cpp_err=yes | |
21825 | fi | |
21826 | if test -z "$ac_cpp_err"; then | |
21827 | ac_header_preproc=yes | |
21828 | else | |
21829 | echo "$as_me: failed program was:" >&5 | |
21830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21831 | ||
21832 | ac_header_preproc=no | |
21833 | fi | |
21834 | rm -f conftest.err conftest.$ac_ext | |
21835 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21836 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21837 | ||
21838 | # So? What about this header? | |
ac1cb8d3 VS |
21839 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21840 | yes:no: ) | |
a848cd7e SC |
21841 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21842 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21843 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21844 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21845 | ac_header_preproc=yes | |
a848cd7e | 21846 | ;; |
ac1cb8d3 | 21847 | no:yes:* ) |
a848cd7e SC |
21848 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21849 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21850 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21851 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21852 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21853 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21854 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21855 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21856 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21857 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21858 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21859 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21860 | ( |
21861 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21862 | ## ----------------------------------------- ## |
21863 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21864 | ## ----------------------------------------- ## | |
a848cd7e SC |
21865 | _ASBOX |
21866 | ) | | |
21867 | sed "s/^/$as_me: WARNING: /" >&2 | |
21868 | ;; | |
21869 | esac | |
21870 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21871 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21872 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21874 | else | |
21875 | ac_cv_header_expat_h=$ac_header_preproc | |
21876 | fi | |
21877 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21878 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21879 | ||
21880 | fi | |
21881 | if test $ac_cv_header_expat_h = yes; then | |
21882 | found_expat_h=1 | |
21883 | fi | |
21884 | ||
21885 | ||
21886 | if test "x$found_expat_h" = "x1"; then | |
21887 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21888 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21889 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21891 | else | |
21892 | ||
21893 | ||
21894 | ||
21895 | ac_ext=cc | |
21896 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21900 | ||
21901 | cat >conftest.$ac_ext <<_ACEOF | |
21902 | /* confdefs.h. */ | |
21903 | _ACEOF | |
21904 | cat confdefs.h >>conftest.$ac_ext | |
21905 | cat >>conftest.$ac_ext <<_ACEOF | |
21906 | /* end confdefs.h. */ | |
21907 | #include <expat.h> | |
21908 | int | |
21909 | main () | |
21910 | { | |
21911 | ||
21912 | ; | |
21913 | return 0; | |
21914 | } | |
21915 | _ACEOF | |
21916 | rm -f conftest.$ac_objext | |
21917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21918 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21919 | ac_status=$? |
ac1cb8d3 VS |
21920 | grep -v '^ *+' conftest.er1 >conftest.err |
21921 | rm -f conftest.er1 | |
21922 | cat conftest.err >&5 | |
a848cd7e SC |
21923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21924 | (exit $ac_status); } && | |
2cbbc68d RD |
21925 | { ac_try='test -z "$ac_cxx_werror_flag" |
21926 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21928 | (eval $ac_try) 2>&5 | |
21929 | ac_status=$? | |
21930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21931 | (exit $ac_status); }; } && | |
21932 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21934 | (eval $ac_try) 2>&5 | |
21935 | ac_status=$? | |
21936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21937 | (exit $ac_status); }; }; then | |
21938 | wx_cv_expat_is_not_broken=yes | |
21939 | else | |
21940 | echo "$as_me: failed program was:" >&5 | |
21941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21942 | ||
21943 | wx_cv_expat_is_not_broken=no | |
21944 | ||
21945 | fi | |
ac1cb8d3 | 21946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21947 | ac_ext=c |
21948 | ac_cpp='$CPP $CPPFLAGS' | |
21949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21952 | ||
21953 | ||
21954 | ||
21955 | fi | |
21956 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21957 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21958 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21959 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21960 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21961 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21963 | else | |
21964 | ac_check_lib_save_LIBS=$LIBS | |
21965 | LIBS="-lexpat $LIBS" | |
21966 | cat >conftest.$ac_ext <<_ACEOF | |
21967 | /* confdefs.h. */ | |
21968 | _ACEOF | |
21969 | cat confdefs.h >>conftest.$ac_ext | |
21970 | cat >>conftest.$ac_ext <<_ACEOF | |
21971 | /* end confdefs.h. */ | |
21972 | ||
21973 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21974 | #ifdef __cplusplus | |
21975 | extern "C" | |
21976 | #endif | |
21977 | /* We use char because int might match the return type of a gcc2 | |
21978 | builtin and then its argument prototype would still apply. */ | |
21979 | char XML_ParserCreate (); | |
21980 | int | |
21981 | main () | |
21982 | { | |
21983 | XML_ParserCreate (); | |
21984 | ; | |
21985 | return 0; | |
21986 | } | |
21987 | _ACEOF | |
21988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21990 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21991 | ac_status=$? |
ac1cb8d3 VS |
21992 | grep -v '^ *+' conftest.er1 >conftest.err |
21993 | rm -f conftest.er1 | |
21994 | cat conftest.err >&5 | |
a848cd7e SC |
21995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21996 | (exit $ac_status); } && | |
2cbbc68d RD |
21997 | { ac_try='test -z "$ac_c_werror_flag" |
21998 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22000 | (eval $ac_try) 2>&5 | |
22001 | ac_status=$? | |
22002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22003 | (exit $ac_status); }; } && | |
22004 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22006 | (eval $ac_try) 2>&5 | |
22007 | ac_status=$? | |
22008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22009 | (exit $ac_status); }; }; then | |
22010 | ac_cv_lib_expat_XML_ParserCreate=yes | |
22011 | else | |
22012 | echo "$as_me: failed program was:" >&5 | |
22013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22014 | ||
22015 | ac_cv_lib_expat_XML_ParserCreate=no | |
22016 | fi | |
ac1cb8d3 VS |
22017 | rm -f conftest.err conftest.$ac_objext \ |
22018 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22019 | LIBS=$ac_check_lib_save_LIBS |
22020 | fi | |
22021 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
22022 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
22023 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
22024 | EXPAT_LINK=" -lexpat" | |
22025 | fi | |
22026 | ||
22027 | fi | |
22028 | fi | |
22029 | if test "x$EXPAT_LINK" = "x" ; then | |
22030 | if test "$wxUSE_EXPAT" = "sys" ; then | |
22031 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
22032 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
22033 | { (exit 1); exit 1; }; } | |
22034 | else | |
22035 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
22036 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
22037 | wxUSE_EXPAT=builtin | |
22038 | fi | |
22039 | else | |
22040 | wxUSE_EXPAT=sys | |
22041 | fi | |
22042 | fi | |
22043 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
22044 | ||
22045 | ||
22046 | subdirs="$subdirs src/expat" | |
22047 | ||
22048 | fi | |
22049 | fi | |
22050 | ||
22051 | ||
22052 | ||
22053 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
22054 | ||
22055 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22056 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22057 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22058 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22060 | fi | |
22061 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22062 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22063 | else | |
22064 | # Is the header compilable? | |
22065 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
22066 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
22067 | cat >conftest.$ac_ext <<_ACEOF | |
22068 | /* confdefs.h. */ | |
22069 | _ACEOF | |
22070 | cat confdefs.h >>conftest.$ac_ext | |
22071 | cat >>conftest.$ac_ext <<_ACEOF | |
22072 | /* end confdefs.h. */ | |
22073 | $ac_includes_default | |
22074 | #include <mspack.h> | |
22075 | _ACEOF | |
22076 | rm -f conftest.$ac_objext | |
22077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22078 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22079 | ac_status=$? |
ac1cb8d3 VS |
22080 | grep -v '^ *+' conftest.er1 >conftest.err |
22081 | rm -f conftest.er1 | |
22082 | cat conftest.err >&5 | |
a848cd7e SC |
22083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22084 | (exit $ac_status); } && | |
2cbbc68d RD |
22085 | { ac_try='test -z "$ac_c_werror_flag" |
22086 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22088 | (eval $ac_try) 2>&5 | |
22089 | ac_status=$? | |
22090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22091 | (exit $ac_status); }; } && | |
22092 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22094 | (eval $ac_try) 2>&5 | |
22095 | ac_status=$? | |
22096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22097 | (exit $ac_status); }; }; then | |
22098 | ac_header_compiler=yes | |
22099 | else | |
22100 | echo "$as_me: failed program was:" >&5 | |
22101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22102 | ||
22103 | ac_header_compiler=no | |
22104 | fi | |
ac1cb8d3 | 22105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22106 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22107 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22108 | ||
22109 | # Is the header present? | |
22110 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
22111 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
22112 | cat >conftest.$ac_ext <<_ACEOF | |
22113 | /* confdefs.h. */ | |
22114 | _ACEOF | |
22115 | cat confdefs.h >>conftest.$ac_ext | |
22116 | cat >>conftest.$ac_ext <<_ACEOF | |
22117 | /* end confdefs.h. */ | |
22118 | #include <mspack.h> | |
22119 | _ACEOF | |
22120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22122 | ac_status=$? | |
22123 | grep -v '^ *+' conftest.er1 >conftest.err | |
22124 | rm -f conftest.er1 | |
22125 | cat conftest.err >&5 | |
22126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22127 | (exit $ac_status); } >/dev/null; then | |
22128 | if test -s conftest.err; then | |
22129 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22130 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22131 | else |
22132 | ac_cpp_err= | |
22133 | fi | |
22134 | else | |
22135 | ac_cpp_err=yes | |
22136 | fi | |
22137 | if test -z "$ac_cpp_err"; then | |
22138 | ac_header_preproc=yes | |
22139 | else | |
22140 | echo "$as_me: failed program was:" >&5 | |
22141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22142 | ||
22143 | ac_header_preproc=no | |
22144 | fi | |
22145 | rm -f conftest.err conftest.$ac_ext | |
22146 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22147 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22148 | ||
22149 | # So? What about this header? | |
ac1cb8d3 VS |
22150 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22151 | yes:no: ) | |
a848cd7e SC |
22152 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22153 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22154 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
22155 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
22156 | ac_header_preproc=yes | |
a848cd7e | 22157 | ;; |
ac1cb8d3 | 22158 | no:yes:* ) |
a848cd7e SC |
22159 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
22160 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22161 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
22162 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
22163 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
22164 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
22165 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22166 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22167 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
22168 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22169 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
22170 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22171 | ( |
22172 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22173 | ## ----------------------------------------- ## |
22174 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22175 | ## ----------------------------------------- ## | |
a848cd7e SC |
22176 | _ASBOX |
22177 | ) | | |
22178 | sed "s/^/$as_me: WARNING: /" >&2 | |
22179 | ;; | |
22180 | esac | |
22181 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22182 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22183 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22185 | else | |
22186 | ac_cv_header_mspack_h=$ac_header_preproc | |
22187 | fi | |
22188 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22189 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22190 | ||
22191 | fi | |
22192 | if test $ac_cv_header_mspack_h = yes; then | |
22193 | found_mspack_h=1 | |
22194 | fi | |
22195 | ||
22196 | ||
22197 | if test "x$found_mspack_h" = "x1"; then | |
22198 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
22199 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
22200 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
22201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22202 | else | |
22203 | ac_check_lib_save_LIBS=$LIBS | |
22204 | LIBS="-lmspack $LIBS" | |
22205 | cat >conftest.$ac_ext <<_ACEOF | |
22206 | /* confdefs.h. */ | |
22207 | _ACEOF | |
22208 | cat confdefs.h >>conftest.$ac_ext | |
22209 | cat >>conftest.$ac_ext <<_ACEOF | |
22210 | /* end confdefs.h. */ | |
22211 | ||
22212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22213 | #ifdef __cplusplus | |
22214 | extern "C" | |
22215 | #endif | |
22216 | /* We use char because int might match the return type of a gcc2 | |
22217 | builtin and then its argument prototype would still apply. */ | |
22218 | char mspack_create_chm_decompressor (); | |
22219 | int | |
22220 | main () | |
22221 | { | |
22222 | mspack_create_chm_decompressor (); | |
22223 | ; | |
22224 | return 0; | |
22225 | } | |
22226 | _ACEOF | |
22227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22229 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22230 | ac_status=$? |
ac1cb8d3 VS |
22231 | grep -v '^ *+' conftest.er1 >conftest.err |
22232 | rm -f conftest.er1 | |
22233 | cat conftest.err >&5 | |
a848cd7e SC |
22234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22235 | (exit $ac_status); } && | |
2cbbc68d RD |
22236 | { ac_try='test -z "$ac_c_werror_flag" |
22237 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22239 | (eval $ac_try) 2>&5 | |
22240 | ac_status=$? | |
22241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22242 | (exit $ac_status); }; } && | |
22243 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22245 | (eval $ac_try) 2>&5 | |
22246 | ac_status=$? | |
22247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22248 | (exit $ac_status); }; }; then | |
22249 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22250 | else | |
22251 | echo "$as_me: failed program was:" >&5 | |
22252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22253 | ||
22254 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22255 | fi | |
ac1cb8d3 VS |
22256 | rm -f conftest.err conftest.$ac_objext \ |
22257 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22258 | LIBS=$ac_check_lib_save_LIBS |
22259 | fi | |
22260 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22261 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22262 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22263 | MSPACK_LINK=" -lmspack" | |
22264 | fi | |
22265 | ||
22266 | fi | |
22267 | if test "x$MSPACK_LINK" = "x" ; then | |
22268 | wxUSE_LIBMSPACK=no | |
22269 | else | |
22270 | cat >>confdefs.h <<\_ACEOF | |
22271 | #define wxUSE_LIBMSPACK 1 | |
22272 | _ACEOF | |
22273 | ||
22274 | fi | |
22275 | fi | |
22276 | ||
22277 | ||
22278 | ||
22279 | AFMINSTALL= | |
22280 | WIN32INSTALL= | |
22281 | ||
22282 | TOOLKIT= | |
22283 | TOOLKIT_INCLUDE= | |
22284 | WIDGET_SET= | |
22285 | ||
22286 | if test "$USE_WIN32" = 1 ; then | |
22287 | ||
22288 | for ac_header in w32api.h | |
22289 | do | |
22290 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22292 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22296 | fi | |
22297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22298 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22299 | else | |
22300 | # Is the header compilable? | |
22301 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22302 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22303 | cat >conftest.$ac_ext <<_ACEOF | |
22304 | /* confdefs.h. */ | |
22305 | _ACEOF | |
22306 | cat confdefs.h >>conftest.$ac_ext | |
22307 | cat >>conftest.$ac_ext <<_ACEOF | |
22308 | /* end confdefs.h. */ | |
22309 | $ac_includes_default | |
22310 | #include <$ac_header> | |
22311 | _ACEOF | |
22312 | rm -f conftest.$ac_objext | |
22313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22314 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22315 | ac_status=$? |
ac1cb8d3 VS |
22316 | grep -v '^ *+' conftest.er1 >conftest.err |
22317 | rm -f conftest.er1 | |
22318 | cat conftest.err >&5 | |
a848cd7e SC |
22319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22320 | (exit $ac_status); } && | |
2cbbc68d RD |
22321 | { ac_try='test -z "$ac_c_werror_flag" |
22322 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22324 | (eval $ac_try) 2>&5 | |
22325 | ac_status=$? | |
22326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22327 | (exit $ac_status); }; } && | |
22328 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22330 | (eval $ac_try) 2>&5 | |
22331 | ac_status=$? | |
22332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22333 | (exit $ac_status); }; }; then | |
22334 | ac_header_compiler=yes | |
22335 | else | |
22336 | echo "$as_me: failed program was:" >&5 | |
22337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22338 | ||
22339 | ac_header_compiler=no | |
22340 | fi | |
ac1cb8d3 | 22341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22342 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22343 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22344 | ||
22345 | # Is the header present? | |
22346 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22347 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22348 | cat >conftest.$ac_ext <<_ACEOF | |
22349 | /* confdefs.h. */ | |
22350 | _ACEOF | |
22351 | cat confdefs.h >>conftest.$ac_ext | |
22352 | cat >>conftest.$ac_ext <<_ACEOF | |
22353 | /* end confdefs.h. */ | |
22354 | #include <$ac_header> | |
22355 | _ACEOF | |
22356 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22357 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22358 | ac_status=$? | |
22359 | grep -v '^ *+' conftest.er1 >conftest.err | |
22360 | rm -f conftest.er1 | |
22361 | cat conftest.err >&5 | |
22362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22363 | (exit $ac_status); } >/dev/null; then | |
22364 | if test -s conftest.err; then | |
22365 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22366 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22367 | else |
22368 | ac_cpp_err= | |
22369 | fi | |
22370 | else | |
22371 | ac_cpp_err=yes | |
22372 | fi | |
22373 | if test -z "$ac_cpp_err"; then | |
22374 | ac_header_preproc=yes | |
22375 | else | |
22376 | echo "$as_me: failed program was:" >&5 | |
22377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22378 | ||
22379 | ac_header_preproc=no | |
22380 | fi | |
22381 | rm -f conftest.err conftest.$ac_ext | |
22382 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22383 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22384 | ||
22385 | # So? What about this header? | |
ac1cb8d3 VS |
22386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22387 | yes:no: ) | |
a848cd7e SC |
22388 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22389 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22390 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22391 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22392 | ac_header_preproc=yes | |
a848cd7e | 22393 | ;; |
ac1cb8d3 | 22394 | no:yes:* ) |
a848cd7e SC |
22395 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22396 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22397 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22398 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22399 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22400 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22401 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22402 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22404 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22405 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22406 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22407 | ( |
22408 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22409 | ## ----------------------------------------- ## |
22410 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22411 | ## ----------------------------------------- ## | |
a848cd7e SC |
22412 | _ASBOX |
22413 | ) | | |
22414 | sed "s/^/$as_me: WARNING: /" >&2 | |
22415 | ;; | |
22416 | esac | |
22417 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22421 | else | |
ac1cb8d3 | 22422 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22423 | fi |
22424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22426 | ||
22427 | fi | |
22428 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22429 | cat >>confdefs.h <<_ACEOF | |
22430 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22431 | _ACEOF | |
22432 | ||
22433 | fi | |
22434 | ||
22435 | done | |
22436 | ||
22437 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22438 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22439 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22440 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22442 | fi | |
22443 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22444 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22445 | else | |
22446 | # Is the header compilable? | |
22447 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22448 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22449 | cat >conftest.$ac_ext <<_ACEOF | |
22450 | /* confdefs.h. */ | |
22451 | _ACEOF | |
22452 | cat confdefs.h >>conftest.$ac_ext | |
22453 | cat >>conftest.$ac_ext <<_ACEOF | |
22454 | /* end confdefs.h. */ | |
22455 | $ac_includes_default | |
22456 | #include <windows.h> | |
22457 | _ACEOF | |
22458 | rm -f conftest.$ac_objext | |
22459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22460 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22461 | ac_status=$? |
ac1cb8d3 VS |
22462 | grep -v '^ *+' conftest.er1 >conftest.err |
22463 | rm -f conftest.er1 | |
22464 | cat conftest.err >&5 | |
a848cd7e SC |
22465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22466 | (exit $ac_status); } && | |
2cbbc68d RD |
22467 | { ac_try='test -z "$ac_c_werror_flag" |
22468 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22470 | (eval $ac_try) 2>&5 | |
22471 | ac_status=$? | |
22472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22473 | (exit $ac_status); }; } && | |
22474 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22476 | (eval $ac_try) 2>&5 | |
22477 | ac_status=$? | |
22478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22479 | (exit $ac_status); }; }; then | |
22480 | ac_header_compiler=yes | |
22481 | else | |
22482 | echo "$as_me: failed program was:" >&5 | |
22483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22484 | ||
22485 | ac_header_compiler=no | |
22486 | fi | |
ac1cb8d3 | 22487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22488 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22489 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22490 | ||
22491 | # Is the header present? | |
22492 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22493 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22494 | cat >conftest.$ac_ext <<_ACEOF | |
22495 | /* confdefs.h. */ | |
22496 | _ACEOF | |
22497 | cat confdefs.h >>conftest.$ac_ext | |
22498 | cat >>conftest.$ac_ext <<_ACEOF | |
22499 | /* end confdefs.h. */ | |
22500 | #include <windows.h> | |
22501 | _ACEOF | |
22502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22504 | ac_status=$? | |
22505 | grep -v '^ *+' conftest.er1 >conftest.err | |
22506 | rm -f conftest.er1 | |
22507 | cat conftest.err >&5 | |
22508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22509 | (exit $ac_status); } >/dev/null; then | |
22510 | if test -s conftest.err; then | |
22511 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22513 | else |
22514 | ac_cpp_err= | |
22515 | fi | |
22516 | else | |
22517 | ac_cpp_err=yes | |
22518 | fi | |
22519 | if test -z "$ac_cpp_err"; then | |
22520 | ac_header_preproc=yes | |
22521 | else | |
22522 | echo "$as_me: failed program was:" >&5 | |
22523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22524 | ||
22525 | ac_header_preproc=no | |
22526 | fi | |
22527 | rm -f conftest.err conftest.$ac_ext | |
22528 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22529 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22530 | ||
22531 | # So? What about this header? | |
ac1cb8d3 VS |
22532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22533 | yes:no: ) | |
a848cd7e SC |
22534 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22535 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22536 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22537 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22538 | ac_header_preproc=yes | |
a848cd7e | 22539 | ;; |
ac1cb8d3 | 22540 | no:yes:* ) |
a848cd7e SC |
22541 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22542 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22543 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22544 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22545 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22546 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22547 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22548 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22549 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22550 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22551 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22552 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22553 | ( |
22554 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22555 | ## ----------------------------------------- ## |
22556 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22557 | ## ----------------------------------------- ## | |
a848cd7e SC |
22558 | _ASBOX |
22559 | ) | | |
22560 | sed "s/^/$as_me: WARNING: /" >&2 | |
22561 | ;; | |
22562 | esac | |
22563 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22564 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22565 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22567 | else | |
22568 | ac_cv_header_windows_h=$ac_header_preproc | |
22569 | fi | |
22570 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22571 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22572 | ||
22573 | fi | |
22574 | if test $ac_cv_header_windows_h = yes; then | |
22575 | : | |
22576 | else | |
22577 | ||
22578 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22579 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22580 | { (exit 1); exit 1; }; } | |
22581 | ||
22582 | fi | |
22583 | ||
22584 | ||
22585 | ||
22586 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22587 | ||
22588 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22589 | LIBS="$LIBS -loleacc" | |
22590 | fi | |
22591 | ||
22592 | case "${host}" in | |
22593 | *-*-cygwin* ) | |
22594 | LIBS="$LIBS -lkernel32 -luser32" | |
22595 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22596 | esac | |
22597 | ||
22598 | if test "$wxUSE_ODBC" = "sys" ; then | |
22599 | wxUSE_ODBC = "yes" | |
22600 | fi | |
22601 | if test "$wxUSE_ODBC" = "yes" ; then | |
22602 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22603 | cat >>confdefs.h <<\_ACEOF | |
22604 | #define wxUSE_ODBC 1 | |
22605 | _ACEOF | |
22606 | ||
22607 | fi | |
22608 | ||
22609 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22610 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22611 | ||
22612 | WIN32INSTALL=win32install | |
22613 | fi | |
22614 | ||
22615 | if test "$wxUSE_GUI" = "yes"; then | |
22616 | USE_GUI=1 | |
22617 | ||
22618 | GUI_TK_LIBRARY= | |
22619 | ||
22620 | WXGTK12= | |
22621 | WXGTK127= | |
22622 | WXGTK20= | |
22623 | WXGPE= | |
22624 | ||
207bc66c RN |
22625 | if test "$wxUSE_COCOA" = 1 ; then |
22626 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
22627 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
22628 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
22629 | wxUSE_PRINTING_ARCHITECTURE=no | |
22630 | fi | |
22631 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
22632 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
22633 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
22634 | wxUSE_DRAG_AND_DROP=no | |
22635 | fi | |
22636 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
22637 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
22638 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
22639 | wxUSE_DRAGIMAGE=no | |
22640 | fi | |
22641 | fi | |
22642 | ||
a848cd7e SC |
22643 | if test "$wxUSE_MSW" = 1 ; then |
22644 | TOOLKIT=MSW | |
22645 | GUIDIST=MSW_DIST | |
22646 | ||
ceec2216 | 22647 | case "${host}" in |
a848cd7e SC |
22648 | *-*-mingw32* ) |
22649 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22650 | esac | |
22651 | fi | |
22652 | ||
22653 | if test "$wxUSE_GTK" = 1; then | |
22654 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22655 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22656 | ||
22657 | gtk_version_cached=1 | |
22658 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22660 | else | |
22661 | ||
22662 | gtk_version_cached=0 | |
22663 | echo "$as_me:$LINENO: result: " >&5 | |
22664 | echo "${ECHO_T}" >&6 | |
22665 | ||
22666 | GTK_MODULES= | |
22667 | if test "$wxUSE_THREADS" = "yes"; then | |
22668 | GTK_MODULES=gthread | |
22669 | fi | |
22670 | ||
22671 | wx_cv_lib_gtk= | |
22672 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22673 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22674 | if test "${enable_gtktest+set}" = set; then | |
22675 | enableval="$enable_gtktest" | |
22676 | ||
22677 | else | |
22678 | enable_gtktest=yes | |
22679 | fi; | |
22680 | ||
22681 | pkg_config_args=gtk+-2.0 | |
22682 | for module in . $GTK_MODULES | |
22683 | do | |
22684 | case "$module" in | |
22685 | gthread) | |
22686 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22687 | ;; | |
22688 | esac | |
22689 | done | |
22690 | ||
22691 | no_gtk="" | |
22692 | ||
22693 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22694 | set dummy pkg-config; ac_word=$2 | |
22695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22697 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22699 | else | |
22700 | case $PKG_CONFIG in | |
22701 | [\\/]* | ?:[\\/]*) | |
22702 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22703 | ;; | |
22704 | *) | |
22705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22706 | for as_dir in $PATH | |
22707 | do | |
22708 | IFS=$as_save_IFS | |
22709 | test -z "$as_dir" && as_dir=. | |
22710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22712 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22714 | break 2 | |
22715 | fi | |
22716 | done | |
22717 | done | |
22718 | ||
22719 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22720 | ;; | |
22721 | esac | |
22722 | fi | |
22723 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22724 | ||
22725 | if test -n "$PKG_CONFIG"; then | |
22726 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22727 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22728 | else | |
22729 | echo "$as_me:$LINENO: result: no" >&5 | |
22730 | echo "${ECHO_T}no" >&6 | |
22731 | fi | |
22732 | ||
22733 | ||
22734 | if test x$PKG_CONFIG != xno ; then | |
22735 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22736 | : | |
22737 | else | |
c2218763 | 22738 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22739 | no_gtk=yes |
22740 | PKG_CONFIG=no | |
22741 | fi | |
22742 | else | |
22743 | no_gtk=yes | |
22744 | fi | |
22745 | ||
22746 | min_gtk_version=2.0.0 | |
22747 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22748 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22749 | ||
22750 | if test x$PKG_CONFIG != xno ; then | |
22751 | ## don't try to run the test against uninstalled libtool libs | |
22752 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22753 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22754 | enable_gtktest=no | |
22755 | fi | |
22756 | ||
22757 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22758 | : | |
22759 | else | |
22760 | no_gtk=yes | |
22761 | fi | |
22762 | fi | |
22763 | ||
22764 | if test x"$no_gtk" = x ; then | |
22765 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22766 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22767 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22768 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22769 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22770 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22771 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22772 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22773 | if test "x$enable_gtktest" = "xyes" ; then | |
22774 | ac_save_CFLAGS="$CFLAGS" | |
22775 | ac_save_LIBS="$LIBS" | |
22776 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22777 | LIBS="$GTK_LIBS $LIBS" | |
22778 | rm -f conf.gtktest | |
22779 | if test "$cross_compiling" = yes; then | |
22780 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22781 | else | |
22782 | cat >conftest.$ac_ext <<_ACEOF | |
22783 | /* confdefs.h. */ | |
22784 | _ACEOF | |
22785 | cat confdefs.h >>conftest.$ac_ext | |
22786 | cat >>conftest.$ac_ext <<_ACEOF | |
22787 | /* end confdefs.h. */ | |
22788 | ||
22789 | #include <gtk/gtk.h> | |
22790 | #include <stdio.h> | |
22791 | #include <stdlib.h> | |
22792 | ||
22793 | int | |
22794 | main () | |
22795 | { | |
22796 | int major, minor, micro; | |
22797 | char *tmp_version; | |
22798 | ||
22799 | system ("touch conf.gtktest"); | |
22800 | ||
22801 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22802 | tmp_version = g_strdup("$min_gtk_version"); | |
22803 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22804 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22805 | exit(1); | |
22806 | } | |
22807 | ||
22808 | if ((gtk_major_version != $gtk_config_major_version) || | |
22809 | (gtk_minor_version != $gtk_config_minor_version) || | |
22810 | (gtk_micro_version != $gtk_config_micro_version)) | |
22811 | { | |
22812 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22813 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22814 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22815 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22816 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22817 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22818 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22819 | printf("*** required on your system.\n"); | |
22820 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22821 | printf("*** to point to the correct configuration files\n"); | |
22822 | } | |
22823 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22824 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22825 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22826 | { | |
22827 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22828 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22829 | printf("*** library (version %d.%d.%d)\n", | |
22830 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22831 | } | |
22832 | else | |
22833 | { | |
22834 | if ((gtk_major_version > major) || | |
22835 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22836 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22837 | { | |
22838 | return 0; | |
22839 | } | |
22840 | else | |
22841 | { | |
22842 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22843 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22844 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22845 | major, minor, micro); | |
22846 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22847 | printf("***\n"); | |
22848 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22849 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22850 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22851 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22852 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22853 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22854 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22855 | } | |
22856 | } | |
22857 | return 1; | |
22858 | } | |
22859 | ||
22860 | _ACEOF | |
22861 | rm -f conftest$ac_exeext | |
22862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22863 | (eval $ac_link) 2>&5 | |
22864 | ac_status=$? | |
22865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22866 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22868 | (eval $ac_try) 2>&5 | |
22869 | ac_status=$? | |
22870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22871 | (exit $ac_status); }; }; then | |
22872 | : | |
22873 | else | |
22874 | echo "$as_me: program exited with status $ac_status" >&5 | |
22875 | echo "$as_me: failed program was:" >&5 | |
22876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22877 | ||
22878 | ( exit $ac_status ) | |
22879 | no_gtk=yes | |
22880 | fi | |
ac1cb8d3 | 22881 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22882 | fi |
22883 | CFLAGS="$ac_save_CFLAGS" | |
22884 | LIBS="$ac_save_LIBS" | |
22885 | fi | |
22886 | fi | |
22887 | if test "x$no_gtk" = x ; then | |
22888 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22889 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22890 | wx_cv_lib_gtk=2.0 | |
22891 | else | |
22892 | echo "$as_me:$LINENO: result: no" >&5 | |
22893 | echo "${ECHO_T}no" >&6 | |
22894 | if test "$PKG_CONFIG" = "no" ; then | |
22895 | echo "*** A new enough version of pkg-config was not found." | |
22896 | echo "*** See http://pkgconfig.sourceforge.net" | |
22897 | else | |
22898 | if test -f conf.gtktest ; then | |
22899 | : | |
22900 | else | |
22901 | echo "*** Could not run GTK+ test program, checking why..." | |
22902 | ac_save_CFLAGS="$CFLAGS" | |
22903 | ac_save_LIBS="$LIBS" | |
22904 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22905 | LIBS="$LIBS $GTK_LIBS" | |
22906 | cat >conftest.$ac_ext <<_ACEOF | |
22907 | /* confdefs.h. */ | |
22908 | _ACEOF | |
22909 | cat confdefs.h >>conftest.$ac_ext | |
22910 | cat >>conftest.$ac_ext <<_ACEOF | |
22911 | /* end confdefs.h. */ | |
22912 | ||
22913 | #include <gtk/gtk.h> | |
22914 | #include <stdio.h> | |
22915 | ||
22916 | int | |
22917 | main () | |
22918 | { | |
22919 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22920 | ; | |
22921 | return 0; | |
22922 | } | |
22923 | _ACEOF | |
22924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22927 | ac_status=$? |
ac1cb8d3 VS |
22928 | grep -v '^ *+' conftest.er1 >conftest.err |
22929 | rm -f conftest.er1 | |
22930 | cat conftest.err >&5 | |
a848cd7e SC |
22931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22932 | (exit $ac_status); } && | |
2cbbc68d RD |
22933 | { ac_try='test -z "$ac_c_werror_flag" |
22934 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22936 | (eval $ac_try) 2>&5 | |
22937 | ac_status=$? | |
22938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22939 | (exit $ac_status); }; } && | |
22940 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22942 | (eval $ac_try) 2>&5 | |
22943 | ac_status=$? | |
22944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22945 | (exit $ac_status); }; }; then | |
22946 | echo "*** The test program compiled, but did not run. This usually means" | |
22947 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22948 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22949 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22950 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22951 | echo "*** is required on your system" | |
22952 | echo "***" | |
22953 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22954 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22955 | else | |
22956 | echo "$as_me: failed program was:" >&5 | |
22957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22958 | ||
22959 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22960 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22961 | fi | |
ac1cb8d3 VS |
22962 | rm -f conftest.err conftest.$ac_objext \ |
22963 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22964 | CFLAGS="$ac_save_CFLAGS" |
22965 | LIBS="$ac_save_LIBS" | |
22966 | fi | |
22967 | fi | |
22968 | GTK_CFLAGS="" | |
22969 | GTK_LIBS="" | |
22970 | : | |
22971 | fi | |
22972 | ||
22973 | ||
22974 | rm -f conf.gtktest | |
22975 | ||
22976 | else | |
22977 | ||
22978 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22979 | if test "${with_gtk_prefix+set}" = set; then | |
22980 | withval="$with_gtk_prefix" | |
22981 | gtk_config_prefix="$withval" | |
22982 | else | |
22983 | gtk_config_prefix="" | |
22984 | fi; | |
22985 | ||
22986 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22987 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22988 | withval="$with_gtk_exec_prefix" | |
22989 | gtk_config_exec_prefix="$withval" | |
22990 | else | |
22991 | gtk_config_exec_prefix="" | |
22992 | fi; | |
22993 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22994 | if test "${enable_gtktest+set}" = set; then | |
22995 | enableval="$enable_gtktest" | |
22996 | ||
22997 | else | |
22998 | enable_gtktest=yes | |
22999 | fi; | |
23000 | ||
23001 | for module in . $GTK_MODULES | |
23002 | do | |
23003 | case "$module" in | |
23004 | gthread) | |
23005 | gtk_config_args="$gtk_config_args gthread" | |
23006 | ;; | |
23007 | esac | |
23008 | done | |
23009 | ||
23010 | if test x$gtk_config_exec_prefix != x ; then | |
23011 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23012 | if test x${GTK_CONFIG+set} != xset ; then | |
23013 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23014 | fi | |
23015 | fi | |
23016 | if test x$gtk_config_prefix != x ; then | |
23017 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23018 | if test x${GTK_CONFIG+set} != xset ; then | |
23019 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23020 | fi | |
23021 | fi | |
23022 | ||
23023 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23024 | set dummy gtk-config; ac_word=$2 | |
23025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23027 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23029 | else | |
23030 | case $GTK_CONFIG in | |
23031 | [\\/]* | ?:[\\/]*) | |
23032 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23033 | ;; | |
23034 | *) | |
23035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23036 | for as_dir in $PATH | |
23037 | do | |
23038 | IFS=$as_save_IFS | |
23039 | test -z "$as_dir" && as_dir=. | |
23040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23042 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23044 | break 2 | |
23045 | fi | |
23046 | done | |
23047 | done | |
23048 | ||
23049 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23050 | ;; | |
23051 | esac | |
23052 | fi | |
23053 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23054 | ||
23055 | if test -n "$GTK_CONFIG"; then | |
23056 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23057 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23058 | else | |
23059 | echo "$as_me:$LINENO: result: no" >&5 | |
23060 | echo "${ECHO_T}no" >&6 | |
23061 | fi | |
23062 | ||
23063 | min_gtk_version=1.2.7 | |
23064 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23065 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23066 | no_gtk="" | |
23067 | if test "$GTK_CONFIG" = "no" ; then | |
23068 | no_gtk=yes | |
23069 | else | |
23070 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23071 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23072 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23073 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23074 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23075 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23076 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23077 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23078 | if test "x$enable_gtktest" = "xyes" ; then | |
23079 | ac_save_CFLAGS="$CFLAGS" | |
23080 | ac_save_LIBS="$LIBS" | |
23081 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23082 | LIBS="$GTK_LIBS $LIBS" | |
23083 | rm -f conf.gtktest | |
23084 | if test "$cross_compiling" = yes; then | |
23085 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23086 | else | |
23087 | cat >conftest.$ac_ext <<_ACEOF | |
23088 | /* confdefs.h. */ | |
23089 | _ACEOF | |
23090 | cat confdefs.h >>conftest.$ac_ext | |
23091 | cat >>conftest.$ac_ext <<_ACEOF | |
23092 | /* end confdefs.h. */ | |
23093 | ||
23094 | #include <gtk/gtk.h> | |
23095 | #include <stdio.h> | |
23096 | #include <stdlib.h> | |
23097 | ||
23098 | int | |
23099 | main () | |
23100 | { | |
23101 | int major, minor, micro; | |
23102 | char *tmp_version; | |
23103 | ||
23104 | system ("touch conf.gtktest"); | |
23105 | ||
23106 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23107 | tmp_version = g_strdup("$min_gtk_version"); | |
23108 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23109 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23110 | exit(1); | |
23111 | } | |
23112 | ||
23113 | if ((gtk_major_version != $gtk_config_major_version) || | |
23114 | (gtk_minor_version != $gtk_config_minor_version) || | |
23115 | (gtk_micro_version != $gtk_config_micro_version)) | |
23116 | { | |
23117 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23118 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23119 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23120 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23121 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23122 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23123 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23124 | printf("*** required on your system.\n"); | |
23125 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23126 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23127 | printf("*** before re-running configure\n"); | |
23128 | } | |
23129 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23130 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23131 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23132 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23133 | { | |
23134 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23135 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23136 | printf("*** library (version %d.%d.%d)\n", | |
23137 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23138 | } | |
23139 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23140 | else | |
23141 | { | |
23142 | if ((gtk_major_version > major) || | |
23143 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23144 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23145 | { | |
23146 | return 0; | |
23147 | } | |
23148 | else | |
23149 | { | |
23150 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23151 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23152 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23153 | major, minor, micro); | |
23154 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23155 | printf("***\n"); | |
23156 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23157 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23158 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23159 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23160 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23161 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23162 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23163 | } | |
23164 | } | |
23165 | return 1; | |
23166 | } | |
23167 | ||
23168 | _ACEOF | |
23169 | rm -f conftest$ac_exeext | |
23170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23171 | (eval $ac_link) 2>&5 | |
23172 | ac_status=$? | |
23173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23174 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23176 | (eval $ac_try) 2>&5 | |
23177 | ac_status=$? | |
23178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23179 | (exit $ac_status); }; }; then | |
23180 | : | |
23181 | else | |
23182 | echo "$as_me: program exited with status $ac_status" >&5 | |
23183 | echo "$as_me: failed program was:" >&5 | |
23184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23185 | ||
23186 | ( exit $ac_status ) | |
23187 | no_gtk=yes | |
23188 | fi | |
ac1cb8d3 | 23189 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23190 | fi |
23191 | CFLAGS="$ac_save_CFLAGS" | |
23192 | LIBS="$ac_save_LIBS" | |
23193 | fi | |
23194 | fi | |
23195 | if test "x$no_gtk" = x ; then | |
23196 | echo "$as_me:$LINENO: result: yes" >&5 | |
23197 | echo "${ECHO_T}yes" >&6 | |
23198 | wx_cv_lib_gtk=1.2.7 | |
23199 | else | |
23200 | echo "$as_me:$LINENO: result: no" >&5 | |
23201 | echo "${ECHO_T}no" >&6 | |
23202 | if test "$GTK_CONFIG" = "no" ; then | |
23203 | echo "*** The gtk-config script installed by GTK could not be found" | |
23204 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23205 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23206 | echo "*** full path to gtk-config." | |
23207 | else | |
23208 | if test -f conf.gtktest ; then | |
23209 | : | |
23210 | else | |
23211 | echo "*** Could not run GTK test program, checking why..." | |
23212 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23213 | LIBS="$LIBS $GTK_LIBS" | |
23214 | cat >conftest.$ac_ext <<_ACEOF | |
23215 | /* confdefs.h. */ | |
23216 | _ACEOF | |
23217 | cat confdefs.h >>conftest.$ac_ext | |
23218 | cat >>conftest.$ac_ext <<_ACEOF | |
23219 | /* end confdefs.h. */ | |
23220 | ||
23221 | #include <gtk/gtk.h> | |
23222 | #include <stdio.h> | |
23223 | ||
23224 | int | |
23225 | main () | |
23226 | { | |
23227 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23228 | ; | |
23229 | return 0; | |
23230 | } | |
23231 | _ACEOF | |
23232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23234 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23235 | ac_status=$? |
ac1cb8d3 VS |
23236 | grep -v '^ *+' conftest.er1 >conftest.err |
23237 | rm -f conftest.er1 | |
23238 | cat conftest.err >&5 | |
a848cd7e SC |
23239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23240 | (exit $ac_status); } && | |
2cbbc68d RD |
23241 | { ac_try='test -z "$ac_c_werror_flag" |
23242 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23244 | (eval $ac_try) 2>&5 | |
23245 | ac_status=$? | |
23246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23247 | (exit $ac_status); }; } && | |
23248 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23250 | (eval $ac_try) 2>&5 | |
23251 | ac_status=$? | |
23252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23253 | (exit $ac_status); }; }; then | |
23254 | echo "*** The test program compiled, but did not run. This usually means" | |
23255 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23256 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23257 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23258 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23259 | echo "*** is required on your system" | |
23260 | echo "***" | |
23261 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23262 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23263 | echo "***" | |
23264 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23265 | echo "*** came with the system with the command" | |
23266 | echo "***" | |
23267 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23268 | else | |
23269 | echo "$as_me: failed program was:" >&5 | |
23270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23271 | ||
23272 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23273 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23274 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23275 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23276 | fi | |
ac1cb8d3 VS |
23277 | rm -f conftest.err conftest.$ac_objext \ |
23278 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23279 | CFLAGS="$ac_save_CFLAGS" |
23280 | LIBS="$ac_save_LIBS" | |
23281 | fi | |
23282 | fi | |
23283 | GTK_CFLAGS="" | |
23284 | GTK_LIBS="" | |
23285 | : | |
23286 | fi | |
23287 | ||
23288 | ||
23289 | rm -f conf.gtktest | |
23290 | ||
23291 | ||
23292 | if test -z "$wx_cv_lib_gtk"; then | |
23293 | ||
23294 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23295 | if test "${with_gtk_prefix+set}" = set; then | |
23296 | withval="$with_gtk_prefix" | |
23297 | gtk_config_prefix="$withval" | |
23298 | else | |
23299 | gtk_config_prefix="" | |
23300 | fi; | |
23301 | ||
23302 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23303 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23304 | withval="$with_gtk_exec_prefix" | |
23305 | gtk_config_exec_prefix="$withval" | |
23306 | else | |
23307 | gtk_config_exec_prefix="" | |
23308 | fi; | |
23309 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23310 | if test "${enable_gtktest+set}" = set; then | |
23311 | enableval="$enable_gtktest" | |
23312 | ||
23313 | else | |
23314 | enable_gtktest=yes | |
23315 | fi; | |
23316 | ||
23317 | for module in . $GTK_MODULES | |
23318 | do | |
23319 | case "$module" in | |
23320 | gthread) | |
23321 | gtk_config_args="$gtk_config_args gthread" | |
23322 | ;; | |
23323 | esac | |
23324 | done | |
23325 | ||
23326 | if test x$gtk_config_exec_prefix != x ; then | |
23327 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23328 | if test x${GTK_CONFIG+set} != xset ; then | |
23329 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23330 | fi | |
23331 | fi | |
23332 | if test x$gtk_config_prefix != x ; then | |
23333 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23334 | if test x${GTK_CONFIG+set} != xset ; then | |
23335 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23336 | fi | |
23337 | fi | |
23338 | ||
23339 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23340 | set dummy gtk-config; ac_word=$2 | |
23341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23343 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23345 | else | |
23346 | case $GTK_CONFIG in | |
23347 | [\\/]* | ?:[\\/]*) | |
23348 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23349 | ;; | |
23350 | *) | |
23351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23352 | for as_dir in $PATH | |
23353 | do | |
23354 | IFS=$as_save_IFS | |
23355 | test -z "$as_dir" && as_dir=. | |
23356 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23357 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23358 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23360 | break 2 | |
23361 | fi | |
23362 | done | |
23363 | done | |
23364 | ||
23365 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23366 | ;; | |
23367 | esac | |
23368 | fi | |
23369 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23370 | ||
23371 | if test -n "$GTK_CONFIG"; then | |
23372 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23373 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23374 | else | |
23375 | echo "$as_me:$LINENO: result: no" >&5 | |
23376 | echo "${ECHO_T}no" >&6 | |
23377 | fi | |
23378 | ||
23379 | min_gtk_version=1.2.3 | |
23380 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23381 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23382 | no_gtk="" | |
23383 | if test "$GTK_CONFIG" = "no" ; then | |
23384 | no_gtk=yes | |
23385 | else | |
23386 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23387 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23388 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23389 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23390 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23391 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23392 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23393 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23394 | if test "x$enable_gtktest" = "xyes" ; then | |
23395 | ac_save_CFLAGS="$CFLAGS" | |
23396 | ac_save_LIBS="$LIBS" | |
23397 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23398 | LIBS="$GTK_LIBS $LIBS" | |
23399 | rm -f conf.gtktest | |
23400 | if test "$cross_compiling" = yes; then | |
23401 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23402 | else | |
23403 | cat >conftest.$ac_ext <<_ACEOF | |
23404 | /* confdefs.h. */ | |
23405 | _ACEOF | |
23406 | cat confdefs.h >>conftest.$ac_ext | |
23407 | cat >>conftest.$ac_ext <<_ACEOF | |
23408 | /* end confdefs.h. */ | |
23409 | ||
23410 | #include <gtk/gtk.h> | |
23411 | #include <stdio.h> | |
23412 | #include <stdlib.h> | |
23413 | ||
23414 | int | |
23415 | main () | |
23416 | { | |
23417 | int major, minor, micro; | |
23418 | char *tmp_version; | |
23419 | ||
23420 | system ("touch conf.gtktest"); | |
23421 | ||
23422 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23423 | tmp_version = g_strdup("$min_gtk_version"); | |
23424 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23425 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23426 | exit(1); | |
23427 | } | |
23428 | ||
23429 | if ((gtk_major_version != $gtk_config_major_version) || | |
23430 | (gtk_minor_version != $gtk_config_minor_version) || | |
23431 | (gtk_micro_version != $gtk_config_micro_version)) | |
23432 | { | |
23433 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23434 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23435 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23436 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23437 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23438 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23439 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23440 | printf("*** required on your system.\n"); | |
23441 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23442 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23443 | printf("*** before re-running configure\n"); | |
23444 | } | |
23445 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23446 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23447 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23448 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23449 | { | |
23450 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23451 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23452 | printf("*** library (version %d.%d.%d)\n", | |
23453 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23454 | } | |
23455 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23456 | else | |
23457 | { | |
23458 | if ((gtk_major_version > major) || | |
23459 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23460 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23461 | { | |
23462 | return 0; | |
23463 | } | |
23464 | else | |
23465 | { | |
23466 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23467 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23468 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23469 | major, minor, micro); | |
23470 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23471 | printf("***\n"); | |
23472 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23473 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23474 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23475 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23476 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23477 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23478 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23479 | } | |
23480 | } | |
23481 | return 1; | |
23482 | } | |
23483 | ||
23484 | _ACEOF | |
23485 | rm -f conftest$ac_exeext | |
23486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23487 | (eval $ac_link) 2>&5 | |
23488 | ac_status=$? | |
23489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23490 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23492 | (eval $ac_try) 2>&5 | |
23493 | ac_status=$? | |
23494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23495 | (exit $ac_status); }; }; then | |
23496 | : | |
23497 | else | |
23498 | echo "$as_me: program exited with status $ac_status" >&5 | |
23499 | echo "$as_me: failed program was:" >&5 | |
23500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23501 | ||
23502 | ( exit $ac_status ) | |
23503 | no_gtk=yes | |
23504 | fi | |
ac1cb8d3 | 23505 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23506 | fi |
23507 | CFLAGS="$ac_save_CFLAGS" | |
23508 | LIBS="$ac_save_LIBS" | |
23509 | fi | |
23510 | fi | |
23511 | if test "x$no_gtk" = x ; then | |
23512 | echo "$as_me:$LINENO: result: yes" >&5 | |
23513 | echo "${ECHO_T}yes" >&6 | |
23514 | wx_cv_lib_gtk=1.2.3 | |
23515 | else | |
23516 | echo "$as_me:$LINENO: result: no" >&5 | |
23517 | echo "${ECHO_T}no" >&6 | |
23518 | if test "$GTK_CONFIG" = "no" ; then | |
23519 | echo "*** The gtk-config script installed by GTK could not be found" | |
23520 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23521 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23522 | echo "*** full path to gtk-config." | |
23523 | else | |
23524 | if test -f conf.gtktest ; then | |
23525 | : | |
23526 | else | |
23527 | echo "*** Could not run GTK test program, checking why..." | |
23528 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23529 | LIBS="$LIBS $GTK_LIBS" | |
23530 | cat >conftest.$ac_ext <<_ACEOF | |
23531 | /* confdefs.h. */ | |
23532 | _ACEOF | |
23533 | cat confdefs.h >>conftest.$ac_ext | |
23534 | cat >>conftest.$ac_ext <<_ACEOF | |
23535 | /* end confdefs.h. */ | |
23536 | ||
23537 | #include <gtk/gtk.h> | |
23538 | #include <stdio.h> | |
23539 | ||
23540 | int | |
23541 | main () | |
23542 | { | |
23543 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23544 | ; | |
23545 | return 0; | |
23546 | } | |
23547 | _ACEOF | |
23548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23550 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23551 | ac_status=$? |
ac1cb8d3 VS |
23552 | grep -v '^ *+' conftest.er1 >conftest.err |
23553 | rm -f conftest.er1 | |
23554 | cat conftest.err >&5 | |
a848cd7e SC |
23555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23556 | (exit $ac_status); } && | |
2cbbc68d RD |
23557 | { ac_try='test -z "$ac_c_werror_flag" |
23558 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23560 | (eval $ac_try) 2>&5 | |
23561 | ac_status=$? | |
23562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23563 | (exit $ac_status); }; } && | |
23564 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23566 | (eval $ac_try) 2>&5 | |
23567 | ac_status=$? | |
23568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23569 | (exit $ac_status); }; }; then | |
23570 | echo "*** The test program compiled, but did not run. This usually means" | |
23571 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23572 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23573 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23574 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23575 | echo "*** is required on your system" | |
23576 | echo "***" | |
23577 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23578 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23579 | echo "***" | |
23580 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23581 | echo "*** came with the system with the command" | |
23582 | echo "***" | |
23583 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23584 | else | |
23585 | echo "$as_me: failed program was:" >&5 | |
23586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23587 | ||
23588 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23589 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23590 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23591 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23592 | fi | |
ac1cb8d3 VS |
23593 | rm -f conftest.err conftest.$ac_objext \ |
23594 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23595 | CFLAGS="$ac_save_CFLAGS" |
23596 | LIBS="$ac_save_LIBS" | |
23597 | fi | |
23598 | fi | |
23599 | GTK_CFLAGS="" | |
23600 | GTK_LIBS="" | |
23601 | : | |
23602 | fi | |
23603 | ||
23604 | ||
23605 | rm -f conf.gtktest | |
23606 | ||
23607 | fi | |
23608 | fi | |
23609 | ||
23610 | if test -z "$wx_cv_lib_gtk"; then | |
23611 | wx_cv_lib_gtk=none | |
23612 | else | |
23613 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23614 | wx_cv_libs_gtk=$GTK_LIBS | |
23615 | fi | |
23616 | ||
23617 | ||
23618 | fi | |
23619 | ||
23620 | ||
23621 | if test "$gtk_version_cached" = 1; then | |
23622 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23623 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23624 | fi | |
23625 | ||
23626 | case "$wx_cv_lib_gtk" in | |
23627 | 2.0) WXGTK20=1 | |
23628 | TOOLKIT_VERSION=2 | |
23629 | ;; | |
23630 | 1.2.7) WXGTK127=1 | |
23631 | WXGTK12=1 | |
23632 | ;; | |
23633 | 1.2.3) WXGTK12=1 | |
23634 | ;; | |
23635 | *) { { echo "$as_me:$LINENO: error: | |
23636 | Please check that gtk-config is in path, the directory | |
23637 | where GTK+ libraries are installed (returned by | |
23638 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23639 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23640 | " >&5 | |
23641 | echo "$as_me: error: | |
23642 | Please check that gtk-config is in path, the directory | |
23643 | where GTK+ libraries are installed (returned by | |
23644 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23645 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23646 | " >&2;} | |
23647 | { (exit 1); exit 1; }; } | |
23648 | ;; | |
23649 | esac | |
23650 | ||
23651 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
23652 | save_CFLAGS="$CFLAGS" |
23653 | save_LIBS="$LIBS" | |
23654 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23655 | LIBS="$LIBS $GTK_LIBS" | |
23656 | ||
23657 | for ac_func in pango_font_family_is_monospace | |
23658 | do | |
23659 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23660 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23661 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23662 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23664 | else | |
23665 | cat >conftest.$ac_ext <<_ACEOF | |
23666 | /* confdefs.h. */ | |
23667 | _ACEOF | |
23668 | cat confdefs.h >>conftest.$ac_ext | |
23669 | cat >>conftest.$ac_ext <<_ACEOF | |
23670 | /* end confdefs.h. */ | |
23671 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23672 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23673 | #define $ac_func innocuous_$ac_func | |
23674 | ||
23675 | /* System header to define __stub macros and hopefully few prototypes, | |
23676 | which can conflict with char $ac_func (); below. | |
23677 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23678 | <limits.h> exists even on freestanding compilers. */ | |
23679 | ||
23680 | #ifdef __STDC__ | |
23681 | # include <limits.h> | |
23682 | #else | |
23683 | # include <assert.h> | |
23684 | #endif | |
23685 | ||
23686 | #undef $ac_func | |
23687 | ||
23688 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23689 | #ifdef __cplusplus | |
23690 | extern "C" | |
23691 | { | |
23692 | #endif | |
23693 | /* We use char because int might match the return type of a gcc2 | |
23694 | builtin and then its argument prototype would still apply. */ | |
23695 | char $ac_func (); | |
23696 | /* The GNU C library defines this for functions which it implements | |
23697 | to always fail with ENOSYS. Some functions are actually named | |
23698 | something starting with __ and the normal name is an alias. */ | |
23699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23700 | choke me | |
23701 | #else | |
23702 | char (*f) () = $ac_func; | |
23703 | #endif | |
23704 | #ifdef __cplusplus | |
23705 | } | |
23706 | #endif | |
23707 | ||
23708 | int | |
23709 | main () | |
23710 | { | |
23711 | return f != $ac_func; | |
23712 | ; | |
23713 | return 0; | |
23714 | } | |
23715 | _ACEOF | |
23716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23718 | (eval $ac_link) 2>conftest.er1 | |
23719 | ac_status=$? | |
23720 | grep -v '^ *+' conftest.er1 >conftest.err | |
23721 | rm -f conftest.er1 | |
23722 | cat conftest.err >&5 | |
23723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23724 | (exit $ac_status); } && | |
2cbbc68d RD |
23725 | { ac_try='test -z "$ac_c_werror_flag" |
23726 | || test ! -s conftest.err' | |
304205f1 VS |
23727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23728 | (eval $ac_try) 2>&5 | |
23729 | ac_status=$? | |
23730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23731 | (exit $ac_status); }; } && | |
23732 | { ac_try='test -s conftest$ac_exeext' | |
23733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23734 | (eval $ac_try) 2>&5 | |
23735 | ac_status=$? | |
23736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23737 | (exit $ac_status); }; }; then | |
23738 | eval "$as_ac_var=yes" | |
23739 | else | |
23740 | echo "$as_me: failed program was:" >&5 | |
23741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23742 | ||
23743 | eval "$as_ac_var=no" | |
23744 | fi | |
23745 | rm -f conftest.err conftest.$ac_objext \ | |
23746 | conftest$ac_exeext conftest.$ac_ext | |
23747 | fi | |
23748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23749 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23750 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23751 | cat >>confdefs.h <<_ACEOF | |
23752 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23753 | _ACEOF | |
23754 | ||
23755 | fi | |
23756 | done | |
23757 | ||
23758 | CFLAGS="$save_CFLAGS" | |
23759 | LIBS="$save_LIBS" | |
a848cd7e SC |
23760 | else |
23761 | if test "$wxUSE_UNICODE" = "yes"; then | |
23762 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23763 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23764 | wxUSE_UNICODE=no | |
23765 | fi | |
23766 | fi | |
23767 | ||
23768 | if test "$USE_DARWIN" != 1; then | |
23769 | ||
23770 | for ac_func in poll | |
23771 | do | |
23772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23773 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23775 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23777 | else | |
23778 | cat >conftest.$ac_ext <<_ACEOF | |
23779 | /* confdefs.h. */ | |
23780 | _ACEOF | |
23781 | cat confdefs.h >>conftest.$ac_ext | |
23782 | cat >>conftest.$ac_ext <<_ACEOF | |
23783 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23784 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23786 | #define $ac_func innocuous_$ac_func | |
23787 | ||
a848cd7e SC |
23788 | /* System header to define __stub macros and hopefully few prototypes, |
23789 | which can conflict with char $ac_func (); below. | |
23790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23791 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23792 | |
a848cd7e SC |
23793 | #ifdef __STDC__ |
23794 | # include <limits.h> | |
23795 | #else | |
23796 | # include <assert.h> | |
23797 | #endif | |
ac1cb8d3 VS |
23798 | |
23799 | #undef $ac_func | |
23800 | ||
a848cd7e SC |
23801 | /* Override any gcc2 internal prototype to avoid an error. */ |
23802 | #ifdef __cplusplus | |
23803 | extern "C" | |
23804 | { | |
23805 | #endif | |
23806 | /* We use char because int might match the return type of a gcc2 | |
23807 | builtin and then its argument prototype would still apply. */ | |
23808 | char $ac_func (); | |
23809 | /* The GNU C library defines this for functions which it implements | |
23810 | to always fail with ENOSYS. Some functions are actually named | |
23811 | something starting with __ and the normal name is an alias. */ | |
23812 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23813 | choke me | |
23814 | #else | |
23815 | char (*f) () = $ac_func; | |
23816 | #endif | |
23817 | #ifdef __cplusplus | |
23818 | } | |
23819 | #endif | |
23820 | ||
23821 | int | |
23822 | main () | |
23823 | { | |
23824 | return f != $ac_func; | |
23825 | ; | |
23826 | return 0; | |
23827 | } | |
23828 | _ACEOF | |
23829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23831 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23832 | ac_status=$? |
ac1cb8d3 VS |
23833 | grep -v '^ *+' conftest.er1 >conftest.err |
23834 | rm -f conftest.er1 | |
23835 | cat conftest.err >&5 | |
a848cd7e SC |
23836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23837 | (exit $ac_status); } && | |
2cbbc68d RD |
23838 | { ac_try='test -z "$ac_c_werror_flag" |
23839 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23841 | (eval $ac_try) 2>&5 | |
23842 | ac_status=$? | |
23843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23844 | (exit $ac_status); }; } && | |
23845 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23847 | (eval $ac_try) 2>&5 | |
23848 | ac_status=$? | |
23849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23850 | (exit $ac_status); }; }; then | |
23851 | eval "$as_ac_var=yes" | |
23852 | else | |
23853 | echo "$as_me: failed program was:" >&5 | |
23854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23855 | ||
23856 | eval "$as_ac_var=no" | |
23857 | fi | |
ac1cb8d3 VS |
23858 | rm -f conftest.err conftest.$ac_objext \ |
23859 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23860 | fi |
23861 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23862 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23863 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23864 | cat >>confdefs.h <<_ACEOF | |
23865 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23866 | _ACEOF | |
23867 | ||
23868 | fi | |
23869 | done | |
23870 | ||
23871 | fi | |
23872 | ||
23873 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23874 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23875 | ||
23876 | AFMINSTALL=afminstall | |
23877 | TOOLKIT=GTK | |
23878 | GUIDIST=GTK_DIST | |
23879 | ||
23880 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23881 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23882 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23884 | else | |
23885 | ac_check_lib_save_LIBS=$LIBS | |
23886 | LIBS="-lgdk $LIBS" | |
23887 | cat >conftest.$ac_ext <<_ACEOF | |
23888 | /* confdefs.h. */ | |
23889 | _ACEOF | |
23890 | cat confdefs.h >>conftest.$ac_ext | |
23891 | cat >>conftest.$ac_ext <<_ACEOF | |
23892 | /* end confdefs.h. */ | |
23893 | ||
23894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23895 | #ifdef __cplusplus | |
23896 | extern "C" | |
23897 | #endif | |
23898 | /* We use char because int might match the return type of a gcc2 | |
23899 | builtin and then its argument prototype would still apply. */ | |
23900 | char gdk_im_open (); | |
23901 | int | |
23902 | main () | |
23903 | { | |
23904 | gdk_im_open (); | |
23905 | ; | |
23906 | return 0; | |
23907 | } | |
23908 | _ACEOF | |
23909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23911 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23912 | ac_status=$? |
ac1cb8d3 VS |
23913 | grep -v '^ *+' conftest.er1 >conftest.err |
23914 | rm -f conftest.er1 | |
23915 | cat conftest.err >&5 | |
a848cd7e SC |
23916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23917 | (exit $ac_status); } && | |
2cbbc68d RD |
23918 | { ac_try='test -z "$ac_c_werror_flag" |
23919 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23921 | (eval $ac_try) 2>&5 | |
23922 | ac_status=$? | |
23923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23924 | (exit $ac_status); }; } && | |
23925 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23927 | (eval $ac_try) 2>&5 | |
23928 | ac_status=$? | |
23929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23930 | (exit $ac_status); }; }; then | |
23931 | ac_cv_lib_gdk_gdk_im_open=yes | |
23932 | else | |
23933 | echo "$as_me: failed program was:" >&5 | |
23934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23935 | ||
23936 | ac_cv_lib_gdk_gdk_im_open=no | |
23937 | fi | |
ac1cb8d3 VS |
23938 | rm -f conftest.err conftest.$ac_objext \ |
23939 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23940 | LIBS=$ac_check_lib_save_LIBS |
23941 | fi | |
23942 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23943 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23944 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23945 | cat >>confdefs.h <<\_ACEOF | |
23946 | #define HAVE_XIM 1 | |
23947 | _ACEOF | |
23948 | ||
23949 | fi | |
23950 | ||
23951 | ||
23952 | ||
23953 | if test "$wxUSE_GPE" = "yes"; then | |
23954 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23955 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23956 | ||
23957 | ac_find_libraries= | |
23958 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23959 | do | |
23960 | for ac_extension in a so sl dylib; do | |
23961 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23962 | ac_find_libraries=$ac_dir | |
23963 | break 2 | |
23964 | fi | |
23965 | done | |
23966 | done | |
23967 | ||
23968 | if test "$ac_find_libraries" != "" ; then | |
23969 | ||
23970 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23971 | result=$? | |
23972 | if test $result = 0; then | |
23973 | ac_path_to_link="" | |
23974 | else | |
23975 | ac_path_to_link=" -L$ac_find_libraries" | |
23976 | fi | |
23977 | ||
23978 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23979 | WXGPE=1 | |
23980 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23981 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23982 | else | |
23983 | echo "$as_me:$LINENO: result: not found" >&5 | |
23984 | echo "${ECHO_T}not found" >&6 | |
23985 | fi | |
23986 | ||
23987 | fi | |
23988 | fi | |
23989 | ||
23990 | if test "$wxUSE_MGL" = 1; then | |
23991 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23992 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23993 | if test "x$MGL_ROOT" = x ; then | |
23994 | echo "$as_me:$LINENO: result: not found" >&5 | |
23995 | echo "${ECHO_T}not found" >&6 | |
23996 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23997 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23998 | { (exit 1); exit 1; }; } | |
23999 | else | |
24000 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
24001 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
24002 | fi | |
24003 | ||
24004 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
24005 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
24006 | case "${host}" in | |
24007 | *-*-linux* ) | |
24008 | if test "x$wxUSE_SHARED" = xyes ; then | |
24009 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
24010 | else | |
24011 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
24012 | fi | |
24013 | ;; | |
24014 | *-pc-msdosdjgpp ) | |
24015 | mgl_os_candidates="dos32/dj2" | |
24016 | ;; | |
24017 | *) | |
24018 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
24019 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
24020 | { (exit 1); exit 1; }; } | |
24021 | esac | |
24022 | ||
24023 | mgl_lib_type="" | |
24024 | mgl_os="" | |
24025 | ||
24026 | for mgl_os_i in $mgl_os_candidates ; do | |
24027 | if test "x$mgl_os" = x ; then | |
24028 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
24029 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
24030 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
24031 | mgl_lib_type=debug | |
24032 | mgl_os=$mgl_os_i | |
24033 | fi | |
24034 | fi | |
24035 | if test "x$mgl_lib_type" = x ; then | |
24036 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
24037 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
24038 | mgl_lib_type=release | |
24039 | mgl_os=$mgl_os_i | |
24040 | fi | |
24041 | fi | |
24042 | fi | |
24043 | done | |
24044 | ||
24045 | if test "x$mgl_os" = x ; then | |
24046 | echo "$as_me:$LINENO: result: not found" >&5 | |
24047 | echo "${ECHO_T}not found" >&6 | |
24048 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
24049 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
24050 | { (exit 1); exit 1; }; } | |
24051 | fi | |
24052 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
24053 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
24054 | ||
24055 | wxUSE_UNIVERSAL="yes" | |
24056 | ||
24057 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
24058 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
24059 | ||
24060 | AFMINSTALL=afminstall | |
24061 | TOOLKIT=MGL | |
24062 | GUIDIST=MGL_DIST | |
24063 | fi | |
24064 | ||
24065 | if test "$wxUSE_MICROWIN" = 1; then | |
24066 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
24067 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
24068 | if test "x$MICROWINDOWS" = x ; then | |
24069 | echo "$as_me:$LINENO: result: not found" >&5 | |
24070 | echo "${ECHO_T}not found" >&6 | |
24071 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
24072 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
24073 | { (exit 1); exit 1; }; } | |
24074 | else | |
24075 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
24076 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
24077 | fi | |
24078 | ||
24079 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
24080 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
24081 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
24082 | else | |
24083 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
24084 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
24085 | { (exit 1); exit 1; }; } | |
24086 | fi | |
24087 | ||
24088 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
24089 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
24090 | ||
24091 | wxUSE_UNIVERSAL="yes" | |
24092 | ||
24093 | AFMINSTALL=afminstall | |
24094 | TOOLKIT=MICROWIN | |
24095 | GUIDIST=MICROWIN_DIST | |
24096 | ||
24097 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
24098 | fi | |
24099 | ||
74b84332 | 24100 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
2cbbc68d | 24101 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
24102 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
24103 | ||
24104 | ||
24105 | # Check whether --with-x or --without-x was given. | |
24106 | if test "${with_x+set}" = set; then | |
24107 | withval="$with_x" | |
24108 | ||
24109 | fi; | |
24110 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
24111 | if test "x$with_x" = xno; then | |
24112 | # The user explicitly disabled X. | |
24113 | have_x=disabled | |
24114 | else | |
24115 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24116 | # Both variables are already set. | |
24117 | have_x=yes | |
24118 | else | |
24119 | if test "${ac_cv_have_x+set}" = set; then | |
24120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24121 | else | |
24122 | # One or both of the vars are not set, and there is no cached value. | |
24123 | ac_x_includes=no ac_x_libraries=no | |
24124 | rm -fr conftest.dir | |
24125 | if mkdir conftest.dir; then | |
24126 | cd conftest.dir | |
24127 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
24128 | cat >Imakefile <<'_ACEOF' | |
24129 | acfindx: | |
24130 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
24131 | _ACEOF | |
24132 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
24133 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
24134 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24135 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24136 | for ac_extension in a so sl; do | |
24137 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
24138 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24139 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
24140 | fi |
24141 | done | |
24142 | # Screen out bogus values from the imake configuration. They are | |
24143 | # bogus both because they are the default anyway, and because | |
24144 | # using them would break gcc on systems where it needs fixed includes. | |
24145 | case $ac_im_incroot in | |
24146 | /usr/include) ;; | |
24147 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24148 | esac | |
24149 | case $ac_im_usrlibdir in | |
24150 | /usr/lib | /lib) ;; | |
24151 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24152 | esac | |
24153 | fi | |
24154 | cd .. | |
24155 | rm -fr conftest.dir | |
24156 | fi | |
24157 | ||
24158 | # Standard set of common directories for X headers. | |
24159 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24160 | ac_x_header_dirs=' | |
24161 | /usr/X11/include | |
24162 | /usr/X11R6/include | |
24163 | /usr/X11R5/include | |
24164 | /usr/X11R4/include | |
24165 | ||
24166 | /usr/include/X11 | |
24167 | /usr/include/X11R6 | |
24168 | /usr/include/X11R5 | |
24169 | /usr/include/X11R4 | |
24170 | ||
24171 | /usr/local/X11/include | |
24172 | /usr/local/X11R6/include | |
24173 | /usr/local/X11R5/include | |
24174 | /usr/local/X11R4/include | |
24175 | ||
24176 | /usr/local/include/X11 | |
24177 | /usr/local/include/X11R6 | |
24178 | /usr/local/include/X11R5 | |
24179 | /usr/local/include/X11R4 | |
24180 | ||
24181 | /usr/X386/include | |
24182 | /usr/x386/include | |
24183 | /usr/XFree86/include/X11 | |
24184 | ||
24185 | /usr/include | |
24186 | /usr/local/include | |
24187 | /usr/unsupported/include | |
24188 | /usr/athena/include | |
24189 | /usr/local/x11r5/include | |
24190 | /usr/lpp/Xamples/include | |
24191 | ||
24192 | /usr/openwin/include | |
24193 | /usr/openwin/share/include' | |
24194 | ||
24195 | if test "$ac_x_includes" = no; then | |
2cbbc68d | 24196 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
24197 | # First, try using that file with no special directory specified. |
24198 | cat >conftest.$ac_ext <<_ACEOF | |
24199 | /* confdefs.h. */ | |
24200 | _ACEOF | |
24201 | cat confdefs.h >>conftest.$ac_ext | |
24202 | cat >>conftest.$ac_ext <<_ACEOF | |
24203 | /* end confdefs.h. */ | |
24204 | #include <X11/Intrinsic.h> | |
24205 | _ACEOF | |
24206 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24207 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24208 | ac_status=$? | |
24209 | grep -v '^ *+' conftest.er1 >conftest.err | |
24210 | rm -f conftest.er1 | |
24211 | cat conftest.err >&5 | |
24212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24213 | (exit $ac_status); } >/dev/null; then | |
24214 | if test -s conftest.err; then | |
24215 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24216 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24217 | else |
24218 | ac_cpp_err= | |
24219 | fi | |
24220 | else | |
24221 | ac_cpp_err=yes | |
24222 | fi | |
24223 | if test -z "$ac_cpp_err"; then | |
24224 | # We can compile using X headers with no special include directory. | |
24225 | ac_x_includes= | |
24226 | else | |
24227 | echo "$as_me: failed program was:" >&5 | |
24228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24229 | ||
24230 | for ac_dir in $ac_x_header_dirs; do | |
24231 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24232 | ac_x_includes=$ac_dir | |
24233 | break | |
24234 | fi | |
24235 | done | |
24236 | fi | |
24237 | rm -f conftest.err conftest.$ac_ext | |
24238 | fi # $ac_x_includes = no | |
24239 | ||
24240 | if test "$ac_x_libraries" = no; then | |
24241 | # Check for the libraries. | |
24242 | # See if we find them without any special options. | |
24243 | # Don't add to $LIBS permanently. | |
24244 | ac_save_LIBS=$LIBS | |
24245 | LIBS="-lXt $LIBS" | |
24246 | cat >conftest.$ac_ext <<_ACEOF | |
24247 | /* confdefs.h. */ | |
24248 | _ACEOF | |
24249 | cat confdefs.h >>conftest.$ac_ext | |
24250 | cat >>conftest.$ac_ext <<_ACEOF | |
24251 | /* end confdefs.h. */ | |
24252 | #include <X11/Intrinsic.h> | |
24253 | int | |
24254 | main () | |
24255 | { | |
24256 | XtMalloc (0) | |
24257 | ; | |
24258 | return 0; | |
24259 | } | |
24260 | _ACEOF | |
24261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24263 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24264 | ac_status=$? |
ac1cb8d3 VS |
24265 | grep -v '^ *+' conftest.er1 >conftest.err |
24266 | rm -f conftest.er1 | |
24267 | cat conftest.err >&5 | |
a848cd7e SC |
24268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24269 | (exit $ac_status); } && | |
2cbbc68d RD |
24270 | { ac_try='test -z "$ac_c_werror_flag" |
24271 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24273 | (eval $ac_try) 2>&5 | |
24274 | ac_status=$? | |
24275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24276 | (exit $ac_status); }; } && | |
24277 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24279 | (eval $ac_try) 2>&5 | |
24280 | ac_status=$? | |
24281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24282 | (exit $ac_status); }; }; then | |
24283 | LIBS=$ac_save_LIBS | |
24284 | # We can link X programs with no special library path. | |
24285 | ac_x_libraries= | |
24286 | else | |
24287 | echo "$as_me: failed program was:" >&5 | |
24288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24289 | ||
24290 | LIBS=$ac_save_LIBS | |
24291 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24292 | do | |
24293 | # Don't even attempt the hair of trying to link an X program! | |
24294 | for ac_extension in a so sl; do | |
24295 | if test -r $ac_dir/libXt.$ac_extension; then | |
24296 | ac_x_libraries=$ac_dir | |
24297 | break 2 | |
24298 | fi | |
24299 | done | |
24300 | done | |
24301 | fi | |
ac1cb8d3 VS |
24302 | rm -f conftest.err conftest.$ac_objext \ |
24303 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24304 | fi # $ac_x_libraries = no |
24305 | ||
24306 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24307 | # Didn't find X anywhere. Cache the known absence of X. | |
24308 | ac_cv_have_x="have_x=no" | |
24309 | else | |
24310 | # Record where we found X for the cache. | |
24311 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24312 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24313 | fi |
24314 | fi | |
24315 | ||
24316 | fi | |
24317 | eval "$ac_cv_have_x" | |
24318 | fi # $with_x != no | |
24319 | ||
24320 | if test "$have_x" != yes; then | |
24321 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24322 | echo "${ECHO_T}$have_x" >&6 | |
24323 | no_x=yes | |
24324 | else | |
24325 | # If each of the values was on the command line, it overrides each guess. | |
24326 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24327 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24328 | # Update the cache value to reflect the command line values. | |
24329 | ac_cv_have_x="have_x=yes \ | |
24330 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
2cbbc68d RD |
24331 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
24332 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
24333 | fi |
24334 | ||
24335 | if test "$no_x" = yes; then | |
24336 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24337 | ||
24338 | cat >>confdefs.h <<\_ACEOF | |
24339 | #define X_DISPLAY_MISSING 1 | |
24340 | _ACEOF | |
24341 | ||
24342 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24343 | else | |
24344 | if test -n "$x_includes"; then | |
24345 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24346 | fi | |
24347 | ||
24348 | # It would also be nice to do this for all -L options, not just this one. | |
24349 | if test -n "$x_libraries"; then | |
24350 | X_LIBS="$X_LIBS -L$x_libraries" | |
24351 | # For Solaris; some versions of Sun CC require a space after -R and | |
24352 | # others require no space. Words are not sufficient . . . . | |
24353 | case `(uname -sr) 2>/dev/null` in | |
24354 | "SunOS 5"*) | |
24355 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24356 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24357 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24358 | cat >conftest.$ac_ext <<_ACEOF | |
24359 | /* confdefs.h. */ | |
24360 | _ACEOF | |
24361 | cat confdefs.h >>conftest.$ac_ext | |
24362 | cat >>conftest.$ac_ext <<_ACEOF | |
24363 | /* end confdefs.h. */ | |
24364 | ||
24365 | int | |
24366 | main () | |
24367 | { | |
24368 | ||
24369 | ; | |
24370 | return 0; | |
24371 | } | |
24372 | _ACEOF | |
24373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24375 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24376 | ac_status=$? |
ac1cb8d3 VS |
24377 | grep -v '^ *+' conftest.er1 >conftest.err |
24378 | rm -f conftest.er1 | |
24379 | cat conftest.err >&5 | |
a848cd7e SC |
24380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24381 | (exit $ac_status); } && | |
2cbbc68d RD |
24382 | { ac_try='test -z "$ac_c_werror_flag" |
24383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24385 | (eval $ac_try) 2>&5 | |
24386 | ac_status=$? | |
24387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24388 | (exit $ac_status); }; } && | |
24389 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24391 | (eval $ac_try) 2>&5 | |
24392 | ac_status=$? | |
24393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24394 | (exit $ac_status); }; }; then | |
24395 | ac_R_nospace=yes | |
24396 | else | |
24397 | echo "$as_me: failed program was:" >&5 | |
24398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24399 | ||
24400 | ac_R_nospace=no | |
24401 | fi | |
ac1cb8d3 VS |
24402 | rm -f conftest.err conftest.$ac_objext \ |
24403 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24404 | if test $ac_R_nospace = yes; then |
24405 | echo "$as_me:$LINENO: result: no" >&5 | |
24406 | echo "${ECHO_T}no" >&6 | |
24407 | X_LIBS="$X_LIBS -R$x_libraries" | |
24408 | else | |
24409 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24410 | cat >conftest.$ac_ext <<_ACEOF | |
24411 | /* confdefs.h. */ | |
24412 | _ACEOF | |
24413 | cat confdefs.h >>conftest.$ac_ext | |
24414 | cat >>conftest.$ac_ext <<_ACEOF | |
24415 | /* end confdefs.h. */ | |
24416 | ||
24417 | int | |
24418 | main () | |
24419 | { | |
24420 | ||
24421 | ; | |
24422 | return 0; | |
24423 | } | |
24424 | _ACEOF | |
24425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24427 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24428 | ac_status=$? |
ac1cb8d3 VS |
24429 | grep -v '^ *+' conftest.er1 >conftest.err |
24430 | rm -f conftest.er1 | |
24431 | cat conftest.err >&5 | |
a848cd7e SC |
24432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24433 | (exit $ac_status); } && | |
2cbbc68d RD |
24434 | { ac_try='test -z "$ac_c_werror_flag" |
24435 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24437 | (eval $ac_try) 2>&5 | |
24438 | ac_status=$? | |
24439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24440 | (exit $ac_status); }; } && | |
24441 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24443 | (eval $ac_try) 2>&5 | |
24444 | ac_status=$? | |
24445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24446 | (exit $ac_status); }; }; then | |
24447 | ac_R_space=yes | |
24448 | else | |
24449 | echo "$as_me: failed program was:" >&5 | |
24450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24451 | ||
24452 | ac_R_space=no | |
24453 | fi | |
ac1cb8d3 VS |
24454 | rm -f conftest.err conftest.$ac_objext \ |
24455 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24456 | if test $ac_R_space = yes; then |
24457 | echo "$as_me:$LINENO: result: yes" >&5 | |
24458 | echo "${ECHO_T}yes" >&6 | |
24459 | X_LIBS="$X_LIBS -R $x_libraries" | |
24460 | else | |
24461 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24462 | echo "${ECHO_T}neither works" >&6 | |
24463 | fi | |
24464 | fi | |
24465 | LIBS=$ac_xsave_LIBS | |
24466 | esac | |
24467 | fi | |
24468 | ||
24469 | # Check for system-dependent libraries X programs must link with. | |
24470 | # Do this before checking for the system-independent R6 libraries | |
24471 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24472 | ||
24473 | if test "$ISC" = yes; then | |
24474 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24475 | else | |
24476 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24477 | # libraries were built with DECnet support. And Karl Berry says | |
24478 | # the Alpha needs dnet_stub (dnet does not exist). | |
24479 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24480 | cat >conftest.$ac_ext <<_ACEOF | |
24481 | /* confdefs.h. */ | |
24482 | _ACEOF | |
24483 | cat confdefs.h >>conftest.$ac_ext | |
24484 | cat >>conftest.$ac_ext <<_ACEOF | |
24485 | /* end confdefs.h. */ | |
24486 | ||
24487 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24488 | #ifdef __cplusplus | |
24489 | extern "C" | |
24490 | #endif | |
24491 | /* We use char because int might match the return type of a gcc2 | |
24492 | builtin and then its argument prototype would still apply. */ | |
24493 | char XOpenDisplay (); | |
24494 | int | |
24495 | main () | |
24496 | { | |
24497 | XOpenDisplay (); | |
24498 | ; | |
24499 | return 0; | |
24500 | } | |
24501 | _ACEOF | |
24502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24504 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24505 | ac_status=$? |
ac1cb8d3 VS |
24506 | grep -v '^ *+' conftest.er1 >conftest.err |
24507 | rm -f conftest.er1 | |
24508 | cat conftest.err >&5 | |
a848cd7e SC |
24509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24510 | (exit $ac_status); } && | |
2cbbc68d RD |
24511 | { ac_try='test -z "$ac_c_werror_flag" |
24512 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24514 | (eval $ac_try) 2>&5 | |
24515 | ac_status=$? | |
24516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24517 | (exit $ac_status); }; } && | |
24518 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24520 | (eval $ac_try) 2>&5 | |
24521 | ac_status=$? | |
24522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24523 | (exit $ac_status); }; }; then | |
24524 | : | |
24525 | else | |
24526 | echo "$as_me: failed program was:" >&5 | |
24527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24528 | ||
24529 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24530 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24531 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24533 | else | |
24534 | ac_check_lib_save_LIBS=$LIBS | |
24535 | LIBS="-ldnet $LIBS" | |
24536 | cat >conftest.$ac_ext <<_ACEOF | |
24537 | /* confdefs.h. */ | |
24538 | _ACEOF | |
24539 | cat confdefs.h >>conftest.$ac_ext | |
24540 | cat >>conftest.$ac_ext <<_ACEOF | |
24541 | /* end confdefs.h. */ | |
24542 | ||
24543 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24544 | #ifdef __cplusplus | |
24545 | extern "C" | |
24546 | #endif | |
24547 | /* We use char because int might match the return type of a gcc2 | |
24548 | builtin and then its argument prototype would still apply. */ | |
24549 | char dnet_ntoa (); | |
24550 | int | |
24551 | main () | |
24552 | { | |
24553 | dnet_ntoa (); | |
24554 | ; | |
24555 | return 0; | |
24556 | } | |
24557 | _ACEOF | |
24558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24560 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24561 | ac_status=$? |
ac1cb8d3 VS |
24562 | grep -v '^ *+' conftest.er1 >conftest.err |
24563 | rm -f conftest.er1 | |
24564 | cat conftest.err >&5 | |
a848cd7e SC |
24565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24566 | (exit $ac_status); } && | |
2cbbc68d RD |
24567 | { ac_try='test -z "$ac_c_werror_flag" |
24568 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24570 | (eval $ac_try) 2>&5 | |
24571 | ac_status=$? | |
24572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24573 | (exit $ac_status); }; } && | |
24574 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24576 | (eval $ac_try) 2>&5 | |
24577 | ac_status=$? | |
24578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24579 | (exit $ac_status); }; }; then | |
24580 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24581 | else | |
24582 | echo "$as_me: failed program was:" >&5 | |
24583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24584 | ||
24585 | ac_cv_lib_dnet_dnet_ntoa=no | |
24586 | fi | |
ac1cb8d3 VS |
24587 | rm -f conftest.err conftest.$ac_objext \ |
24588 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24589 | LIBS=$ac_check_lib_save_LIBS |
24590 | fi | |
24591 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24592 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24593 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24594 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24595 | fi | |
24596 | ||
24597 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24598 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24599 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24600 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24602 | else | |
24603 | ac_check_lib_save_LIBS=$LIBS | |
24604 | LIBS="-ldnet_stub $LIBS" | |
24605 | cat >conftest.$ac_ext <<_ACEOF | |
24606 | /* confdefs.h. */ | |
24607 | _ACEOF | |
24608 | cat confdefs.h >>conftest.$ac_ext | |
24609 | cat >>conftest.$ac_ext <<_ACEOF | |
24610 | /* end confdefs.h. */ | |
24611 | ||
24612 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24613 | #ifdef __cplusplus | |
24614 | extern "C" | |
24615 | #endif | |
24616 | /* We use char because int might match the return type of a gcc2 | |
24617 | builtin and then its argument prototype would still apply. */ | |
24618 | char dnet_ntoa (); | |
24619 | int | |
24620 | main () | |
24621 | { | |
24622 | dnet_ntoa (); | |
24623 | ; | |
24624 | return 0; | |
24625 | } | |
24626 | _ACEOF | |
24627 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24629 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24630 | ac_status=$? |
ac1cb8d3 VS |
24631 | grep -v '^ *+' conftest.er1 >conftest.err |
24632 | rm -f conftest.er1 | |
24633 | cat conftest.err >&5 | |
a848cd7e SC |
24634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24635 | (exit $ac_status); } && | |
2cbbc68d RD |
24636 | { ac_try='test -z "$ac_c_werror_flag" |
24637 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24639 | (eval $ac_try) 2>&5 | |
24640 | ac_status=$? | |
24641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24642 | (exit $ac_status); }; } && | |
24643 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24645 | (eval $ac_try) 2>&5 | |
24646 | ac_status=$? | |
24647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24648 | (exit $ac_status); }; }; then | |
24649 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24650 | else | |
24651 | echo "$as_me: failed program was:" >&5 | |
24652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24653 | ||
24654 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24655 | fi | |
ac1cb8d3 VS |
24656 | rm -f conftest.err conftest.$ac_objext \ |
24657 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24658 | LIBS=$ac_check_lib_save_LIBS |
24659 | fi | |
24660 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24661 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24662 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24663 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24664 | fi | |
24665 | ||
24666 | fi | |
24667 | fi | |
ac1cb8d3 VS |
24668 | rm -f conftest.err conftest.$ac_objext \ |
24669 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24670 | LIBS="$ac_xsave_LIBS" |
24671 | ||
24672 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24673 | # to get the SysV transport functions. | |
24674 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24675 | # needs -lnsl. | |
24676 | # The nsl library prevents programs from opening the X display | |
24677 | # on Irix 5.2, according to T.E. Dickey. | |
24678 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24679 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24680 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24681 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24682 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24684 | else | |
24685 | cat >conftest.$ac_ext <<_ACEOF | |
24686 | /* confdefs.h. */ | |
24687 | _ACEOF | |
24688 | cat confdefs.h >>conftest.$ac_ext | |
24689 | cat >>conftest.$ac_ext <<_ACEOF | |
24690 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24691 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24692 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24693 | #define gethostbyname innocuous_gethostbyname | |
24694 | ||
a848cd7e SC |
24695 | /* System header to define __stub macros and hopefully few prototypes, |
24696 | which can conflict with char gethostbyname (); below. | |
24697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24698 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24699 | |
a848cd7e SC |
24700 | #ifdef __STDC__ |
24701 | # include <limits.h> | |
24702 | #else | |
24703 | # include <assert.h> | |
24704 | #endif | |
ac1cb8d3 VS |
24705 | |
24706 | #undef gethostbyname | |
24707 | ||
a848cd7e SC |
24708 | /* Override any gcc2 internal prototype to avoid an error. */ |
24709 | #ifdef __cplusplus | |
24710 | extern "C" | |
24711 | { | |
24712 | #endif | |
24713 | /* We use char because int might match the return type of a gcc2 | |
24714 | builtin and then its argument prototype would still apply. */ | |
24715 | char gethostbyname (); | |
24716 | /* The GNU C library defines this for functions which it implements | |
24717 | to always fail with ENOSYS. Some functions are actually named | |
24718 | something starting with __ and the normal name is an alias. */ | |
24719 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24720 | choke me | |
24721 | #else | |
24722 | char (*f) () = gethostbyname; | |
24723 | #endif | |
24724 | #ifdef __cplusplus | |
24725 | } | |
24726 | #endif | |
24727 | ||
24728 | int | |
24729 | main () | |
24730 | { | |
24731 | return f != gethostbyname; | |
24732 | ; | |
24733 | return 0; | |
24734 | } | |
24735 | _ACEOF | |
24736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24738 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24739 | ac_status=$? |
ac1cb8d3 VS |
24740 | grep -v '^ *+' conftest.er1 >conftest.err |
24741 | rm -f conftest.er1 | |
24742 | cat conftest.err >&5 | |
a848cd7e SC |
24743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24744 | (exit $ac_status); } && | |
2cbbc68d RD |
24745 | { ac_try='test -z "$ac_c_werror_flag" |
24746 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
24752 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24754 | (eval $ac_try) 2>&5 | |
24755 | ac_status=$? | |
24756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24757 | (exit $ac_status); }; }; then | |
24758 | ac_cv_func_gethostbyname=yes | |
24759 | else | |
24760 | echo "$as_me: failed program was:" >&5 | |
24761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24762 | ||
24763 | ac_cv_func_gethostbyname=no | |
24764 | fi | |
ac1cb8d3 VS |
24765 | rm -f conftest.err conftest.$ac_objext \ |
24766 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24767 | fi |
24768 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24769 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24770 | ||
24771 | if test $ac_cv_func_gethostbyname = no; then | |
24772 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24773 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24774 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24776 | else | |
24777 | ac_check_lib_save_LIBS=$LIBS | |
24778 | LIBS="-lnsl $LIBS" | |
24779 | cat >conftest.$ac_ext <<_ACEOF | |
24780 | /* confdefs.h. */ | |
24781 | _ACEOF | |
24782 | cat confdefs.h >>conftest.$ac_ext | |
24783 | cat >>conftest.$ac_ext <<_ACEOF | |
24784 | /* end confdefs.h. */ | |
24785 | ||
24786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24787 | #ifdef __cplusplus | |
24788 | extern "C" | |
24789 | #endif | |
24790 | /* We use char because int might match the return type of a gcc2 | |
24791 | builtin and then its argument prototype would still apply. */ | |
24792 | char gethostbyname (); | |
24793 | int | |
24794 | main () | |
24795 | { | |
24796 | gethostbyname (); | |
24797 | ; | |
24798 | return 0; | |
24799 | } | |
24800 | _ACEOF | |
24801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24803 | (eval $ac_link) 2>conftest.er1 |
24804 | ac_status=$? | |
24805 | grep -v '^ *+' conftest.er1 >conftest.err | |
24806 | rm -f conftest.er1 | |
24807 | cat conftest.err >&5 | |
24808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24809 | (exit $ac_status); } && | |
2cbbc68d RD |
24810 | { ac_try='test -z "$ac_c_werror_flag" |
24811 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24813 | (eval $ac_try) 2>&5 | |
24814 | ac_status=$? | |
24815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24816 | (exit $ac_status); }; } && | |
24817 | { ac_try='test -s conftest$ac_exeext' | |
24818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24819 | (eval $ac_try) 2>&5 | |
24820 | ac_status=$? | |
24821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24822 | (exit $ac_status); }; }; then | |
24823 | ac_cv_lib_nsl_gethostbyname=yes | |
24824 | else | |
24825 | echo "$as_me: failed program was:" >&5 | |
24826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24827 | ||
24828 | ac_cv_lib_nsl_gethostbyname=no | |
24829 | fi | |
24830 | rm -f conftest.err conftest.$ac_objext \ | |
24831 | conftest$ac_exeext conftest.$ac_ext | |
24832 | LIBS=$ac_check_lib_save_LIBS | |
24833 | fi | |
24834 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24835 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24836 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24837 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24838 | fi | |
24839 | ||
24840 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24841 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24842 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24843 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24845 | else | |
24846 | ac_check_lib_save_LIBS=$LIBS | |
24847 | LIBS="-lbsd $LIBS" | |
24848 | cat >conftest.$ac_ext <<_ACEOF | |
24849 | /* confdefs.h. */ | |
24850 | _ACEOF | |
24851 | cat confdefs.h >>conftest.$ac_ext | |
24852 | cat >>conftest.$ac_ext <<_ACEOF | |
24853 | /* end confdefs.h. */ | |
24854 | ||
24855 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24856 | #ifdef __cplusplus | |
24857 | extern "C" | |
24858 | #endif | |
24859 | /* We use char because int might match the return type of a gcc2 | |
24860 | builtin and then its argument prototype would still apply. */ | |
24861 | char gethostbyname (); | |
24862 | int | |
24863 | main () | |
24864 | { | |
24865 | gethostbyname (); | |
24866 | ; | |
24867 | return 0; | |
24868 | } | |
24869 | _ACEOF | |
24870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24872 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24873 | ac_status=$? |
ac1cb8d3 VS |
24874 | grep -v '^ *+' conftest.er1 >conftest.err |
24875 | rm -f conftest.er1 | |
24876 | cat conftest.err >&5 | |
a848cd7e SC |
24877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24878 | (exit $ac_status); } && | |
2cbbc68d RD |
24879 | { ac_try='test -z "$ac_c_werror_flag" |
24880 | || test ! -s conftest.err' | |
a848cd7e SC |
24881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24882 | (eval $ac_try) 2>&5 | |
24883 | ac_status=$? | |
24884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24885 | (exit $ac_status); }; } && |
24886 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24888 | (eval $ac_try) 2>&5 | |
24889 | ac_status=$? | |
24890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24891 | (exit $ac_status); }; }; then | |
24892 | ac_cv_lib_bsd_gethostbyname=yes | |
24893 | else | |
24894 | echo "$as_me: failed program was:" >&5 | |
24895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24896 | ||
24897 | ac_cv_lib_bsd_gethostbyname=no | |
24898 | fi | |
ac1cb8d3 VS |
24899 | rm -f conftest.err conftest.$ac_objext \ |
24900 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24901 | LIBS=$ac_check_lib_save_LIBS |
24902 | fi | |
24903 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24904 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24905 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24906 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24907 | fi | |
24908 | ||
24909 | fi | |
24910 | fi | |
24911 | ||
24912 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24913 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24914 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24915 | # on later versions), says Simon Leinen: it contains gethostby* | |
24916 | # variants that don't use the name server (or something). -lsocket | |
24917 | # must be given before -lnsl if both are needed. We assume that | |
24918 | # if connect needs -lnsl, so does gethostbyname. | |
24919 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24920 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24921 | if test "${ac_cv_func_connect+set}" = set; then | |
24922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24923 | else | |
24924 | cat >conftest.$ac_ext <<_ACEOF | |
24925 | /* confdefs.h. */ | |
24926 | _ACEOF | |
24927 | cat confdefs.h >>conftest.$ac_ext | |
24928 | cat >>conftest.$ac_ext <<_ACEOF | |
24929 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24930 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24932 | #define connect innocuous_connect | |
24933 | ||
a848cd7e SC |
24934 | /* System header to define __stub macros and hopefully few prototypes, |
24935 | which can conflict with char connect (); below. | |
24936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24937 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24938 | |
a848cd7e SC |
24939 | #ifdef __STDC__ |
24940 | # include <limits.h> | |
24941 | #else | |
24942 | # include <assert.h> | |
24943 | #endif | |
ac1cb8d3 VS |
24944 | |
24945 | #undef connect | |
24946 | ||
a848cd7e SC |
24947 | /* Override any gcc2 internal prototype to avoid an error. */ |
24948 | #ifdef __cplusplus | |
24949 | extern "C" | |
24950 | { | |
24951 | #endif | |
24952 | /* We use char because int might match the return type of a gcc2 | |
24953 | builtin and then its argument prototype would still apply. */ | |
24954 | char connect (); | |
24955 | /* The GNU C library defines this for functions which it implements | |
24956 | to always fail with ENOSYS. Some functions are actually named | |
24957 | something starting with __ and the normal name is an alias. */ | |
24958 | #if defined (__stub_connect) || defined (__stub___connect) | |
24959 | choke me | |
24960 | #else | |
24961 | char (*f) () = connect; | |
24962 | #endif | |
24963 | #ifdef __cplusplus | |
24964 | } | |
24965 | #endif | |
24966 | ||
24967 | int | |
24968 | main () | |
24969 | { | |
24970 | return f != connect; | |
24971 | ; | |
24972 | return 0; | |
24973 | } | |
24974 | _ACEOF | |
24975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24977 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24978 | ac_status=$? |
ac1cb8d3 VS |
24979 | grep -v '^ *+' conftest.er1 >conftest.err |
24980 | rm -f conftest.er1 | |
24981 | cat conftest.err >&5 | |
a848cd7e SC |
24982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24983 | (exit $ac_status); } && | |
2cbbc68d RD |
24984 | { ac_try='test -z "$ac_c_werror_flag" |
24985 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24987 | (eval $ac_try) 2>&5 | |
24988 | ac_status=$? | |
24989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24990 | (exit $ac_status); }; } && | |
24991 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24993 | (eval $ac_try) 2>&5 | |
24994 | ac_status=$? | |
24995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24996 | (exit $ac_status); }; }; then | |
24997 | ac_cv_func_connect=yes | |
24998 | else | |
24999 | echo "$as_me: failed program was:" >&5 | |
25000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25001 | ||
25002 | ac_cv_func_connect=no | |
25003 | fi | |
ac1cb8d3 VS |
25004 | rm -f conftest.err conftest.$ac_objext \ |
25005 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25006 | fi |
25007 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25008 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
25009 | ||
25010 | if test $ac_cv_func_connect = no; then | |
25011 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
25012 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25013 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25015 | else | |
25016 | ac_check_lib_save_LIBS=$LIBS | |
25017 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
25018 | cat >conftest.$ac_ext <<_ACEOF | |
25019 | /* confdefs.h. */ | |
25020 | _ACEOF | |
25021 | cat confdefs.h >>conftest.$ac_ext | |
25022 | cat >>conftest.$ac_ext <<_ACEOF | |
25023 | /* end confdefs.h. */ | |
25024 | ||
25025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25026 | #ifdef __cplusplus | |
25027 | extern "C" | |
25028 | #endif | |
25029 | /* We use char because int might match the return type of a gcc2 | |
25030 | builtin and then its argument prototype would still apply. */ | |
25031 | char connect (); | |
25032 | int | |
25033 | main () | |
25034 | { | |
25035 | connect (); | |
25036 | ; | |
25037 | return 0; | |
25038 | } | |
25039 | _ACEOF | |
25040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25042 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25043 | ac_status=$? |
ac1cb8d3 VS |
25044 | grep -v '^ *+' conftest.er1 >conftest.err |
25045 | rm -f conftest.er1 | |
25046 | cat conftest.err >&5 | |
a848cd7e SC |
25047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25048 | (exit $ac_status); } && | |
2cbbc68d RD |
25049 | { ac_try='test -z "$ac_c_werror_flag" |
25050 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25052 | (eval $ac_try) 2>&5 | |
25053 | ac_status=$? | |
25054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25055 | (exit $ac_status); }; } && | |
25056 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25058 | (eval $ac_try) 2>&5 | |
25059 | ac_status=$? | |
25060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25061 | (exit $ac_status); }; }; then | |
25062 | ac_cv_lib_socket_connect=yes | |
25063 | else | |
25064 | echo "$as_me: failed program was:" >&5 | |
25065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25066 | ||
25067 | ac_cv_lib_socket_connect=no | |
25068 | fi | |
ac1cb8d3 VS |
25069 | rm -f conftest.err conftest.$ac_objext \ |
25070 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25071 | LIBS=$ac_check_lib_save_LIBS |
25072 | fi | |
25073 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25074 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25075 | if test $ac_cv_lib_socket_connect = yes; then | |
25076 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
25077 | fi | |
25078 | ||
25079 | fi | |
25080 | ||
25081 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
25082 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25083 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25084 | if test "${ac_cv_func_remove+set}" = set; then | |
25085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25086 | else | |
25087 | cat >conftest.$ac_ext <<_ACEOF | |
25088 | /* confdefs.h. */ | |
25089 | _ACEOF | |
25090 | cat confdefs.h >>conftest.$ac_ext | |
25091 | cat >>conftest.$ac_ext <<_ACEOF | |
25092 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25093 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25094 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25095 | #define remove innocuous_remove | |
25096 | ||
a848cd7e SC |
25097 | /* System header to define __stub macros and hopefully few prototypes, |
25098 | which can conflict with char remove (); below. | |
25099 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25100 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25101 | |
a848cd7e SC |
25102 | #ifdef __STDC__ |
25103 | # include <limits.h> | |
25104 | #else | |
25105 | # include <assert.h> | |
25106 | #endif | |
ac1cb8d3 VS |
25107 | |
25108 | #undef remove | |
25109 | ||
a848cd7e SC |
25110 | /* Override any gcc2 internal prototype to avoid an error. */ |
25111 | #ifdef __cplusplus | |
25112 | extern "C" | |
25113 | { | |
25114 | #endif | |
25115 | /* We use char because int might match the return type of a gcc2 | |
25116 | builtin and then its argument prototype would still apply. */ | |
25117 | char remove (); | |
25118 | /* The GNU C library defines this for functions which it implements | |
25119 | to always fail with ENOSYS. Some functions are actually named | |
25120 | something starting with __ and the normal name is an alias. */ | |
25121 | #if defined (__stub_remove) || defined (__stub___remove) | |
25122 | choke me | |
25123 | #else | |
25124 | char (*f) () = remove; | |
25125 | #endif | |
25126 | #ifdef __cplusplus | |
25127 | } | |
25128 | #endif | |
25129 | ||
25130 | int | |
25131 | main () | |
25132 | { | |
25133 | return f != remove; | |
25134 | ; | |
25135 | return 0; | |
25136 | } | |
25137 | _ACEOF | |
25138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25140 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25141 | ac_status=$? |
ac1cb8d3 VS |
25142 | grep -v '^ *+' conftest.er1 >conftest.err |
25143 | rm -f conftest.er1 | |
25144 | cat conftest.err >&5 | |
a848cd7e SC |
25145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25146 | (exit $ac_status); } && | |
2cbbc68d RD |
25147 | { ac_try='test -z "$ac_c_werror_flag" |
25148 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25150 | (eval $ac_try) 2>&5 | |
25151 | ac_status=$? | |
25152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25153 | (exit $ac_status); }; } && | |
25154 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25156 | (eval $ac_try) 2>&5 | |
25157 | ac_status=$? | |
25158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25159 | (exit $ac_status); }; }; then | |
25160 | ac_cv_func_remove=yes | |
25161 | else | |
25162 | echo "$as_me: failed program was:" >&5 | |
25163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25164 | ||
25165 | ac_cv_func_remove=no | |
25166 | fi | |
ac1cb8d3 VS |
25167 | rm -f conftest.err conftest.$ac_objext \ |
25168 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25169 | fi |
25170 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25171 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25172 | ||
25173 | if test $ac_cv_func_remove = no; then | |
25174 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25175 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25176 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25178 | else | |
25179 | ac_check_lib_save_LIBS=$LIBS | |
25180 | LIBS="-lposix $LIBS" | |
25181 | cat >conftest.$ac_ext <<_ACEOF | |
25182 | /* confdefs.h. */ | |
25183 | _ACEOF | |
25184 | cat confdefs.h >>conftest.$ac_ext | |
25185 | cat >>conftest.$ac_ext <<_ACEOF | |
25186 | /* end confdefs.h. */ | |
25187 | ||
25188 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25189 | #ifdef __cplusplus | |
25190 | extern "C" | |
25191 | #endif | |
25192 | /* We use char because int might match the return type of a gcc2 | |
25193 | builtin and then its argument prototype would still apply. */ | |
25194 | char remove (); | |
25195 | int | |
25196 | main () | |
25197 | { | |
25198 | remove (); | |
25199 | ; | |
25200 | return 0; | |
25201 | } | |
25202 | _ACEOF | |
25203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25205 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25206 | ac_status=$? |
ac1cb8d3 VS |
25207 | grep -v '^ *+' conftest.er1 >conftest.err |
25208 | rm -f conftest.er1 | |
25209 | cat conftest.err >&5 | |
a848cd7e SC |
25210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25211 | (exit $ac_status); } && | |
2cbbc68d RD |
25212 | { ac_try='test -z "$ac_c_werror_flag" |
25213 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25215 | (eval $ac_try) 2>&5 | |
25216 | ac_status=$? | |
25217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25218 | (exit $ac_status); }; } && | |
25219 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25221 | (eval $ac_try) 2>&5 | |
25222 | ac_status=$? | |
25223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25224 | (exit $ac_status); }; }; then | |
25225 | ac_cv_lib_posix_remove=yes | |
25226 | else | |
25227 | echo "$as_me: failed program was:" >&5 | |
25228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25229 | ||
25230 | ac_cv_lib_posix_remove=no | |
25231 | fi | |
ac1cb8d3 VS |
25232 | rm -f conftest.err conftest.$ac_objext \ |
25233 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25234 | LIBS=$ac_check_lib_save_LIBS |
25235 | fi | |
25236 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25237 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25238 | if test $ac_cv_lib_posix_remove = yes; then | |
25239 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25240 | fi | |
25241 | ||
25242 | fi | |
25243 | ||
25244 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25245 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25246 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25247 | if test "${ac_cv_func_shmat+set}" = set; then | |
25248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25249 | else | |
25250 | cat >conftest.$ac_ext <<_ACEOF | |
25251 | /* confdefs.h. */ | |
25252 | _ACEOF | |
25253 | cat confdefs.h >>conftest.$ac_ext | |
25254 | cat >>conftest.$ac_ext <<_ACEOF | |
25255 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25256 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25258 | #define shmat innocuous_shmat | |
25259 | ||
a848cd7e SC |
25260 | /* System header to define __stub macros and hopefully few prototypes, |
25261 | which can conflict with char shmat (); below. | |
25262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25263 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25264 | |
a848cd7e SC |
25265 | #ifdef __STDC__ |
25266 | # include <limits.h> | |
25267 | #else | |
25268 | # include <assert.h> | |
25269 | #endif | |
ac1cb8d3 VS |
25270 | |
25271 | #undef shmat | |
25272 | ||
a848cd7e SC |
25273 | /* Override any gcc2 internal prototype to avoid an error. */ |
25274 | #ifdef __cplusplus | |
25275 | extern "C" | |
25276 | { | |
25277 | #endif | |
25278 | /* We use char because int might match the return type of a gcc2 | |
25279 | builtin and then its argument prototype would still apply. */ | |
25280 | char shmat (); | |
25281 | /* The GNU C library defines this for functions which it implements | |
25282 | to always fail with ENOSYS. Some functions are actually named | |
25283 | something starting with __ and the normal name is an alias. */ | |
25284 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25285 | choke me | |
25286 | #else | |
25287 | char (*f) () = shmat; | |
25288 | #endif | |
25289 | #ifdef __cplusplus | |
25290 | } | |
25291 | #endif | |
25292 | ||
25293 | int | |
25294 | main () | |
25295 | { | |
25296 | return f != shmat; | |
25297 | ; | |
25298 | return 0; | |
25299 | } | |
25300 | _ACEOF | |
25301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25303 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25304 | ac_status=$? |
ac1cb8d3 VS |
25305 | grep -v '^ *+' conftest.er1 >conftest.err |
25306 | rm -f conftest.er1 | |
25307 | cat conftest.err >&5 | |
a848cd7e SC |
25308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25309 | (exit $ac_status); } && | |
2cbbc68d RD |
25310 | { ac_try='test -z "$ac_c_werror_flag" |
25311 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25313 | (eval $ac_try) 2>&5 | |
25314 | ac_status=$? | |
25315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25316 | (exit $ac_status); }; } && | |
25317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25319 | (eval $ac_try) 2>&5 | |
25320 | ac_status=$? | |
25321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25322 | (exit $ac_status); }; }; then | |
25323 | ac_cv_func_shmat=yes | |
25324 | else | |
25325 | echo "$as_me: failed program was:" >&5 | |
25326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25327 | ||
25328 | ac_cv_func_shmat=no | |
25329 | fi | |
ac1cb8d3 VS |
25330 | rm -f conftest.err conftest.$ac_objext \ |
25331 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25332 | fi |
25333 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25334 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25335 | ||
25336 | if test $ac_cv_func_shmat = no; then | |
25337 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25338 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25339 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25341 | else | |
25342 | ac_check_lib_save_LIBS=$LIBS | |
25343 | LIBS="-lipc $LIBS" | |
25344 | cat >conftest.$ac_ext <<_ACEOF | |
25345 | /* confdefs.h. */ | |
25346 | _ACEOF | |
25347 | cat confdefs.h >>conftest.$ac_ext | |
25348 | cat >>conftest.$ac_ext <<_ACEOF | |
25349 | /* end confdefs.h. */ | |
25350 | ||
25351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25352 | #ifdef __cplusplus | |
25353 | extern "C" | |
25354 | #endif | |
25355 | /* We use char because int might match the return type of a gcc2 | |
25356 | builtin and then its argument prototype would still apply. */ | |
25357 | char shmat (); | |
25358 | int | |
25359 | main () | |
25360 | { | |
25361 | shmat (); | |
25362 | ; | |
25363 | return 0; | |
25364 | } | |
25365 | _ACEOF | |
25366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25368 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25369 | ac_status=$? |
ac1cb8d3 VS |
25370 | grep -v '^ *+' conftest.er1 >conftest.err |
25371 | rm -f conftest.er1 | |
25372 | cat conftest.err >&5 | |
a848cd7e SC |
25373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25374 | (exit $ac_status); } && | |
2cbbc68d RD |
25375 | { ac_try='test -z "$ac_c_werror_flag" |
25376 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25378 | (eval $ac_try) 2>&5 | |
25379 | ac_status=$? | |
25380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25381 | (exit $ac_status); }; } && | |
25382 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25384 | (eval $ac_try) 2>&5 | |
25385 | ac_status=$? | |
25386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25387 | (exit $ac_status); }; }; then | |
25388 | ac_cv_lib_ipc_shmat=yes | |
25389 | else | |
25390 | echo "$as_me: failed program was:" >&5 | |
25391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25392 | ||
25393 | ac_cv_lib_ipc_shmat=no | |
25394 | fi | |
ac1cb8d3 VS |
25395 | rm -f conftest.err conftest.$ac_objext \ |
25396 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25397 | LIBS=$ac_check_lib_save_LIBS |
25398 | fi | |
25399 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25400 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25401 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25402 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25403 | fi | |
25404 | ||
25405 | fi | |
25406 | fi | |
25407 | ||
25408 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25409 | ac_save_LDFLAGS=$LDFLAGS | |
25410 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25411 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25412 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25413 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25414 | # These have to be linked with before -lX11, unlike the other | |
25415 | # libraries we check for below, so use a different variable. | |
25416 | # John Interrante, Karl Berry | |
25417 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25418 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25419 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25421 | else | |
25422 | ac_check_lib_save_LIBS=$LIBS | |
25423 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25424 | cat >conftest.$ac_ext <<_ACEOF | |
25425 | /* confdefs.h. */ | |
25426 | _ACEOF | |
25427 | cat confdefs.h >>conftest.$ac_ext | |
25428 | cat >>conftest.$ac_ext <<_ACEOF | |
25429 | /* end confdefs.h. */ | |
25430 | ||
25431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25432 | #ifdef __cplusplus | |
25433 | extern "C" | |
25434 | #endif | |
25435 | /* We use char because int might match the return type of a gcc2 | |
25436 | builtin and then its argument prototype would still apply. */ | |
25437 | char IceConnectionNumber (); | |
25438 | int | |
25439 | main () | |
25440 | { | |
25441 | IceConnectionNumber (); | |
25442 | ; | |
25443 | return 0; | |
25444 | } | |
25445 | _ACEOF | |
25446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25448 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25449 | ac_status=$? |
ac1cb8d3 VS |
25450 | grep -v '^ *+' conftest.er1 >conftest.err |
25451 | rm -f conftest.er1 | |
25452 | cat conftest.err >&5 | |
a848cd7e SC |
25453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25454 | (exit $ac_status); } && | |
2cbbc68d RD |
25455 | { ac_try='test -z "$ac_c_werror_flag" |
25456 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25458 | (eval $ac_try) 2>&5 | |
25459 | ac_status=$? | |
25460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25461 | (exit $ac_status); }; } && | |
25462 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25464 | (eval $ac_try) 2>&5 | |
25465 | ac_status=$? | |
25466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25467 | (exit $ac_status); }; }; then | |
25468 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25469 | else | |
25470 | echo "$as_me: failed program was:" >&5 | |
25471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25472 | ||
25473 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25474 | fi | |
ac1cb8d3 VS |
25475 | rm -f conftest.err conftest.$ac_objext \ |
25476 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25477 | LIBS=$ac_check_lib_save_LIBS |
25478 | fi | |
25479 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25480 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25481 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25482 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25483 | fi | |
25484 | ||
25485 | LDFLAGS=$ac_save_LDFLAGS | |
25486 | ||
25487 | fi | |
25488 | ||
25489 | ||
25490 | if test "$no_x" = "yes"; then | |
25491 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25492 | echo "$as_me: error: X11 not found" >&2;} | |
25493 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25494 | fi | |
25495 | ||
74b84332 VS |
25496 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25497 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25498 | AFMINSTALL=afminstall |
25499 | COMPILED_X_PROGRAM=0 | |
25500 | ||
74b84332 VS |
25501 | fi |
25502 | ||
25503 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25504 | if test "$wxUSE_NANOX" = "yes"; then |
25505 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25506 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25507 | if test "x$MICROWIN" = x ; then | |
25508 | echo "$as_me:$LINENO: result: not found" >&5 | |
25509 | echo "${ECHO_T}not found" >&6 | |
25510 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25511 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25512 | { (exit 1); exit 1; }; } | |
25513 | else | |
25514 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25515 | echo "${ECHO_T}$MICROWIN" >&6 | |
25516 | cat >>confdefs.h <<\_ACEOF | |
25517 | #define wxUSE_NANOX 1 | |
25518 | _ACEOF | |
25519 | ||
25520 | fi | |
25521 | fi | |
25522 | ||
25523 | if test "$wxUSE_UNICODE" = "yes"; then | |
25524 | ||
25525 | succeeded=no | |
25526 | ||
25527 | if test -z "$PKG_CONFIG"; then | |
25528 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25529 | set dummy pkg-config; ac_word=$2 | |
25530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25532 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25534 | else | |
25535 | case $PKG_CONFIG in | |
25536 | [\\/]* | ?:[\\/]*) | |
25537 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25538 | ;; | |
25539 | *) | |
25540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25541 | for as_dir in $PATH | |
25542 | do | |
25543 | IFS=$as_save_IFS | |
25544 | test -z "$as_dir" && as_dir=. | |
25545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25547 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25549 | break 2 | |
25550 | fi | |
25551 | done | |
25552 | done | |
25553 | ||
25554 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25555 | ;; | |
25556 | esac | |
25557 | fi | |
25558 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25559 | ||
25560 | if test -n "$PKG_CONFIG"; then | |
25561 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25562 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25563 | else | |
25564 | echo "$as_me:$LINENO: result: no" >&5 | |
25565 | echo "${ECHO_T}no" >&6 | |
25566 | fi | |
25567 | ||
25568 | fi | |
25569 | ||
25570 | if test "$PKG_CONFIG" = "no" ; then | |
25571 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25572 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25573 | echo "*** to the full path to pkg-config." | |
25574 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25575 | else | |
25576 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25577 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25578 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25579 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25580 | ||
25581 | if $PKG_CONFIG --exists "pangox" ; then | |
25582 | echo "$as_me:$LINENO: result: yes" >&5 | |
25583 | echo "${ECHO_T}yes" >&6 | |
25584 | succeeded=yes | |
25585 | ||
25586 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25587 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25588 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25589 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25590 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25591 | ||
25592 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25593 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25594 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25595 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25596 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25597 | else | |
25598 | PANGOX_CFLAGS="" | |
25599 | PANGOX_LIBS="" | |
25600 | ## If we have a custom action on failure, don't print errors, but | |
25601 | ## do set a variable so people can do so. | |
25602 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25603 | ||
25604 | fi | |
25605 | ||
25606 | ||
25607 | ||
25608 | else | |
25609 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25610 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25611 | fi | |
25612 | fi | |
25613 | ||
25614 | if test $succeeded = yes; then | |
25615 | ||
25616 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25617 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25618 | ||
25619 | else | |
25620 | ||
25621 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25622 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25623 | { (exit 1); exit 1; }; } | |
25624 | ||
25625 | ||
25626 | fi | |
25627 | ||
25628 | ||
25629 | succeeded=no | |
25630 | ||
25631 | if test -z "$PKG_CONFIG"; then | |
25632 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25633 | set dummy pkg-config; ac_word=$2 | |
25634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25636 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25638 | else | |
25639 | case $PKG_CONFIG in | |
25640 | [\\/]* | ?:[\\/]*) | |
25641 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25642 | ;; | |
25643 | *) | |
25644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25645 | for as_dir in $PATH | |
25646 | do | |
25647 | IFS=$as_save_IFS | |
25648 | test -z "$as_dir" && as_dir=. | |
25649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25651 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25653 | break 2 | |
25654 | fi | |
25655 | done | |
25656 | done | |
25657 | ||
25658 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25659 | ;; | |
25660 | esac | |
25661 | fi | |
25662 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25663 | ||
25664 | if test -n "$PKG_CONFIG"; then | |
25665 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25666 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25667 | else | |
25668 | echo "$as_me:$LINENO: result: no" >&5 | |
25669 | echo "${ECHO_T}no" >&6 | |
25670 | fi | |
25671 | ||
25672 | fi | |
25673 | ||
25674 | if test "$PKG_CONFIG" = "no" ; then | |
25675 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25676 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25677 | echo "*** to the full path to pkg-config." | |
25678 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25679 | else | |
25680 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25681 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25682 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25683 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25684 | ||
25685 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25686 | echo "$as_me:$LINENO: result: yes" >&5 | |
25687 | echo "${ECHO_T}yes" >&6 | |
25688 | succeeded=yes | |
25689 | ||
25690 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25691 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25692 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25693 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25694 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25695 | ||
25696 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25697 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25698 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25699 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25700 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25701 | else | |
25702 | PANGOFT2_CFLAGS="" | |
25703 | PANGOFT2_LIBS="" | |
25704 | ## If we have a custom action on failure, don't print errors, but | |
25705 | ## do set a variable so people can do so. | |
25706 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25707 | ||
25708 | fi | |
25709 | ||
25710 | ||
25711 | ||
25712 | else | |
25713 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25714 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25715 | fi | |
25716 | fi | |
25717 | ||
25718 | if test $succeeded = yes; then | |
25719 | ||
25720 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25721 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25722 | ||
25723 | else | |
25724 | ||
25725 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25726 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25727 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25728 | ||
25729 | ||
25730 | fi | |
25731 | ||
25732 | ||
25733 | succeeded=no | |
25734 | ||
25735 | if test -z "$PKG_CONFIG"; then | |
25736 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25737 | set dummy pkg-config; ac_word=$2 | |
25738 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25740 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25742 | else | |
25743 | case $PKG_CONFIG in | |
25744 | [\\/]* | ?:[\\/]*) | |
25745 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25746 | ;; | |
25747 | *) | |
25748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25749 | for as_dir in $PATH | |
25750 | do | |
25751 | IFS=$as_save_IFS | |
25752 | test -z "$as_dir" && as_dir=. | |
25753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25755 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25757 | break 2 | |
25758 | fi | |
25759 | done | |
25760 | done | |
25761 | ||
25762 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25763 | ;; | |
25764 | esac | |
25765 | fi | |
25766 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25767 | ||
25768 | if test -n "$PKG_CONFIG"; then | |
25769 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25770 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25771 | else | |
25772 | echo "$as_me:$LINENO: result: no" >&5 | |
25773 | echo "${ECHO_T}no" >&6 | |
25774 | fi | |
25775 | ||
25776 | fi | |
25777 | ||
25778 | if test "$PKG_CONFIG" = "no" ; then | |
25779 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25780 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25781 | echo "*** to the full path to pkg-config." | |
25782 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25783 | else | |
25784 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25785 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25786 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25787 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25788 | ||
25789 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25790 | echo "$as_me:$LINENO: result: yes" >&5 | |
25791 | echo "${ECHO_T}yes" >&6 | |
25792 | succeeded=yes | |
25793 | ||
25794 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25795 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25796 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25797 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25798 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25799 | ||
25800 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25801 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25802 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25803 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25804 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25805 | else | |
25806 | PANGOXFT_CFLAGS="" | |
25807 | PANGOXFT_LIBS="" | |
25808 | ## If we have a custom action on failure, don't print errors, but | |
25809 | ## do set a variable so people can do so. | |
25810 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25811 | ||
25812 | fi | |
25813 | ||
25814 | ||
25815 | ||
25816 | else | |
25817 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25818 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25819 | fi | |
25820 | fi | |
25821 | ||
25822 | if test $succeeded = yes; then | |
25823 | ||
25824 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25825 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25826 | ||
25827 | else | |
25828 | ||
25829 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25830 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25831 | ||
25832 | ||
25833 | fi | |
25834 | ||
304205f1 VS |
25835 | save_CFLAGS="$CFLAGS" |
25836 | save_LIBS="$LIBS" | |
25837 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25838 | LIBS="$LIBS $PANGOX_LIBS" | |
25839 | ||
25840 | for ac_func in pango_font_family_is_monospace | |
25841 | do | |
25842 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25843 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25844 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25845 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25847 | else | |
25848 | cat >conftest.$ac_ext <<_ACEOF | |
25849 | /* confdefs.h. */ | |
25850 | _ACEOF | |
25851 | cat confdefs.h >>conftest.$ac_ext | |
25852 | cat >>conftest.$ac_ext <<_ACEOF | |
25853 | /* end confdefs.h. */ | |
25854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25856 | #define $ac_func innocuous_$ac_func | |
25857 | ||
25858 | /* System header to define __stub macros and hopefully few prototypes, | |
25859 | which can conflict with char $ac_func (); below. | |
25860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25861 | <limits.h> exists even on freestanding compilers. */ | |
25862 | ||
25863 | #ifdef __STDC__ | |
25864 | # include <limits.h> | |
25865 | #else | |
25866 | # include <assert.h> | |
25867 | #endif | |
25868 | ||
25869 | #undef $ac_func | |
25870 | ||
25871 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25872 | #ifdef __cplusplus | |
25873 | extern "C" | |
25874 | { | |
25875 | #endif | |
25876 | /* We use char because int might match the return type of a gcc2 | |
25877 | builtin and then its argument prototype would still apply. */ | |
25878 | char $ac_func (); | |
25879 | /* The GNU C library defines this for functions which it implements | |
25880 | to always fail with ENOSYS. Some functions are actually named | |
25881 | something starting with __ and the normal name is an alias. */ | |
25882 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25883 | choke me | |
25884 | #else | |
25885 | char (*f) () = $ac_func; | |
25886 | #endif | |
25887 | #ifdef __cplusplus | |
25888 | } | |
25889 | #endif | |
25890 | ||
25891 | int | |
25892 | main () | |
25893 | { | |
25894 | return f != $ac_func; | |
25895 | ; | |
25896 | return 0; | |
25897 | } | |
25898 | _ACEOF | |
25899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25901 | (eval $ac_link) 2>conftest.er1 | |
25902 | ac_status=$? | |
25903 | grep -v '^ *+' conftest.er1 >conftest.err | |
25904 | rm -f conftest.er1 | |
25905 | cat conftest.err >&5 | |
25906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25907 | (exit $ac_status); } && | |
2cbbc68d RD |
25908 | { ac_try='test -z "$ac_c_werror_flag" |
25909 | || test ! -s conftest.err' | |
304205f1 VS |
25910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25911 | (eval $ac_try) 2>&5 | |
25912 | ac_status=$? | |
25913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25914 | (exit $ac_status); }; } && | |
25915 | { ac_try='test -s conftest$ac_exeext' | |
25916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25917 | (eval $ac_try) 2>&5 | |
25918 | ac_status=$? | |
25919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25920 | (exit $ac_status); }; }; then | |
25921 | eval "$as_ac_var=yes" | |
25922 | else | |
25923 | echo "$as_me: failed program was:" >&5 | |
25924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25925 | ||
25926 | eval "$as_ac_var=no" | |
25927 | fi | |
25928 | rm -f conftest.err conftest.$ac_objext \ | |
25929 | conftest$ac_exeext conftest.$ac_ext | |
25930 | fi | |
25931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25932 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25933 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25934 | cat >>confdefs.h <<_ACEOF | |
25935 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25936 | _ACEOF | |
25937 | ||
25938 | fi | |
25939 | done | |
25940 | ||
25941 | CFLAGS="$save_CFLAGS" | |
25942 | LIBS="$save_LIBS" | |
a848cd7e SC |
25943 | fi |
25944 | ||
25945 | wxUSE_UNIVERSAL="yes" | |
25946 | ||
25947 | if test "$wxUSE_NANOX" = "yes"; then | |
25948 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25949 | 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" | |
25950 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25951 | else | |
25952 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25953 | fi | |
25954 | ||
a848cd7e SC |
25955 | TOOLKIT=X11 |
25956 | GUIDIST=X11_DIST | |
25957 | fi | |
25958 | ||
25959 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25960 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25961 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25962 | |
74b84332 VS |
25963 | ac_find_includes= |
25964 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25965 | do | |
25966 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25967 | ac_find_includes=$ac_dir | |
25968 | break | |
25969 | fi | |
25970 | done | |
a848cd7e | 25971 | |
74b84332 VS |
25972 | if test "$ac_find_includes" != "" ; then |
25973 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25974 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25975 | ||
25976 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25977 | ac_path_to_include="" | |
25978 | else | |
25979 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25980 | result=$? | |
25981 | if test $result = 0; then | |
25982 | ac_path_to_include="" | |
25983 | else | |
25984 | ac_path_to_include=" -I$ac_find_includes" | |
25985 | fi | |
a848cd7e SC |
25986 | fi |
25987 | ||
74b84332 VS |
25988 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25989 | else | |
25990 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25991 | /* confdefs.h. */ |
25992 | _ACEOF | |
25993 | cat confdefs.h >>conftest.$ac_ext | |
25994 | cat >>conftest.$ac_ext <<_ACEOF | |
25995 | /* end confdefs.h. */ | |
25996 | ||
74b84332 VS |
25997 | #include <Xm/Xm.h> |
25998 | ||
a848cd7e SC |
25999 | int |
26000 | main () | |
26001 | { | |
26002 | ||
74b84332 VS |
26003 | int version; |
26004 | version = xmUseVersion; | |
26005 | ||
a848cd7e SC |
26006 | ; |
26007 | return 0; | |
26008 | } | |
26009 | _ACEOF | |
74b84332 VS |
26010 | rm -f conftest.$ac_objext |
26011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26012 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26013 | ac_status=$? |
ac1cb8d3 VS |
26014 | grep -v '^ *+' conftest.er1 >conftest.err |
26015 | rm -f conftest.er1 | |
26016 | cat conftest.err >&5 | |
a848cd7e SC |
26017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26018 | (exit $ac_status); } && | |
2cbbc68d RD |
26019 | { ac_try='test -z "$ac_c_werror_flag" |
26020 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26022 | (eval $ac_try) 2>&5 | |
26023 | ac_status=$? | |
26024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26025 | (exit $ac_status); }; } && | |
74b84332 | 26026 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26028 | (eval $ac_try) 2>&5 | |
26029 | ac_status=$? | |
26030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26031 | (exit $ac_status); }; }; then | |
74b84332 VS |
26032 | |
26033 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26034 | echo "${ECHO_T}found in default search path" >&6 | |
26035 | COMPILED_X_PROGRAM=1 | |
26036 | ||
a848cd7e SC |
26037 | else |
26038 | echo "$as_me: failed program was:" >&5 | |
26039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26040 | ||
a848cd7e | 26041 | |
74b84332 VS |
26042 | echo "$as_me:$LINENO: result: no" >&5 |
26043 | echo "${ECHO_T}no" >&6 | |
26044 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26045 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26046 | { (exit 1); exit 1; }; } | |
a848cd7e | 26047 | |
a848cd7e | 26048 | |
a848cd7e | 26049 | fi |
74b84332 VS |
26050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
26051 | fi | |
26052 | ||
26053 | if test "$COMPILED_X_PROGRAM" = 0; then | |
26054 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
26055 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26056 | ||
26057 | ac_find_libraries= | |
26058 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26059 | do | |
26060 | for ac_extension in a so sl dylib; do | |
26061 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26062 | ac_find_libraries=$ac_dir | |
26063 | break 2 | |
a848cd7e | 26064 | fi |
74b84332 VS |
26065 | done |
26066 | done | |
a848cd7e | 26067 | |
74b84332 VS |
26068 | if test "$ac_find_libraries" != "" ; then |
26069 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26070 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 26071 | |
74b84332 VS |
26072 | |
26073 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26074 | result=$? | |
26075 | if test $result = 0; then | |
26076 | ac_path_to_link="" | |
a848cd7e | 26077 | else |
74b84332 VS |
26078 | ac_path_to_link=" -L$ac_find_libraries" |
26079 | fi | |
26080 | ||
26081 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26082 | else | |
26083 | save_CFLAGS=$CFLAGS | |
26084 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26085 | ||
26086 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26087 | /* confdefs.h. */ |
26088 | _ACEOF | |
26089 | cat confdefs.h >>conftest.$ac_ext | |
26090 | cat >>conftest.$ac_ext <<_ACEOF | |
26091 | /* end confdefs.h. */ | |
26092 | ||
74b84332 VS |
26093 | #include <Xm/Xm.h> |
26094 | ||
a848cd7e SC |
26095 | int |
26096 | main () | |
26097 | { | |
74b84332 VS |
26098 | |
26099 | int version; | |
26100 | version = xmUseVersion; | |
26101 | ||
a848cd7e SC |
26102 | ; |
26103 | return 0; | |
26104 | } | |
26105 | _ACEOF | |
74b84332 VS |
26106 | rm -f conftest.$ac_objext |
26107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26108 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26109 | ac_status=$? |
ac1cb8d3 VS |
26110 | grep -v '^ *+' conftest.er1 >conftest.err |
26111 | rm -f conftest.er1 | |
26112 | cat conftest.err >&5 | |
a848cd7e SC |
26113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26114 | (exit $ac_status); } && | |
2cbbc68d RD |
26115 | { ac_try='test -z "$ac_c_werror_flag" |
26116 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26118 | (eval $ac_try) 2>&5 | |
26119 | ac_status=$? | |
26120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26121 | (exit $ac_status); }; } && | |
74b84332 | 26122 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26124 | (eval $ac_try) 2>&5 | |
26125 | ac_status=$? | |
26126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26127 | (exit $ac_status); }; }; then | |
74b84332 VS |
26128 | |
26129 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26130 | echo "${ECHO_T}found in default search path" >&6 | |
26131 | COMPILED_X_PROGRAM=1 | |
26132 | ||
a848cd7e SC |
26133 | else |
26134 | echo "$as_me: failed program was:" >&5 | |
26135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26136 | ||
74b84332 VS |
26137 | |
26138 | echo "$as_me:$LINENO: result: no" >&5 | |
26139 | echo "${ECHO_T}no" >&6 | |
26140 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26141 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26142 | { (exit 1); exit 1; }; } | |
26143 | ||
26144 | ||
26145 | fi | |
26146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26147 | ||
26148 | CFLAGS=$save_CFLAGS | |
26149 | fi | |
26150 | fi | |
26151 | ||
26152 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
26153 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
26154 | libp_link="" | |
26155 | libsm_ice_link="" | |
26156 | libs_found=0 | |
26157 | for libp in "" " -lXp"; do | |
26158 | if test "$libs_found" = "0"; then | |
26159 | for libsm_ice in "" " -lSM -lICE"; do | |
26160 | if test "$libs_found" = "0"; then | |
26161 | save_LIBS="$LIBS" | |
26162 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26163 | save_CFLAGS=$CFLAGS | |
26164 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26165 | ||
26166 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26167 | /* confdefs.h. */ |
26168 | _ACEOF | |
26169 | cat confdefs.h >>conftest.$ac_ext | |
26170 | cat >>conftest.$ac_ext <<_ACEOF | |
26171 | /* end confdefs.h. */ | |
26172 | ||
74b84332 VS |
26173 | #include <Xm/Xm.h> |
26174 | #include <Xm/List.h> | |
26175 | ||
a848cd7e SC |
26176 | int |
26177 | main () | |
26178 | { | |
74b84332 VS |
26179 | |
26180 | XmString string = NULL; | |
26181 | Widget w = NULL; | |
26182 | int position = 0; | |
26183 | XmListAddItem(w, string, position); | |
26184 | ||
a848cd7e SC |
26185 | ; |
26186 | return 0; | |
26187 | } | |
26188 | _ACEOF | |
26189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26191 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26192 | ac_status=$? |
ac1cb8d3 VS |
26193 | grep -v '^ *+' conftest.er1 >conftest.err |
26194 | rm -f conftest.er1 | |
26195 | cat conftest.err >&5 | |
a848cd7e SC |
26196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26197 | (exit $ac_status); } && | |
2cbbc68d RD |
26198 | { ac_try='test -z "$ac_c_werror_flag" |
26199 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26201 | (eval $ac_try) 2>&5 | |
26202 | ac_status=$? | |
26203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26204 | (exit $ac_status); }; } && | |
26205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26207 | (eval $ac_try) 2>&5 | |
26208 | ac_status=$? | |
26209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26210 | (exit $ac_status); }; }; then | |
26211 | ||
26212 | libp_link="$libp" | |
26213 | libsm_ice_link="$libsm_ice" | |
26214 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26215 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26216 | libs_found=1 | |
26217 | ||
26218 | else | |
26219 | echo "$as_me: failed program was:" >&5 | |
26220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26221 | ||
26222 | ||
26223 | ||
26224 | fi | |
ac1cb8d3 VS |
26225 | rm -f conftest.err conftest.$ac_objext \ |
26226 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26227 | |
26228 | LIBS="$save_LIBS" | |
26229 | CFLAGS=$save_CFLAGS | |
26230 | fi | |
26231 | done | |
26232 | fi | |
26233 | done | |
26234 | ||
26235 | if test "$libs_found" = "0"; then | |
26236 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26237 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26238 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26239 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26240 | { (exit 1); exit 1; }; } | |
26241 | fi | |
26242 | ||
26243 | save_CFLAGS=$CFLAGS | |
26244 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26245 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26246 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26247 | cat >conftest.$ac_ext <<_ACEOF | |
26248 | /* confdefs.h. */ | |
26249 | _ACEOF | |
26250 | cat confdefs.h >>conftest.$ac_ext | |
26251 | cat >>conftest.$ac_ext <<_ACEOF | |
26252 | /* end confdefs.h. */ | |
26253 | ||
26254 | #include <Xm/Xm.h> | |
26255 | ||
26256 | int | |
26257 | main () | |
26258 | { | |
26259 | ||
26260 | #if XmVersion < 2000 | |
26261 | #error "Not Motif 2" | |
26262 | #endif | |
26263 | ||
26264 | ; | |
26265 | return 0; | |
26266 | } | |
26267 | _ACEOF | |
26268 | rm -f conftest.$ac_objext | |
26269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26271 | ac_status=$? |
ac1cb8d3 VS |
26272 | grep -v '^ *+' conftest.er1 >conftest.err |
26273 | rm -f conftest.er1 | |
26274 | cat conftest.err >&5 | |
a848cd7e SC |
26275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26276 | (exit $ac_status); } && | |
2cbbc68d RD |
26277 | { ac_try='test -z "$ac_c_werror_flag" |
26278 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26280 | (eval $ac_try) 2>&5 | |
26281 | ac_status=$? | |
26282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26283 | (exit $ac_status); }; } && | |
26284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26286 | (eval $ac_try) 2>&5 | |
26287 | ac_status=$? | |
26288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26289 | (exit $ac_status); }; }; then | |
26290 | ||
26291 | cat >>confdefs.h <<\_ACEOF | |
26292 | #define __WXMOTIF20__ 1 | |
26293 | _ACEOF | |
26294 | ||
26295 | echo "$as_me:$LINENO: result: found" >&5 | |
26296 | echo "${ECHO_T}found" >&6 | |
26297 | ||
26298 | else | |
26299 | echo "$as_me: failed program was:" >&5 | |
26300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26301 | ||
26302 | ||
26303 | cat >>confdefs.h <<\_ACEOF | |
26304 | #define __WXMOTIF20__ 0 | |
26305 | _ACEOF | |
26306 | ||
26307 | echo "$as_me:$LINENO: result: not found" >&5 | |
26308 | echo "${ECHO_T}not found" >&6 | |
26309 | ||
26310 | fi | |
ac1cb8d3 | 26311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26312 | CFLAGS=$save_CFLAGS |
26313 | ||
26314 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26315 | TOOLKIT=MOTIF |
26316 | GUIDIST=MOTIF_DIST | |
26317 | fi | |
26318 | ||
74b84332 | 26319 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26320 | if test "$wxUSE_LIBXPM" = "sys"; then |
26321 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26322 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26323 | ||
26324 | ac_find_libraries= | |
26325 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26326 | do | |
26327 | for ac_extension in a so sl dylib; do | |
26328 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26329 | ac_find_libraries=$ac_dir | |
26330 | break 2 | |
26331 | fi | |
26332 | done | |
26333 | done | |
26334 | ||
26335 | if test "$ac_find_libraries" != "" ; then | |
26336 | ||
26337 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26338 | result=$? | |
26339 | if test $result = 0; then | |
26340 | ac_path_to_link="" | |
26341 | else | |
26342 | ac_path_to_link=" -L$ac_find_libraries" | |
26343 | fi | |
26344 | ||
26345 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26346 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26347 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26348 | ||
26349 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26350 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26351 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26353 | else | |
26354 | ||
26355 | save_CFLAGS=$CFLAGS | |
26356 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26357 | ||
26358 | cat >conftest.$ac_ext <<_ACEOF | |
26359 | /* confdefs.h. */ | |
26360 | _ACEOF | |
26361 | cat confdefs.h >>conftest.$ac_ext | |
26362 | cat >>conftest.$ac_ext <<_ACEOF | |
26363 | /* end confdefs.h. */ | |
26364 | ||
26365 | #include <X11/xpm.h> | |
26366 | ||
26367 | int | |
26368 | main () | |
26369 | { | |
26370 | ||
26371 | int version; | |
26372 | version = XpmLibraryVersion(); | |
26373 | ||
26374 | ; | |
26375 | return 0; | |
26376 | } | |
26377 | _ACEOF | |
26378 | rm -f conftest.$ac_objext | |
26379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26381 | ac_status=$? |
ac1cb8d3 VS |
26382 | grep -v '^ *+' conftest.er1 >conftest.err |
26383 | rm -f conftest.er1 | |
26384 | cat conftest.err >&5 | |
a848cd7e SC |
26385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26386 | (exit $ac_status); } && | |
2cbbc68d RD |
26387 | { ac_try='test -z "$ac_c_werror_flag" |
26388 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26390 | (eval $ac_try) 2>&5 | |
26391 | ac_status=$? | |
26392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26393 | (exit $ac_status); }; } && | |
26394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26396 | (eval $ac_try) 2>&5 | |
26397 | ac_status=$? | |
26398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26399 | (exit $ac_status); }; }; then | |
26400 | wx_cv_x11_xpm_h=yes | |
26401 | else | |
26402 | echo "$as_me: failed program was:" >&5 | |
26403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26404 | ||
26405 | wx_cv_x11_xpm_h=no | |
26406 | ||
26407 | fi | |
ac1cb8d3 | 26408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26409 | |
26410 | CFLAGS=$save_CFLAGS | |
26411 | ||
26412 | ||
26413 | fi | |
26414 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26415 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26416 | ||
26417 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26418 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26419 | cat >>confdefs.h <<\_ACEOF | |
26420 | #define wxHAVE_LIB_XPM 1 | |
26421 | _ACEOF | |
26422 | ||
26423 | else | |
26424 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26425 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26426 | fi | |
26427 | fi | |
26428 | ||
26429 | fi | |
26430 | ||
26431 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26432 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26433 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26435 | else | |
26436 | ac_check_lib_save_LIBS=$LIBS | |
26437 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26438 | cat >conftest.$ac_ext <<_ACEOF | |
26439 | /* confdefs.h. */ | |
26440 | _ACEOF | |
26441 | cat confdefs.h >>conftest.$ac_ext | |
26442 | cat >>conftest.$ac_ext <<_ACEOF | |
26443 | /* end confdefs.h. */ | |
26444 | ||
26445 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26446 | #ifdef __cplusplus | |
26447 | extern "C" | |
26448 | #endif | |
26449 | /* We use char because int might match the return type of a gcc2 | |
26450 | builtin and then its argument prototype would still apply. */ | |
26451 | char XShapeQueryExtension (); | |
26452 | int | |
26453 | main () | |
26454 | { | |
26455 | XShapeQueryExtension (); | |
26456 | ; | |
26457 | return 0; | |
26458 | } | |
26459 | _ACEOF | |
26460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26462 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26463 | ac_status=$? |
ac1cb8d3 VS |
26464 | grep -v '^ *+' conftest.er1 >conftest.err |
26465 | rm -f conftest.er1 | |
26466 | cat conftest.err >&5 | |
a848cd7e SC |
26467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26468 | (exit $ac_status); } && | |
2cbbc68d RD |
26469 | { ac_try='test -z "$ac_c_werror_flag" |
26470 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26472 | (eval $ac_try) 2>&5 | |
26473 | ac_status=$? | |
26474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26475 | (exit $ac_status); }; } && | |
26476 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26478 | (eval $ac_try) 2>&5 | |
26479 | ac_status=$? | |
26480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26481 | (exit $ac_status); }; }; then | |
26482 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26483 | else | |
26484 | echo "$as_me: failed program was:" >&5 | |
26485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26486 | ||
26487 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26488 | fi | |
ac1cb8d3 VS |
26489 | rm -f conftest.err conftest.$ac_objext \ |
26490 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26491 | LIBS=$ac_check_lib_save_LIBS |
26492 | fi | |
26493 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26494 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26495 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26496 | ||
26497 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26498 | wxHAVE_XEXT_LIB=1 | |
26499 | ||
26500 | fi | |
26501 | ||
26502 | ||
26503 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26504 | save_CFLAGS="$CFLAGS" | |
26505 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26506 | ||
26507 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26508 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26509 | cat >conftest.$ac_ext <<_ACEOF | |
26510 | /* confdefs.h. */ | |
26511 | _ACEOF | |
26512 | cat confdefs.h >>conftest.$ac_ext | |
26513 | cat >>conftest.$ac_ext <<_ACEOF | |
26514 | /* end confdefs.h. */ | |
26515 | ||
26516 | #include <X11/Xlib.h> | |
26517 | #include <X11/extensions/shape.h> | |
26518 | ||
26519 | int | |
26520 | main () | |
26521 | { | |
26522 | ||
26523 | int dummy1, dummy2; | |
26524 | XShapeQueryExtension((Display*)NULL, | |
26525 | (int*)NULL, (int*)NULL); | |
26526 | ||
26527 | ; | |
26528 | return 0; | |
26529 | } | |
26530 | _ACEOF | |
26531 | rm -f conftest.$ac_objext | |
26532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26534 | ac_status=$? |
ac1cb8d3 VS |
26535 | grep -v '^ *+' conftest.er1 >conftest.err |
26536 | rm -f conftest.er1 | |
26537 | cat conftest.err >&5 | |
a848cd7e SC |
26538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26539 | (exit $ac_status); } && | |
2cbbc68d RD |
26540 | { ac_try='test -z "$ac_c_werror_flag" |
26541 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26543 | (eval $ac_try) 2>&5 | |
26544 | ac_status=$? | |
26545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26546 | (exit $ac_status); }; } && | |
26547 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26549 | (eval $ac_try) 2>&5 | |
26550 | ac_status=$? | |
26551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26552 | (exit $ac_status); }; }; then | |
26553 | ||
26554 | cat >>confdefs.h <<\_ACEOF | |
26555 | #define HAVE_XSHAPE 1 | |
26556 | _ACEOF | |
26557 | ||
26558 | echo "$as_me:$LINENO: result: found" >&5 | |
26559 | echo "${ECHO_T}found" >&6 | |
26560 | ||
26561 | else | |
26562 | echo "$as_me: failed program was:" >&5 | |
26563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26564 | ||
26565 | ||
26566 | echo "$as_me:$LINENO: result: not found" >&5 | |
26567 | echo "${ECHO_T}not found" >&6 | |
26568 | ||
26569 | fi | |
ac1cb8d3 | 26570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26571 | CFLAGS="$save_CFLAGS" |
26572 | ||
26573 | fi | |
26574 | fi | |
26575 | ||
26576 | if test "$wxUSE_MAC" = 1; then | |
26577 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26578 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26579 | if test "$GCC" = yes; then | |
26580 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26581 | echo "${ECHO_T}gcc" >&6 | |
26582 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26583 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26584 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26585 | echo "${ECHO_T}xlc" >&6 | |
26586 | CPPFLAGS_PASCAL="-qmacpstr" | |
26587 | else | |
26588 | echo "$as_me:$LINENO: result: none" >&5 | |
26589 | echo "${ECHO_T}none" >&6 | |
26590 | fi | |
26591 | ||
26592 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26593 | ||
a848cd7e SC |
26594 | TOOLKIT=MAC |
26595 | GUIDIST=MACX_DIST | |
dd21ced8 | 26596 | WXBASEPORT="_carbon" |
a848cd7e SC |
26597 | fi |
26598 | ||
26599 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
26600 | TOOLKIT=COCOA |
26601 | GUIDIST=COCOA_DIST | |
26602 | fi | |
26603 | ||
26604 | if test "$wxUSE_PM" = 1; then | |
26605 | TOOLKIT=PM | |
de59c161 RD |
26606 | GUIDIST=PM_DIST |
26607 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26608 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26609 | if test "${wx_cv_spbcdata+set}" = set; then | |
26610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26611 | else | |
26612 | ||
26613 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26614 | /* confdefs.h. */ |
26615 | _ACEOF | |
26616 | cat confdefs.h >>conftest.$ac_ext | |
26617 | cat >>conftest.$ac_ext <<_ACEOF | |
26618 | /* end confdefs.h. */ | |
26619 | ||
26620 | #define INCL_PM | |
26621 | #include <os2.h> | |
26622 | ||
26623 | int | |
26624 | main () | |
26625 | { | |
26626 | ||
26627 | SPBCDATA test; | |
26628 | ||
26629 | ; | |
26630 | return 0; | |
26631 | } | |
26632 | _ACEOF | |
26633 | rm -f conftest.$ac_objext | |
26634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26635 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26636 | ac_status=$? |
ac1cb8d3 VS |
26637 | grep -v '^ *+' conftest.er1 >conftest.err |
26638 | rm -f conftest.er1 | |
26639 | cat conftest.err >&5 | |
de59c161 RD |
26640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26641 | (exit $ac_status); } && | |
2cbbc68d RD |
26642 | { ac_try='test -z "$ac_c_werror_flag" |
26643 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26645 | (eval $ac_try) 2>&5 | |
26646 | ac_status=$? | |
26647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26648 | (exit $ac_status); }; } && | |
26649 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26651 | (eval $ac_try) 2>&5 | |
26652 | ac_status=$? | |
26653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26654 | (exit $ac_status); }; }; then | |
26655 | wx_cv_spbcdata=yes | |
26656 | else | |
26657 | echo "$as_me: failed program was:" >&5 | |
26658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26659 | ||
26660 | wx_cv_spbcdata=no | |
26661 | ||
26662 | fi | |
ac1cb8d3 | 26663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26664 | |
26665 | ||
26666 | fi | |
26667 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26668 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26669 | ||
26670 | if test $wx_cv_spbcdata = "yes"; then | |
26671 | cat >>confdefs.h <<\_ACEOF | |
26672 | #define HAVE_SPBCDATA 1 | |
26673 | _ACEOF | |
26674 | ||
26675 | fi | |
a848cd7e SC |
26676 | fi |
26677 | ||
26678 | if test "$TOOLKIT" = "PM" ; then | |
26679 | TOOLKIT_DIR="os2" | |
26680 | else | |
26681 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26682 | fi | |
26683 | ||
a848cd7e | 26684 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
26685 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
26686 | WIDGET_SET=univ | |
a848cd7e SC |
26687 | fi |
26688 | ||
26689 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26690 | DISTDIR="wx\$(TOOLKIT)" | |
26691 | else | |
26692 | USE_GUI=0 | |
26693 | ||
26694 | TOOLKIT_DIR="base" | |
26695 | ||
26696 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 26697 | TOOLKIT="MSW" |
a848cd7e SC |
26698 | fi |
26699 | ||
a848cd7e SC |
26700 | GUIDIST="BASE_DIST" |
26701 | DISTDIR="wxBase" | |
26702 | fi | |
26703 | ||
26704 | ||
26705 | ||
26706 | ||
26707 | IODBC_C_SRC="" | |
26708 | ||
26709 | ||
26710 | if test "$TOOLKIT" != "MSW" ; then | |
26711 | ||
26712 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26713 | ||
26714 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26715 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26716 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26717 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26719 | fi | |
26720 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26721 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26722 | else | |
26723 | # Is the header compilable? | |
26724 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26725 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26726 | cat >conftest.$ac_ext <<_ACEOF | |
26727 | /* confdefs.h. */ | |
26728 | _ACEOF | |
26729 | cat confdefs.h >>conftest.$ac_ext | |
26730 | cat >>conftest.$ac_ext <<_ACEOF | |
26731 | /* end confdefs.h. */ | |
26732 | $ac_includes_default | |
26733 | #include <sql.h> | |
26734 | _ACEOF | |
26735 | rm -f conftest.$ac_objext | |
26736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26737 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26738 | ac_status=$? |
ac1cb8d3 VS |
26739 | grep -v '^ *+' conftest.er1 >conftest.err |
26740 | rm -f conftest.er1 | |
26741 | cat conftest.err >&5 | |
a848cd7e SC |
26742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26743 | (exit $ac_status); } && | |
2cbbc68d RD |
26744 | { ac_try='test -z "$ac_c_werror_flag" |
26745 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26747 | (eval $ac_try) 2>&5 | |
26748 | ac_status=$? | |
26749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26750 | (exit $ac_status); }; } && | |
26751 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26753 | (eval $ac_try) 2>&5 | |
26754 | ac_status=$? | |
26755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26756 | (exit $ac_status); }; }; then | |
26757 | ac_header_compiler=yes | |
26758 | else | |
26759 | echo "$as_me: failed program was:" >&5 | |
26760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26761 | ||
26762 | ac_header_compiler=no | |
26763 | fi | |
ac1cb8d3 | 26764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26765 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26766 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26767 | ||
26768 | # Is the header present? | |
26769 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26770 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26771 | cat >conftest.$ac_ext <<_ACEOF | |
26772 | /* confdefs.h. */ | |
26773 | _ACEOF | |
26774 | cat confdefs.h >>conftest.$ac_ext | |
26775 | cat >>conftest.$ac_ext <<_ACEOF | |
26776 | /* end confdefs.h. */ | |
26777 | #include <sql.h> | |
26778 | _ACEOF | |
26779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26781 | ac_status=$? | |
26782 | grep -v '^ *+' conftest.er1 >conftest.err | |
26783 | rm -f conftest.er1 | |
26784 | cat conftest.err >&5 | |
26785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26786 | (exit $ac_status); } >/dev/null; then | |
26787 | if test -s conftest.err; then | |
26788 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26789 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26790 | else |
26791 | ac_cpp_err= | |
26792 | fi | |
26793 | else | |
26794 | ac_cpp_err=yes | |
26795 | fi | |
26796 | if test -z "$ac_cpp_err"; then | |
26797 | ac_header_preproc=yes | |
26798 | else | |
26799 | echo "$as_me: failed program was:" >&5 | |
26800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26801 | ||
26802 | ac_header_preproc=no | |
26803 | fi | |
26804 | rm -f conftest.err conftest.$ac_ext | |
26805 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26806 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26807 | ||
26808 | # So? What about this header? | |
ac1cb8d3 VS |
26809 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26810 | yes:no: ) | |
a848cd7e SC |
26811 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26812 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26813 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26814 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26815 | ac_header_preproc=yes | |
a848cd7e | 26816 | ;; |
ac1cb8d3 | 26817 | no:yes:* ) |
a848cd7e SC |
26818 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26819 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26820 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26821 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26822 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26823 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26824 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26825 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26826 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26827 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26828 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26829 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26830 | ( |
26831 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26832 | ## ----------------------------------------- ## |
26833 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26834 | ## ----------------------------------------- ## | |
a848cd7e SC |
26835 | _ASBOX |
26836 | ) | | |
26837 | sed "s/^/$as_me: WARNING: /" >&2 | |
26838 | ;; | |
26839 | esac | |
26840 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26841 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26842 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26844 | else | |
26845 | ac_cv_header_sql_h=$ac_header_preproc | |
26846 | fi | |
26847 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26848 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26849 | ||
26850 | fi | |
26851 | if test $ac_cv_header_sql_h = yes; then | |
26852 | found_sql_h=1 | |
26853 | fi | |
26854 | ||
26855 | ||
26856 | if test "x$found_sql_h" = "x1" ; then | |
26857 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26858 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26859 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26861 | else | |
26862 | ac_check_lib_save_LIBS=$LIBS | |
26863 | LIBS="-liodbc $LIBS" | |
26864 | cat >conftest.$ac_ext <<_ACEOF | |
26865 | /* confdefs.h. */ | |
26866 | _ACEOF | |
26867 | cat confdefs.h >>conftest.$ac_ext | |
26868 | cat >>conftest.$ac_ext <<_ACEOF | |
26869 | /* end confdefs.h. */ | |
26870 | ||
26871 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26872 | #ifdef __cplusplus | |
26873 | extern "C" | |
26874 | #endif | |
26875 | /* We use char because int might match the return type of a gcc2 | |
26876 | builtin and then its argument prototype would still apply. */ | |
26877 | char SQLAllocEnv (); | |
26878 | int | |
26879 | main () | |
26880 | { | |
26881 | SQLAllocEnv (); | |
26882 | ; | |
26883 | return 0; | |
26884 | } | |
26885 | _ACEOF | |
26886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26888 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26889 | ac_status=$? |
ac1cb8d3 VS |
26890 | grep -v '^ *+' conftest.er1 >conftest.err |
26891 | rm -f conftest.er1 | |
26892 | cat conftest.err >&5 | |
a848cd7e SC |
26893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26894 | (exit $ac_status); } && | |
2cbbc68d RD |
26895 | { ac_try='test -z "$ac_c_werror_flag" |
26896 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26898 | (eval $ac_try) 2>&5 | |
26899 | ac_status=$? | |
26900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26901 | (exit $ac_status); }; } && | |
26902 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26904 | (eval $ac_try) 2>&5 | |
26905 | ac_status=$? | |
26906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26907 | (exit $ac_status); }; }; then | |
26908 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26909 | else | |
26910 | echo "$as_me: failed program was:" >&5 | |
26911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26912 | ||
26913 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26914 | fi | |
ac1cb8d3 VS |
26915 | rm -f conftest.err conftest.$ac_objext \ |
26916 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26917 | LIBS=$ac_check_lib_save_LIBS |
26918 | fi | |
26919 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26920 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26921 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26922 | ODBC_LINK=" -liodbc" | |
26923 | else | |
26924 | ||
26925 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26926 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26927 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26929 | else | |
26930 | ac_check_lib_save_LIBS=$LIBS | |
26931 | LIBS="-lunixodbc $LIBS" | |
26932 | cat >conftest.$ac_ext <<_ACEOF | |
26933 | /* confdefs.h. */ | |
26934 | _ACEOF | |
26935 | cat confdefs.h >>conftest.$ac_ext | |
26936 | cat >>conftest.$ac_ext <<_ACEOF | |
26937 | /* end confdefs.h. */ | |
26938 | ||
26939 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26940 | #ifdef __cplusplus | |
26941 | extern "C" | |
26942 | #endif | |
26943 | /* We use char because int might match the return type of a gcc2 | |
26944 | builtin and then its argument prototype would still apply. */ | |
26945 | char SQLAllocEnv (); | |
26946 | int | |
26947 | main () | |
26948 | { | |
26949 | SQLAllocEnv (); | |
26950 | ; | |
26951 | return 0; | |
26952 | } | |
26953 | _ACEOF | |
26954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26956 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26957 | ac_status=$? |
ac1cb8d3 VS |
26958 | grep -v '^ *+' conftest.er1 >conftest.err |
26959 | rm -f conftest.er1 | |
26960 | cat conftest.err >&5 | |
a848cd7e SC |
26961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26962 | (exit $ac_status); } && | |
2cbbc68d RD |
26963 | { ac_try='test -z "$ac_c_werror_flag" |
26964 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26966 | (eval $ac_try) 2>&5 | |
26967 | ac_status=$? | |
26968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26969 | (exit $ac_status); }; } && | |
26970 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26972 | (eval $ac_try) 2>&5 | |
26973 | ac_status=$? | |
26974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26975 | (exit $ac_status); }; }; then | |
26976 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26977 | else | |
26978 | echo "$as_me: failed program was:" >&5 | |
26979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26980 | ||
26981 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26982 | fi | |
ac1cb8d3 VS |
26983 | rm -f conftest.err conftest.$ac_objext \ |
26984 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26985 | LIBS=$ac_check_lib_save_LIBS |
26986 | fi | |
26987 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26988 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26989 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26990 | ODBC_LINK=" -lunixodbc" | |
26991 | else | |
26992 | ||
26993 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26994 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26995 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26997 | else | |
26998 | ac_check_lib_save_LIBS=$LIBS | |
26999 | LIBS="-lodbc $LIBS" | |
27000 | cat >conftest.$ac_ext <<_ACEOF | |
27001 | /* confdefs.h. */ | |
27002 | _ACEOF | |
27003 | cat confdefs.h >>conftest.$ac_ext | |
27004 | cat >>conftest.$ac_ext <<_ACEOF | |
27005 | /* end confdefs.h. */ | |
27006 | ||
27007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27008 | #ifdef __cplusplus | |
27009 | extern "C" | |
27010 | #endif | |
27011 | /* We use char because int might match the return type of a gcc2 | |
27012 | builtin and then its argument prototype would still apply. */ | |
27013 | char SQLAllocEnv (); | |
27014 | int | |
27015 | main () | |
27016 | { | |
27017 | SQLAllocEnv (); | |
27018 | ; | |
27019 | return 0; | |
27020 | } | |
27021 | _ACEOF | |
27022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27024 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27025 | ac_status=$? |
ac1cb8d3 VS |
27026 | grep -v '^ *+' conftest.er1 >conftest.err |
27027 | rm -f conftest.er1 | |
27028 | cat conftest.err >&5 | |
a848cd7e SC |
27029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27030 | (exit $ac_status); } && | |
2cbbc68d RD |
27031 | { ac_try='test -z "$ac_c_werror_flag" |
27032 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27034 | (eval $ac_try) 2>&5 | |
27035 | ac_status=$? | |
27036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27037 | (exit $ac_status); }; } && | |
27038 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27040 | (eval $ac_try) 2>&5 | |
27041 | ac_status=$? | |
27042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27043 | (exit $ac_status); }; }; then | |
27044 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
27045 | else | |
27046 | echo "$as_me: failed program was:" >&5 | |
27047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27048 | ||
27049 | ac_cv_lib_odbc_SQLAllocEnv=no | |
27050 | fi | |
ac1cb8d3 VS |
27051 | rm -f conftest.err conftest.$ac_objext \ |
27052 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27053 | LIBS=$ac_check_lib_save_LIBS |
27054 | fi | |
27055 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
27056 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27057 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
27058 | ODBC_LINK=" -lodbc" | |
27059 | fi | |
27060 | ||
27061 | ||
27062 | fi | |
27063 | ||
27064 | ||
27065 | fi | |
27066 | ||
27067 | fi | |
27068 | if test "x$ODBC_LINK" = "x" ; then | |
27069 | if test "$wxUSE_ODBC" = "sys" ; then | |
27070 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27071 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27072 | { (exit 1); exit 1; }; } | |
27073 | else | |
27074 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27075 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27076 | wxUSE_ODBC=builtin | |
27077 | fi | |
27078 | else | |
27079 | wxUSE_ODBC=sys | |
27080 | fi | |
27081 | fi | |
27082 | if test "$wxUSE_ODBC" != "no" ; then | |
27083 | cat >>confdefs.h <<\_ACEOF | |
27084 | #define wxUSE_ODBC 1 | |
27085 | _ACEOF | |
27086 | ||
27087 | if test "$wxUSE_ODBC" = "builtin" ; then | |
27088 | cat >>confdefs.h <<\_ACEOF | |
27089 | #define wxUSE_BUILTIN_IODBC 1 | |
27090 | _ACEOF | |
27091 | ||
27092 | fi | |
27093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
27094 | ||
27095 | WXODBCFLAG="-D_IODBC_" | |
27096 | fi | |
27097 | fi | |
27098 | ||
a848cd7e | 27099 | |
01cb68df | 27100 | |
a848cd7e | 27101 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 27102 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
27103 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
27104 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27105 | ||
27106 | ac_find_libraries= | |
27107 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27108 | do | |
27109 | for ac_extension in a so sl dylib; do | |
27110 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27111 | ac_find_libraries=$ac_dir | |
27112 | break 2 | |
27113 | fi | |
27114 | done | |
27115 | done | |
27116 | ||
27117 | if test "$ac_find_libraries" != "" ; then | |
27118 | ||
27119 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27120 | result=$? | |
27121 | if test $result = 0; then | |
27122 | ac_path_to_link="" | |
27123 | else | |
27124 | ac_path_to_link=" -L$ac_find_libraries" | |
27125 | fi | |
27126 | ||
27127 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27128 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27129 | fi | |
27130 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27131 | echo "$as_me:$LINENO: result: yes" >&5 | |
27132 | echo "${ECHO_T}yes" >&6 | |
27133 | ||
27134 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27135 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27136 | ||
27137 | ac_find_libraries= | |
27138 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27139 | do | |
27140 | for ac_extension in a so sl dylib; do | |
27141 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27142 | ac_find_libraries=$ac_dir | |
27143 | break 2 | |
27144 | fi | |
27145 | done | |
27146 | done | |
27147 | ||
27148 | if test "$ac_find_libraries" != "" ; then | |
27149 | echo "$as_me:$LINENO: result: yes" >&5 | |
27150 | echo "${ECHO_T}yes" >&6 | |
27151 | ||
27152 | for ac_header in X11/extensions/xf86vmode.h | |
27153 | do | |
27154 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27155 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27157 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27159 | else | |
27160 | cat >conftest.$ac_ext <<_ACEOF | |
27161 | /* confdefs.h. */ | |
27162 | _ACEOF | |
27163 | cat confdefs.h >>conftest.$ac_ext | |
27164 | cat >>conftest.$ac_ext <<_ACEOF | |
27165 | /* end confdefs.h. */ | |
27166 | ||
27167 | #if HAVE_X11_XLIB_H | |
27168 | #include <X11/Xlib.h> | |
27169 | #endif | |
27170 | ||
27171 | ||
27172 | #include <$ac_header> | |
27173 | _ACEOF | |
27174 | rm -f conftest.$ac_objext | |
27175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27176 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27177 | ac_status=$? |
ac1cb8d3 VS |
27178 | grep -v '^ *+' conftest.er1 >conftest.err |
27179 | rm -f conftest.er1 | |
27180 | cat conftest.err >&5 | |
a848cd7e SC |
27181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27182 | (exit $ac_status); } && | |
2cbbc68d RD |
27183 | { ac_try='test -z "$ac_c_werror_flag" |
27184 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27186 | (eval $ac_try) 2>&5 | |
27187 | ac_status=$? | |
27188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27189 | (exit $ac_status); }; } && | |
27190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27192 | (eval $ac_try) 2>&5 | |
27193 | ac_status=$? | |
27194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27195 | (exit $ac_status); }; }; then | |
27196 | eval "$as_ac_Header=yes" | |
27197 | else | |
27198 | echo "$as_me: failed program was:" >&5 | |
27199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27200 | ||
27201 | eval "$as_ac_Header=no" | |
27202 | fi | |
ac1cb8d3 | 27203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27204 | fi |
27205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27206 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27207 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27208 | cat >>confdefs.h <<_ACEOF | |
27209 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27210 | _ACEOF | |
27211 | ||
27212 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27213 | ||
27214 | fi | |
27215 | ||
27216 | done | |
27217 | ||
27218 | else | |
27219 | echo "$as_me:$LINENO: result: no" >&5 | |
27220 | echo "${ECHO_T}no" >&6 | |
27221 | fi | |
27222 | ||
27223 | else | |
27224 | echo "$as_me:$LINENO: result: no" >&5 | |
27225 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27226 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27227 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27228 | wxUSE_DISPLAY="no" |
27229 | fi | |
01cb68df RG |
27230 | elif test "$wxUSE_MSW" = 1; then |
27231 | ||
27232 | ||
27233 | for ac_header in multimon.h ddraw.h | |
27234 | do | |
27235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27241 | fi | |
27242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27244 | else | |
27245 | # Is the header compilable? | |
27246 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27247 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27248 | cat >conftest.$ac_ext <<_ACEOF | |
27249 | /* confdefs.h. */ | |
27250 | _ACEOF | |
27251 | cat confdefs.h >>conftest.$ac_ext | |
27252 | cat >>conftest.$ac_ext <<_ACEOF | |
27253 | /* end confdefs.h. */ | |
27254 | $ac_includes_default | |
27255 | #include <$ac_header> | |
27256 | _ACEOF | |
27257 | rm -f conftest.$ac_objext | |
27258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27259 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27260 | ac_status=$? |
ac1cb8d3 VS |
27261 | grep -v '^ *+' conftest.er1 >conftest.err |
27262 | rm -f conftest.er1 | |
27263 | cat conftest.err >&5 | |
01cb68df RG |
27264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27265 | (exit $ac_status); } && | |
2cbbc68d RD |
27266 | { ac_try='test -z "$ac_c_werror_flag" |
27267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27269 | (eval $ac_try) 2>&5 | |
27270 | ac_status=$? | |
27271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27272 | (exit $ac_status); }; } && | |
27273 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27275 | (eval $ac_try) 2>&5 | |
27276 | ac_status=$? | |
27277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27278 | (exit $ac_status); }; }; then | |
27279 | ac_header_compiler=yes | |
27280 | else | |
27281 | echo "$as_me: failed program was:" >&5 | |
27282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27283 | ||
27284 | ac_header_compiler=no | |
27285 | fi | |
ac1cb8d3 | 27286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27287 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27288 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27289 | ||
27290 | # Is the header present? | |
27291 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27292 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27293 | cat >conftest.$ac_ext <<_ACEOF | |
27294 | /* confdefs.h. */ | |
27295 | _ACEOF | |
27296 | cat confdefs.h >>conftest.$ac_ext | |
27297 | cat >>conftest.$ac_ext <<_ACEOF | |
27298 | /* end confdefs.h. */ | |
27299 | #include <$ac_header> | |
27300 | _ACEOF | |
27301 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27302 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27303 | ac_status=$? | |
27304 | grep -v '^ *+' conftest.er1 >conftest.err | |
27305 | rm -f conftest.er1 | |
27306 | cat conftest.err >&5 | |
27307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27308 | (exit $ac_status); } >/dev/null; then | |
27309 | if test -s conftest.err; then | |
27310 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27311 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
27312 | else |
27313 | ac_cpp_err= | |
27314 | fi | |
27315 | else | |
27316 | ac_cpp_err=yes | |
27317 | fi | |
27318 | if test -z "$ac_cpp_err"; then | |
27319 | ac_header_preproc=yes | |
27320 | else | |
27321 | echo "$as_me: failed program was:" >&5 | |
27322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27323 | ||
27324 | ac_header_preproc=no | |
27325 | fi | |
27326 | rm -f conftest.err conftest.$ac_ext | |
27327 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27328 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27329 | ||
27330 | # So? What about this header? | |
ac1cb8d3 VS |
27331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27332 | yes:no: ) | |
01cb68df RG |
27333 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27334 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27336 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27337 | ac_header_preproc=yes | |
01cb68df | 27338 | ;; |
ac1cb8d3 | 27339 | no:yes:* ) |
01cb68df RG |
27340 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27341 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27342 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27343 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27344 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27345 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27346 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27347 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27349 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27350 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27351 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27352 | ( |
27353 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27354 | ## ----------------------------------------- ## |
27355 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27356 | ## ----------------------------------------- ## | |
01cb68df RG |
27357 | _ASBOX |
27358 | ) | | |
27359 | sed "s/^/$as_me: WARNING: /" >&2 | |
27360 | ;; | |
27361 | esac | |
27362 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27363 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27366 | else | |
ac1cb8d3 | 27367 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27368 | fi |
27369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27371 | ||
27372 | fi | |
27373 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27374 | cat >>confdefs.h <<_ACEOF | |
27375 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27376 | _ACEOF | |
27377 | ||
27378 | else | |
27379 | ||
27380 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27381 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27382 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27383 | |
27384 | fi | |
27385 | ||
27386 | done | |
27387 | ||
a848cd7e SC |
27388 | fi |
27389 | fi | |
27390 | ||
27391 | ||
27392 | USE_OPENGL=0 | |
27393 | if test "$wxUSE_OPENGL" = "yes"; then | |
27394 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27395 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27396 | elif test "$wxUSE_MSW" = 1; then | |
27397 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27398 | else | |
27399 | ||
27400 | ||
27401 | ac_find_includes= | |
27402 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27403 | do | |
27404 | if test -f "$ac_dir/GL/gl.h"; then | |
27405 | ac_find_includes=$ac_dir | |
27406 | break | |
27407 | fi | |
27408 | done | |
27409 | ||
27410 | if test "$ac_find_includes" != "" ; then | |
27411 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27412 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27413 | ||
27414 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27415 | ac_path_to_include="" | |
27416 | else | |
27417 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27418 | result=$? | |
27419 | if test $result = 0; then | |
27420 | ac_path_to_include="" | |
27421 | else | |
27422 | ac_path_to_include=" -I$ac_find_includes" | |
27423 | fi | |
27424 | fi | |
27425 | ||
27426 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27427 | fi | |
27428 | ||
27429 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27430 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27431 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27432 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27434 | fi | |
27435 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27436 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27437 | else | |
27438 | # Is the header compilable? | |
27439 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27440 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27441 | cat >conftest.$ac_ext <<_ACEOF | |
27442 | /* confdefs.h. */ | |
27443 | _ACEOF | |
27444 | cat confdefs.h >>conftest.$ac_ext | |
27445 | cat >>conftest.$ac_ext <<_ACEOF | |
27446 | /* end confdefs.h. */ | |
27447 | $ac_includes_default | |
27448 | #include <GL/gl.h> | |
27449 | _ACEOF | |
27450 | rm -f conftest.$ac_objext | |
27451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27452 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27453 | ac_status=$? |
ac1cb8d3 VS |
27454 | grep -v '^ *+' conftest.er1 >conftest.err |
27455 | rm -f conftest.er1 | |
27456 | cat conftest.err >&5 | |
a848cd7e SC |
27457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27458 | (exit $ac_status); } && | |
2cbbc68d RD |
27459 | { ac_try='test -z "$ac_c_werror_flag" |
27460 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27462 | (eval $ac_try) 2>&5 | |
27463 | ac_status=$? | |
27464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27465 | (exit $ac_status); }; } && | |
27466 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27468 | (eval $ac_try) 2>&5 | |
27469 | ac_status=$? | |
27470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27471 | (exit $ac_status); }; }; then | |
27472 | ac_header_compiler=yes | |
27473 | else | |
27474 | echo "$as_me: failed program was:" >&5 | |
27475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27476 | ||
27477 | ac_header_compiler=no | |
27478 | fi | |
ac1cb8d3 | 27479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27480 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27481 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27482 | ||
27483 | # Is the header present? | |
27484 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27485 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27486 | cat >conftest.$ac_ext <<_ACEOF | |
27487 | /* confdefs.h. */ | |
27488 | _ACEOF | |
27489 | cat confdefs.h >>conftest.$ac_ext | |
27490 | cat >>conftest.$ac_ext <<_ACEOF | |
27491 | /* end confdefs.h. */ | |
27492 | #include <GL/gl.h> | |
27493 | _ACEOF | |
27494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27496 | ac_status=$? | |
27497 | grep -v '^ *+' conftest.er1 >conftest.err | |
27498 | rm -f conftest.er1 | |
27499 | cat conftest.err >&5 | |
27500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27501 | (exit $ac_status); } >/dev/null; then | |
27502 | if test -s conftest.err; then | |
27503 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27505 | else |
27506 | ac_cpp_err= | |
27507 | fi | |
27508 | else | |
27509 | ac_cpp_err=yes | |
27510 | fi | |
27511 | if test -z "$ac_cpp_err"; then | |
27512 | ac_header_preproc=yes | |
27513 | else | |
27514 | echo "$as_me: failed program was:" >&5 | |
27515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27516 | ||
27517 | ac_header_preproc=no | |
27518 | fi | |
27519 | rm -f conftest.err conftest.$ac_ext | |
27520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27521 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27522 | ||
27523 | # So? What about this header? | |
ac1cb8d3 VS |
27524 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27525 | yes:no: ) | |
a848cd7e SC |
27526 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27527 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27528 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27529 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27530 | ac_header_preproc=yes | |
a848cd7e | 27531 | ;; |
ac1cb8d3 | 27532 | no:yes:* ) |
a848cd7e SC |
27533 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27534 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27535 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27536 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27537 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27538 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27539 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27540 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27541 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27542 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27543 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27544 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27545 | ( |
27546 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27547 | ## ----------------------------------------- ## |
27548 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27549 | ## ----------------------------------------- ## | |
a848cd7e SC |
27550 | _ASBOX |
27551 | ) | | |
27552 | sed "s/^/$as_me: WARNING: /" >&2 | |
27553 | ;; | |
27554 | esac | |
27555 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27556 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27557 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27559 | else | |
27560 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27561 | fi | |
27562 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27563 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27564 | ||
27565 | fi | |
27566 | if test $ac_cv_header_GL_gl_h = yes; then | |
27567 | ||
27568 | found_gl=0 | |
27569 | ||
27570 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27571 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27572 | ||
27573 | ac_find_libraries= | |
27574 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27575 | do | |
27576 | for ac_extension in a so sl dylib; do | |
27577 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27578 | ac_find_libraries=$ac_dir | |
27579 | break 2 | |
27580 | fi | |
27581 | done | |
27582 | done | |
27583 | ||
27584 | if test "$ac_find_libraries" != "" ; then | |
27585 | ||
27586 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27587 | result=$? | |
27588 | if test $result = 0; then | |
27589 | ac_path_to_link="" | |
27590 | else | |
27591 | ac_path_to_link=" -L$ac_find_libraries" | |
27592 | fi | |
27593 | ||
27594 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27595 | LDFLAGS_GL="$ac_path_to_link" | |
27596 | fi | |
27597 | ||
27598 | ||
27599 | ac_find_libraries= | |
27600 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27601 | do | |
27602 | for ac_extension in a so sl dylib; do | |
27603 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27604 | ac_find_libraries=$ac_dir | |
27605 | break 2 | |
27606 | fi | |
27607 | done | |
27608 | done | |
27609 | ||
27610 | if test "$ac_find_libraries" != "" ; then | |
27611 | ||
27612 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27613 | result=$? | |
27614 | if test $result = 0; then | |
27615 | ac_path_to_link="" | |
27616 | else | |
27617 | ac_path_to_link=" -L$ac_find_libraries" | |
27618 | fi | |
27619 | ||
27620 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27621 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27622 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27623 | fi | |
27624 | ||
27625 | found_gl=1 | |
27626 | OPENGL_LIBS="-lGL -lGLU" | |
27627 | echo "$as_me:$LINENO: result: yes" >&5 | |
27628 | echo "${ECHO_T}yes" >&6 | |
27629 | fi | |
27630 | fi | |
27631 | ||
27632 | if test "$found_gl" != 1; then | |
27633 | echo "$as_me:$LINENO: result: no" >&5 | |
27634 | echo "${ECHO_T}no" >&6 | |
27635 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27636 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27637 | ||
27638 | ac_find_libraries= | |
27639 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27640 | do | |
27641 | for ac_extension in a so sl dylib; do | |
27642 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27643 | ac_find_libraries=$ac_dir | |
27644 | break 2 | |
27645 | fi | |
27646 | done | |
27647 | done | |
27648 | ||
27649 | if test "$ac_find_libraries" != "" ; then | |
27650 | ||
27651 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27652 | result=$? | |
27653 | if test $result = 0; then | |
27654 | ac_path_to_link="" | |
27655 | else | |
27656 | ac_path_to_link=" -L$ac_find_libraries" | |
27657 | fi | |
27658 | ||
27659 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27660 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27661 | echo "$as_me:$LINENO: result: yes" >&5 | |
27662 | echo "${ECHO_T}yes" >&6 | |
27663 | else | |
27664 | echo "$as_me:$LINENO: result: no" >&5 | |
27665 | echo "${ECHO_T}no" >&6 | |
27666 | fi | |
27667 | fi | |
27668 | ||
27669 | fi | |
27670 | ||
27671 | ||
27672 | ||
27673 | if test "x$OPENGL_LIBS" = "x"; then | |
27674 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27675 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27676 | { (exit 1); exit 1; }; } | |
27677 | fi | |
27678 | fi | |
27679 | ||
27680 | if test "$wxUSE_OPENGL" = "yes"; then | |
27681 | USE_OPENGL=1 | |
27682 | cat >>confdefs.h <<\_ACEOF | |
27683 | #define wxUSE_OPENGL 1 | |
27684 | _ACEOF | |
27685 | ||
27686 | cat >>confdefs.h <<\_ACEOF | |
27687 | #define wxUSE_GLCANVAS 1 | |
27688 | _ACEOF | |
27689 | ||
27690 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27691 | fi | |
27692 | fi | |
27693 | ||
a848cd7e SC |
27694 | |
27695 | if test -n "$TOOLKIT" ; then | |
27696 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27697 | fi | |
27698 | ||
a848cd7e SC |
27699 | |
27700 | ||
27701 | if test "$wxUSE_SHARED" = "yes"; then | |
27702 | case "${host}" in | |
27703 | *-pc-msdosdjgpp ) | |
27704 | wxUSE_SHARED=no | |
27705 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27706 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27707 | ;; | |
27708 | esac | |
27709 | fi | |
27710 | ||
a848cd7e | 27711 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
27712 | |
27713 | ||
27714 | found_versioning=no | |
27715 | ||
27716 | ||
27717 | if test $found_versioning = no ; then | |
27718 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27719 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27720 | if test "${wx_cv_version_script+set}" = set; then | |
27721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27722 | else | |
27723 | ||
27724 | echo "VER_1 { *; };" >conftest.sym | |
27725 | echo "int main() { return 0; }" >conftest.cpp | |
27726 | ||
27727 | if { ac_try=' | |
27728 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27729 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27731 | (eval $ac_try) 2>&5 | |
27732 | ac_status=$? | |
27733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27734 | (exit $ac_status); }; } ; then | |
27735 | if test -s conftest.stderr ; then | |
27736 | wx_cv_version_script=no | |
27737 | else | |
27738 | wx_cv_version_script=yes | |
27739 | fi | |
27740 | else | |
27741 | wx_cv_version_script=no | |
27742 | fi | |
27743 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27744 | ||
27745 | fi | |
27746 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27747 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27748 | if test $wx_cv_version_script = yes ; then | |
27749 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27750 | fi | |
27751 | fi | |
27752 | ||
27753 | ||
27754 | case "${host}" in | |
27755 | *-*-linux* | *-*-gnu* ) | |
27756 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 27757 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
27758 | ;; |
27759 | ||
27760 | *-*-solaris2* ) | |
27761 | if test "$GCC" = yes ; then | |
27762 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27763 | ||
27764 | saveLdflags="$LDFLAGS" | |
27765 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27766 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27767 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27768 | cat >conftest.$ac_ext <<_ACEOF | |
27769 | /* confdefs.h. */ | |
27770 | _ACEOF | |
27771 | cat confdefs.h >>conftest.$ac_ext | |
27772 | cat >>conftest.$ac_ext <<_ACEOF | |
27773 | /* end confdefs.h. */ | |
27774 | ||
27775 | int | |
27776 | main () | |
27777 | { | |
27778 | ||
27779 | ; | |
27780 | return 0; | |
27781 | } | |
27782 | _ACEOF | |
27783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27785 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27786 | ac_status=$? |
ac1cb8d3 VS |
27787 | grep -v '^ *+' conftest.er1 >conftest.err |
27788 | rm -f conftest.er1 | |
27789 | cat conftest.err >&5 | |
a848cd7e SC |
27790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27791 | (exit $ac_status); } && | |
2cbbc68d RD |
27792 | { ac_try='test -z "$ac_c_werror_flag" |
27793 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27795 | (eval $ac_try) 2>&5 | |
27796 | ac_status=$? | |
27797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27798 | (exit $ac_status); }; } && | |
27799 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27801 | (eval $ac_try) 2>&5 | |
27802 | ac_status=$? | |
27803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27804 | (exit $ac_status); }; }; then | |
27805 | ||
27806 | echo "$as_me:$LINENO: result: yes" >&5 | |
27807 | echo "${ECHO_T}yes" >&6 | |
27808 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 27809 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
27810 | |
27811 | else | |
27812 | echo "$as_me: failed program was:" >&5 | |
27813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27814 | ||
27815 | ||
27816 | echo "$as_me:$LINENO: result: no" >&5 | |
27817 | echo "${ECHO_T}no" >&6 | |
27818 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27819 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27820 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27821 | cat >conftest.$ac_ext <<_ACEOF | |
27822 | /* confdefs.h. */ | |
27823 | _ACEOF | |
27824 | cat confdefs.h >>conftest.$ac_ext | |
27825 | cat >>conftest.$ac_ext <<_ACEOF | |
27826 | /* end confdefs.h. */ | |
27827 | ||
27828 | int | |
27829 | main () | |
27830 | { | |
27831 | ||
27832 | ; | |
27833 | return 0; | |
27834 | } | |
27835 | _ACEOF | |
27836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27838 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27839 | ac_status=$? |
ac1cb8d3 VS |
27840 | grep -v '^ *+' conftest.er1 >conftest.err |
27841 | rm -f conftest.er1 | |
27842 | cat conftest.err >&5 | |
a848cd7e SC |
27843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27844 | (exit $ac_status); } && | |
2cbbc68d RD |
27845 | { ac_try='test -z "$ac_c_werror_flag" |
27846 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27848 | (eval $ac_try) 2>&5 | |
27849 | ac_status=$? | |
27850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27851 | (exit $ac_status); }; } && | |
27852 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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 | ||
ffa0583f | 27859 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 27860 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
27861 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
27862 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
27863 | ||
a848cd7e SC |
27864 | else |
27865 | echo "$as_me: failed program was:" >&5 | |
27866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27867 | ||
27868 | ||
27869 | echo "$as_me:$LINENO: result: no" >&5 | |
27870 | echo "${ECHO_T}no" >&6 | |
27871 | ||
27872 | fi | |
ac1cb8d3 VS |
27873 | rm -f conftest.err conftest.$ac_objext \ |
27874 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27875 | |
27876 | fi | |
ac1cb8d3 VS |
27877 | rm -f conftest.err conftest.$ac_objext \ |
27878 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27879 | LDFLAGS="$saveLdflags" |
27880 | else | |
a848cd7e | 27881 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 27882 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
27883 | fi |
27884 | ;; | |
27885 | ||
27886 | powerpc-*-darwin* ) | |
27887 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27888 | cat <<EOF >change-install-names | |
27889 | #!/bin/sh | |
27890 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27891 | inst_cmd="install_name_tool " | |
27892 | for i in \${libnames} ; do | |
27893 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27894 | done | |
27895 | \${inst_cmd} \${3} | |
27896 | EOF | |
27897 | chmod +x change-install-names | |
27898 | ;; | |
27899 | ||
27900 | *-*-cygwin* | *-*-mingw32* ) | |
27901 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27902 | ;; | |
27903 | ||
27904 | esac | |
ceec2216 | 27905 | |
ffa0583f RL |
27906 | if test $wxUSE_RPATH = "no"; then |
27907 | SAMPLES_RPATH_FLAG='' | |
27908 | SAMPLES_RPATH_POSTLINK='' | |
27909 | WXCONFIG_RPATH='' | |
27910 | fi | |
27911 | ||
27912 | SHARED=1 | |
27913 | ||
27914 | else | |
27915 | ||
ceec2216 RL |
27916 | config_linkage_component="-static" |
27917 | SHARED=0 | |
ffa0583f | 27918 | |
ceec2216 | 27919 | fi |
a848cd7e | 27920 | |
a848cd7e | 27921 | |
ceec2216 RL |
27922 | UNICODE=0 |
27923 | lib_unicode_suffix= | |
27924 | WX_CHARTYPE="ansi" | |
27925 | if test "$wxUSE_UNICODE" = "yes"; then | |
27926 | lib_unicode_suffix=u | |
27927 | WX_CHARTYPE="unicode" | |
27928 | UNICODE=1 | |
a848cd7e SC |
27929 | fi |
27930 | ||
ceec2216 RL |
27931 | lib_debug_suffix= |
27932 | WX_DEBUGTYPE="release" | |
27933 | DEBUG_FLAG=0 | |
27934 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27935 | lib_debug_suffix=d | |
27936 | WX_DEBUGTYPE="debug" | |
27937 | DEBUG_FLAG=1 | |
27938 | fi | |
a848cd7e | 27939 | |
ceec2216 RL |
27940 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
27941 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 27942 | |
ceec2216 RL |
27943 | DEBUG_INFO=0 |
27944 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27945 | DEBUG_INFO=1 | |
27946 | fi | |
a848cd7e | 27947 | |
ceec2216 | 27948 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 27949 | |
ceec2216 | 27950 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 27951 | |
ceec2216 | 27952 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 27953 | |
ceec2216 RL |
27954 | if test "$cross_compiling" = "yes"; then |
27955 | HOST_SUFFIX="-$host_alias" | |
27956 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
27957 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
27958 | fi |
27959 | ||
dd21ced8 | 27960 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
27961 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
27962 | ||
27963 | ||
27964 | ||
a848cd7e | 27965 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
27966 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
27967 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 27968 | |
a848cd7e | 27969 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
27970 | |
27971 | # Extract the first word of "Rez", so it can be a program name with args. | |
27972 | set dummy Rez; ac_word=$2 | |
27973 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27975 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27977 | else | |
27978 | if test -n "$RESCOMP"; then | |
27979 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27980 | else | |
27981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27982 | for as_dir in $PATH | |
27983 | do | |
27984 | IFS=$as_save_IFS | |
27985 | test -z "$as_dir" && as_dir=. | |
27986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27987 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27988 | ac_cv_prog_RESCOMP="Rez" | |
27989 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27990 | break 2 | |
27991 | fi | |
27992 | done | |
27993 | done | |
27994 | ||
27995 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
27996 | fi | |
27997 | fi | |
27998 | RESCOMP=$ac_cv_prog_RESCOMP | |
27999 | if test -n "$RESCOMP"; then | |
28000 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
28001 | echo "${ECHO_T}$RESCOMP" >&6 | |
28002 | else | |
28003 | echo "$as_me:$LINENO: result: no" >&5 | |
28004 | echo "${ECHO_T}no" >&6 | |
28005 | fi | |
28006 | ||
28007 | # Extract the first word of "DeRez", so it can be a program name with args. | |
28008 | set dummy DeRez; ac_word=$2 | |
28009 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28010 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28011 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28013 | else | |
28014 | if test -n "$DEREZ"; then | |
28015 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
28016 | else | |
28017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28018 | for as_dir in $PATH | |
28019 | do | |
28020 | IFS=$as_save_IFS | |
28021 | test -z "$as_dir" && as_dir=. | |
28022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28023 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28024 | ac_cv_prog_DEREZ="DeRez" | |
28025 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28026 | break 2 | |
28027 | fi | |
28028 | done | |
28029 | done | |
28030 | ||
28031 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
28032 | fi | |
28033 | fi | |
28034 | DEREZ=$ac_cv_prog_DEREZ | |
28035 | if test -n "$DEREZ"; then | |
28036 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
28037 | echo "${ECHO_T}$DEREZ" >&6 | |
28038 | else | |
28039 | echo "$as_me:$LINENO: result: no" >&5 | |
28040 | echo "${ECHO_T}no" >&6 | |
28041 | fi | |
28042 | ||
28043 | # Extract the first word of "SetFile", so it can be a program name with args. | |
28044 | set dummy SetFile; ac_word=$2 | |
28045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28047 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28049 | else | |
28050 | if test -n "$SETFILE"; then | |
28051 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28052 | else | |
28053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28054 | for as_dir in $PATH | |
28055 | do | |
28056 | IFS=$as_save_IFS | |
28057 | test -z "$as_dir" && as_dir=. | |
28058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28060 | ac_cv_prog_SETFILE="SetFile" | |
28061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28062 | break 2 | |
28063 | fi | |
28064 | done | |
28065 | done | |
28066 | ||
28067 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
28068 | fi | |
28069 | fi | |
28070 | SETFILE=$ac_cv_prog_SETFILE | |
28071 | if test -n "$SETFILE"; then | |
28072 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
28073 | echo "${ECHO_T}$SETFILE" >&6 | |
28074 | else | |
28075 | echo "$as_me:$LINENO: result: no" >&5 | |
28076 | echo "${ECHO_T}no" >&6 | |
28077 | fi | |
28078 | ||
28079 | ||
28080 | MACSETFILE="\$(SETFILE)" | |
28081 | ||
28082 | if test "$wxUSE_MAC" = 1; then | |
28083 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
28084 | ||
28085 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28086 | else | |
28087 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28088 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28089 | fi | |
28090 | else | |
ffa0583f RL |
28091 | MACSETFILE="@true" |
28092 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
28093 | |
28094 | if test "$wxUSE_PM" = 1; then | |
28095 | MACRESCOMP="emxbind -ep" | |
28096 | else | |
ffa0583f | 28097 | MACRESCOMP="@true" |
a848cd7e SC |
28098 | fi |
28099 | fi | |
28100 | ||
28101 | ||
28102 | ||
28103 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
28104 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28105 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28107 | else | |
28108 | cat >conftest.$ac_ext <<_ACEOF | |
28109 | /* confdefs.h. */ | |
28110 | _ACEOF | |
28111 | cat confdefs.h >>conftest.$ac_ext | |
28112 | cat >>conftest.$ac_ext <<_ACEOF | |
28113 | /* end confdefs.h. */ | |
28114 | $ac_includes_default | |
28115 | int | |
28116 | main () | |
28117 | { | |
28118 | if ((mode_t *) 0) | |
28119 | return 0; | |
28120 | if (sizeof (mode_t)) | |
28121 | return 0; | |
28122 | ; | |
28123 | return 0; | |
28124 | } | |
28125 | _ACEOF | |
28126 | rm -f conftest.$ac_objext | |
28127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28129 | ac_status=$? |
ac1cb8d3 VS |
28130 | grep -v '^ *+' conftest.er1 >conftest.err |
28131 | rm -f conftest.er1 | |
28132 | cat conftest.err >&5 | |
a848cd7e SC |
28133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28134 | (exit $ac_status); } && | |
2cbbc68d RD |
28135 | { ac_try='test -z "$ac_c_werror_flag" |
28136 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28138 | (eval $ac_try) 2>&5 | |
28139 | ac_status=$? | |
28140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28141 | (exit $ac_status); }; } && | |
28142 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28144 | (eval $ac_try) 2>&5 | |
28145 | ac_status=$? | |
28146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28147 | (exit $ac_status); }; }; then | |
28148 | ac_cv_type_mode_t=yes | |
28149 | else | |
28150 | echo "$as_me: failed program was:" >&5 | |
28151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28152 | ||
28153 | ac_cv_type_mode_t=no | |
28154 | fi | |
ac1cb8d3 | 28155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28156 | fi |
28157 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28158 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28159 | if test $ac_cv_type_mode_t = yes; then | |
28160 | : | |
28161 | else | |
28162 | ||
28163 | cat >>confdefs.h <<_ACEOF | |
28164 | #define mode_t int | |
28165 | _ACEOF | |
28166 | ||
28167 | fi | |
28168 | ||
28169 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28170 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28171 | if test "${ac_cv_type_off_t+set}" = set; then | |
28172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28173 | else | |
28174 | cat >conftest.$ac_ext <<_ACEOF | |
28175 | /* confdefs.h. */ | |
28176 | _ACEOF | |
28177 | cat confdefs.h >>conftest.$ac_ext | |
28178 | cat >>conftest.$ac_ext <<_ACEOF | |
28179 | /* end confdefs.h. */ | |
28180 | $ac_includes_default | |
28181 | int | |
28182 | main () | |
28183 | { | |
28184 | if ((off_t *) 0) | |
28185 | return 0; | |
28186 | if (sizeof (off_t)) | |
28187 | return 0; | |
28188 | ; | |
28189 | return 0; | |
28190 | } | |
28191 | _ACEOF | |
28192 | rm -f conftest.$ac_objext | |
28193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28194 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28195 | ac_status=$? |
ac1cb8d3 VS |
28196 | grep -v '^ *+' conftest.er1 >conftest.err |
28197 | rm -f conftest.er1 | |
28198 | cat conftest.err >&5 | |
a848cd7e SC |
28199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28200 | (exit $ac_status); } && | |
2cbbc68d RD |
28201 | { ac_try='test -z "$ac_c_werror_flag" |
28202 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28204 | (eval $ac_try) 2>&5 | |
28205 | ac_status=$? | |
28206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28207 | (exit $ac_status); }; } && | |
28208 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28210 | (eval $ac_try) 2>&5 | |
28211 | ac_status=$? | |
28212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28213 | (exit $ac_status); }; }; then | |
28214 | ac_cv_type_off_t=yes | |
28215 | else | |
28216 | echo "$as_me: failed program was:" >&5 | |
28217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28218 | ||
28219 | ac_cv_type_off_t=no | |
28220 | fi | |
ac1cb8d3 | 28221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28222 | fi |
28223 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28224 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28225 | if test $ac_cv_type_off_t = yes; then | |
28226 | : | |
28227 | else | |
28228 | ||
28229 | cat >>confdefs.h <<_ACEOF | |
28230 | #define off_t long | |
28231 | _ACEOF | |
28232 | ||
28233 | fi | |
28234 | ||
28235 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28236 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28237 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28239 | else | |
28240 | cat >conftest.$ac_ext <<_ACEOF | |
28241 | /* confdefs.h. */ | |
28242 | _ACEOF | |
28243 | cat confdefs.h >>conftest.$ac_ext | |
28244 | cat >>conftest.$ac_ext <<_ACEOF | |
28245 | /* end confdefs.h. */ | |
28246 | $ac_includes_default | |
28247 | int | |
28248 | main () | |
28249 | { | |
28250 | if ((pid_t *) 0) | |
28251 | return 0; | |
28252 | if (sizeof (pid_t)) | |
28253 | return 0; | |
28254 | ; | |
28255 | return 0; | |
28256 | } | |
28257 | _ACEOF | |
28258 | rm -f conftest.$ac_objext | |
28259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28261 | ac_status=$? |
ac1cb8d3 VS |
28262 | grep -v '^ *+' conftest.er1 >conftest.err |
28263 | rm -f conftest.er1 | |
28264 | cat conftest.err >&5 | |
a848cd7e SC |
28265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28266 | (exit $ac_status); } && | |
2cbbc68d RD |
28267 | { ac_try='test -z "$ac_c_werror_flag" |
28268 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28270 | (eval $ac_try) 2>&5 | |
28271 | ac_status=$? | |
28272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28273 | (exit $ac_status); }; } && | |
28274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28276 | (eval $ac_try) 2>&5 | |
28277 | ac_status=$? | |
28278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28279 | (exit $ac_status); }; }; then | |
28280 | ac_cv_type_pid_t=yes | |
28281 | else | |
28282 | echo "$as_me: failed program was:" >&5 | |
28283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28284 | ||
28285 | ac_cv_type_pid_t=no | |
28286 | fi | |
ac1cb8d3 | 28287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28288 | fi |
28289 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28290 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28291 | if test $ac_cv_type_pid_t = yes; then | |
28292 | : | |
28293 | else | |
28294 | ||
28295 | cat >>confdefs.h <<_ACEOF | |
28296 | #define pid_t int | |
28297 | _ACEOF | |
28298 | ||
28299 | fi | |
28300 | ||
28301 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28302 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28303 | if test "${ac_cv_type_size_t+set}" = set; then | |
28304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28305 | else | |
28306 | cat >conftest.$ac_ext <<_ACEOF | |
28307 | /* confdefs.h. */ | |
28308 | _ACEOF | |
28309 | cat confdefs.h >>conftest.$ac_ext | |
28310 | cat >>conftest.$ac_ext <<_ACEOF | |
28311 | /* end confdefs.h. */ | |
28312 | $ac_includes_default | |
28313 | int | |
28314 | main () | |
28315 | { | |
28316 | if ((size_t *) 0) | |
28317 | return 0; | |
28318 | if (sizeof (size_t)) | |
28319 | return 0; | |
28320 | ; | |
28321 | return 0; | |
28322 | } | |
28323 | _ACEOF | |
28324 | rm -f conftest.$ac_objext | |
28325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28326 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28327 | ac_status=$? |
ac1cb8d3 VS |
28328 | grep -v '^ *+' conftest.er1 >conftest.err |
28329 | rm -f conftest.er1 | |
28330 | cat conftest.err >&5 | |
a848cd7e SC |
28331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28332 | (exit $ac_status); } && | |
2cbbc68d RD |
28333 | { ac_try='test -z "$ac_c_werror_flag" |
28334 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28336 | (eval $ac_try) 2>&5 | |
28337 | ac_status=$? | |
28338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28339 | (exit $ac_status); }; } && | |
28340 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28342 | (eval $ac_try) 2>&5 | |
28343 | ac_status=$? | |
28344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28345 | (exit $ac_status); }; }; then | |
28346 | ac_cv_type_size_t=yes | |
28347 | else | |
28348 | echo "$as_me: failed program was:" >&5 | |
28349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28350 | ||
28351 | ac_cv_type_size_t=no | |
28352 | fi | |
ac1cb8d3 | 28353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28354 | fi |
28355 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28356 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28357 | if test $ac_cv_type_size_t = yes; then | |
28358 | : | |
28359 | else | |
28360 | ||
28361 | cat >>confdefs.h <<_ACEOF | |
28362 | #define size_t unsigned | |
28363 | _ACEOF | |
28364 | ||
28365 | fi | |
28366 | ||
28367 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28368 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28369 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28371 | else | |
28372 | cat >conftest.$ac_ext <<_ACEOF | |
28373 | /* confdefs.h. */ | |
28374 | _ACEOF | |
28375 | cat confdefs.h >>conftest.$ac_ext | |
28376 | cat >>conftest.$ac_ext <<_ACEOF | |
28377 | /* end confdefs.h. */ | |
28378 | #include <sys/types.h> | |
28379 | ||
28380 | _ACEOF | |
28381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28382 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28383 | ac_cv_type_uid_t=yes | |
28384 | else | |
28385 | ac_cv_type_uid_t=no | |
28386 | fi | |
28387 | rm -f conftest* | |
28388 | ||
28389 | fi | |
28390 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28391 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28392 | if test $ac_cv_type_uid_t = no; then | |
28393 | ||
28394 | cat >>confdefs.h <<\_ACEOF | |
28395 | #define uid_t int | |
28396 | _ACEOF | |
28397 | ||
28398 | ||
28399 | cat >>confdefs.h <<\_ACEOF | |
28400 | #define gid_t int | |
28401 | _ACEOF | |
28402 | ||
28403 | fi | |
28404 | ||
28405 | ||
28406 | ||
28407 | ||
28408 | ac_ext=cc | |
28409 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28410 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28411 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28412 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28413 | ||
28414 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28415 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28416 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28418 | else | |
28419 | ||
28420 | cat >conftest.$ac_ext <<_ACEOF | |
28421 | /* confdefs.h. */ | |
28422 | _ACEOF | |
28423 | cat confdefs.h >>conftest.$ac_ext | |
28424 | cat >>conftest.$ac_ext <<_ACEOF | |
28425 | /* end confdefs.h. */ | |
28426 | #include <stddef.h> | |
28427 | int | |
28428 | main () | |
28429 | { | |
28430 | ||
28431 | return 0; } | |
28432 | ||
28433 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28434 | ||
28435 | int bar() { | |
28436 | ||
28437 | ; | |
28438 | return 0; | |
28439 | } | |
28440 | _ACEOF | |
28441 | rm -f conftest.$ac_objext | |
28442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28443 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28444 | ac_status=$? |
ac1cb8d3 VS |
28445 | grep -v '^ *+' conftest.er1 >conftest.err |
28446 | rm -f conftest.er1 | |
28447 | cat conftest.err >&5 | |
a848cd7e SC |
28448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28449 | (exit $ac_status); } && | |
2cbbc68d RD |
28450 | { ac_try='test -z "$ac_cxx_werror_flag" |
28451 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28453 | (eval $ac_try) 2>&5 | |
28454 | ac_status=$? | |
28455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28456 | (exit $ac_status); }; } && | |
28457 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28459 | (eval $ac_try) 2>&5 | |
28460 | ac_status=$? | |
28461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28462 | (exit $ac_status); }; }; then | |
28463 | wx_cv_size_t_is_uint=no | |
28464 | else | |
28465 | echo "$as_me: failed program was:" >&5 | |
28466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28467 | ||
28468 | wx_cv_size_t_is_uint=yes | |
28469 | ||
28470 | fi | |
ac1cb8d3 | 28471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28472 | |
28473 | ||
28474 | fi | |
28475 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28476 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28477 | ||
28478 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28479 | cat >>confdefs.h <<\_ACEOF | |
28480 | #define wxSIZE_T_IS_UINT 1 | |
28481 | _ACEOF | |
28482 | ||
28483 | else | |
28484 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28485 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28486 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28488 | else | |
28489 | cat >conftest.$ac_ext <<_ACEOF | |
28490 | /* confdefs.h. */ | |
28491 | _ACEOF | |
28492 | cat confdefs.h >>conftest.$ac_ext | |
28493 | cat >>conftest.$ac_ext <<_ACEOF | |
28494 | /* end confdefs.h. */ | |
28495 | #include <stddef.h> | |
28496 | int | |
28497 | main () | |
28498 | { | |
28499 | ||
28500 | return 0; } | |
28501 | ||
28502 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28503 | ||
28504 | int bar() { | |
28505 | ||
28506 | ; | |
28507 | return 0; | |
28508 | } | |
28509 | _ACEOF | |
28510 | rm -f conftest.$ac_objext | |
28511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28512 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28513 | ac_status=$? |
ac1cb8d3 VS |
28514 | grep -v '^ *+' conftest.er1 >conftest.err |
28515 | rm -f conftest.er1 | |
28516 | cat conftest.err >&5 | |
a848cd7e SC |
28517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28518 | (exit $ac_status); } && | |
2cbbc68d RD |
28519 | { ac_try='test -z "$ac_cxx_werror_flag" |
28520 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28522 | (eval $ac_try) 2>&5 | |
28523 | ac_status=$? | |
28524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28525 | (exit $ac_status); }; } && | |
28526 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28528 | (eval $ac_try) 2>&5 | |
28529 | ac_status=$? | |
28530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28531 | (exit $ac_status); }; }; then | |
28532 | wx_cv_size_t_is_ulong=no | |
28533 | else | |
28534 | echo "$as_me: failed program was:" >&5 | |
28535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28536 | ||
28537 | wx_cv_size_t_is_ulong=yes | |
28538 | ||
28539 | fi | |
ac1cb8d3 | 28540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28541 | |
28542 | fi | |
28543 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28544 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28545 | ||
28546 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28547 | cat >>confdefs.h <<\_ACEOF | |
28548 | #define wxSIZE_T_IS_ULONG 1 | |
28549 | _ACEOF | |
28550 | ||
28551 | fi | |
28552 | fi | |
28553 | ||
28554 | ac_ext=c | |
28555 | ac_cpp='$CPP $CPPFLAGS' | |
28556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28559 | ||
28560 | ||
28561 | ||
28562 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28563 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28564 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28566 | else | |
28567 | ||
28568 | cat >conftest.$ac_ext <<_ACEOF | |
28569 | /* confdefs.h. */ | |
28570 | _ACEOF | |
28571 | cat confdefs.h >>conftest.$ac_ext | |
28572 | cat >>conftest.$ac_ext <<_ACEOF | |
28573 | /* end confdefs.h. */ | |
28574 | #include <pwd.h> | |
28575 | int | |
28576 | main () | |
28577 | { | |
28578 | ||
28579 | char *p; | |
28580 | struct passwd *pw; | |
28581 | p = pw->pw_gecos; | |
28582 | ||
28583 | ; | |
28584 | return 0; | |
28585 | } | |
28586 | _ACEOF | |
28587 | rm -f conftest.$ac_objext | |
28588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28589 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28590 | ac_status=$? |
ac1cb8d3 VS |
28591 | grep -v '^ *+' conftest.er1 >conftest.err |
28592 | rm -f conftest.er1 | |
28593 | cat conftest.err >&5 | |
a848cd7e SC |
28594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28595 | (exit $ac_status); } && | |
2cbbc68d RD |
28596 | { ac_try='test -z "$ac_c_werror_flag" |
28597 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28599 | (eval $ac_try) 2>&5 | |
28600 | ac_status=$? | |
28601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28602 | (exit $ac_status); }; } && | |
28603 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28605 | (eval $ac_try) 2>&5 | |
28606 | ac_status=$? | |
28607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28608 | (exit $ac_status); }; }; then | |
28609 | ||
28610 | wx_cv_struct_pw_gecos=yes | |
28611 | ||
28612 | else | |
28613 | echo "$as_me: failed program was:" >&5 | |
28614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28615 | ||
28616 | ||
28617 | wx_cv_struct_pw_gecos=no | |
28618 | ||
28619 | ||
28620 | fi | |
ac1cb8d3 | 28621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28622 | |
28623 | ||
28624 | fi | |
28625 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28626 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28627 | ||
28628 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28629 | cat >>confdefs.h <<\_ACEOF | |
28630 | #define HAVE_PW_GECOS 1 | |
28631 | _ACEOF | |
28632 | ||
28633 | fi | |
28634 | ||
28635 | ||
28636 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28637 | cat >>confdefs.h <<\_ACEOF | |
28638 | #define wxUSE_WCHAR_T 1 | |
28639 | _ACEOF | |
28640 | ||
28641 | ||
28642 | WCSLEN_FOUND=0 | |
28643 | WCHAR_LINK= | |
28644 | ||
28645 | for ac_func in wcslen | |
28646 | do | |
28647 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28648 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28649 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28650 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28652 | else | |
28653 | cat >conftest.$ac_ext <<_ACEOF | |
28654 | /* confdefs.h. */ | |
28655 | _ACEOF | |
28656 | cat confdefs.h >>conftest.$ac_ext | |
28657 | cat >>conftest.$ac_ext <<_ACEOF | |
28658 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28659 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28660 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28661 | #define $ac_func innocuous_$ac_func | |
28662 | ||
a848cd7e SC |
28663 | /* System header to define __stub macros and hopefully few prototypes, |
28664 | which can conflict with char $ac_func (); below. | |
28665 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28666 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28667 | |
a848cd7e SC |
28668 | #ifdef __STDC__ |
28669 | # include <limits.h> | |
28670 | #else | |
28671 | # include <assert.h> | |
28672 | #endif | |
ac1cb8d3 VS |
28673 | |
28674 | #undef $ac_func | |
28675 | ||
a848cd7e SC |
28676 | /* Override any gcc2 internal prototype to avoid an error. */ |
28677 | #ifdef __cplusplus | |
28678 | extern "C" | |
28679 | { | |
28680 | #endif | |
28681 | /* We use char because int might match the return type of a gcc2 | |
28682 | builtin and then its argument prototype would still apply. */ | |
28683 | char $ac_func (); | |
28684 | /* The GNU C library defines this for functions which it implements | |
28685 | to always fail with ENOSYS. Some functions are actually named | |
28686 | something starting with __ and the normal name is an alias. */ | |
28687 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28688 | choke me | |
28689 | #else | |
28690 | char (*f) () = $ac_func; | |
28691 | #endif | |
28692 | #ifdef __cplusplus | |
28693 | } | |
28694 | #endif | |
28695 | ||
28696 | int | |
28697 | main () | |
28698 | { | |
28699 | return f != $ac_func; | |
28700 | ; | |
28701 | return 0; | |
28702 | } | |
28703 | _ACEOF | |
28704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28706 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28707 | ac_status=$? |
ac1cb8d3 VS |
28708 | grep -v '^ *+' conftest.er1 >conftest.err |
28709 | rm -f conftest.er1 | |
28710 | cat conftest.err >&5 | |
a848cd7e SC |
28711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28712 | (exit $ac_status); } && | |
2cbbc68d RD |
28713 | { ac_try='test -z "$ac_c_werror_flag" |
28714 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28716 | (eval $ac_try) 2>&5 | |
28717 | ac_status=$? | |
28718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28719 | (exit $ac_status); }; } && | |
28720 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28722 | (eval $ac_try) 2>&5 | |
28723 | ac_status=$? | |
28724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28725 | (exit $ac_status); }; }; then | |
28726 | eval "$as_ac_var=yes" | |
28727 | else | |
28728 | echo "$as_me: failed program was:" >&5 | |
28729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28730 | ||
28731 | eval "$as_ac_var=no" | |
28732 | fi | |
ac1cb8d3 VS |
28733 | rm -f conftest.err conftest.$ac_objext \ |
28734 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28735 | fi |
28736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28737 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28738 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28739 | cat >>confdefs.h <<_ACEOF | |
28740 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28741 | _ACEOF | |
28742 | WCSLEN_FOUND=1 | |
28743 | fi | |
28744 | done | |
28745 | ||
28746 | ||
28747 | if test "$WCSLEN_FOUND" = 0; then | |
28748 | if test "$TOOLKIT" = "MSW"; then | |
28749 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28750 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28751 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28753 | else | |
28754 | ac_check_lib_save_LIBS=$LIBS | |
28755 | LIBS="-lmsvcrt $LIBS" | |
28756 | cat >conftest.$ac_ext <<_ACEOF | |
28757 | /* confdefs.h. */ | |
28758 | _ACEOF | |
28759 | cat confdefs.h >>conftest.$ac_ext | |
28760 | cat >>conftest.$ac_ext <<_ACEOF | |
28761 | /* end confdefs.h. */ | |
28762 | ||
28763 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28764 | #ifdef __cplusplus | |
28765 | extern "C" | |
28766 | #endif | |
28767 | /* We use char because int might match the return type of a gcc2 | |
28768 | builtin and then its argument prototype would still apply. */ | |
28769 | char wcslen (); | |
28770 | int | |
28771 | main () | |
28772 | { | |
28773 | wcslen (); | |
28774 | ; | |
28775 | return 0; | |
28776 | } | |
28777 | _ACEOF | |
28778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28780 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28781 | ac_status=$? |
ac1cb8d3 VS |
28782 | grep -v '^ *+' conftest.er1 >conftest.err |
28783 | rm -f conftest.er1 | |
28784 | cat conftest.err >&5 | |
a848cd7e SC |
28785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28786 | (exit $ac_status); } && | |
2cbbc68d RD |
28787 | { ac_try='test -z "$ac_c_werror_flag" |
28788 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28790 | (eval $ac_try) 2>&5 | |
28791 | ac_status=$? | |
28792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28793 | (exit $ac_status); }; } && | |
28794 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28796 | (eval $ac_try) 2>&5 | |
28797 | ac_status=$? | |
28798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28799 | (exit $ac_status); }; }; then | |
28800 | ac_cv_lib_msvcrt_wcslen=yes | |
28801 | else | |
28802 | echo "$as_me: failed program was:" >&5 | |
28803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28804 | ||
28805 | ac_cv_lib_msvcrt_wcslen=no | |
28806 | fi | |
ac1cb8d3 VS |
28807 | rm -f conftest.err conftest.$ac_objext \ |
28808 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28809 | LIBS=$ac_check_lib_save_LIBS |
28810 | fi | |
28811 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28812 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28813 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28814 | WCHAR_OK=1 | |
28815 | fi | |
28816 | ||
28817 | else | |
28818 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28819 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28820 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28822 | else | |
28823 | ac_check_lib_save_LIBS=$LIBS | |
28824 | LIBS="-lw $LIBS" | |
28825 | cat >conftest.$ac_ext <<_ACEOF | |
28826 | /* confdefs.h. */ | |
28827 | _ACEOF | |
28828 | cat confdefs.h >>conftest.$ac_ext | |
28829 | cat >>conftest.$ac_ext <<_ACEOF | |
28830 | /* end confdefs.h. */ | |
28831 | ||
28832 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28833 | #ifdef __cplusplus | |
28834 | extern "C" | |
28835 | #endif | |
28836 | /* We use char because int might match the return type of a gcc2 | |
28837 | builtin and then its argument prototype would still apply. */ | |
28838 | char wcslen (); | |
28839 | int | |
28840 | main () | |
28841 | { | |
28842 | wcslen (); | |
28843 | ; | |
28844 | return 0; | |
28845 | } | |
28846 | _ACEOF | |
28847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28849 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28850 | ac_status=$? |
ac1cb8d3 VS |
28851 | grep -v '^ *+' conftest.er1 >conftest.err |
28852 | rm -f conftest.er1 | |
28853 | cat conftest.err >&5 | |
a848cd7e SC |
28854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28855 | (exit $ac_status); } && | |
2cbbc68d RD |
28856 | { ac_try='test -z "$ac_c_werror_flag" |
28857 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28859 | (eval $ac_try) 2>&5 | |
28860 | ac_status=$? | |
28861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28862 | (exit $ac_status); }; } && | |
28863 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28865 | (eval $ac_try) 2>&5 | |
28866 | ac_status=$? | |
28867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28868 | (exit $ac_status); }; }; then | |
28869 | ac_cv_lib_w_wcslen=yes | |
28870 | else | |
28871 | echo "$as_me: failed program was:" >&5 | |
28872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28873 | ||
28874 | ac_cv_lib_w_wcslen=no | |
28875 | fi | |
ac1cb8d3 VS |
28876 | rm -f conftest.err conftest.$ac_objext \ |
28877 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28878 | LIBS=$ac_check_lib_save_LIBS |
28879 | fi | |
28880 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28881 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28882 | if test $ac_cv_lib_w_wcslen = yes; then | |
28883 | ||
28884 | WCHAR_LINK=" -lw" | |
28885 | WCSLEN_FOUND=1 | |
28886 | ||
28887 | fi | |
28888 | ||
28889 | fi | |
28890 | fi | |
28891 | ||
28892 | if test "$WCSLEN_FOUND" = 1; then | |
28893 | cat >>confdefs.h <<\_ACEOF | |
28894 | #define HAVE_WCSLEN 1 | |
28895 | _ACEOF | |
28896 | ||
28897 | fi | |
28898 | ||
473276a9 VS |
28899 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28900 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28901 | fi | |
28902 | ||
a848cd7e SC |
28903 | |
28904 | for ac_func in wcsrtombs | |
28905 | do | |
28906 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28907 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28908 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28909 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28911 | else | |
28912 | cat >conftest.$ac_ext <<_ACEOF | |
28913 | /* confdefs.h. */ | |
28914 | _ACEOF | |
28915 | cat confdefs.h >>conftest.$ac_ext | |
28916 | cat >>conftest.$ac_ext <<_ACEOF | |
28917 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28918 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28920 | #define $ac_func innocuous_$ac_func | |
28921 | ||
a848cd7e SC |
28922 | /* System header to define __stub macros and hopefully few prototypes, |
28923 | which can conflict with char $ac_func (); below. | |
28924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28925 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28926 | |
a848cd7e SC |
28927 | #ifdef __STDC__ |
28928 | # include <limits.h> | |
28929 | #else | |
28930 | # include <assert.h> | |
28931 | #endif | |
ac1cb8d3 VS |
28932 | |
28933 | #undef $ac_func | |
28934 | ||
a848cd7e SC |
28935 | /* Override any gcc2 internal prototype to avoid an error. */ |
28936 | #ifdef __cplusplus | |
28937 | extern "C" | |
28938 | { | |
28939 | #endif | |
28940 | /* We use char because int might match the return type of a gcc2 | |
28941 | builtin and then its argument prototype would still apply. */ | |
28942 | char $ac_func (); | |
28943 | /* The GNU C library defines this for functions which it implements | |
28944 | to always fail with ENOSYS. Some functions are actually named | |
28945 | something starting with __ and the normal name is an alias. */ | |
28946 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28947 | choke me | |
28948 | #else | |
28949 | char (*f) () = $ac_func; | |
28950 | #endif | |
28951 | #ifdef __cplusplus | |
28952 | } | |
28953 | #endif | |
28954 | ||
28955 | int | |
28956 | main () | |
28957 | { | |
28958 | return f != $ac_func; | |
28959 | ; | |
28960 | return 0; | |
28961 | } | |
28962 | _ACEOF | |
28963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28965 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28966 | ac_status=$? |
ac1cb8d3 VS |
28967 | grep -v '^ *+' conftest.er1 >conftest.err |
28968 | rm -f conftest.er1 | |
28969 | cat conftest.err >&5 | |
a848cd7e SC |
28970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28971 | (exit $ac_status); } && | |
2cbbc68d RD |
28972 | { ac_try='test -z "$ac_c_werror_flag" |
28973 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28975 | (eval $ac_try) 2>&5 | |
28976 | ac_status=$? | |
28977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28978 | (exit $ac_status); }; } && | |
28979 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28981 | (eval $ac_try) 2>&5 | |
28982 | ac_status=$? | |
28983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28984 | (exit $ac_status); }; }; then | |
28985 | eval "$as_ac_var=yes" | |
28986 | else | |
28987 | echo "$as_me: failed program was:" >&5 | |
28988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28989 | ||
28990 | eval "$as_ac_var=no" | |
28991 | fi | |
ac1cb8d3 VS |
28992 | rm -f conftest.err conftest.$ac_objext \ |
28993 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28994 | fi |
28995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28996 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28997 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28998 | cat >>confdefs.h <<_ACEOF | |
28999 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29000 | _ACEOF | |
29001 | ||
29002 | fi | |
29003 | done | |
29004 | ||
29005 | else | |
29006 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
29007 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
29008 | fi | |
29009 | ||
29010 | ||
29011 | ||
29012 | ac_ext=cc | |
29013 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29014 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29015 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29016 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29017 | ||
29018 | ||
29019 | ||
29020 | for ac_func in vsnprintf | |
29021 | do | |
29022 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29023 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29024 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29025 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29027 | else | |
29028 | cat >conftest.$ac_ext <<_ACEOF | |
29029 | /* confdefs.h. */ | |
29030 | _ACEOF | |
29031 | cat confdefs.h >>conftest.$ac_ext | |
29032 | cat >>conftest.$ac_ext <<_ACEOF | |
29033 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29034 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29035 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29036 | #define $ac_func innocuous_$ac_func | |
29037 | ||
a848cd7e SC |
29038 | /* System header to define __stub macros and hopefully few prototypes, |
29039 | which can conflict with char $ac_func (); below. | |
29040 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29041 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29042 | |
a848cd7e SC |
29043 | #ifdef __STDC__ |
29044 | # include <limits.h> | |
29045 | #else | |
29046 | # include <assert.h> | |
29047 | #endif | |
ac1cb8d3 VS |
29048 | |
29049 | #undef $ac_func | |
29050 | ||
a848cd7e SC |
29051 | /* Override any gcc2 internal prototype to avoid an error. */ |
29052 | #ifdef __cplusplus | |
29053 | extern "C" | |
29054 | { | |
29055 | #endif | |
29056 | /* We use char because int might match the return type of a gcc2 | |
29057 | builtin and then its argument prototype would still apply. */ | |
29058 | char $ac_func (); | |
29059 | /* The GNU C library defines this for functions which it implements | |
29060 | to always fail with ENOSYS. Some functions are actually named | |
29061 | something starting with __ and the normal name is an alias. */ | |
29062 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29063 | choke me | |
29064 | #else | |
29065 | char (*f) () = $ac_func; | |
29066 | #endif | |
29067 | #ifdef __cplusplus | |
29068 | } | |
29069 | #endif | |
29070 | ||
29071 | int | |
29072 | main () | |
29073 | { | |
29074 | return f != $ac_func; | |
29075 | ; | |
29076 | return 0; | |
29077 | } | |
29078 | _ACEOF | |
29079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29081 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29082 | ac_status=$? |
ac1cb8d3 VS |
29083 | grep -v '^ *+' conftest.er1 >conftest.err |
29084 | rm -f conftest.er1 | |
29085 | cat conftest.err >&5 | |
a848cd7e SC |
29086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29087 | (exit $ac_status); } && | |
2cbbc68d RD |
29088 | { ac_try='test -z "$ac_cxx_werror_flag" |
29089 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29091 | (eval $ac_try) 2>&5 | |
29092 | ac_status=$? | |
29093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29094 | (exit $ac_status); }; } && | |
29095 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29097 | (eval $ac_try) 2>&5 | |
29098 | ac_status=$? | |
29099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29100 | (exit $ac_status); }; }; then | |
29101 | eval "$as_ac_var=yes" | |
29102 | else | |
29103 | echo "$as_me: failed program was:" >&5 | |
29104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29105 | ||
29106 | eval "$as_ac_var=no" | |
29107 | fi | |
ac1cb8d3 VS |
29108 | rm -f conftest.err conftest.$ac_objext \ |
29109 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29110 | fi |
29111 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29112 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29113 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29114 | cat >>confdefs.h <<_ACEOF | |
29115 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29116 | _ACEOF | |
29117 | ||
29118 | fi | |
29119 | done | |
29120 | ||
29121 | ||
29122 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
29123 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
29124 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29125 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29127 | else | |
29128 | ||
29129 | cat >conftest.$ac_ext <<_ACEOF | |
29130 | /* confdefs.h. */ | |
29131 | _ACEOF | |
29132 | cat confdefs.h >>conftest.$ac_ext | |
29133 | cat >>conftest.$ac_ext <<_ACEOF | |
29134 | /* end confdefs.h. */ | |
29135 | ||
29136 | #include <stdio.h> | |
29137 | #include <stdarg.h> | |
29138 | ||
29139 | int | |
29140 | main () | |
29141 | { | |
29142 | ||
29143 | char *buf; | |
29144 | va_list ap; | |
29145 | vsnprintf(buf, 10u, "%s", ap); | |
29146 | ||
29147 | ; | |
29148 | return 0; | |
29149 | } | |
29150 | _ACEOF | |
29151 | rm -f conftest.$ac_objext | |
29152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29154 | ac_status=$? |
ac1cb8d3 VS |
29155 | grep -v '^ *+' conftest.er1 >conftest.err |
29156 | rm -f conftest.er1 | |
29157 | cat conftest.err >&5 | |
a848cd7e SC |
29158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29159 | (exit $ac_status); } && | |
2cbbc68d RD |
29160 | { ac_try='test -z "$ac_cxx_werror_flag" |
29161 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29163 | (eval $ac_try) 2>&5 | |
29164 | ac_status=$? | |
29165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29166 | (exit $ac_status); }; } && | |
29167 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29169 | (eval $ac_try) 2>&5 | |
29170 | ac_status=$? | |
29171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29172 | (exit $ac_status); }; }; then | |
29173 | wx_cv_func_vsnprintf_decl=yes | |
29174 | else | |
29175 | echo "$as_me: failed program was:" >&5 | |
29176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29177 | ||
29178 | wx_cv_func_vsnprintf_decl=no | |
29179 | ||
29180 | fi | |
ac1cb8d3 | 29181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29182 | |
29183 | ||
29184 | fi | |
29185 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29186 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29187 | ||
29188 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29189 | cat >>confdefs.h <<\_ACEOF | |
29190 | #define HAVE_VSNPRINTF_DECL 1 | |
29191 | _ACEOF | |
29192 | ||
29193 | fi | |
29194 | fi | |
29195 | ||
29196 | if test "$wxUSE_UNICODE" = yes; then | |
29197 | ||
29198 | ||
29199 | ||
fbe47c7b VS |
29200 | |
29201 | ||
29202 | ||
29203 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29204 | do |
29205 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29206 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29207 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29208 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29210 | else | |
29211 | cat >conftest.$ac_ext <<_ACEOF | |
29212 | /* confdefs.h. */ | |
29213 | _ACEOF | |
29214 | cat confdefs.h >>conftest.$ac_ext | |
29215 | cat >>conftest.$ac_ext <<_ACEOF | |
29216 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29217 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29219 | #define $ac_func innocuous_$ac_func | |
29220 | ||
a848cd7e SC |
29221 | /* System header to define __stub macros and hopefully few prototypes, |
29222 | which can conflict with char $ac_func (); below. | |
29223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29224 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29225 | |
a848cd7e SC |
29226 | #ifdef __STDC__ |
29227 | # include <limits.h> | |
29228 | #else | |
29229 | # include <assert.h> | |
29230 | #endif | |
ac1cb8d3 VS |
29231 | |
29232 | #undef $ac_func | |
29233 | ||
a848cd7e SC |
29234 | /* Override any gcc2 internal prototype to avoid an error. */ |
29235 | #ifdef __cplusplus | |
29236 | extern "C" | |
29237 | { | |
29238 | #endif | |
29239 | /* We use char because int might match the return type of a gcc2 | |
29240 | builtin and then its argument prototype would still apply. */ | |
29241 | char $ac_func (); | |
29242 | /* The GNU C library defines this for functions which it implements | |
29243 | to always fail with ENOSYS. Some functions are actually named | |
29244 | something starting with __ and the normal name is an alias. */ | |
29245 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29246 | choke me | |
29247 | #else | |
29248 | char (*f) () = $ac_func; | |
29249 | #endif | |
29250 | #ifdef __cplusplus | |
29251 | } | |
29252 | #endif | |
29253 | ||
29254 | int | |
29255 | main () | |
29256 | { | |
29257 | return f != $ac_func; | |
29258 | ; | |
29259 | return 0; | |
29260 | } | |
29261 | _ACEOF | |
29262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29264 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29265 | ac_status=$? |
ac1cb8d3 VS |
29266 | grep -v '^ *+' conftest.er1 >conftest.err |
29267 | rm -f conftest.er1 | |
29268 | cat conftest.err >&5 | |
a848cd7e SC |
29269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29270 | (exit $ac_status); } && | |
2cbbc68d RD |
29271 | { ac_try='test -z "$ac_cxx_werror_flag" |
29272 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29274 | (eval $ac_try) 2>&5 | |
29275 | ac_status=$? | |
29276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29277 | (exit $ac_status); }; } && | |
29278 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29280 | (eval $ac_try) 2>&5 | |
29281 | ac_status=$? | |
29282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29283 | (exit $ac_status); }; }; then | |
29284 | eval "$as_ac_var=yes" | |
29285 | else | |
29286 | echo "$as_me: failed program was:" >&5 | |
29287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29288 | ||
29289 | eval "$as_ac_var=no" | |
29290 | fi | |
ac1cb8d3 VS |
29291 | rm -f conftest.err conftest.$ac_objext \ |
29292 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29293 | fi |
29294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29295 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29296 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29297 | cat >>confdefs.h <<_ACEOF | |
29298 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29299 | _ACEOF | |
29300 | ||
29301 | fi | |
29302 | done | |
29303 | ||
29304 | ||
29305 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29306 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29307 | cat >conftest.$ac_ext <<_ACEOF | |
29308 | /* confdefs.h. */ | |
29309 | _ACEOF | |
29310 | cat confdefs.h >>conftest.$ac_ext | |
29311 | cat >>conftest.$ac_ext <<_ACEOF | |
29312 | /* end confdefs.h. */ | |
29313 | #include <wchar.h> | |
29314 | int | |
29315 | main () | |
29316 | { | |
29317 | &_vsnwprintf; | |
29318 | ; | |
29319 | return 0; | |
29320 | } | |
29321 | _ACEOF | |
29322 | rm -f conftest.$ac_objext | |
29323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29324 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29325 | ac_status=$? |
ac1cb8d3 VS |
29326 | grep -v '^ *+' conftest.er1 >conftest.err |
29327 | rm -f conftest.er1 | |
29328 | cat conftest.err >&5 | |
a848cd7e SC |
29329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29330 | (exit $ac_status); } && | |
2cbbc68d RD |
29331 | { ac_try='test -z "$ac_cxx_werror_flag" |
29332 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29334 | (eval $ac_try) 2>&5 | |
29335 | ac_status=$? | |
29336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29337 | (exit $ac_status); }; } && | |
29338 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29340 | (eval $ac_try) 2>&5 | |
29341 | ac_status=$? | |
29342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29343 | (exit $ac_status); }; }; then | |
29344 | echo "$as_me:$LINENO: result: yes" >&5 | |
29345 | echo "${ECHO_T}yes" >&6 | |
29346 | cat >>confdefs.h <<\_ACEOF | |
29347 | #define HAVE__VSNWPRINTF 1 | |
29348 | _ACEOF | |
29349 | ||
29350 | else | |
29351 | echo "$as_me: failed program was:" >&5 | |
29352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29353 | ||
29354 | echo "$as_me:$LINENO: result: no" >&5 | |
29355 | echo "${ECHO_T}no" >&6 | |
29356 | fi | |
ac1cb8d3 | 29357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29358 | fi |
29359 | ||
29360 | ac_ext=c | |
29361 | ac_cpp='$CPP $CPPFLAGS' | |
29362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29365 | ||
29366 | ||
29367 | ||
29368 | ||
29369 | if test "$TOOLKIT" != "MSW"; then | |
29370 | ||
29371 | ||
29372 | ||
29373 | ||
29374 | ac_ext=cc | |
29375 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29376 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29377 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29378 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29379 | ||
29380 | ||
29381 | ||
29382 | ||
29383 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29384 | if test "${with_libiconv_prefix+set}" = set; then | |
29385 | withval="$with_libiconv_prefix" | |
29386 | ||
29387 | for dir in `echo "$withval" | tr : ' '`; do | |
29388 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29389 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29390 | done | |
29391 | ||
29392 | fi; | |
29393 | ||
29394 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29395 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29396 | if test "${am_cv_func_iconv+set}" = set; then | |
29397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29398 | else | |
29399 | ||
29400 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29401 | am_cv_lib_iconv=no | |
29402 | cat >conftest.$ac_ext <<_ACEOF | |
29403 | /* confdefs.h. */ | |
29404 | _ACEOF | |
29405 | cat confdefs.h >>conftest.$ac_ext | |
29406 | cat >>conftest.$ac_ext <<_ACEOF | |
29407 | /* end confdefs.h. */ | |
29408 | #include <stdlib.h> | |
29409 | #include <iconv.h> | |
29410 | int | |
29411 | main () | |
29412 | { | |
29413 | iconv_t cd = iconv_open("",""); | |
29414 | iconv(cd,NULL,NULL,NULL,NULL); | |
29415 | iconv_close(cd); | |
29416 | ; | |
29417 | return 0; | |
29418 | } | |
29419 | _ACEOF | |
29420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29422 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29423 | ac_status=$? |
ac1cb8d3 VS |
29424 | grep -v '^ *+' conftest.er1 >conftest.err |
29425 | rm -f conftest.er1 | |
29426 | cat conftest.err >&5 | |
a848cd7e SC |
29427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29428 | (exit $ac_status); } && | |
2cbbc68d RD |
29429 | { ac_try='test -z "$ac_cxx_werror_flag" |
29430 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29432 | (eval $ac_try) 2>&5 | |
29433 | ac_status=$? | |
29434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29435 | (exit $ac_status); }; } && | |
29436 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29438 | (eval $ac_try) 2>&5 | |
29439 | ac_status=$? | |
29440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29441 | (exit $ac_status); }; }; then | |
29442 | am_cv_func_iconv=yes | |
29443 | else | |
29444 | echo "$as_me: failed program was:" >&5 | |
29445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29446 | ||
29447 | fi | |
ac1cb8d3 VS |
29448 | rm -f conftest.err conftest.$ac_objext \ |
29449 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29450 | if test "$am_cv_func_iconv" != yes; then |
29451 | am_save_LIBS="$LIBS" | |
29452 | LIBS="$LIBS -liconv" | |
29453 | cat >conftest.$ac_ext <<_ACEOF | |
29454 | /* confdefs.h. */ | |
29455 | _ACEOF | |
29456 | cat confdefs.h >>conftest.$ac_ext | |
29457 | cat >>conftest.$ac_ext <<_ACEOF | |
29458 | /* end confdefs.h. */ | |
29459 | #include <stdlib.h> | |
29460 | #include <iconv.h> | |
29461 | int | |
29462 | main () | |
29463 | { | |
29464 | iconv_t cd = iconv_open("",""); | |
29465 | iconv(cd,NULL,NULL,NULL,NULL); | |
29466 | iconv_close(cd); | |
29467 | ; | |
29468 | return 0; | |
29469 | } | |
29470 | _ACEOF | |
29471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29473 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29474 | ac_status=$? |
ac1cb8d3 VS |
29475 | grep -v '^ *+' conftest.er1 >conftest.err |
29476 | rm -f conftest.er1 | |
29477 | cat conftest.err >&5 | |
a848cd7e SC |
29478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29479 | (exit $ac_status); } && | |
2cbbc68d RD |
29480 | { ac_try='test -z "$ac_cxx_werror_flag" |
29481 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29483 | (eval $ac_try) 2>&5 | |
29484 | ac_status=$? | |
29485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29486 | (exit $ac_status); }; } && | |
29487 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29489 | (eval $ac_try) 2>&5 | |
29490 | ac_status=$? | |
29491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29492 | (exit $ac_status); }; }; then | |
29493 | am_cv_lib_iconv=yes | |
29494 | am_cv_func_iconv=yes | |
29495 | else | |
29496 | echo "$as_me: failed program was:" >&5 | |
29497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29498 | ||
29499 | fi | |
ac1cb8d3 VS |
29500 | rm -f conftest.err conftest.$ac_objext \ |
29501 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29502 | LIBS="$am_save_LIBS" |
29503 | fi | |
29504 | ||
29505 | fi | |
29506 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29507 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29508 | if test "$am_cv_func_iconv" = yes; then | |
29509 | ||
29510 | cat >>confdefs.h <<\_ACEOF | |
29511 | #define HAVE_ICONV 1 | |
29512 | _ACEOF | |
29513 | ||
29514 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29515 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29516 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29518 | else | |
29519 | cat >conftest.$ac_ext <<_ACEOF | |
29520 | /* confdefs.h. */ | |
29521 | _ACEOF | |
29522 | cat confdefs.h >>conftest.$ac_ext | |
29523 | cat >>conftest.$ac_ext <<_ACEOF | |
29524 | /* end confdefs.h. */ | |
29525 | ||
29526 | #include <stdlib.h> | |
29527 | #include <iconv.h> | |
29528 | extern | |
29529 | #ifdef __cplusplus | |
29530 | "C" | |
29531 | #endif | |
29532 | #if defined(__STDC__) || defined(__cplusplus) | |
29533 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29534 | #else | |
29535 | size_t iconv(); | |
29536 | #endif | |
29537 | ||
29538 | int | |
29539 | main () | |
29540 | { | |
29541 | ||
29542 | ; | |
29543 | return 0; | |
29544 | } | |
29545 | _ACEOF | |
29546 | rm -f conftest.$ac_objext | |
29547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29549 | ac_status=$? |
ac1cb8d3 VS |
29550 | grep -v '^ *+' conftest.er1 >conftest.err |
29551 | rm -f conftest.er1 | |
29552 | cat conftest.err >&5 | |
a848cd7e SC |
29553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29554 | (exit $ac_status); } && | |
2cbbc68d RD |
29555 | { ac_try='test -z "$ac_cxx_werror_flag" |
29556 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29558 | (eval $ac_try) 2>&5 | |
29559 | ac_status=$? | |
29560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29561 | (exit $ac_status); }; } && | |
29562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29564 | (eval $ac_try) 2>&5 | |
29565 | ac_status=$? | |
29566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29567 | (exit $ac_status); }; }; then | |
29568 | wx_cv_func_iconv_const="no" | |
29569 | else | |
29570 | echo "$as_me: failed program was:" >&5 | |
29571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29572 | ||
29573 | wx_cv_func_iconv_const="yes" | |
29574 | ||
29575 | fi | |
ac1cb8d3 | 29576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29577 | |
29578 | fi | |
29579 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29580 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29581 | ||
29582 | iconv_const= | |
29583 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29584 | iconv_const="const" | |
29585 | fi | |
29586 | ||
29587 | ||
29588 | cat >>confdefs.h <<_ACEOF | |
29589 | #define ICONV_CONST $iconv_const | |
29590 | _ACEOF | |
29591 | ||
29592 | fi | |
29593 | LIBICONV= | |
29594 | if test "$am_cv_lib_iconv" = yes; then | |
29595 | LIBICONV="-liconv" | |
29596 | fi | |
29597 | ||
29598 | ||
29599 | LIBS="$LIBICONV $LIBS" | |
29600 | ac_ext=c | |
29601 | ac_cpp='$CPP $CPPFLAGS' | |
29602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29605 | ||
29606 | ||
29607 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29608 | ||
29609 | for ac_func in sigaction | |
29610 | do | |
29611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29612 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29614 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29616 | else | |
29617 | cat >conftest.$ac_ext <<_ACEOF | |
29618 | /* confdefs.h. */ | |
29619 | _ACEOF | |
29620 | cat confdefs.h >>conftest.$ac_ext | |
29621 | cat >>conftest.$ac_ext <<_ACEOF | |
29622 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29625 | #define $ac_func innocuous_$ac_func | |
29626 | ||
a848cd7e SC |
29627 | /* System header to define __stub macros and hopefully few prototypes, |
29628 | which can conflict with char $ac_func (); below. | |
29629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29630 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29631 | |
a848cd7e SC |
29632 | #ifdef __STDC__ |
29633 | # include <limits.h> | |
29634 | #else | |
29635 | # include <assert.h> | |
29636 | #endif | |
ac1cb8d3 VS |
29637 | |
29638 | #undef $ac_func | |
29639 | ||
a848cd7e SC |
29640 | /* Override any gcc2 internal prototype to avoid an error. */ |
29641 | #ifdef __cplusplus | |
29642 | extern "C" | |
29643 | { | |
29644 | #endif | |
29645 | /* We use char because int might match the return type of a gcc2 | |
29646 | builtin and then its argument prototype would still apply. */ | |
29647 | char $ac_func (); | |
29648 | /* The GNU C library defines this for functions which it implements | |
29649 | to always fail with ENOSYS. Some functions are actually named | |
29650 | something starting with __ and the normal name is an alias. */ | |
29651 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29652 | choke me | |
29653 | #else | |
29654 | char (*f) () = $ac_func; | |
29655 | #endif | |
29656 | #ifdef __cplusplus | |
29657 | } | |
29658 | #endif | |
29659 | ||
29660 | int | |
29661 | main () | |
29662 | { | |
29663 | return f != $ac_func; | |
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); } && | |
2cbbc68d RD |
29677 | { ac_try='test -z "$ac_c_werror_flag" |
29678 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29680 | (eval $ac_try) 2>&5 | |
29681 | ac_status=$? | |
29682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29683 | (exit $ac_status); }; } && | |
29684 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29686 | (eval $ac_try) 2>&5 | |
29687 | ac_status=$? | |
29688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29689 | (exit $ac_status); }; }; then | |
29690 | eval "$as_ac_var=yes" | |
29691 | else | |
29692 | echo "$as_me: failed program was:" >&5 | |
29693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29694 | ||
29695 | eval "$as_ac_var=no" | |
29696 | fi | |
ac1cb8d3 VS |
29697 | rm -f conftest.err conftest.$ac_objext \ |
29698 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29699 | fi |
29700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29701 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29702 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29703 | cat >>confdefs.h <<_ACEOF | |
29704 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29705 | _ACEOF | |
29706 | ||
29707 | fi | |
29708 | done | |
29709 | ||
29710 | ||
29711 | if test "$ac_cv_func_sigaction" = "no"; then | |
29712 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29713 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29714 | wxUSE_ON_FATAL_EXCEPTION=no | |
29715 | fi | |
29716 | ||
29717 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29718 | ||
29719 | ||
29720 | ac_ext=cc | |
29721 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29722 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29723 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29724 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29725 | ||
29726 | ||
29727 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29728 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29729 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29731 | else | |
29732 | ||
29733 | cat >conftest.$ac_ext <<_ACEOF | |
29734 | /* confdefs.h. */ | |
29735 | _ACEOF | |
29736 | cat confdefs.h >>conftest.$ac_ext | |
29737 | cat >>conftest.$ac_ext <<_ACEOF | |
29738 | /* end confdefs.h. */ | |
29739 | #include <signal.h> | |
29740 | int | |
29741 | main () | |
29742 | { | |
29743 | ||
29744 | extern void testSigHandler(int); | |
29745 | ||
29746 | struct sigaction sa; | |
29747 | sa.sa_handler = testSigHandler; | |
29748 | ||
29749 | ; | |
29750 | return 0; | |
29751 | } | |
29752 | _ACEOF | |
29753 | rm -f conftest.$ac_objext | |
29754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29755 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29756 | ac_status=$? |
ac1cb8d3 VS |
29757 | grep -v '^ *+' conftest.er1 >conftest.err |
29758 | rm -f conftest.er1 | |
29759 | cat conftest.err >&5 | |
a848cd7e SC |
29760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29761 | (exit $ac_status); } && | |
2cbbc68d RD |
29762 | { ac_try='test -z "$ac_cxx_werror_flag" |
29763 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29765 | (eval $ac_try) 2>&5 | |
29766 | ac_status=$? | |
29767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29768 | (exit $ac_status); }; } && | |
29769 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29771 | (eval $ac_try) 2>&5 | |
29772 | ac_status=$? | |
29773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29774 | (exit $ac_status); }; }; then | |
29775 | ||
29776 | wx_cv_type_sa_handler=int | |
29777 | ||
29778 | else | |
29779 | echo "$as_me: failed program was:" >&5 | |
29780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29781 | ||
29782 | ||
29783 | wx_cv_type_sa_handler=void | |
29784 | ||
29785 | fi | |
ac1cb8d3 | 29786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29787 | |
29788 | fi | |
29789 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29790 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29791 | ||
29792 | ac_ext=c | |
29793 | ac_cpp='$CPP $CPPFLAGS' | |
29794 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29795 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29796 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29797 | ||
29798 | ||
29799 | cat >>confdefs.h <<_ACEOF | |
29800 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29801 | _ACEOF | |
29802 | ||
29803 | fi | |
29804 | fi | |
29805 | ||
29806 | ||
29807 | ||
29808 | for ac_func in mkstemp mktemp | |
29809 | do | |
29810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29811 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29813 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29815 | else | |
29816 | cat >conftest.$ac_ext <<_ACEOF | |
29817 | /* confdefs.h. */ | |
29818 | _ACEOF | |
29819 | cat confdefs.h >>conftest.$ac_ext | |
29820 | cat >>conftest.$ac_ext <<_ACEOF | |
29821 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29824 | #define $ac_func innocuous_$ac_func | |
29825 | ||
a848cd7e SC |
29826 | /* System header to define __stub macros and hopefully few prototypes, |
29827 | which can conflict with char $ac_func (); below. | |
29828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29829 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29830 | |
a848cd7e SC |
29831 | #ifdef __STDC__ |
29832 | # include <limits.h> | |
29833 | #else | |
29834 | # include <assert.h> | |
29835 | #endif | |
ac1cb8d3 VS |
29836 | |
29837 | #undef $ac_func | |
29838 | ||
a848cd7e SC |
29839 | /* Override any gcc2 internal prototype to avoid an error. */ |
29840 | #ifdef __cplusplus | |
29841 | extern "C" | |
29842 | { | |
29843 | #endif | |
29844 | /* We use char because int might match the return type of a gcc2 | |
29845 | builtin and then its argument prototype would still apply. */ | |
29846 | char $ac_func (); | |
29847 | /* The GNU C library defines this for functions which it implements | |
29848 | to always fail with ENOSYS. Some functions are actually named | |
29849 | something starting with __ and the normal name is an alias. */ | |
29850 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29851 | choke me | |
29852 | #else | |
29853 | char (*f) () = $ac_func; | |
29854 | #endif | |
29855 | #ifdef __cplusplus | |
29856 | } | |
29857 | #endif | |
29858 | ||
29859 | int | |
29860 | main () | |
29861 | { | |
29862 | return f != $ac_func; | |
29863 | ; | |
29864 | return 0; | |
29865 | } | |
29866 | _ACEOF | |
29867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29869 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29870 | ac_status=$? |
ac1cb8d3 VS |
29871 | grep -v '^ *+' conftest.er1 >conftest.err |
29872 | rm -f conftest.er1 | |
29873 | cat conftest.err >&5 | |
a848cd7e SC |
29874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29875 | (exit $ac_status); } && | |
2cbbc68d RD |
29876 | { ac_try='test -z "$ac_c_werror_flag" |
29877 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29879 | (eval $ac_try) 2>&5 | |
29880 | ac_status=$? | |
29881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29882 | (exit $ac_status); }; } && | |
29883 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29885 | (eval $ac_try) 2>&5 | |
29886 | ac_status=$? | |
29887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29888 | (exit $ac_status); }; }; then | |
29889 | eval "$as_ac_var=yes" | |
29890 | else | |
29891 | echo "$as_me: failed program was:" >&5 | |
29892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29893 | ||
29894 | eval "$as_ac_var=no" | |
29895 | fi | |
ac1cb8d3 VS |
29896 | rm -f conftest.err conftest.$ac_objext \ |
29897 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29898 | fi |
29899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29900 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29901 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29902 | cat >>confdefs.h <<_ACEOF | |
29903 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29904 | _ACEOF | |
29905 | break | |
29906 | fi | |
29907 | done | |
29908 | ||
29909 | ||
29910 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29911 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29912 | if test "${wx_cv_func_statfs+set}" = set; then | |
29913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29914 | else | |
29915 | cat >conftest.$ac_ext <<_ACEOF | |
29916 | /* confdefs.h. */ | |
29917 | _ACEOF | |
29918 | cat confdefs.h >>conftest.$ac_ext | |
29919 | cat >>conftest.$ac_ext <<_ACEOF | |
29920 | /* end confdefs.h. */ | |
29921 | ||
29922 | #if defined(__BSD__) | |
29923 | #include <sys/param.h> | |
29924 | #include <sys/mount.h> | |
29925 | #else | |
29926 | #include <sys/vfs.h> | |
29927 | #endif | |
29928 | ||
29929 | int | |
29930 | main () | |
29931 | { | |
29932 | ||
29933 | long l; | |
29934 | struct statfs fs; | |
29935 | statfs("/", &fs); | |
29936 | l = fs.f_bsize; | |
29937 | l += fs.f_blocks; | |
29938 | l += fs.f_bavail; | |
29939 | ||
29940 | ; | |
29941 | return 0; | |
29942 | } | |
29943 | _ACEOF | |
29944 | rm -f conftest.$ac_objext | |
29945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29946 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29947 | ac_status=$? |
ac1cb8d3 VS |
29948 | grep -v '^ *+' conftest.er1 >conftest.err |
29949 | rm -f conftest.er1 | |
29950 | cat conftest.err >&5 | |
a848cd7e SC |
29951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29952 | (exit $ac_status); } && | |
2cbbc68d RD |
29953 | { ac_try='test -z "$ac_c_werror_flag" |
29954 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29956 | (eval $ac_try) 2>&5 | |
29957 | ac_status=$? | |
29958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29959 | (exit $ac_status); }; } && | |
29960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29962 | (eval $ac_try) 2>&5 | |
29963 | ac_status=$? | |
29964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29965 | (exit $ac_status); }; }; then | |
29966 | ||
29967 | wx_cv_func_statfs=yes | |
29968 | ||
29969 | else | |
29970 | echo "$as_me: failed program was:" >&5 | |
29971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29972 | ||
29973 | ||
29974 | wx_cv_func_statfs=no | |
29975 | ||
29976 | ||
29977 | fi | |
ac1cb8d3 | 29978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29979 | |
29980 | fi | |
29981 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29982 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
29983 | ||
29984 | if test "$wx_cv_func_statfs" = "yes"; then | |
29985 | wx_cv_type_statvfs_t="struct statfs" | |
29986 | cat >>confdefs.h <<\_ACEOF | |
29987 | #define HAVE_STATFS 1 | |
29988 | _ACEOF | |
29989 | ||
29990 | else | |
29991 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
29992 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29993 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29995 | else | |
29996 | cat >conftest.$ac_ext <<_ACEOF | |
29997 | /* confdefs.h. */ | |
29998 | _ACEOF | |
29999 | cat confdefs.h >>conftest.$ac_ext | |
30000 | cat >>conftest.$ac_ext <<_ACEOF | |
30001 | /* end confdefs.h. */ | |
30002 | ||
30003 | #include <stddef.h> | |
30004 | #include <sys/statvfs.h> | |
30005 | ||
30006 | int | |
30007 | main () | |
30008 | { | |
30009 | ||
30010 | statvfs("/", NULL); | |
30011 | ||
30012 | ; | |
30013 | return 0; | |
30014 | } | |
30015 | _ACEOF | |
30016 | rm -f conftest.$ac_objext | |
30017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30018 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30019 | ac_status=$? |
ac1cb8d3 VS |
30020 | grep -v '^ *+' conftest.er1 >conftest.err |
30021 | rm -f conftest.er1 | |
30022 | cat conftest.err >&5 | |
a848cd7e SC |
30023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30024 | (exit $ac_status); } && | |
2cbbc68d RD |
30025 | { ac_try='test -z "$ac_c_werror_flag" |
30026 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30028 | (eval $ac_try) 2>&5 | |
30029 | ac_status=$? | |
30030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30031 | (exit $ac_status); }; } && | |
30032 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30034 | (eval $ac_try) 2>&5 | |
30035 | ac_status=$? | |
30036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30037 | (exit $ac_status); }; }; then | |
30038 | wx_cv_func_statvfs=yes | |
30039 | else | |
30040 | echo "$as_me: failed program was:" >&5 | |
30041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30042 | ||
30043 | wx_cv_func_statvfs=no | |
30044 | ||
30045 | fi | |
ac1cb8d3 | 30046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30047 | |
30048 | fi | |
30049 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
30050 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
30051 | ||
30052 | if test "$wx_cv_func_statvfs" = "yes"; then | |
30053 | ||
30054 | ||
30055 | ac_ext=cc | |
30056 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30057 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30058 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30059 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30060 | ||
30061 | ||
30062 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
30063 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
30064 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
30065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30066 | else | |
30067 | cat >conftest.$ac_ext <<_ACEOF | |
30068 | /* confdefs.h. */ | |
30069 | _ACEOF | |
30070 | cat confdefs.h >>conftest.$ac_ext | |
30071 | cat >>conftest.$ac_ext <<_ACEOF | |
30072 | /* end confdefs.h. */ | |
30073 | ||
30074 | #include <sys/statvfs.h> | |
30075 | ||
30076 | int | |
30077 | main () | |
30078 | { | |
30079 | ||
30080 | long l; | |
30081 | statvfs_t fs; | |
30082 | statvfs("/", &fs); | |
30083 | l = fs.f_bsize; | |
30084 | l += fs.f_blocks; | |
30085 | l += fs.f_bavail; | |
30086 | ||
30087 | ; | |
30088 | return 0; | |
30089 | } | |
30090 | _ACEOF | |
30091 | rm -f conftest.$ac_objext | |
30092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30093 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30094 | ac_status=$? |
ac1cb8d3 VS |
30095 | grep -v '^ *+' conftest.er1 >conftest.err |
30096 | rm -f conftest.er1 | |
30097 | cat conftest.err >&5 | |
a848cd7e SC |
30098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30099 | (exit $ac_status); } && | |
2cbbc68d RD |
30100 | { ac_try='test -z "$ac_cxx_werror_flag" |
30101 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30103 | (eval $ac_try) 2>&5 | |
30104 | ac_status=$? | |
30105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30106 | (exit $ac_status); }; } && | |
30107 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30109 | (eval $ac_try) 2>&5 | |
30110 | ac_status=$? | |
30111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30112 | (exit $ac_status); }; }; then | |
30113 | wx_cv_type_statvfs_t=statvfs_t | |
30114 | else | |
30115 | echo "$as_me: failed program was:" >&5 | |
30116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30117 | ||
30118 | ||
30119 | cat >conftest.$ac_ext <<_ACEOF | |
30120 | /* confdefs.h. */ | |
30121 | _ACEOF | |
30122 | cat confdefs.h >>conftest.$ac_ext | |
30123 | cat >>conftest.$ac_ext <<_ACEOF | |
30124 | /* end confdefs.h. */ | |
30125 | ||
30126 | #include <sys/statvfs.h> | |
30127 | ||
30128 | int | |
30129 | main () | |
30130 | { | |
30131 | ||
30132 | long l; | |
30133 | struct statvfs fs; | |
30134 | statvfs("/", &fs); | |
30135 | l = fs.f_bsize; | |
30136 | l += fs.f_blocks; | |
30137 | l += fs.f_bavail; | |
30138 | ||
30139 | ; | |
30140 | return 0; | |
30141 | } | |
30142 | _ACEOF | |
30143 | rm -f conftest.$ac_objext | |
30144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30145 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30146 | ac_status=$? |
ac1cb8d3 VS |
30147 | grep -v '^ *+' conftest.er1 >conftest.err |
30148 | rm -f conftest.er1 | |
30149 | cat conftest.err >&5 | |
a848cd7e SC |
30150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30151 | (exit $ac_status); } && | |
2cbbc68d RD |
30152 | { ac_try='test -z "$ac_cxx_werror_flag" |
30153 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30155 | (eval $ac_try) 2>&5 | |
30156 | ac_status=$? | |
30157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30158 | (exit $ac_status); }; } && | |
30159 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30161 | (eval $ac_try) 2>&5 | |
30162 | ac_status=$? | |
30163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30164 | (exit $ac_status); }; }; then | |
30165 | wx_cv_type_statvfs_t="struct statvfs" | |
30166 | else | |
30167 | echo "$as_me: failed program was:" >&5 | |
30168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30169 | ||
30170 | wx_cv_type_statvfs_t="unknown" | |
30171 | ||
30172 | fi | |
ac1cb8d3 | 30173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30174 | |
30175 | ||
30176 | fi | |
ac1cb8d3 | 30177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30178 | |
30179 | fi | |
30180 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30181 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30182 | ||
30183 | ac_ext=c | |
30184 | ac_cpp='$CPP $CPPFLAGS' | |
30185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30188 | ||
30189 | ||
30190 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30191 | cat >>confdefs.h <<\_ACEOF | |
30192 | #define HAVE_STATVFS 1 | |
30193 | _ACEOF | |
30194 | ||
30195 | fi | |
30196 | else | |
30197 | wx_cv_type_statvfs_t="unknown" | |
30198 | fi | |
30199 | fi | |
30200 | ||
30201 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30202 | cat >>confdefs.h <<_ACEOF | |
30203 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30204 | _ACEOF | |
30205 | ||
30206 | else | |
30207 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30208 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30209 | fi | |
30210 | ||
30211 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30212 | ||
30213 | ||
30214 | for ac_func in fcntl flock | |
30215 | do | |
30216 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30217 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30218 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30219 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30221 | else | |
30222 | cat >conftest.$ac_ext <<_ACEOF | |
30223 | /* confdefs.h. */ | |
30224 | _ACEOF | |
30225 | cat confdefs.h >>conftest.$ac_ext | |
30226 | cat >>conftest.$ac_ext <<_ACEOF | |
30227 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30228 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30230 | #define $ac_func innocuous_$ac_func | |
30231 | ||
a848cd7e SC |
30232 | /* System header to define __stub macros and hopefully few prototypes, |
30233 | which can conflict with char $ac_func (); below. | |
30234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30235 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30236 | |
a848cd7e SC |
30237 | #ifdef __STDC__ |
30238 | # include <limits.h> | |
30239 | #else | |
30240 | # include <assert.h> | |
30241 | #endif | |
ac1cb8d3 VS |
30242 | |
30243 | #undef $ac_func | |
30244 | ||
a848cd7e SC |
30245 | /* Override any gcc2 internal prototype to avoid an error. */ |
30246 | #ifdef __cplusplus | |
30247 | extern "C" | |
30248 | { | |
30249 | #endif | |
30250 | /* We use char because int might match the return type of a gcc2 | |
30251 | builtin and then its argument prototype would still apply. */ | |
30252 | char $ac_func (); | |
30253 | /* The GNU C library defines this for functions which it implements | |
30254 | to always fail with ENOSYS. Some functions are actually named | |
30255 | something starting with __ and the normal name is an alias. */ | |
30256 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30257 | choke me | |
30258 | #else | |
30259 | char (*f) () = $ac_func; | |
30260 | #endif | |
30261 | #ifdef __cplusplus | |
30262 | } | |
30263 | #endif | |
30264 | ||
30265 | int | |
30266 | main () | |
30267 | { | |
30268 | return f != $ac_func; | |
30269 | ; | |
30270 | return 0; | |
30271 | } | |
30272 | _ACEOF | |
30273 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30275 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30276 | ac_status=$? |
ac1cb8d3 VS |
30277 | grep -v '^ *+' conftest.er1 >conftest.err |
30278 | rm -f conftest.er1 | |
30279 | cat conftest.err >&5 | |
a848cd7e SC |
30280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30281 | (exit $ac_status); } && | |
2cbbc68d RD |
30282 | { ac_try='test -z "$ac_c_werror_flag" |
30283 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30285 | (eval $ac_try) 2>&5 | |
30286 | ac_status=$? | |
30287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30288 | (exit $ac_status); }; } && | |
30289 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30291 | (eval $ac_try) 2>&5 | |
30292 | ac_status=$? | |
30293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30294 | (exit $ac_status); }; }; then | |
30295 | eval "$as_ac_var=yes" | |
30296 | else | |
30297 | echo "$as_me: failed program was:" >&5 | |
30298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30299 | ||
30300 | eval "$as_ac_var=no" | |
30301 | fi | |
ac1cb8d3 VS |
30302 | rm -f conftest.err conftest.$ac_objext \ |
30303 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30304 | fi |
30305 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30306 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30307 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30308 | cat >>confdefs.h <<_ACEOF | |
30309 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30310 | _ACEOF | |
30311 | break | |
30312 | fi | |
30313 | done | |
30314 | ||
30315 | ||
30316 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30317 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30318 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30319 | wxUSE_SNGLINST_CHECKER=no | |
30320 | fi | |
30321 | fi | |
30322 | ||
30323 | ||
30324 | for ac_func in timegm | |
30325 | do | |
30326 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30327 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30328 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30329 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30331 | else | |
30332 | cat >conftest.$ac_ext <<_ACEOF | |
30333 | /* confdefs.h. */ | |
30334 | _ACEOF | |
30335 | cat confdefs.h >>conftest.$ac_ext | |
30336 | cat >>conftest.$ac_ext <<_ACEOF | |
30337 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30338 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30339 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30340 | #define $ac_func innocuous_$ac_func | |
30341 | ||
a848cd7e SC |
30342 | /* System header to define __stub macros and hopefully few prototypes, |
30343 | which can conflict with char $ac_func (); below. | |
30344 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30345 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30346 | |
a848cd7e SC |
30347 | #ifdef __STDC__ |
30348 | # include <limits.h> | |
30349 | #else | |
30350 | # include <assert.h> | |
30351 | #endif | |
ac1cb8d3 VS |
30352 | |
30353 | #undef $ac_func | |
30354 | ||
a848cd7e SC |
30355 | /* Override any gcc2 internal prototype to avoid an error. */ |
30356 | #ifdef __cplusplus | |
30357 | extern "C" | |
30358 | { | |
30359 | #endif | |
30360 | /* We use char because int might match the return type of a gcc2 | |
30361 | builtin and then its argument prototype would still apply. */ | |
30362 | char $ac_func (); | |
30363 | /* The GNU C library defines this for functions which it implements | |
30364 | to always fail with ENOSYS. Some functions are actually named | |
30365 | something starting with __ and the normal name is an alias. */ | |
30366 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30367 | choke me | |
30368 | #else | |
30369 | char (*f) () = $ac_func; | |
30370 | #endif | |
30371 | #ifdef __cplusplus | |
30372 | } | |
30373 | #endif | |
30374 | ||
30375 | int | |
30376 | main () | |
30377 | { | |
30378 | return f != $ac_func; | |
30379 | ; | |
30380 | return 0; | |
30381 | } | |
30382 | _ACEOF | |
30383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30385 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30386 | ac_status=$? |
ac1cb8d3 VS |
30387 | grep -v '^ *+' conftest.er1 >conftest.err |
30388 | rm -f conftest.er1 | |
30389 | cat conftest.err >&5 | |
a848cd7e SC |
30390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30391 | (exit $ac_status); } && | |
2cbbc68d RD |
30392 | { ac_try='test -z "$ac_c_werror_flag" |
30393 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30395 | (eval $ac_try) 2>&5 | |
30396 | ac_status=$? | |
30397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30398 | (exit $ac_status); }; } && | |
30399 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30401 | (eval $ac_try) 2>&5 | |
30402 | ac_status=$? | |
30403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30404 | (exit $ac_status); }; }; then | |
30405 | eval "$as_ac_var=yes" | |
30406 | else | |
30407 | echo "$as_me: failed program was:" >&5 | |
30408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30409 | ||
30410 | eval "$as_ac_var=no" | |
30411 | fi | |
ac1cb8d3 VS |
30412 | rm -f conftest.err conftest.$ac_objext \ |
30413 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30414 | fi |
30415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30416 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30417 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30418 | cat >>confdefs.h <<_ACEOF | |
30419 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30420 | _ACEOF | |
30421 | ||
30422 | fi | |
30423 | done | |
30424 | ||
30425 | ||
30426 | ||
30427 | ||
30428 | for ac_func in putenv setenv | |
30429 | do | |
30430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30433 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30435 | else | |
30436 | cat >conftest.$ac_ext <<_ACEOF | |
30437 | /* confdefs.h. */ | |
30438 | _ACEOF | |
30439 | cat confdefs.h >>conftest.$ac_ext | |
30440 | cat >>conftest.$ac_ext <<_ACEOF | |
30441 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30444 | #define $ac_func innocuous_$ac_func | |
30445 | ||
a848cd7e SC |
30446 | /* System header to define __stub macros and hopefully few prototypes, |
30447 | which can conflict with char $ac_func (); below. | |
30448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30449 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30450 | |
a848cd7e SC |
30451 | #ifdef __STDC__ |
30452 | # include <limits.h> | |
30453 | #else | |
30454 | # include <assert.h> | |
30455 | #endif | |
ac1cb8d3 VS |
30456 | |
30457 | #undef $ac_func | |
30458 | ||
a848cd7e SC |
30459 | /* Override any gcc2 internal prototype to avoid an error. */ |
30460 | #ifdef __cplusplus | |
30461 | extern "C" | |
30462 | { | |
30463 | #endif | |
30464 | /* We use char because int might match the return type of a gcc2 | |
30465 | builtin and then its argument prototype would still apply. */ | |
30466 | char $ac_func (); | |
30467 | /* The GNU C library defines this for functions which it implements | |
30468 | to always fail with ENOSYS. Some functions are actually named | |
30469 | something starting with __ and the normal name is an alias. */ | |
30470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30471 | choke me | |
30472 | #else | |
30473 | char (*f) () = $ac_func; | |
30474 | #endif | |
30475 | #ifdef __cplusplus | |
30476 | } | |
30477 | #endif | |
30478 | ||
30479 | int | |
30480 | main () | |
30481 | { | |
30482 | return f != $ac_func; | |
30483 | ; | |
30484 | return 0; | |
30485 | } | |
30486 | _ACEOF | |
30487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30489 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30490 | ac_status=$? |
ac1cb8d3 VS |
30491 | grep -v '^ *+' conftest.er1 >conftest.err |
30492 | rm -f conftest.er1 | |
30493 | cat conftest.err >&5 | |
a848cd7e SC |
30494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30495 | (exit $ac_status); } && | |
2cbbc68d RD |
30496 | { ac_try='test -z "$ac_c_werror_flag" |
30497 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30499 | (eval $ac_try) 2>&5 | |
30500 | ac_status=$? | |
30501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30502 | (exit $ac_status); }; } && | |
30503 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30505 | (eval $ac_try) 2>&5 | |
30506 | ac_status=$? | |
30507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30508 | (exit $ac_status); }; }; then | |
30509 | eval "$as_ac_var=yes" | |
30510 | else | |
30511 | echo "$as_me: failed program was:" >&5 | |
30512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30513 | ||
30514 | eval "$as_ac_var=no" | |
30515 | fi | |
ac1cb8d3 VS |
30516 | rm -f conftest.err conftest.$ac_objext \ |
30517 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30518 | fi |
30519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30521 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30522 | cat >>confdefs.h <<_ACEOF | |
30523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30524 | _ACEOF | |
30525 | break | |
30526 | fi | |
30527 | done | |
30528 | ||
30529 | ||
30530 | HAVE_SOME_SLEEP_FUNC=0 | |
30531 | if test "$USE_BEOS" = 1; then | |
30532 | cat >>confdefs.h <<\_ACEOF | |
30533 | #define HAVE_SLEEP 1 | |
30534 | _ACEOF | |
30535 | ||
30536 | HAVE_SOME_SLEEP_FUNC=1 | |
30537 | fi | |
30538 | ||
30539 | if test "$USE_DARWIN" = 1; then | |
30540 | cat >>confdefs.h <<\_ACEOF | |
30541 | #define HAVE_USLEEP 1 | |
30542 | _ACEOF | |
30543 | ||
30544 | HAVE_SOME_SLEEP_FUNC=1 | |
30545 | fi | |
30546 | ||
30547 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30548 | POSIX4_LINK= | |
30549 | ||
30550 | for ac_func in nanosleep | |
30551 | do | |
30552 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30553 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30554 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30555 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30557 | else | |
30558 | cat >conftest.$ac_ext <<_ACEOF | |
30559 | /* confdefs.h. */ | |
30560 | _ACEOF | |
30561 | cat confdefs.h >>conftest.$ac_ext | |
30562 | cat >>conftest.$ac_ext <<_ACEOF | |
30563 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30564 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30566 | #define $ac_func innocuous_$ac_func | |
30567 | ||
a848cd7e SC |
30568 | /* System header to define __stub macros and hopefully few prototypes, |
30569 | which can conflict with char $ac_func (); below. | |
30570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30571 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30572 | |
a848cd7e SC |
30573 | #ifdef __STDC__ |
30574 | # include <limits.h> | |
30575 | #else | |
30576 | # include <assert.h> | |
30577 | #endif | |
ac1cb8d3 VS |
30578 | |
30579 | #undef $ac_func | |
30580 | ||
a848cd7e SC |
30581 | /* Override any gcc2 internal prototype to avoid an error. */ |
30582 | #ifdef __cplusplus | |
30583 | extern "C" | |
30584 | { | |
30585 | #endif | |
30586 | /* We use char because int might match the return type of a gcc2 | |
30587 | builtin and then its argument prototype would still apply. */ | |
30588 | char $ac_func (); | |
30589 | /* The GNU C library defines this for functions which it implements | |
30590 | to always fail with ENOSYS. Some functions are actually named | |
30591 | something starting with __ and the normal name is an alias. */ | |
30592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30593 | choke me | |
30594 | #else | |
30595 | char (*f) () = $ac_func; | |
30596 | #endif | |
30597 | #ifdef __cplusplus | |
30598 | } | |
30599 | #endif | |
30600 | ||
30601 | int | |
30602 | main () | |
30603 | { | |
30604 | return f != $ac_func; | |
30605 | ; | |
30606 | return 0; | |
30607 | } | |
30608 | _ACEOF | |
30609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30611 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30612 | ac_status=$? |
ac1cb8d3 VS |
30613 | grep -v '^ *+' conftest.er1 >conftest.err |
30614 | rm -f conftest.er1 | |
30615 | cat conftest.err >&5 | |
a848cd7e SC |
30616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30617 | (exit $ac_status); } && | |
2cbbc68d RD |
30618 | { ac_try='test -z "$ac_c_werror_flag" |
30619 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30621 | (eval $ac_try) 2>&5 | |
30622 | ac_status=$? | |
30623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30624 | (exit $ac_status); }; } && | |
30625 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30627 | (eval $ac_try) 2>&5 | |
30628 | ac_status=$? | |
30629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30630 | (exit $ac_status); }; }; then | |
30631 | eval "$as_ac_var=yes" | |
30632 | else | |
30633 | echo "$as_me: failed program was:" >&5 | |
30634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30635 | ||
30636 | eval "$as_ac_var=no" | |
30637 | fi | |
ac1cb8d3 VS |
30638 | rm -f conftest.err conftest.$ac_objext \ |
30639 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30640 | fi |
30641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30642 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30643 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30644 | cat >>confdefs.h <<_ACEOF | |
30645 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30646 | _ACEOF | |
30647 | cat >>confdefs.h <<\_ACEOF | |
30648 | #define HAVE_NANOSLEEP 1 | |
30649 | _ACEOF | |
30650 | ||
30651 | else | |
30652 | ||
30653 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30654 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30655 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30657 | else | |
30658 | ac_check_lib_save_LIBS=$LIBS | |
30659 | LIBS="-lposix4 $LIBS" | |
30660 | cat >conftest.$ac_ext <<_ACEOF | |
30661 | /* confdefs.h. */ | |
30662 | _ACEOF | |
30663 | cat confdefs.h >>conftest.$ac_ext | |
30664 | cat >>conftest.$ac_ext <<_ACEOF | |
30665 | /* end confdefs.h. */ | |
30666 | ||
30667 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30668 | #ifdef __cplusplus | |
30669 | extern "C" | |
30670 | #endif | |
30671 | /* We use char because int might match the return type of a gcc2 | |
30672 | builtin and then its argument prototype would still apply. */ | |
30673 | char nanosleep (); | |
30674 | int | |
30675 | main () | |
30676 | { | |
30677 | nanosleep (); | |
30678 | ; | |
30679 | return 0; | |
30680 | } | |
30681 | _ACEOF | |
30682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30684 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30685 | ac_status=$? |
ac1cb8d3 VS |
30686 | grep -v '^ *+' conftest.er1 >conftest.err |
30687 | rm -f conftest.er1 | |
30688 | cat conftest.err >&5 | |
a848cd7e SC |
30689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30690 | (exit $ac_status); } && | |
2cbbc68d RD |
30691 | { ac_try='test -z "$ac_c_werror_flag" |
30692 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30694 | (eval $ac_try) 2>&5 | |
30695 | ac_status=$? | |
30696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30697 | (exit $ac_status); }; } && | |
30698 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30700 | (eval $ac_try) 2>&5 | |
30701 | ac_status=$? | |
30702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30703 | (exit $ac_status); }; }; then | |
30704 | ac_cv_lib_posix4_nanosleep=yes | |
30705 | else | |
30706 | echo "$as_me: failed program was:" >&5 | |
30707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30708 | ||
30709 | ac_cv_lib_posix4_nanosleep=no | |
30710 | fi | |
ac1cb8d3 VS |
30711 | rm -f conftest.err conftest.$ac_objext \ |
30712 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30713 | LIBS=$ac_check_lib_save_LIBS |
30714 | fi | |
30715 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30716 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30717 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30718 | ||
30719 | cat >>confdefs.h <<\_ACEOF | |
30720 | #define HAVE_NANOSLEEP 1 | |
30721 | _ACEOF | |
30722 | ||
30723 | POSIX4_LINK=" -lposix4" | |
30724 | ||
30725 | else | |
30726 | ||
30727 | ||
30728 | for ac_func in usleep | |
30729 | do | |
30730 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30731 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30732 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30733 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30735 | else | |
30736 | cat >conftest.$ac_ext <<_ACEOF | |
30737 | /* confdefs.h. */ | |
30738 | _ACEOF | |
30739 | cat confdefs.h >>conftest.$ac_ext | |
30740 | cat >>conftest.$ac_ext <<_ACEOF | |
30741 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30742 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30743 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30744 | #define $ac_func innocuous_$ac_func | |
30745 | ||
a848cd7e SC |
30746 | /* System header to define __stub macros and hopefully few prototypes, |
30747 | which can conflict with char $ac_func (); below. | |
30748 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30749 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30750 | |
a848cd7e SC |
30751 | #ifdef __STDC__ |
30752 | # include <limits.h> | |
30753 | #else | |
30754 | # include <assert.h> | |
30755 | #endif | |
ac1cb8d3 VS |
30756 | |
30757 | #undef $ac_func | |
30758 | ||
a848cd7e SC |
30759 | /* Override any gcc2 internal prototype to avoid an error. */ |
30760 | #ifdef __cplusplus | |
30761 | extern "C" | |
30762 | { | |
30763 | #endif | |
30764 | /* We use char because int might match the return type of a gcc2 | |
30765 | builtin and then its argument prototype would still apply. */ | |
30766 | char $ac_func (); | |
30767 | /* The GNU C library defines this for functions which it implements | |
30768 | to always fail with ENOSYS. Some functions are actually named | |
30769 | something starting with __ and the normal name is an alias. */ | |
30770 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30771 | choke me | |
30772 | #else | |
30773 | char (*f) () = $ac_func; | |
30774 | #endif | |
30775 | #ifdef __cplusplus | |
30776 | } | |
30777 | #endif | |
30778 | ||
30779 | int | |
30780 | main () | |
30781 | { | |
30782 | return f != $ac_func; | |
30783 | ; | |
30784 | return 0; | |
30785 | } | |
30786 | _ACEOF | |
30787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30789 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30790 | ac_status=$? |
ac1cb8d3 VS |
30791 | grep -v '^ *+' conftest.er1 >conftest.err |
30792 | rm -f conftest.er1 | |
30793 | cat conftest.err >&5 | |
a848cd7e SC |
30794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30795 | (exit $ac_status); } && | |
2cbbc68d RD |
30796 | { ac_try='test -z "$ac_c_werror_flag" |
30797 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30799 | (eval $ac_try) 2>&5 | |
30800 | ac_status=$? | |
30801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30802 | (exit $ac_status); }; } && | |
30803 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30805 | (eval $ac_try) 2>&5 | |
30806 | ac_status=$? | |
30807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30808 | (exit $ac_status); }; }; then | |
30809 | eval "$as_ac_var=yes" | |
30810 | else | |
30811 | echo "$as_me: failed program was:" >&5 | |
30812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30813 | ||
30814 | eval "$as_ac_var=no" | |
30815 | fi | |
ac1cb8d3 VS |
30816 | rm -f conftest.err conftest.$ac_objext \ |
30817 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30818 | fi |
30819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30820 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30821 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30822 | cat >>confdefs.h <<_ACEOF | |
30823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30824 | _ACEOF | |
30825 | cat >>confdefs.h <<\_ACEOF | |
30826 | #define HAVE_USLEEP 1 | |
30827 | _ACEOF | |
30828 | ||
30829 | else | |
30830 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30831 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30832 | ||
30833 | fi | |
30834 | done | |
30835 | ||
30836 | ||
30837 | ||
30838 | fi | |
30839 | ||
30840 | ||
30841 | ||
30842 | fi | |
30843 | done | |
30844 | ||
30845 | fi | |
30846 | ||
30847 | ||
30848 | ||
30849 | for ac_func in uname gethostname | |
30850 | do | |
30851 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30852 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30853 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30854 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30856 | else | |
30857 | cat >conftest.$ac_ext <<_ACEOF | |
30858 | /* confdefs.h. */ | |
30859 | _ACEOF | |
30860 | cat confdefs.h >>conftest.$ac_ext | |
30861 | cat >>conftest.$ac_ext <<_ACEOF | |
30862 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30863 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30864 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30865 | #define $ac_func innocuous_$ac_func | |
30866 | ||
a848cd7e SC |
30867 | /* System header to define __stub macros and hopefully few prototypes, |
30868 | which can conflict with char $ac_func (); below. | |
30869 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30870 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30871 | |
a848cd7e SC |
30872 | #ifdef __STDC__ |
30873 | # include <limits.h> | |
30874 | #else | |
30875 | # include <assert.h> | |
30876 | #endif | |
ac1cb8d3 VS |
30877 | |
30878 | #undef $ac_func | |
30879 | ||
a848cd7e SC |
30880 | /* Override any gcc2 internal prototype to avoid an error. */ |
30881 | #ifdef __cplusplus | |
30882 | extern "C" | |
30883 | { | |
30884 | #endif | |
30885 | /* We use char because int might match the return type of a gcc2 | |
30886 | builtin and then its argument prototype would still apply. */ | |
30887 | char $ac_func (); | |
30888 | /* The GNU C library defines this for functions which it implements | |
30889 | to always fail with ENOSYS. Some functions are actually named | |
30890 | something starting with __ and the normal name is an alias. */ | |
30891 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30892 | choke me | |
30893 | #else | |
30894 | char (*f) () = $ac_func; | |
30895 | #endif | |
30896 | #ifdef __cplusplus | |
30897 | } | |
30898 | #endif | |
30899 | ||
30900 | int | |
30901 | main () | |
30902 | { | |
30903 | return f != $ac_func; | |
30904 | ; | |
30905 | return 0; | |
30906 | } | |
30907 | _ACEOF | |
30908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30910 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30911 | ac_status=$? |
ac1cb8d3 VS |
30912 | grep -v '^ *+' conftest.er1 >conftest.err |
30913 | rm -f conftest.er1 | |
30914 | cat conftest.err >&5 | |
a848cd7e SC |
30915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30916 | (exit $ac_status); } && | |
2cbbc68d RD |
30917 | { ac_try='test -z "$ac_c_werror_flag" |
30918 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30920 | (eval $ac_try) 2>&5 | |
30921 | ac_status=$? | |
30922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30923 | (exit $ac_status); }; } && | |
30924 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30926 | (eval $ac_try) 2>&5 | |
30927 | ac_status=$? | |
30928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30929 | (exit $ac_status); }; }; then | |
30930 | eval "$as_ac_var=yes" | |
30931 | else | |
30932 | echo "$as_me: failed program was:" >&5 | |
30933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30934 | ||
30935 | eval "$as_ac_var=no" | |
30936 | fi | |
ac1cb8d3 VS |
30937 | rm -f conftest.err conftest.$ac_objext \ |
30938 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30939 | fi |
30940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30941 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30942 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30943 | cat >>confdefs.h <<_ACEOF | |
30944 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30945 | _ACEOF | |
30946 | break | |
30947 | fi | |
30948 | done | |
30949 | ||
30950 | ||
30951 | ||
30952 | ||
30953 | ac_ext=cc | |
30954 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30955 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30956 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30957 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30958 | ||
30959 | ||
30960 | ||
30961 | for ac_func in strtok_r | |
30962 | do | |
30963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30964 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30966 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30968 | else | |
30969 | cat >conftest.$ac_ext <<_ACEOF | |
30970 | /* confdefs.h. */ | |
30971 | _ACEOF | |
30972 | cat confdefs.h >>conftest.$ac_ext | |
30973 | cat >>conftest.$ac_ext <<_ACEOF | |
30974 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30975 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30976 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30977 | #define $ac_func innocuous_$ac_func | |
30978 | ||
a848cd7e SC |
30979 | /* System header to define __stub macros and hopefully few prototypes, |
30980 | which can conflict with char $ac_func (); below. | |
30981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30982 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30983 | |
a848cd7e SC |
30984 | #ifdef __STDC__ |
30985 | # include <limits.h> | |
30986 | #else | |
30987 | # include <assert.h> | |
30988 | #endif | |
ac1cb8d3 VS |
30989 | |
30990 | #undef $ac_func | |
30991 | ||
a848cd7e SC |
30992 | /* Override any gcc2 internal prototype to avoid an error. */ |
30993 | #ifdef __cplusplus | |
30994 | extern "C" | |
30995 | { | |
30996 | #endif | |
30997 | /* We use char because int might match the return type of a gcc2 | |
30998 | builtin and then its argument prototype would still apply. */ | |
30999 | char $ac_func (); | |
31000 | /* The GNU C library defines this for functions which it implements | |
31001 | to always fail with ENOSYS. Some functions are actually named | |
31002 | something starting with __ and the normal name is an alias. */ | |
31003 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31004 | choke me | |
31005 | #else | |
31006 | char (*f) () = $ac_func; | |
31007 | #endif | |
31008 | #ifdef __cplusplus | |
31009 | } | |
31010 | #endif | |
31011 | ||
31012 | int | |
31013 | main () | |
31014 | { | |
31015 | return f != $ac_func; | |
31016 | ; | |
31017 | return 0; | |
31018 | } | |
31019 | _ACEOF | |
31020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31022 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31023 | ac_status=$? |
ac1cb8d3 VS |
31024 | grep -v '^ *+' conftest.er1 >conftest.err |
31025 | rm -f conftest.er1 | |
31026 | cat conftest.err >&5 | |
a848cd7e SC |
31027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31028 | (exit $ac_status); } && | |
2cbbc68d RD |
31029 | { ac_try='test -z "$ac_cxx_werror_flag" |
31030 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31032 | (eval $ac_try) 2>&5 | |
31033 | ac_status=$? | |
31034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31035 | (exit $ac_status); }; } && | |
31036 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31038 | (eval $ac_try) 2>&5 | |
31039 | ac_status=$? | |
31040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31041 | (exit $ac_status); }; }; then | |
31042 | eval "$as_ac_var=yes" | |
31043 | else | |
31044 | echo "$as_me: failed program was:" >&5 | |
31045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31046 | ||
31047 | eval "$as_ac_var=no" | |
31048 | fi | |
ac1cb8d3 VS |
31049 | rm -f conftest.err conftest.$ac_objext \ |
31050 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31051 | fi |
31052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31053 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31054 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31055 | cat >>confdefs.h <<_ACEOF | |
31056 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31057 | _ACEOF | |
31058 | ||
31059 | fi | |
31060 | done | |
31061 | ||
31062 | ||
31063 | ac_ext=c | |
31064 | ac_cpp='$CPP $CPPFLAGS' | |
31065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31068 | ||
31069 | ||
31070 | INET_LINK= | |
31071 | ||
31072 | for ac_func in inet_addr | |
31073 | do | |
31074 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31075 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31076 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31077 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31079 | else | |
31080 | cat >conftest.$ac_ext <<_ACEOF | |
31081 | /* confdefs.h. */ | |
31082 | _ACEOF | |
31083 | cat confdefs.h >>conftest.$ac_ext | |
31084 | cat >>conftest.$ac_ext <<_ACEOF | |
31085 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31086 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31087 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31088 | #define $ac_func innocuous_$ac_func | |
31089 | ||
a848cd7e SC |
31090 | /* System header to define __stub macros and hopefully few prototypes, |
31091 | which can conflict with char $ac_func (); below. | |
31092 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31093 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31094 | |
a848cd7e SC |
31095 | #ifdef __STDC__ |
31096 | # include <limits.h> | |
31097 | #else | |
31098 | # include <assert.h> | |
31099 | #endif | |
ac1cb8d3 VS |
31100 | |
31101 | #undef $ac_func | |
31102 | ||
a848cd7e SC |
31103 | /* Override any gcc2 internal prototype to avoid an error. */ |
31104 | #ifdef __cplusplus | |
31105 | extern "C" | |
31106 | { | |
31107 | #endif | |
31108 | /* We use char because int might match the return type of a gcc2 | |
31109 | builtin and then its argument prototype would still apply. */ | |
31110 | char $ac_func (); | |
31111 | /* The GNU C library defines this for functions which it implements | |
31112 | to always fail with ENOSYS. Some functions are actually named | |
31113 | something starting with __ and the normal name is an alias. */ | |
31114 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31115 | choke me | |
31116 | #else | |
31117 | char (*f) () = $ac_func; | |
31118 | #endif | |
31119 | #ifdef __cplusplus | |
31120 | } | |
31121 | #endif | |
31122 | ||
31123 | int | |
31124 | main () | |
31125 | { | |
31126 | return f != $ac_func; | |
31127 | ; | |
31128 | return 0; | |
31129 | } | |
31130 | _ACEOF | |
31131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31133 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31134 | ac_status=$? |
ac1cb8d3 VS |
31135 | grep -v '^ *+' conftest.er1 >conftest.err |
31136 | rm -f conftest.er1 | |
31137 | cat conftest.err >&5 | |
a848cd7e SC |
31138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31139 | (exit $ac_status); } && | |
2cbbc68d RD |
31140 | { ac_try='test -z "$ac_c_werror_flag" |
31141 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31143 | (eval $ac_try) 2>&5 | |
31144 | ac_status=$? | |
31145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31146 | (exit $ac_status); }; } && | |
31147 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31149 | (eval $ac_try) 2>&5 | |
31150 | ac_status=$? | |
31151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31152 | (exit $ac_status); }; }; then | |
31153 | eval "$as_ac_var=yes" | |
31154 | else | |
31155 | echo "$as_me: failed program was:" >&5 | |
31156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31157 | ||
31158 | eval "$as_ac_var=no" | |
31159 | fi | |
ac1cb8d3 VS |
31160 | rm -f conftest.err conftest.$ac_objext \ |
31161 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31162 | fi |
31163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31164 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31165 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31166 | cat >>confdefs.h <<_ACEOF | |
31167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31168 | _ACEOF | |
31169 | cat >>confdefs.h <<\_ACEOF | |
31170 | #define HAVE_INET_ADDR 1 | |
31171 | _ACEOF | |
31172 | ||
31173 | else | |
31174 | ||
31175 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31176 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31177 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31179 | else | |
31180 | ac_check_lib_save_LIBS=$LIBS | |
31181 | LIBS="-lnsl $LIBS" | |
31182 | cat >conftest.$ac_ext <<_ACEOF | |
31183 | /* confdefs.h. */ | |
31184 | _ACEOF | |
31185 | cat confdefs.h >>conftest.$ac_ext | |
31186 | cat >>conftest.$ac_ext <<_ACEOF | |
31187 | /* end confdefs.h. */ | |
31188 | ||
31189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31190 | #ifdef __cplusplus | |
31191 | extern "C" | |
31192 | #endif | |
31193 | /* We use char because int might match the return type of a gcc2 | |
31194 | builtin and then its argument prototype would still apply. */ | |
31195 | char inet_addr (); | |
31196 | int | |
31197 | main () | |
31198 | { | |
31199 | inet_addr (); | |
31200 | ; | |
31201 | return 0; | |
31202 | } | |
31203 | _ACEOF | |
31204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31206 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31207 | ac_status=$? |
ac1cb8d3 VS |
31208 | grep -v '^ *+' conftest.er1 >conftest.err |
31209 | rm -f conftest.er1 | |
31210 | cat conftest.err >&5 | |
a848cd7e SC |
31211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31212 | (exit $ac_status); } && | |
2cbbc68d RD |
31213 | { ac_try='test -z "$ac_c_werror_flag" |
31214 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31216 | (eval $ac_try) 2>&5 | |
31217 | ac_status=$? | |
31218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31219 | (exit $ac_status); }; } && | |
31220 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31222 | (eval $ac_try) 2>&5 | |
31223 | ac_status=$? | |
31224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31225 | (exit $ac_status); }; }; then | |
31226 | ac_cv_lib_nsl_inet_addr=yes | |
31227 | else | |
31228 | echo "$as_me: failed program was:" >&5 | |
31229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31230 | ||
31231 | ac_cv_lib_nsl_inet_addr=no | |
31232 | fi | |
ac1cb8d3 VS |
31233 | rm -f conftest.err conftest.$ac_objext \ |
31234 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31235 | LIBS=$ac_check_lib_save_LIBS |
31236 | fi | |
31237 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31238 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31239 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31240 | INET_LINK="nsl" | |
31241 | else | |
31242 | ||
31243 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31244 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31245 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31247 | else | |
31248 | ac_check_lib_save_LIBS=$LIBS | |
31249 | LIBS="-lresolv $LIBS" | |
31250 | cat >conftest.$ac_ext <<_ACEOF | |
31251 | /* confdefs.h. */ | |
31252 | _ACEOF | |
31253 | cat confdefs.h >>conftest.$ac_ext | |
31254 | cat >>conftest.$ac_ext <<_ACEOF | |
31255 | /* end confdefs.h. */ | |
31256 | ||
31257 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31258 | #ifdef __cplusplus | |
31259 | extern "C" | |
31260 | #endif | |
31261 | /* We use char because int might match the return type of a gcc2 | |
31262 | builtin and then its argument prototype would still apply. */ | |
31263 | char inet_addr (); | |
31264 | int | |
31265 | main () | |
31266 | { | |
31267 | inet_addr (); | |
31268 | ; | |
31269 | return 0; | |
31270 | } | |
31271 | _ACEOF | |
31272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31274 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31275 | ac_status=$? |
ac1cb8d3 VS |
31276 | grep -v '^ *+' conftest.er1 >conftest.err |
31277 | rm -f conftest.er1 | |
31278 | cat conftest.err >&5 | |
a848cd7e SC |
31279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31280 | (exit $ac_status); } && | |
2cbbc68d RD |
31281 | { ac_try='test -z "$ac_c_werror_flag" |
31282 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31284 | (eval $ac_try) 2>&5 | |
31285 | ac_status=$? | |
31286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31287 | (exit $ac_status); }; } && | |
31288 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31290 | (eval $ac_try) 2>&5 | |
31291 | ac_status=$? | |
31292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31293 | (exit $ac_status); }; }; then | |
31294 | ac_cv_lib_resolv_inet_addr=yes | |
31295 | else | |
31296 | echo "$as_me: failed program was:" >&5 | |
31297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31298 | ||
31299 | ac_cv_lib_resolv_inet_addr=no | |
31300 | fi | |
ac1cb8d3 VS |
31301 | rm -f conftest.err conftest.$ac_objext \ |
31302 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31303 | LIBS=$ac_check_lib_save_LIBS |
31304 | fi | |
31305 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31306 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31307 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31308 | INET_LINK="resolv" | |
31309 | else | |
31310 | ||
31311 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31312 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31313 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31315 | else | |
31316 | ac_check_lib_save_LIBS=$LIBS | |
31317 | LIBS="-lsocket $LIBS" | |
31318 | cat >conftest.$ac_ext <<_ACEOF | |
31319 | /* confdefs.h. */ | |
31320 | _ACEOF | |
31321 | cat confdefs.h >>conftest.$ac_ext | |
31322 | cat >>conftest.$ac_ext <<_ACEOF | |
31323 | /* end confdefs.h. */ | |
31324 | ||
31325 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31326 | #ifdef __cplusplus | |
31327 | extern "C" | |
31328 | #endif | |
31329 | /* We use char because int might match the return type of a gcc2 | |
31330 | builtin and then its argument prototype would still apply. */ | |
31331 | char inet_addr (); | |
31332 | int | |
31333 | main () | |
31334 | { | |
31335 | inet_addr (); | |
31336 | ; | |
31337 | return 0; | |
31338 | } | |
31339 | _ACEOF | |
31340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31342 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31343 | ac_status=$? |
ac1cb8d3 VS |
31344 | grep -v '^ *+' conftest.er1 >conftest.err |
31345 | rm -f conftest.er1 | |
31346 | cat conftest.err >&5 | |
a848cd7e SC |
31347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31348 | (exit $ac_status); } && | |
2cbbc68d RD |
31349 | { ac_try='test -z "$ac_c_werror_flag" |
31350 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31352 | (eval $ac_try) 2>&5 | |
31353 | ac_status=$? | |
31354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31355 | (exit $ac_status); }; } && | |
31356 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31358 | (eval $ac_try) 2>&5 | |
31359 | ac_status=$? | |
31360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31361 | (exit $ac_status); }; }; then | |
31362 | ac_cv_lib_socket_inet_addr=yes | |
31363 | else | |
31364 | echo "$as_me: failed program was:" >&5 | |
31365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31366 | ||
31367 | ac_cv_lib_socket_inet_addr=no | |
31368 | fi | |
ac1cb8d3 VS |
31369 | rm -f conftest.err conftest.$ac_objext \ |
31370 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31371 | LIBS=$ac_check_lib_save_LIBS |
31372 | fi | |
31373 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31374 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31375 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31376 | INET_LINK="socket" | |
31377 | ||
31378 | fi | |
31379 | ||
31380 | ||
31381 | ||
31382 | fi | |
31383 | ||
31384 | ||
31385 | ||
31386 | fi | |
31387 | ||
31388 | ||
31389 | ||
31390 | fi | |
31391 | done | |
31392 | ||
31393 | ||
31394 | ||
31395 | for ac_func in inet_aton | |
31396 | do | |
31397 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31398 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31399 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31400 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31402 | else | |
31403 | cat >conftest.$ac_ext <<_ACEOF | |
31404 | /* confdefs.h. */ | |
31405 | _ACEOF | |
31406 | cat confdefs.h >>conftest.$ac_ext | |
31407 | cat >>conftest.$ac_ext <<_ACEOF | |
31408 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31409 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31410 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31411 | #define $ac_func innocuous_$ac_func | |
31412 | ||
a848cd7e SC |
31413 | /* System header to define __stub macros and hopefully few prototypes, |
31414 | which can conflict with char $ac_func (); below. | |
31415 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31416 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31417 | |
a848cd7e SC |
31418 | #ifdef __STDC__ |
31419 | # include <limits.h> | |
31420 | #else | |
31421 | # include <assert.h> | |
31422 | #endif | |
ac1cb8d3 VS |
31423 | |
31424 | #undef $ac_func | |
31425 | ||
a848cd7e SC |
31426 | /* Override any gcc2 internal prototype to avoid an error. */ |
31427 | #ifdef __cplusplus | |
31428 | extern "C" | |
31429 | { | |
31430 | #endif | |
31431 | /* We use char because int might match the return type of a gcc2 | |
31432 | builtin and then its argument prototype would still apply. */ | |
31433 | char $ac_func (); | |
31434 | /* The GNU C library defines this for functions which it implements | |
31435 | to always fail with ENOSYS. Some functions are actually named | |
31436 | something starting with __ and the normal name is an alias. */ | |
31437 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31438 | choke me | |
31439 | #else | |
31440 | char (*f) () = $ac_func; | |
31441 | #endif | |
31442 | #ifdef __cplusplus | |
31443 | } | |
31444 | #endif | |
31445 | ||
31446 | int | |
31447 | main () | |
31448 | { | |
31449 | return f != $ac_func; | |
31450 | ; | |
31451 | return 0; | |
31452 | } | |
31453 | _ACEOF | |
31454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31456 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31457 | ac_status=$? |
ac1cb8d3 VS |
31458 | grep -v '^ *+' conftest.er1 >conftest.err |
31459 | rm -f conftest.er1 | |
31460 | cat conftest.err >&5 | |
a848cd7e SC |
31461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31462 | (exit $ac_status); } && | |
2cbbc68d RD |
31463 | { ac_try='test -z "$ac_c_werror_flag" |
31464 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31466 | (eval $ac_try) 2>&5 | |
31467 | ac_status=$? | |
31468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31469 | (exit $ac_status); }; } && | |
31470 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31472 | (eval $ac_try) 2>&5 | |
31473 | ac_status=$? | |
31474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31475 | (exit $ac_status); }; }; then | |
31476 | eval "$as_ac_var=yes" | |
31477 | else | |
31478 | echo "$as_me: failed program was:" >&5 | |
31479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31480 | ||
31481 | eval "$as_ac_var=no" | |
31482 | fi | |
ac1cb8d3 VS |
31483 | rm -f conftest.err conftest.$ac_objext \ |
31484 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31485 | fi |
31486 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31487 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31488 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31489 | cat >>confdefs.h <<_ACEOF | |
31490 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31491 | _ACEOF | |
31492 | cat >>confdefs.h <<\_ACEOF | |
31493 | #define HAVE_INET_ATON 1 | |
31494 | _ACEOF | |
31495 | ||
31496 | else | |
31497 | ||
31498 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31499 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31500 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31501 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31503 | else | |
31504 | ac_check_lib_save_LIBS=$LIBS | |
31505 | LIBS="-l$INET_LINK $LIBS" | |
31506 | cat >conftest.$ac_ext <<_ACEOF | |
31507 | /* confdefs.h. */ | |
31508 | _ACEOF | |
31509 | cat confdefs.h >>conftest.$ac_ext | |
31510 | cat >>conftest.$ac_ext <<_ACEOF | |
31511 | /* end confdefs.h. */ | |
31512 | ||
31513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31514 | #ifdef __cplusplus | |
31515 | extern "C" | |
31516 | #endif | |
31517 | /* We use char because int might match the return type of a gcc2 | |
31518 | builtin and then its argument prototype would still apply. */ | |
31519 | char inet_aton (); | |
31520 | int | |
31521 | main () | |
31522 | { | |
31523 | inet_aton (); | |
31524 | ; | |
31525 | return 0; | |
31526 | } | |
31527 | _ACEOF | |
31528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31530 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31531 | ac_status=$? |
ac1cb8d3 VS |
31532 | grep -v '^ *+' conftest.er1 >conftest.err |
31533 | rm -f conftest.er1 | |
31534 | cat conftest.err >&5 | |
a848cd7e SC |
31535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31536 | (exit $ac_status); } && | |
2cbbc68d RD |
31537 | { ac_try='test -z "$ac_c_werror_flag" |
31538 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31540 | (eval $ac_try) 2>&5 | |
31541 | ac_status=$? | |
31542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31543 | (exit $ac_status); }; } && | |
31544 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31546 | (eval $ac_try) 2>&5 | |
31547 | ac_status=$? | |
31548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31549 | (exit $ac_status); }; }; then | |
31550 | eval "$as_ac_Lib=yes" | |
31551 | else | |
31552 | echo "$as_me: failed program was:" >&5 | |
31553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31554 | ||
31555 | eval "$as_ac_Lib=no" | |
31556 | fi | |
ac1cb8d3 VS |
31557 | rm -f conftest.err conftest.$ac_objext \ |
31558 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31559 | LIBS=$ac_check_lib_save_LIBS |
31560 | fi | |
31561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31562 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31563 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31564 | cat >>confdefs.h <<\_ACEOF | |
31565 | #define HAVE_INET_ATON 1 | |
31566 | _ACEOF | |
31567 | ||
31568 | fi | |
31569 | ||
31570 | ||
31571 | fi | |
31572 | done | |
31573 | ||
31574 | ||
31575 | if test "x$INET_LINK" != "x"; then | |
31576 | cat >>confdefs.h <<\_ACEOF | |
31577 | #define HAVE_INET_ADDR 1 | |
31578 | _ACEOF | |
31579 | ||
31580 | INET_LINK=" -l$INET_LINK" | |
31581 | fi | |
31582 | ||
31583 | fi | |
31584 | ||
31585 | ||
31586 | ||
31587 | EXTRALIBS_ESD= | |
31588 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31589 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31590 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31592 | else | |
31593 | ac_check_lib_save_LIBS=$LIBS | |
31594 | LIBS="-lesd $LIBS" | |
31595 | cat >conftest.$ac_ext <<_ACEOF | |
31596 | /* confdefs.h. */ | |
31597 | _ACEOF | |
31598 | cat confdefs.h >>conftest.$ac_ext | |
31599 | cat >>conftest.$ac_ext <<_ACEOF | |
31600 | /* end confdefs.h. */ | |
31601 | ||
31602 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31603 | #ifdef __cplusplus | |
31604 | extern "C" | |
31605 | #endif | |
31606 | /* We use char because int might match the return type of a gcc2 | |
31607 | builtin and then its argument prototype would still apply. */ | |
31608 | char esd_close (); | |
31609 | int | |
31610 | main () | |
31611 | { | |
31612 | esd_close (); | |
31613 | ; | |
31614 | return 0; | |
31615 | } | |
31616 | _ACEOF | |
31617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31619 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31620 | ac_status=$? |
ac1cb8d3 VS |
31621 | grep -v '^ *+' conftest.er1 >conftest.err |
31622 | rm -f conftest.er1 | |
31623 | cat conftest.err >&5 | |
a848cd7e SC |
31624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31625 | (exit $ac_status); } && | |
2cbbc68d RD |
31626 | { ac_try='test -z "$ac_c_werror_flag" |
31627 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31629 | (eval $ac_try) 2>&5 | |
31630 | ac_status=$? | |
31631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31632 | (exit $ac_status); }; } && | |
31633 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31635 | (eval $ac_try) 2>&5 | |
31636 | ac_status=$? | |
31637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31638 | (exit $ac_status); }; }; then | |
31639 | ac_cv_lib_esd_esd_close=yes | |
31640 | else | |
31641 | echo "$as_me: failed program was:" >&5 | |
31642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31643 | ||
31644 | ac_cv_lib_esd_esd_close=no | |
31645 | fi | |
ac1cb8d3 VS |
31646 | rm -f conftest.err conftest.$ac_objext \ |
31647 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31648 | LIBS=$ac_check_lib_save_LIBS |
31649 | fi | |
31650 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31651 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31652 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31653 | ||
31654 | ||
31655 | for ac_header in esd.h | |
31656 | do | |
31657 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31658 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31659 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31660 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31663 | fi | |
31664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31665 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31666 | else | |
31667 | # Is the header compilable? | |
31668 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31669 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31670 | cat >conftest.$ac_ext <<_ACEOF | |
31671 | /* confdefs.h. */ | |
31672 | _ACEOF | |
31673 | cat confdefs.h >>conftest.$ac_ext | |
31674 | cat >>conftest.$ac_ext <<_ACEOF | |
31675 | /* end confdefs.h. */ | |
31676 | $ac_includes_default | |
31677 | #include <$ac_header> | |
31678 | _ACEOF | |
31679 | rm -f conftest.$ac_objext | |
31680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31681 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31682 | ac_status=$? |
ac1cb8d3 VS |
31683 | grep -v '^ *+' conftest.er1 >conftest.err |
31684 | rm -f conftest.er1 | |
31685 | cat conftest.err >&5 | |
a848cd7e SC |
31686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31687 | (exit $ac_status); } && | |
2cbbc68d RD |
31688 | { ac_try='test -z "$ac_c_werror_flag" |
31689 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31691 | (eval $ac_try) 2>&5 | |
31692 | ac_status=$? | |
31693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31694 | (exit $ac_status); }; } && | |
31695 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31697 | (eval $ac_try) 2>&5 | |
31698 | ac_status=$? | |
31699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31700 | (exit $ac_status); }; }; then | |
31701 | ac_header_compiler=yes | |
31702 | else | |
31703 | echo "$as_me: failed program was:" >&5 | |
31704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31705 | ||
31706 | ac_header_compiler=no | |
31707 | fi | |
ac1cb8d3 | 31708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31709 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31710 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31711 | ||
31712 | # Is the header present? | |
31713 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31714 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31715 | cat >conftest.$ac_ext <<_ACEOF | |
31716 | /* confdefs.h. */ | |
31717 | _ACEOF | |
31718 | cat confdefs.h >>conftest.$ac_ext | |
31719 | cat >>conftest.$ac_ext <<_ACEOF | |
31720 | /* end confdefs.h. */ | |
31721 | #include <$ac_header> | |
31722 | _ACEOF | |
31723 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31724 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31725 | ac_status=$? | |
31726 | grep -v '^ *+' conftest.er1 >conftest.err | |
31727 | rm -f conftest.er1 | |
31728 | cat conftest.err >&5 | |
31729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31730 | (exit $ac_status); } >/dev/null; then | |
31731 | if test -s conftest.err; then | |
31732 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31733 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31734 | else |
31735 | ac_cpp_err= | |
31736 | fi | |
31737 | else | |
31738 | ac_cpp_err=yes | |
31739 | fi | |
31740 | if test -z "$ac_cpp_err"; then | |
31741 | ac_header_preproc=yes | |
31742 | else | |
31743 | echo "$as_me: failed program was:" >&5 | |
31744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31745 | ||
31746 | ac_header_preproc=no | |
31747 | fi | |
31748 | rm -f conftest.err conftest.$ac_ext | |
31749 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31750 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31751 | ||
31752 | # So? What about this header? | |
ac1cb8d3 VS |
31753 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31754 | yes:no: ) | |
a848cd7e SC |
31755 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31756 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31757 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31758 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31759 | ac_header_preproc=yes | |
a848cd7e | 31760 | ;; |
ac1cb8d3 | 31761 | no:yes:* ) |
a848cd7e SC |
31762 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31763 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31764 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31765 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31766 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31767 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31768 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31769 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31770 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31771 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31772 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31773 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31774 | ( |
31775 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31776 | ## ----------------------------------------- ## |
31777 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31778 | ## ----------------------------------------- ## | |
a848cd7e SC |
31779 | _ASBOX |
31780 | ) | | |
31781 | sed "s/^/$as_me: WARNING: /" >&2 | |
31782 | ;; | |
31783 | esac | |
31784 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31785 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31786 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31788 | else | |
ac1cb8d3 | 31789 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31790 | fi |
31791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31792 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31793 | ||
31794 | fi | |
31795 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31796 | cat >>confdefs.h <<_ACEOF | |
31797 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31798 | _ACEOF | |
31799 | ||
31800 | EXTRALIBS_ESD="-lesd" | |
31801 | ||
31802 | fi | |
31803 | ||
31804 | done | |
31805 | ||
31806 | ||
31807 | fi | |
31808 | ||
31809 | ||
31810 | ||
31811 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31812 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31813 | cat >conftest.$ac_ext <<_ACEOF | |
31814 | /* confdefs.h. */ | |
31815 | _ACEOF | |
31816 | cat confdefs.h >>conftest.$ac_ext | |
31817 | cat >>conftest.$ac_ext <<_ACEOF | |
31818 | /* end confdefs.h. */ | |
31819 | #ifdef __linux__ | |
31820 | #include <linux/cdrom.h> | |
31821 | #else | |
31822 | /* For Solaris */ | |
31823 | #include <sys/cdio.h> | |
31824 | #endif | |
31825 | ||
31826 | int | |
31827 | main () | |
31828 | { | |
31829 | struct cdrom_tocentry entry, old_entry; | |
31830 | ; | |
31831 | return 0; | |
31832 | } | |
31833 | _ACEOF | |
31834 | rm -f conftest.$ac_objext | |
31835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31836 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31837 | ac_status=$? |
ac1cb8d3 VS |
31838 | grep -v '^ *+' conftest.er1 >conftest.err |
31839 | rm -f conftest.er1 | |
31840 | cat conftest.err >&5 | |
a848cd7e SC |
31841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31842 | (exit $ac_status); } && | |
2cbbc68d RD |
31843 | { ac_try='test -z "$ac_c_werror_flag" |
31844 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31846 | (eval $ac_try) 2>&5 | |
31847 | ac_status=$? | |
31848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31849 | (exit $ac_status); }; } && | |
31850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31852 | (eval $ac_try) 2>&5 | |
31853 | ac_status=$? | |
31854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31855 | (exit $ac_status); }; }; then | |
31856 | echo "$as_me:$LINENO: result: yes" >&5 | |
31857 | echo "${ECHO_T}yes" >&6 | |
31858 | cat >>confdefs.h <<\_ACEOF | |
31859 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31860 | _ACEOF | |
31861 | ||
31862 | else | |
31863 | echo "$as_me: failed program was:" >&5 | |
31864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31865 | ||
31866 | echo "$as_me:$LINENO: result: no" >&5 | |
31867 | echo "${ECHO_T}no" >&6 | |
31868 | fi | |
ac1cb8d3 | 31869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31870 | |
31871 | ||
31872 | cat >confcache <<\_ACEOF | |
31873 | # This file is a shell script that caches the results of configure | |
31874 | # tests run on this system so they can be shared between configure | |
31875 | # scripts and configure runs, see configure's option --config-cache. | |
31876 | # It is not useful on other systems. If it contains results you don't | |
31877 | # want to keep, you may remove or edit it. | |
31878 | # | |
31879 | # config.status only pays attention to the cache file if you give it | |
31880 | # the --recheck option to rerun configure. | |
31881 | # | |
31882 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31883 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31884 | # following values. | |
31885 | ||
31886 | _ACEOF | |
31887 | ||
31888 | # The following way of writing the cache mishandles newlines in values, | |
31889 | # but we know of no workaround that is simple, portable, and efficient. | |
31890 | # So, don't put newlines in cache variables' values. | |
31891 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31892 | # and sets the high bit in the cache file unless we assign to the vars. | |
31893 | { | |
31894 | (set) 2>&1 | | |
31895 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31896 | *ac_space=\ *) | |
31897 | # `set' does not quote correctly, so add quotes (double-quote | |
31898 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31899 | sed -n \ | |
ac1cb8d3 VS |
31900 | "s/'/'\\\\''/g; |
31901 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31902 | ;; |
31903 | *) | |
31904 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31905 | sed -n \ | |
ac1cb8d3 | 31906 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31907 | ;; |
31908 | esac; | |
31909 | } | | |
31910 | sed ' | |
31911 | t clear | |
31912 | : clear | |
31913 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31914 | t end | |
31915 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31916 | : end' >>confcache | |
31917 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31918 | if test -w $cache_file; then | |
31919 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31920 | cat confcache >$cache_file | |
31921 | else | |
31922 | echo "not updating unwritable cache $cache_file" | |
31923 | fi | |
31924 | fi | |
31925 | rm -f confcache | |
31926 | ||
31927 | ||
31928 | CPP_MT_FLAG= | |
31929 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31930 | ||
31931 | ||
31932 | THREADS_LINK= | |
31933 | THREADS_CFLAGS= | |
31934 | ||
31935 | if test "$wxUSE_THREADS" = "yes" ; then | |
31936 | if test "$USE_BEOS" = 1; then | |
31937 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31938 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31939 | wxUSE_THREADS="no" | |
31940 | fi | |
31941 | fi | |
31942 | ||
31943 | if test "$wxUSE_THREADS" = "yes" ; then | |
31944 | ||
31945 | ||
31946 | THREAD_OPTS="-pthread" | |
31947 | case "${host}" in | |
31948 | *-*-solaris2* | *-*-sunos4* ) | |
31949 | if test "x$GCC" = "xyes"; then | |
31950 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31951 | else | |
31952 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31953 | fi | |
31954 | ;; | |
31955 | *-*-freebsd*) | |
31956 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31957 | ;; | |
31958 | *-*-darwin* | *-*-cygwin* ) | |
31959 | THREAD_OPTS="" | |
31960 | ;; | |
31961 | *-*-aix*) | |
31962 | THREAD_OPTS="pthreads" | |
31963 | ;; | |
31964 | *-hp-hpux* ) | |
31965 | if test "x$GCC" != "xyes"; then | |
31966 | THREAD_OPTS="" | |
31967 | fi | |
31968 | ;; | |
31969 | ||
31970 | *-*-irix* ) | |
31971 | if test "x$GCC" = "xyes"; then | |
31972 | THREAD_OPTS="" | |
31973 | fi | |
31974 | ;; | |
31975 | ||
31976 | *-*-*UnixWare*) | |
31977 | if test "x$GCC" != "xyes"; then | |
31978 | THREAD_OPTS="-Ethread" | |
31979 | fi | |
31980 | ;; | |
31981 | esac | |
31982 | ||
31983 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31984 | ||
31985 | THREADS_OK=no | |
31986 | for flag in $THREAD_OPTS; do | |
31987 | case $flag in | |
31988 | none) | |
31989 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
31990 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
31991 | ;; | |
31992 | ||
31993 | -*) | |
31994 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
31995 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
31996 | THREADS_CFLAGS="$flag" | |
31997 | ;; | |
31998 | ||
31999 | *) | |
32000 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
32001 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
32002 | THREADS_LINK="-l$flag" | |
32003 | ;; | |
32004 | esac | |
32005 | ||
32006 | save_LIBS="$LIBS" | |
32007 | save_CFLAGS="$CFLAGS" | |
32008 | LIBS="$THREADS_LINK $LIBS" | |
32009 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
32010 | ||
32011 | cat >conftest.$ac_ext <<_ACEOF | |
32012 | /* confdefs.h. */ | |
32013 | _ACEOF | |
32014 | cat confdefs.h >>conftest.$ac_ext | |
32015 | cat >>conftest.$ac_ext <<_ACEOF | |
32016 | /* end confdefs.h. */ | |
32017 | #include <pthread.h> | |
32018 | int | |
32019 | main () | |
32020 | { | |
32021 | pthread_create(0,0,0,0); | |
32022 | ; | |
32023 | return 0; | |
32024 | } | |
32025 | _ACEOF | |
32026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32028 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32029 | ac_status=$? |
ac1cb8d3 VS |
32030 | grep -v '^ *+' conftest.er1 >conftest.err |
32031 | rm -f conftest.er1 | |
32032 | cat conftest.err >&5 | |
a848cd7e SC |
32033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32034 | (exit $ac_status); } && | |
2cbbc68d RD |
32035 | { ac_try='test -z "$ac_c_werror_flag" |
32036 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32038 | (eval $ac_try) 2>&5 | |
32039 | ac_status=$? | |
32040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32041 | (exit $ac_status); }; } && | |
32042 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32044 | (eval $ac_try) 2>&5 | |
32045 | ac_status=$? | |
32046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32047 | (exit $ac_status); }; }; then | |
32048 | THREADS_OK=yes | |
32049 | else | |
32050 | echo "$as_me: failed program was:" >&5 | |
32051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32052 | ||
32053 | fi | |
ac1cb8d3 VS |
32054 | rm -f conftest.err conftest.$ac_objext \ |
32055 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32056 | |
32057 | LIBS="$save_LIBS" | |
32058 | CFLAGS="$save_CFLAGS" | |
32059 | ||
32060 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
32061 | echo "${ECHO_T}$THREADS_OK" >&6 | |
32062 | if test "x$THREADS_OK" = "xyes"; then | |
32063 | break; | |
32064 | fi | |
32065 | ||
32066 | THREADS_LINK="" | |
32067 | THREADS_CFLAGS="" | |
32068 | done | |
32069 | ||
32070 | if test "x$THREADS_OK" != "xyes"; then | |
32071 | wxUSE_THREADS=no | |
32072 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
32073 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
32074 | else | |
32075 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
32076 | LIBS="$THREADS_LINK $LIBS" | |
32077 | ||
32078 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
32079 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
32080 | flag=no | |
32081 | case "${host}" in | |
32082 | *-aix*) | |
32083 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
32084 | flag="-D_THREAD_SAFE" | |
32085 | ;; | |
32086 | *-freebsd*) | |
32087 | flag="-D_THREAD_SAFE" | |
32088 | ;; | |
32089 | *-hp-hpux* ) | |
32090 | flag="-D_REENTRANT" | |
32091 | if test "x$GCC" != "xyes"; then | |
32092 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
32093 | |
32094 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
32095 | fi |
32096 | ;; | |
32097 | *solaris* | alpha*-osf*) | |
32098 | flag="-D_REENTRANT" | |
32099 | ;; | |
32100 | esac | |
32101 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
32102 | echo "${ECHO_T}${flag}" >&6 | |
32103 | if test "x$flag" != xno; then | |
32104 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
32105 | fi | |
32106 | ||
32107 | if test "x$THREADS_CFLAGS" != "x"; then | |
32108 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
32109 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
32110 | fi | |
32111 | fi | |
32112 | fi | |
32113 | ||
32114 | if test "$wxUSE_THREADS" = "yes" ; then | |
32115 | ||
32116 | for ac_func in thr_setconcurrency | |
32117 | do | |
32118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32119 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32121 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32123 | else | |
32124 | cat >conftest.$ac_ext <<_ACEOF | |
32125 | /* confdefs.h. */ | |
32126 | _ACEOF | |
32127 | cat confdefs.h >>conftest.$ac_ext | |
32128 | cat >>conftest.$ac_ext <<_ACEOF | |
32129 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32132 | #define $ac_func innocuous_$ac_func | |
32133 | ||
a848cd7e SC |
32134 | /* System header to define __stub macros and hopefully few prototypes, |
32135 | which can conflict with char $ac_func (); below. | |
32136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32137 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32138 | |
a848cd7e SC |
32139 | #ifdef __STDC__ |
32140 | # include <limits.h> | |
32141 | #else | |
32142 | # include <assert.h> | |
32143 | #endif | |
ac1cb8d3 VS |
32144 | |
32145 | #undef $ac_func | |
32146 | ||
a848cd7e SC |
32147 | /* Override any gcc2 internal prototype to avoid an error. */ |
32148 | #ifdef __cplusplus | |
32149 | extern "C" | |
32150 | { | |
32151 | #endif | |
32152 | /* We use char because int might match the return type of a gcc2 | |
32153 | builtin and then its argument prototype would still apply. */ | |
32154 | char $ac_func (); | |
32155 | /* The GNU C library defines this for functions which it implements | |
32156 | to always fail with ENOSYS. Some functions are actually named | |
32157 | something starting with __ and the normal name is an alias. */ | |
32158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32159 | choke me | |
32160 | #else | |
32161 | char (*f) () = $ac_func; | |
32162 | #endif | |
32163 | #ifdef __cplusplus | |
32164 | } | |
32165 | #endif | |
32166 | ||
32167 | int | |
32168 | main () | |
32169 | { | |
32170 | return f != $ac_func; | |
32171 | ; | |
32172 | return 0; | |
32173 | } | |
32174 | _ACEOF | |
32175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32177 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32178 | ac_status=$? |
ac1cb8d3 VS |
32179 | grep -v '^ *+' conftest.er1 >conftest.err |
32180 | rm -f conftest.er1 | |
32181 | cat conftest.err >&5 | |
a848cd7e SC |
32182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32183 | (exit $ac_status); } && | |
2cbbc68d RD |
32184 | { ac_try='test -z "$ac_c_werror_flag" |
32185 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32187 | (eval $ac_try) 2>&5 | |
32188 | ac_status=$? | |
32189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32190 | (exit $ac_status); }; } && | |
32191 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32193 | (eval $ac_try) 2>&5 | |
32194 | ac_status=$? | |
32195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32196 | (exit $ac_status); }; }; then | |
32197 | eval "$as_ac_var=yes" | |
32198 | else | |
32199 | echo "$as_me: failed program was:" >&5 | |
32200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32201 | ||
32202 | eval "$as_ac_var=no" | |
32203 | fi | |
ac1cb8d3 VS |
32204 | rm -f conftest.err conftest.$ac_objext \ |
32205 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32206 | fi |
32207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32208 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32209 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32210 | cat >>confdefs.h <<_ACEOF | |
32211 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32212 | _ACEOF | |
32213 | ||
32214 | fi | |
32215 | done | |
32216 | ||
32217 | ||
32218 | ||
32219 | for ac_header in sched.h | |
32220 | do | |
32221 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32222 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32227 | fi | |
32228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32229 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32230 | else | |
32231 | # Is the header compilable? | |
32232 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32233 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32234 | cat >conftest.$ac_ext <<_ACEOF | |
32235 | /* confdefs.h. */ | |
32236 | _ACEOF | |
32237 | cat confdefs.h >>conftest.$ac_ext | |
32238 | cat >>conftest.$ac_ext <<_ACEOF | |
32239 | /* end confdefs.h. */ | |
32240 | $ac_includes_default | |
32241 | #include <$ac_header> | |
32242 | _ACEOF | |
32243 | rm -f conftest.$ac_objext | |
32244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32245 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32246 | ac_status=$? |
ac1cb8d3 VS |
32247 | grep -v '^ *+' conftest.er1 >conftest.err |
32248 | rm -f conftest.er1 | |
32249 | cat conftest.err >&5 | |
a848cd7e SC |
32250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32251 | (exit $ac_status); } && | |
2cbbc68d RD |
32252 | { ac_try='test -z "$ac_c_werror_flag" |
32253 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32255 | (eval $ac_try) 2>&5 | |
32256 | ac_status=$? | |
32257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32258 | (exit $ac_status); }; } && | |
32259 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32261 | (eval $ac_try) 2>&5 | |
32262 | ac_status=$? | |
32263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32264 | (exit $ac_status); }; }; then | |
32265 | ac_header_compiler=yes | |
32266 | else | |
32267 | echo "$as_me: failed program was:" >&5 | |
32268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32269 | ||
32270 | ac_header_compiler=no | |
32271 | fi | |
ac1cb8d3 | 32272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32273 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32274 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32275 | ||
32276 | # Is the header present? | |
32277 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32278 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32279 | cat >conftest.$ac_ext <<_ACEOF | |
32280 | /* confdefs.h. */ | |
32281 | _ACEOF | |
32282 | cat confdefs.h >>conftest.$ac_ext | |
32283 | cat >>conftest.$ac_ext <<_ACEOF | |
32284 | /* end confdefs.h. */ | |
32285 | #include <$ac_header> | |
32286 | _ACEOF | |
32287 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32288 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32289 | ac_status=$? | |
32290 | grep -v '^ *+' conftest.er1 >conftest.err | |
32291 | rm -f conftest.er1 | |
32292 | cat conftest.err >&5 | |
32293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32294 | (exit $ac_status); } >/dev/null; then | |
32295 | if test -s conftest.err; then | |
32296 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32297 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32298 | else |
32299 | ac_cpp_err= | |
32300 | fi | |
32301 | else | |
32302 | ac_cpp_err=yes | |
32303 | fi | |
32304 | if test -z "$ac_cpp_err"; then | |
32305 | ac_header_preproc=yes | |
32306 | else | |
32307 | echo "$as_me: failed program was:" >&5 | |
32308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32309 | ||
32310 | ac_header_preproc=no | |
32311 | fi | |
32312 | rm -f conftest.err conftest.$ac_ext | |
32313 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32314 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32315 | ||
32316 | # So? What about this header? | |
ac1cb8d3 VS |
32317 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32318 | yes:no: ) | |
a848cd7e SC |
32319 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32320 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32321 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32322 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32323 | ac_header_preproc=yes | |
a848cd7e | 32324 | ;; |
ac1cb8d3 | 32325 | no:yes:* ) |
a848cd7e SC |
32326 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32327 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32328 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32329 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32330 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32331 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32332 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32333 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32334 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32335 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32336 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32337 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32338 | ( |
32339 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32340 | ## ----------------------------------------- ## |
32341 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32342 | ## ----------------------------------------- ## | |
a848cd7e SC |
32343 | _ASBOX |
32344 | ) | | |
32345 | sed "s/^/$as_me: WARNING: /" >&2 | |
32346 | ;; | |
32347 | esac | |
32348 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32349 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32350 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32352 | else | |
ac1cb8d3 | 32353 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32354 | fi |
32355 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32356 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32357 | ||
32358 | fi | |
32359 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32360 | cat >>confdefs.h <<_ACEOF | |
32361 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32362 | _ACEOF | |
32363 | ||
32364 | fi | |
32365 | ||
32366 | done | |
32367 | ||
32368 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32369 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32370 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32371 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32373 | else | |
32374 | cat >conftest.$ac_ext <<_ACEOF | |
32375 | /* confdefs.h. */ | |
32376 | _ACEOF | |
32377 | cat confdefs.h >>conftest.$ac_ext | |
32378 | cat >>conftest.$ac_ext <<_ACEOF | |
32379 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32380 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32381 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32382 | #define sched_yield innocuous_sched_yield | |
32383 | ||
a848cd7e SC |
32384 | /* System header to define __stub macros and hopefully few prototypes, |
32385 | which can conflict with char sched_yield (); below. | |
32386 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32387 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32388 | |
a848cd7e SC |
32389 | #ifdef __STDC__ |
32390 | # include <limits.h> | |
32391 | #else | |
32392 | # include <assert.h> | |
32393 | #endif | |
ac1cb8d3 VS |
32394 | |
32395 | #undef sched_yield | |
32396 | ||
a848cd7e SC |
32397 | /* Override any gcc2 internal prototype to avoid an error. */ |
32398 | #ifdef __cplusplus | |
32399 | extern "C" | |
32400 | { | |
32401 | #endif | |
32402 | /* We use char because int might match the return type of a gcc2 | |
32403 | builtin and then its argument prototype would still apply. */ | |
32404 | char sched_yield (); | |
32405 | /* The GNU C library defines this for functions which it implements | |
32406 | to always fail with ENOSYS. Some functions are actually named | |
32407 | something starting with __ and the normal name is an alias. */ | |
32408 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32409 | choke me | |
32410 | #else | |
32411 | char (*f) () = sched_yield; | |
32412 | #endif | |
32413 | #ifdef __cplusplus | |
32414 | } | |
32415 | #endif | |
32416 | ||
32417 | int | |
32418 | main () | |
32419 | { | |
32420 | return f != sched_yield; | |
32421 | ; | |
32422 | return 0; | |
32423 | } | |
32424 | _ACEOF | |
32425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32427 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32428 | ac_status=$? |
ac1cb8d3 VS |
32429 | grep -v '^ *+' conftest.er1 >conftest.err |
32430 | rm -f conftest.er1 | |
32431 | cat conftest.err >&5 | |
a848cd7e SC |
32432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32433 | (exit $ac_status); } && | |
2cbbc68d RD |
32434 | { ac_try='test -z "$ac_c_werror_flag" |
32435 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32437 | (eval $ac_try) 2>&5 | |
32438 | ac_status=$? | |
32439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32440 | (exit $ac_status); }; } && | |
32441 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32443 | (eval $ac_try) 2>&5 | |
32444 | ac_status=$? | |
32445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32446 | (exit $ac_status); }; }; then | |
32447 | ac_cv_func_sched_yield=yes | |
32448 | else | |
32449 | echo "$as_me: failed program was:" >&5 | |
32450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32451 | ||
32452 | ac_cv_func_sched_yield=no | |
32453 | fi | |
ac1cb8d3 VS |
32454 | rm -f conftest.err conftest.$ac_objext \ |
32455 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32456 | fi |
32457 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32458 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32459 | if test $ac_cv_func_sched_yield = yes; then | |
32460 | cat >>confdefs.h <<\_ACEOF | |
32461 | #define HAVE_SCHED_YIELD 1 | |
32462 | _ACEOF | |
32463 | ||
32464 | else | |
32465 | ||
32466 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32467 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32468 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32470 | else | |
32471 | ac_check_lib_save_LIBS=$LIBS | |
32472 | LIBS="-lposix4 $LIBS" | |
32473 | cat >conftest.$ac_ext <<_ACEOF | |
32474 | /* confdefs.h. */ | |
32475 | _ACEOF | |
32476 | cat confdefs.h >>conftest.$ac_ext | |
32477 | cat >>conftest.$ac_ext <<_ACEOF | |
32478 | /* end confdefs.h. */ | |
32479 | ||
32480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32481 | #ifdef __cplusplus | |
32482 | extern "C" | |
32483 | #endif | |
32484 | /* We use char because int might match the return type of a gcc2 | |
32485 | builtin and then its argument prototype would still apply. */ | |
32486 | char sched_yield (); | |
32487 | int | |
32488 | main () | |
32489 | { | |
32490 | sched_yield (); | |
32491 | ; | |
32492 | return 0; | |
32493 | } | |
32494 | _ACEOF | |
32495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32497 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32498 | ac_status=$? |
ac1cb8d3 VS |
32499 | grep -v '^ *+' conftest.er1 >conftest.err |
32500 | rm -f conftest.er1 | |
32501 | cat conftest.err >&5 | |
a848cd7e SC |
32502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32503 | (exit $ac_status); } && | |
2cbbc68d RD |
32504 | { ac_try='test -z "$ac_c_werror_flag" |
32505 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32507 | (eval $ac_try) 2>&5 | |
32508 | ac_status=$? | |
32509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32510 | (exit $ac_status); }; } && | |
32511 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32513 | (eval $ac_try) 2>&5 | |
32514 | ac_status=$? | |
32515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32516 | (exit $ac_status); }; }; then | |
32517 | ac_cv_lib_posix4_sched_yield=yes | |
32518 | else | |
32519 | echo "$as_me: failed program was:" >&5 | |
32520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32521 | ||
32522 | ac_cv_lib_posix4_sched_yield=no | |
32523 | fi | |
ac1cb8d3 VS |
32524 | rm -f conftest.err conftest.$ac_objext \ |
32525 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32526 | LIBS=$ac_check_lib_save_LIBS |
32527 | fi | |
32528 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32529 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32530 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32531 | cat >>confdefs.h <<\_ACEOF | |
32532 | #define HAVE_SCHED_YIELD 1 | |
32533 | _ACEOF | |
32534 | POSIX4_LINK=" -lposix4" | |
32535 | else | |
32536 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32537 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32538 | ||
32539 | fi | |
32540 | ||
32541 | ||
32542 | ||
32543 | fi | |
32544 | ||
32545 | fi | |
32546 | ||
32547 | HAVE_PRIOR_FUNCS=0 | |
32548 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32549 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32550 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32552 | else | |
32553 | cat >conftest.$ac_ext <<_ACEOF | |
32554 | /* confdefs.h. */ | |
32555 | _ACEOF | |
32556 | cat confdefs.h >>conftest.$ac_ext | |
32557 | cat >>conftest.$ac_ext <<_ACEOF | |
32558 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32559 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32561 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32562 | ||
a848cd7e SC |
32563 | /* System header to define __stub macros and hopefully few prototypes, |
32564 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32566 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32567 | |
a848cd7e SC |
32568 | #ifdef __STDC__ |
32569 | # include <limits.h> | |
32570 | #else | |
32571 | # include <assert.h> | |
32572 | #endif | |
ac1cb8d3 VS |
32573 | |
32574 | #undef pthread_attr_getschedpolicy | |
32575 | ||
a848cd7e SC |
32576 | /* Override any gcc2 internal prototype to avoid an error. */ |
32577 | #ifdef __cplusplus | |
32578 | extern "C" | |
32579 | { | |
32580 | #endif | |
32581 | /* We use char because int might match the return type of a gcc2 | |
32582 | builtin and then its argument prototype would still apply. */ | |
32583 | char pthread_attr_getschedpolicy (); | |
32584 | /* The GNU C library defines this for functions which it implements | |
32585 | to always fail with ENOSYS. Some functions are actually named | |
32586 | something starting with __ and the normal name is an alias. */ | |
32587 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32588 | choke me | |
32589 | #else | |
32590 | char (*f) () = pthread_attr_getschedpolicy; | |
32591 | #endif | |
32592 | #ifdef __cplusplus | |
32593 | } | |
32594 | #endif | |
32595 | ||
32596 | int | |
32597 | main () | |
32598 | { | |
32599 | return f != pthread_attr_getschedpolicy; | |
32600 | ; | |
32601 | return 0; | |
32602 | } | |
32603 | _ACEOF | |
32604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32606 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32607 | ac_status=$? |
ac1cb8d3 VS |
32608 | grep -v '^ *+' conftest.er1 >conftest.err |
32609 | rm -f conftest.er1 | |
32610 | cat conftest.err >&5 | |
a848cd7e SC |
32611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32612 | (exit $ac_status); } && | |
2cbbc68d RD |
32613 | { ac_try='test -z "$ac_c_werror_flag" |
32614 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32616 | (eval $ac_try) 2>&5 | |
32617 | ac_status=$? | |
32618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32619 | (exit $ac_status); }; } && | |
32620 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32622 | (eval $ac_try) 2>&5 | |
32623 | ac_status=$? | |
32624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32625 | (exit $ac_status); }; }; then | |
32626 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32627 | else | |
32628 | echo "$as_me: failed program was:" >&5 | |
32629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32630 | ||
32631 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32632 | fi | |
ac1cb8d3 VS |
32633 | rm -f conftest.err conftest.$ac_objext \ |
32634 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32635 | fi |
32636 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32637 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32638 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32639 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32640 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32641 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32643 | else | |
32644 | cat >conftest.$ac_ext <<_ACEOF | |
32645 | /* confdefs.h. */ | |
32646 | _ACEOF | |
32647 | cat confdefs.h >>conftest.$ac_ext | |
32648 | cat >>conftest.$ac_ext <<_ACEOF | |
32649 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32650 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32652 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32653 | ||
a848cd7e SC |
32654 | /* System header to define __stub macros and hopefully few prototypes, |
32655 | which can conflict with char pthread_attr_setschedparam (); below. | |
32656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32657 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32658 | |
a848cd7e SC |
32659 | #ifdef __STDC__ |
32660 | # include <limits.h> | |
32661 | #else | |
32662 | # include <assert.h> | |
32663 | #endif | |
ac1cb8d3 VS |
32664 | |
32665 | #undef pthread_attr_setschedparam | |
32666 | ||
a848cd7e SC |
32667 | /* Override any gcc2 internal prototype to avoid an error. */ |
32668 | #ifdef __cplusplus | |
32669 | extern "C" | |
32670 | { | |
32671 | #endif | |
32672 | /* We use char because int might match the return type of a gcc2 | |
32673 | builtin and then its argument prototype would still apply. */ | |
32674 | char pthread_attr_setschedparam (); | |
32675 | /* The GNU C library defines this for functions which it implements | |
32676 | to always fail with ENOSYS. Some functions are actually named | |
32677 | something starting with __ and the normal name is an alias. */ | |
32678 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32679 | choke me | |
32680 | #else | |
32681 | char (*f) () = pthread_attr_setschedparam; | |
32682 | #endif | |
32683 | #ifdef __cplusplus | |
32684 | } | |
32685 | #endif | |
32686 | ||
32687 | int | |
32688 | main () | |
32689 | { | |
32690 | return f != pthread_attr_setschedparam; | |
32691 | ; | |
32692 | return 0; | |
32693 | } | |
32694 | _ACEOF | |
32695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32697 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32698 | ac_status=$? |
ac1cb8d3 VS |
32699 | grep -v '^ *+' conftest.er1 >conftest.err |
32700 | rm -f conftest.er1 | |
32701 | cat conftest.err >&5 | |
a848cd7e SC |
32702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32703 | (exit $ac_status); } && | |
2cbbc68d RD |
32704 | { ac_try='test -z "$ac_c_werror_flag" |
32705 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32707 | (eval $ac_try) 2>&5 | |
32708 | ac_status=$? | |
32709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32710 | (exit $ac_status); }; } && | |
32711 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32713 | (eval $ac_try) 2>&5 | |
32714 | ac_status=$? | |
32715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32716 | (exit $ac_status); }; }; then | |
32717 | ac_cv_func_pthread_attr_setschedparam=yes | |
32718 | else | |
32719 | echo "$as_me: failed program was:" >&5 | |
32720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32721 | ||
32722 | ac_cv_func_pthread_attr_setschedparam=no | |
32723 | fi | |
ac1cb8d3 VS |
32724 | rm -f conftest.err conftest.$ac_objext \ |
32725 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32726 | fi |
32727 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32728 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32729 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32730 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32731 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32732 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32734 | else | |
32735 | cat >conftest.$ac_ext <<_ACEOF | |
32736 | /* confdefs.h. */ | |
32737 | _ACEOF | |
32738 | cat confdefs.h >>conftest.$ac_ext | |
32739 | cat >>conftest.$ac_ext <<_ACEOF | |
32740 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32741 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32742 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32743 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32744 | ||
a848cd7e SC |
32745 | /* System header to define __stub macros and hopefully few prototypes, |
32746 | which can conflict with char sched_get_priority_max (); below. | |
32747 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32748 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32749 | |
a848cd7e SC |
32750 | #ifdef __STDC__ |
32751 | # include <limits.h> | |
32752 | #else | |
32753 | # include <assert.h> | |
32754 | #endif | |
ac1cb8d3 VS |
32755 | |
32756 | #undef sched_get_priority_max | |
32757 | ||
a848cd7e SC |
32758 | /* Override any gcc2 internal prototype to avoid an error. */ |
32759 | #ifdef __cplusplus | |
32760 | extern "C" | |
32761 | { | |
32762 | #endif | |
32763 | /* We use char because int might match the return type of a gcc2 | |
32764 | builtin and then its argument prototype would still apply. */ | |
32765 | char sched_get_priority_max (); | |
32766 | /* The GNU C library defines this for functions which it implements | |
32767 | to always fail with ENOSYS. Some functions are actually named | |
32768 | something starting with __ and the normal name is an alias. */ | |
32769 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32770 | choke me | |
32771 | #else | |
32772 | char (*f) () = sched_get_priority_max; | |
32773 | #endif | |
32774 | #ifdef __cplusplus | |
32775 | } | |
32776 | #endif | |
32777 | ||
32778 | int | |
32779 | main () | |
32780 | { | |
32781 | return f != sched_get_priority_max; | |
32782 | ; | |
32783 | return 0; | |
32784 | } | |
32785 | _ACEOF | |
32786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32788 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32789 | ac_status=$? |
ac1cb8d3 VS |
32790 | grep -v '^ *+' conftest.er1 >conftest.err |
32791 | rm -f conftest.er1 | |
32792 | cat conftest.err >&5 | |
a848cd7e SC |
32793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32794 | (exit $ac_status); } && | |
2cbbc68d RD |
32795 | { ac_try='test -z "$ac_c_werror_flag" |
32796 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32798 | (eval $ac_try) 2>&5 | |
32799 | ac_status=$? | |
32800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32801 | (exit $ac_status); }; } && | |
32802 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32804 | (eval $ac_try) 2>&5 | |
32805 | ac_status=$? | |
32806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32807 | (exit $ac_status); }; }; then | |
32808 | ac_cv_func_sched_get_priority_max=yes | |
32809 | else | |
32810 | echo "$as_me: failed program was:" >&5 | |
32811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32812 | ||
32813 | ac_cv_func_sched_get_priority_max=no | |
32814 | fi | |
ac1cb8d3 VS |
32815 | rm -f conftest.err conftest.$ac_objext \ |
32816 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32817 | fi |
32818 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32819 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32820 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32821 | HAVE_PRIOR_FUNCS=1 | |
32822 | else | |
32823 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32824 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32825 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32827 | else | |
32828 | ac_check_lib_save_LIBS=$LIBS | |
32829 | LIBS="-lposix4 $LIBS" | |
32830 | cat >conftest.$ac_ext <<_ACEOF | |
32831 | /* confdefs.h. */ | |
32832 | _ACEOF | |
32833 | cat confdefs.h >>conftest.$ac_ext | |
32834 | cat >>conftest.$ac_ext <<_ACEOF | |
32835 | /* end confdefs.h. */ | |
32836 | ||
32837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32838 | #ifdef __cplusplus | |
32839 | extern "C" | |
32840 | #endif | |
32841 | /* We use char because int might match the return type of a gcc2 | |
32842 | builtin and then its argument prototype would still apply. */ | |
32843 | char sched_get_priority_max (); | |
32844 | int | |
32845 | main () | |
32846 | { | |
32847 | sched_get_priority_max (); | |
32848 | ; | |
32849 | return 0; | |
32850 | } | |
32851 | _ACEOF | |
32852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32854 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32855 | ac_status=$? |
ac1cb8d3 VS |
32856 | grep -v '^ *+' conftest.er1 >conftest.err |
32857 | rm -f conftest.er1 | |
32858 | cat conftest.err >&5 | |
a848cd7e SC |
32859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32860 | (exit $ac_status); } && | |
2cbbc68d RD |
32861 | { ac_try='test -z "$ac_c_werror_flag" |
32862 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32864 | (eval $ac_try) 2>&5 | |
32865 | ac_status=$? | |
32866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32867 | (exit $ac_status); }; } && | |
32868 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32870 | (eval $ac_try) 2>&5 | |
32871 | ac_status=$? | |
32872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32873 | (exit $ac_status); }; }; then | |
32874 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32875 | else | |
32876 | echo "$as_me: failed program was:" >&5 | |
32877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32878 | ||
32879 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32880 | fi | |
ac1cb8d3 VS |
32881 | rm -f conftest.err conftest.$ac_objext \ |
32882 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32883 | LIBS=$ac_check_lib_save_LIBS |
32884 | fi | |
32885 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32886 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32887 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32888 | ||
32889 | HAVE_PRIOR_FUNCS=1 | |
32890 | POSIX4_LINK=" -lposix4" | |
32891 | ||
32892 | fi | |
32893 | ||
32894 | ||
32895 | fi | |
32896 | ||
32897 | ||
32898 | fi | |
32899 | ||
32900 | ||
32901 | fi | |
32902 | ||
32903 | ||
32904 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32905 | cat >>confdefs.h <<\_ACEOF | |
32906 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32907 | _ACEOF | |
32908 | ||
32909 | else | |
32910 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32911 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32912 | fi | |
32913 | ||
32914 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32915 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32916 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32918 | else | |
32919 | cat >conftest.$ac_ext <<_ACEOF | |
32920 | /* confdefs.h. */ | |
32921 | _ACEOF | |
32922 | cat confdefs.h >>conftest.$ac_ext | |
32923 | cat >>conftest.$ac_ext <<_ACEOF | |
32924 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32925 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32927 | #define pthread_cancel innocuous_pthread_cancel | |
32928 | ||
a848cd7e SC |
32929 | /* System header to define __stub macros and hopefully few prototypes, |
32930 | which can conflict with char pthread_cancel (); below. | |
32931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32932 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32933 | |
a848cd7e SC |
32934 | #ifdef __STDC__ |
32935 | # include <limits.h> | |
32936 | #else | |
32937 | # include <assert.h> | |
32938 | #endif | |
ac1cb8d3 VS |
32939 | |
32940 | #undef pthread_cancel | |
32941 | ||
a848cd7e SC |
32942 | /* Override any gcc2 internal prototype to avoid an error. */ |
32943 | #ifdef __cplusplus | |
32944 | extern "C" | |
32945 | { | |
32946 | #endif | |
32947 | /* We use char because int might match the return type of a gcc2 | |
32948 | builtin and then its argument prototype would still apply. */ | |
32949 | char pthread_cancel (); | |
32950 | /* The GNU C library defines this for functions which it implements | |
32951 | to always fail with ENOSYS. Some functions are actually named | |
32952 | something starting with __ and the normal name is an alias. */ | |
32953 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32954 | choke me | |
32955 | #else | |
32956 | char (*f) () = pthread_cancel; | |
32957 | #endif | |
32958 | #ifdef __cplusplus | |
32959 | } | |
32960 | #endif | |
32961 | ||
32962 | int | |
32963 | main () | |
32964 | { | |
32965 | return f != pthread_cancel; | |
32966 | ; | |
32967 | return 0; | |
32968 | } | |
32969 | _ACEOF | |
32970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32972 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32973 | ac_status=$? |
ac1cb8d3 VS |
32974 | grep -v '^ *+' conftest.er1 >conftest.err |
32975 | rm -f conftest.er1 | |
32976 | cat conftest.err >&5 | |
a848cd7e SC |
32977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32978 | (exit $ac_status); } && | |
2cbbc68d RD |
32979 | { ac_try='test -z "$ac_c_werror_flag" |
32980 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32982 | (eval $ac_try) 2>&5 | |
32983 | ac_status=$? | |
32984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32985 | (exit $ac_status); }; } && | |
32986 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32988 | (eval $ac_try) 2>&5 | |
32989 | ac_status=$? | |
32990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32991 | (exit $ac_status); }; }; then | |
32992 | ac_cv_func_pthread_cancel=yes | |
32993 | else | |
32994 | echo "$as_me: failed program was:" >&5 | |
32995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32996 | ||
32997 | ac_cv_func_pthread_cancel=no | |
32998 | fi | |
ac1cb8d3 VS |
32999 | rm -f conftest.err conftest.$ac_objext \ |
33000 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33001 | fi |
33002 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
33003 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
33004 | if test $ac_cv_func_pthread_cancel = yes; then | |
33005 | cat >>confdefs.h <<\_ACEOF | |
33006 | #define HAVE_PTHREAD_CANCEL 1 | |
33007 | _ACEOF | |
33008 | ||
33009 | else | |
33010 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
33011 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
33012 | fi | |
33013 | ||
33014 | ||
33015 | ||
33016 | ||
33017 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
33018 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
33019 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
33020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33021 | else | |
33022 | ||
33023 | cat >conftest.$ac_ext <<_ACEOF | |
33024 | /* confdefs.h. */ | |
33025 | _ACEOF | |
33026 | cat confdefs.h >>conftest.$ac_ext | |
33027 | cat >>conftest.$ac_ext <<_ACEOF | |
33028 | /* end confdefs.h. */ | |
33029 | #include <pthread.h> | |
33030 | int | |
33031 | main () | |
33032 | { | |
33033 | ||
33034 | pthread_mutexattr_t attr; | |
33035 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
33036 | ||
33037 | ; | |
33038 | return 0; | |
33039 | } | |
33040 | _ACEOF | |
33041 | rm -f conftest.$ac_objext | |
33042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33043 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33044 | ac_status=$? |
ac1cb8d3 VS |
33045 | grep -v '^ *+' conftest.er1 >conftest.err |
33046 | rm -f conftest.er1 | |
33047 | cat conftest.err >&5 | |
a848cd7e SC |
33048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33049 | (exit $ac_status); } && | |
2cbbc68d RD |
33050 | { ac_try='test -z "$ac_c_werror_flag" |
33051 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33053 | (eval $ac_try) 2>&5 | |
33054 | ac_status=$? | |
33055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33056 | (exit $ac_status); }; } && | |
33057 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33059 | (eval $ac_try) 2>&5 | |
33060 | ac_status=$? | |
33061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33062 | (exit $ac_status); }; }; then | |
33063 | ||
33064 | wx_cv_type_pthread_mutexattr_t=yes | |
33065 | ||
33066 | else | |
33067 | echo "$as_me: failed program was:" >&5 | |
33068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33069 | ||
33070 | ||
33071 | wx_cv_type_pthread_mutexattr_t=no | |
33072 | ||
33073 | ||
33074 | fi | |
ac1cb8d3 | 33075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33076 | |
33077 | fi | |
33078 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
33079 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
33080 | ||
33081 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
33082 | cat >>confdefs.h <<\_ACEOF | |
33083 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
33084 | _ACEOF | |
33085 | ||
33086 | else | |
33087 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
33088 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
33089 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
33090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33091 | else | |
33092 | ||
33093 | cat >conftest.$ac_ext <<_ACEOF | |
33094 | /* confdefs.h. */ | |
33095 | _ACEOF | |
33096 | cat confdefs.h >>conftest.$ac_ext | |
33097 | cat >>conftest.$ac_ext <<_ACEOF | |
33098 | /* end confdefs.h. */ | |
33099 | #include <pthread.h> | |
33100 | int | |
33101 | main () | |
33102 | { | |
33103 | ||
33104 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
33105 | ||
33106 | ; | |
33107 | return 0; | |
33108 | } | |
33109 | _ACEOF | |
33110 | rm -f conftest.$ac_objext | |
33111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33113 | ac_status=$? |
ac1cb8d3 VS |
33114 | grep -v '^ *+' conftest.er1 >conftest.err |
33115 | rm -f conftest.er1 | |
33116 | cat conftest.err >&5 | |
a848cd7e SC |
33117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33118 | (exit $ac_status); } && | |
2cbbc68d RD |
33119 | { ac_try='test -z "$ac_c_werror_flag" |
33120 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33122 | (eval $ac_try) 2>&5 | |
33123 | ac_status=$? | |
33124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33125 | (exit $ac_status); }; } && | |
33126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33128 | (eval $ac_try) 2>&5 | |
33129 | ac_status=$? | |
33130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33131 | (exit $ac_status); }; }; then | |
33132 | ||
33133 | wx_cv_type_pthread_rec_mutex_init=yes | |
33134 | ||
33135 | else | |
33136 | echo "$as_me: failed program was:" >&5 | |
33137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33138 | ||
33139 | ||
33140 | wx_cv_type_pthread_rec_mutex_init=no | |
33141 | ||
33142 | ||
33143 | fi | |
ac1cb8d3 | 33144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33145 | |
33146 | fi | |
33147 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33148 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33149 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33150 | cat >>confdefs.h <<\_ACEOF | |
33151 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33152 | _ACEOF | |
33153 | ||
33154 | else | |
33155 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33156 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33157 | fi | |
33158 | fi | |
33159 | fi | |
33160 | ||
33161 | else | |
33162 | if test "$wxUSE_THREADS" = "yes" ; then | |
33163 | case "${host}" in | |
33164 | *-*-mingw32* ) | |
33165 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33166 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33167 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33169 | else | |
33170 | ||
33171 | CFLAGS_OLD="$CFLAGS" | |
33172 | CFLAGS="$CFLAGS -mthreads" | |
33173 | cat >conftest.$ac_ext <<_ACEOF | |
33174 | /* confdefs.h. */ | |
33175 | _ACEOF | |
33176 | cat confdefs.h >>conftest.$ac_ext | |
33177 | cat >>conftest.$ac_ext <<_ACEOF | |
33178 | /* end confdefs.h. */ | |
33179 | ||
33180 | int | |
33181 | main () | |
33182 | { | |
33183 | ||
33184 | ; | |
33185 | return 0; | |
33186 | } | |
33187 | _ACEOF | |
33188 | rm -f conftest.$ac_objext | |
33189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33191 | ac_status=$? |
ac1cb8d3 VS |
33192 | grep -v '^ *+' conftest.er1 >conftest.err |
33193 | rm -f conftest.er1 | |
33194 | cat conftest.err >&5 | |
a848cd7e SC |
33195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33196 | (exit $ac_status); } && | |
2cbbc68d RD |
33197 | { ac_try='test -z "$ac_c_werror_flag" |
33198 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33200 | (eval $ac_try) 2>&5 | |
33201 | ac_status=$? | |
33202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33203 | (exit $ac_status); }; } && | |
33204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33206 | (eval $ac_try) 2>&5 | |
33207 | ac_status=$? | |
33208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33209 | (exit $ac_status); }; }; then | |
33210 | wx_cv_cflags_mthread=yes | |
33211 | else | |
33212 | echo "$as_me: failed program was:" >&5 | |
33213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33214 | ||
33215 | wx_cv_cflags_mthread=no | |
33216 | ||
33217 | fi | |
ac1cb8d3 | 33218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33219 | |
33220 | ||
33221 | fi | |
33222 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33223 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33224 | ||
33225 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33226 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33227 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33228 | LDFLAGS="$LDFLAGS -mthreads" | |
33229 | else | |
33230 | CFLAGS="$CFLAGS_OLD" | |
33231 | fi | |
33232 | ;; | |
33233 | *-pc-os2*emx ) | |
33234 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33235 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33236 | LDFLAGS="$LDFLAGS -Zmt" | |
33237 | ;; | |
33238 | esac | |
33239 | fi | |
33240 | fi | |
33241 | ||
33242 | if test "$wxUSE_THREADS" = "yes"; then | |
33243 | cat >>confdefs.h <<\_ACEOF | |
33244 | #define wxUSE_THREADS 1 | |
33245 | _ACEOF | |
33246 | ||
33247 | ||
33248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33249 | else | |
33250 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33251 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33252 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33253 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33254 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33255 | echo "$as_me:$LINENO: result: yes" >&5 | |
33256 | echo "${ECHO_T}yes" >&6 | |
33257 | else | |
33258 | echo "$as_me:$LINENO: result: no" >&5 | |
33259 | echo "${ECHO_T}no" >&6 | |
33260 | fi | |
33261 | fi | |
33262 | fi | |
33263 | ||
33264 | if test "$WXGTK20" = 1 ; then | |
33265 | cat >>confdefs.h <<_ACEOF | |
33266 | #define __WXGTK20__ $WXGTK20 | |
33267 | _ACEOF | |
33268 | ||
33269 | WXGTK12=1 | |
33270 | fi | |
33271 | ||
33272 | if test "$WXGTK12" = 1 ; then | |
33273 | cat >>confdefs.h <<_ACEOF | |
33274 | #define __WXGTK12__ $WXGTK12 | |
33275 | _ACEOF | |
33276 | ||
33277 | fi | |
33278 | ||
33279 | if test "$WXGTK127" = 1 ; then | |
33280 | cat >>confdefs.h <<_ACEOF | |
33281 | #define __WXGTK127__ $WXGTK127 | |
33282 | _ACEOF | |
33283 | ||
33284 | fi | |
33285 | ||
33286 | if test "$WXGPE" = 1 ; then | |
33287 | cat >>confdefs.h <<_ACEOF | |
33288 | #define __WXGPE__ $WXGPE | |
33289 | _ACEOF | |
33290 | ||
33291 | fi | |
33292 | ||
33293 | WXDEBUG= | |
33294 | ||
33295 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33296 | WXDEBUG="-g" | |
33297 | wxUSE_OPTIMISE=no | |
33298 | fi | |
33299 | ||
33300 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33301 | wxUSE_DEBUG_INFO=yes | |
33302 | WXDEBUG="-ggdb" | |
33303 | fi | |
33304 | ||
33305 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33306 | cat >>confdefs.h <<\_ACEOF | |
33307 | #define WXDEBUG 1 | |
33308 | _ACEOF | |
33309 | ||
33310 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33311 | else | |
33312 | if test "$wxUSE_GTK" = 1 ; then | |
33313 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33314 | fi | |
33315 | fi | |
33316 | ||
33317 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33318 | cat >>confdefs.h <<\_ACEOF | |
33319 | #define wxUSE_MEMORY_TRACING 1 | |
33320 | _ACEOF | |
33321 | ||
33322 | cat >>confdefs.h <<\_ACEOF | |
33323 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33324 | _ACEOF | |
33325 | ||
33326 | cat >>confdefs.h <<\_ACEOF | |
33327 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33328 | _ACEOF | |
33329 | ||
33330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33331 | fi | |
33332 | ||
33333 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33334 | DMALLOC_LIBS="-ldmalloc" | |
33335 | fi | |
33336 | ||
33337 | PROFILE= | |
33338 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33339 | PROFILE=" -pg" | |
33340 | fi | |
33341 | ||
33342 | CODE_GEN_FLAGS= | |
33343 | CODE_GEN_FLAGS_CXX= | |
33344 | if test "$GCC" = "yes" ; then | |
33345 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33346 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33347 | fi | |
33348 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33349 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33350 | fi | |
33351 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33352 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33353 | fi | |
33354 | ||
33355 | case "${host}" in | |
33356 | powerpc*-*-aix* ) | |
33357 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33358 | ;; | |
33359 | *-hppa* ) | |
33360 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33361 | ;; | |
33362 | esac | |
33363 | fi | |
33364 | ||
33365 | OPTIMISE= | |
33366 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33367 | if test "$GCC" = yes ; then | |
33368 | OPTIMISE="-O0" | |
33369 | fi | |
33370 | else | |
33371 | if test "$GCC" = yes ; then | |
33372 | OPTIMISE="-O2" | |
33373 | ||
33374 | case "${host}" in | |
33375 | i586-*-*|i686-*-* ) | |
33376 | OPTIMISE="${OPTIMISE} " | |
33377 | ;; | |
33378 | esac | |
33379 | else | |
33380 | OPTIMISE="-O" | |
33381 | fi | |
33382 | fi | |
33383 | ||
33384 | ||
33385 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33386 | cat >>confdefs.h <<\_ACEOF | |
33387 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33388 | _ACEOF | |
33389 | ||
33390 | ||
33391 | WXWIN_COMPATIBILITY_2_4="yes" | |
33392 | fi | |
33393 | ||
33394 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33395 | cat >>confdefs.h <<\_ACEOF | |
33396 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33397 | _ACEOF | |
33398 | ||
33399 | fi | |
33400 | ||
33401 | ||
33402 | if test "$wxUSE_GUI" = "yes"; then | |
33403 | cat >>confdefs.h <<\_ACEOF | |
33404 | #define wxUSE_GUI 1 | |
33405 | _ACEOF | |
33406 | ||
33407 | ||
33408 | else | |
33409 | cat >>confdefs.h <<\_ACEOF | |
33410 | #define wxUSE_NOGUI 1 | |
33411 | _ACEOF | |
33412 | ||
33413 | fi | |
33414 | ||
33415 | ||
33416 | if test "$wxUSE_UNIX" = "yes"; then | |
33417 | cat >>confdefs.h <<\_ACEOF | |
33418 | #define wxUSE_UNIX 1 | |
33419 | _ACEOF | |
33420 | ||
33421 | fi | |
33422 | ||
33423 | ||
33424 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33425 | ||
33426 | HAVE_DL_FUNCS=0 | |
33427 | HAVE_SHL_FUNCS=0 | |
33428 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33429 | if test "$USE_DARWIN" = 1; then | |
33430 | HAVE_DL_FUNCS=1 | |
33431 | else | |
33432 | ||
33433 | for ac_func in dlopen | |
33434 | do | |
33435 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33436 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33437 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33438 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33440 | else | |
33441 | cat >conftest.$ac_ext <<_ACEOF | |
33442 | /* confdefs.h. */ | |
33443 | _ACEOF | |
33444 | cat confdefs.h >>conftest.$ac_ext | |
33445 | cat >>conftest.$ac_ext <<_ACEOF | |
33446 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33447 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33448 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33449 | #define $ac_func innocuous_$ac_func | |
33450 | ||
a848cd7e SC |
33451 | /* System header to define __stub macros and hopefully few prototypes, |
33452 | which can conflict with char $ac_func (); below. | |
33453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33454 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33455 | |
a848cd7e SC |
33456 | #ifdef __STDC__ |
33457 | # include <limits.h> | |
33458 | #else | |
33459 | # include <assert.h> | |
33460 | #endif | |
ac1cb8d3 VS |
33461 | |
33462 | #undef $ac_func | |
33463 | ||
a848cd7e SC |
33464 | /* Override any gcc2 internal prototype to avoid an error. */ |
33465 | #ifdef __cplusplus | |
33466 | extern "C" | |
33467 | { | |
33468 | #endif | |
33469 | /* We use char because int might match the return type of a gcc2 | |
33470 | builtin and then its argument prototype would still apply. */ | |
33471 | char $ac_func (); | |
33472 | /* The GNU C library defines this for functions which it implements | |
33473 | to always fail with ENOSYS. Some functions are actually named | |
33474 | something starting with __ and the normal name is an alias. */ | |
33475 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33476 | choke me | |
33477 | #else | |
33478 | char (*f) () = $ac_func; | |
33479 | #endif | |
33480 | #ifdef __cplusplus | |
33481 | } | |
33482 | #endif | |
33483 | ||
33484 | int | |
33485 | main () | |
33486 | { | |
33487 | return f != $ac_func; | |
33488 | ; | |
33489 | return 0; | |
33490 | } | |
33491 | _ACEOF | |
33492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33494 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33495 | ac_status=$? |
ac1cb8d3 VS |
33496 | grep -v '^ *+' conftest.er1 >conftest.err |
33497 | rm -f conftest.er1 | |
33498 | cat conftest.err >&5 | |
a848cd7e SC |
33499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33500 | (exit $ac_status); } && | |
2cbbc68d RD |
33501 | { ac_try='test -z "$ac_c_werror_flag" |
33502 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33504 | (eval $ac_try) 2>&5 | |
33505 | ac_status=$? | |
33506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33507 | (exit $ac_status); }; } && | |
33508 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33510 | (eval $ac_try) 2>&5 | |
33511 | ac_status=$? | |
33512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33513 | (exit $ac_status); }; }; then | |
33514 | eval "$as_ac_var=yes" | |
33515 | else | |
33516 | echo "$as_me: failed program was:" >&5 | |
33517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33518 | ||
33519 | eval "$as_ac_var=no" | |
33520 | fi | |
ac1cb8d3 VS |
33521 | rm -f conftest.err conftest.$ac_objext \ |
33522 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33523 | fi |
33524 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33525 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33526 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33527 | cat >>confdefs.h <<_ACEOF | |
33528 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33529 | _ACEOF | |
33530 | ||
33531 | cat >>confdefs.h <<\_ACEOF | |
33532 | #define HAVE_DLOPEN 1 | |
33533 | _ACEOF | |
33534 | ||
33535 | HAVE_DL_FUNCS=1 | |
33536 | ||
33537 | else | |
33538 | ||
33539 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33540 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33541 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33543 | else | |
33544 | ac_check_lib_save_LIBS=$LIBS | |
33545 | LIBS="-ldl $LIBS" | |
33546 | cat >conftest.$ac_ext <<_ACEOF | |
33547 | /* confdefs.h. */ | |
33548 | _ACEOF | |
33549 | cat confdefs.h >>conftest.$ac_ext | |
33550 | cat >>conftest.$ac_ext <<_ACEOF | |
33551 | /* end confdefs.h. */ | |
33552 | ||
33553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33554 | #ifdef __cplusplus | |
33555 | extern "C" | |
33556 | #endif | |
33557 | /* We use char because int might match the return type of a gcc2 | |
33558 | builtin and then its argument prototype would still apply. */ | |
33559 | char dlopen (); | |
33560 | int | |
33561 | main () | |
33562 | { | |
33563 | dlopen (); | |
33564 | ; | |
33565 | return 0; | |
33566 | } | |
33567 | _ACEOF | |
33568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33570 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33571 | ac_status=$? |
ac1cb8d3 VS |
33572 | grep -v '^ *+' conftest.er1 >conftest.err |
33573 | rm -f conftest.er1 | |
33574 | cat conftest.err >&5 | |
a848cd7e SC |
33575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33576 | (exit $ac_status); } && | |
2cbbc68d RD |
33577 | { ac_try='test -z "$ac_c_werror_flag" |
33578 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33580 | (eval $ac_try) 2>&5 | |
33581 | ac_status=$? | |
33582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33583 | (exit $ac_status); }; } && | |
33584 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33586 | (eval $ac_try) 2>&5 | |
33587 | ac_status=$? | |
33588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33589 | (exit $ac_status); }; }; then | |
33590 | ac_cv_lib_dl_dlopen=yes | |
33591 | else | |
33592 | echo "$as_me: failed program was:" >&5 | |
33593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33594 | ||
33595 | ac_cv_lib_dl_dlopen=no | |
33596 | fi | |
ac1cb8d3 VS |
33597 | rm -f conftest.err conftest.$ac_objext \ |
33598 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33599 | LIBS=$ac_check_lib_save_LIBS |
33600 | fi | |
33601 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33602 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33603 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33604 | ||
33605 | cat >>confdefs.h <<\_ACEOF | |
33606 | #define HAVE_DLOPEN 1 | |
33607 | _ACEOF | |
33608 | ||
33609 | HAVE_DL_FUNCS=1 | |
33610 | DL_LINK=" -ldl$DL_LINK" | |
33611 | ||
33612 | else | |
33613 | ||
33614 | ||
33615 | for ac_func in shl_load | |
33616 | do | |
33617 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33618 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33619 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33620 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33622 | else | |
33623 | cat >conftest.$ac_ext <<_ACEOF | |
33624 | /* confdefs.h. */ | |
33625 | _ACEOF | |
33626 | cat confdefs.h >>conftest.$ac_ext | |
33627 | cat >>conftest.$ac_ext <<_ACEOF | |
33628 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33629 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33630 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33631 | #define $ac_func innocuous_$ac_func | |
33632 | ||
a848cd7e SC |
33633 | /* System header to define __stub macros and hopefully few prototypes, |
33634 | which can conflict with char $ac_func (); below. | |
33635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33636 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33637 | |
a848cd7e SC |
33638 | #ifdef __STDC__ |
33639 | # include <limits.h> | |
33640 | #else | |
33641 | # include <assert.h> | |
33642 | #endif | |
ac1cb8d3 VS |
33643 | |
33644 | #undef $ac_func | |
33645 | ||
a848cd7e SC |
33646 | /* Override any gcc2 internal prototype to avoid an error. */ |
33647 | #ifdef __cplusplus | |
33648 | extern "C" | |
33649 | { | |
33650 | #endif | |
33651 | /* We use char because int might match the return type of a gcc2 | |
33652 | builtin and then its argument prototype would still apply. */ | |
33653 | char $ac_func (); | |
33654 | /* The GNU C library defines this for functions which it implements | |
33655 | to always fail with ENOSYS. Some functions are actually named | |
33656 | something starting with __ and the normal name is an alias. */ | |
33657 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33658 | choke me | |
33659 | #else | |
33660 | char (*f) () = $ac_func; | |
33661 | #endif | |
33662 | #ifdef __cplusplus | |
33663 | } | |
33664 | #endif | |
33665 | ||
33666 | int | |
33667 | main () | |
33668 | { | |
33669 | return f != $ac_func; | |
33670 | ; | |
33671 | return 0; | |
33672 | } | |
33673 | _ACEOF | |
33674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33676 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33677 | ac_status=$? |
ac1cb8d3 VS |
33678 | grep -v '^ *+' conftest.er1 >conftest.err |
33679 | rm -f conftest.er1 | |
33680 | cat conftest.err >&5 | |
a848cd7e SC |
33681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33682 | (exit $ac_status); } && | |
2cbbc68d RD |
33683 | { ac_try='test -z "$ac_c_werror_flag" |
33684 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33686 | (eval $ac_try) 2>&5 | |
33687 | ac_status=$? | |
33688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33689 | (exit $ac_status); }; } && | |
33690 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33692 | (eval $ac_try) 2>&5 | |
33693 | ac_status=$? | |
33694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33695 | (exit $ac_status); }; }; then | |
33696 | eval "$as_ac_var=yes" | |
33697 | else | |
33698 | echo "$as_me: failed program was:" >&5 | |
33699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33700 | ||
33701 | eval "$as_ac_var=no" | |
33702 | fi | |
ac1cb8d3 VS |
33703 | rm -f conftest.err conftest.$ac_objext \ |
33704 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33705 | fi |
33706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33707 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33708 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33709 | cat >>confdefs.h <<_ACEOF | |
33710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33711 | _ACEOF | |
33712 | ||
33713 | cat >>confdefs.h <<\_ACEOF | |
33714 | #define HAVE_SHL_LOAD 1 | |
33715 | _ACEOF | |
33716 | ||
33717 | HAVE_SHL_FUNCS=1 | |
33718 | ||
33719 | else | |
33720 | ||
33721 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33722 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33723 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33725 | else | |
33726 | ac_check_lib_save_LIBS=$LIBS | |
33727 | LIBS="-lshl_load $LIBS" | |
33728 | cat >conftest.$ac_ext <<_ACEOF | |
33729 | /* confdefs.h. */ | |
33730 | _ACEOF | |
33731 | cat confdefs.h >>conftest.$ac_ext | |
33732 | cat >>conftest.$ac_ext <<_ACEOF | |
33733 | /* end confdefs.h. */ | |
33734 | ||
33735 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33736 | #ifdef __cplusplus | |
33737 | extern "C" | |
33738 | #endif | |
33739 | /* We use char because int might match the return type of a gcc2 | |
33740 | builtin and then its argument prototype would still apply. */ | |
33741 | char dld (); | |
33742 | int | |
33743 | main () | |
33744 | { | |
33745 | dld (); | |
33746 | ; | |
33747 | return 0; | |
33748 | } | |
33749 | _ACEOF | |
33750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33752 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33753 | ac_status=$? |
ac1cb8d3 VS |
33754 | grep -v '^ *+' conftest.er1 >conftest.err |
33755 | rm -f conftest.er1 | |
33756 | cat conftest.err >&5 | |
a848cd7e SC |
33757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33758 | (exit $ac_status); } && | |
2cbbc68d RD |
33759 | { ac_try='test -z "$ac_c_werror_flag" |
33760 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33762 | (eval $ac_try) 2>&5 | |
33763 | ac_status=$? | |
33764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33765 | (exit $ac_status); }; } && | |
33766 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33768 | (eval $ac_try) 2>&5 | |
33769 | ac_status=$? | |
33770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33771 | (exit $ac_status); }; }; then | |
33772 | ac_cv_lib_shl_load_dld=yes | |
33773 | else | |
33774 | echo "$as_me: failed program was:" >&5 | |
33775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33776 | ||
33777 | ac_cv_lib_shl_load_dld=no | |
33778 | fi | |
ac1cb8d3 VS |
33779 | rm -f conftest.err conftest.$ac_objext \ |
33780 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33781 | LIBS=$ac_check_lib_save_LIBS |
33782 | fi | |
33783 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33784 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33785 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33786 | ||
33787 | HAVE_SHL_FUNCS=1 | |
33788 | DL_LINK=" -ldld$DL_LINK" | |
33789 | ||
33790 | fi | |
33791 | ||
33792 | ||
33793 | fi | |
33794 | done | |
33795 | ||
33796 | ||
33797 | fi | |
33798 | ||
33799 | ||
33800 | fi | |
33801 | done | |
33802 | ||
33803 | ||
33804 | if test "$HAVE_DL_FUNCS" = 1; then | |
33805 | ||
33806 | for ac_func in dlerror | |
33807 | do | |
33808 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33809 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33810 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33811 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33813 | else | |
33814 | cat >conftest.$ac_ext <<_ACEOF | |
33815 | /* confdefs.h. */ | |
33816 | _ACEOF | |
33817 | cat confdefs.h >>conftest.$ac_ext | |
33818 | cat >>conftest.$ac_ext <<_ACEOF | |
33819 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33820 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33821 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33822 | #define $ac_func innocuous_$ac_func | |
33823 | ||
a848cd7e SC |
33824 | /* System header to define __stub macros and hopefully few prototypes, |
33825 | which can conflict with char $ac_func (); below. | |
33826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33827 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33828 | |
a848cd7e SC |
33829 | #ifdef __STDC__ |
33830 | # include <limits.h> | |
33831 | #else | |
33832 | # include <assert.h> | |
33833 | #endif | |
ac1cb8d3 VS |
33834 | |
33835 | #undef $ac_func | |
33836 | ||
a848cd7e SC |
33837 | /* Override any gcc2 internal prototype to avoid an error. */ |
33838 | #ifdef __cplusplus | |
33839 | extern "C" | |
33840 | { | |
33841 | #endif | |
33842 | /* We use char because int might match the return type of a gcc2 | |
33843 | builtin and then its argument prototype would still apply. */ | |
33844 | char $ac_func (); | |
33845 | /* The GNU C library defines this for functions which it implements | |
33846 | to always fail with ENOSYS. Some functions are actually named | |
33847 | something starting with __ and the normal name is an alias. */ | |
33848 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33849 | choke me | |
33850 | #else | |
33851 | char (*f) () = $ac_func; | |
33852 | #endif | |
33853 | #ifdef __cplusplus | |
33854 | } | |
33855 | #endif | |
33856 | ||
33857 | int | |
33858 | main () | |
33859 | { | |
33860 | return f != $ac_func; | |
33861 | ; | |
33862 | return 0; | |
33863 | } | |
33864 | _ACEOF | |
33865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33867 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33868 | ac_status=$? |
ac1cb8d3 VS |
33869 | grep -v '^ *+' conftest.er1 >conftest.err |
33870 | rm -f conftest.er1 | |
33871 | cat conftest.err >&5 | |
a848cd7e SC |
33872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33873 | (exit $ac_status); } && | |
2cbbc68d RD |
33874 | { ac_try='test -z "$ac_c_werror_flag" |
33875 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33877 | (eval $ac_try) 2>&5 | |
33878 | ac_status=$? | |
33879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33880 | (exit $ac_status); }; } && | |
33881 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33883 | (eval $ac_try) 2>&5 | |
33884 | ac_status=$? | |
33885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33886 | (exit $ac_status); }; }; then | |
33887 | eval "$as_ac_var=yes" | |
33888 | else | |
33889 | echo "$as_me: failed program was:" >&5 | |
33890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33891 | ||
33892 | eval "$as_ac_var=no" | |
33893 | fi | |
ac1cb8d3 VS |
33894 | rm -f conftest.err conftest.$ac_objext \ |
33895 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33896 | fi |
33897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33898 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33899 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33900 | cat >>confdefs.h <<_ACEOF | |
33901 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33902 | _ACEOF | |
33903 | cat >>confdefs.h <<\_ACEOF | |
33904 | #define HAVE_DLERROR 1 | |
33905 | _ACEOF | |
33906 | ||
33907 | else | |
33908 | ||
33909 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33910 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33911 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33913 | else | |
33914 | ac_check_lib_save_LIBS=$LIBS | |
33915 | LIBS="-ldl $LIBS" | |
33916 | cat >conftest.$ac_ext <<_ACEOF | |
33917 | /* confdefs.h. */ | |
33918 | _ACEOF | |
33919 | cat confdefs.h >>conftest.$ac_ext | |
33920 | cat >>conftest.$ac_ext <<_ACEOF | |
33921 | /* end confdefs.h. */ | |
33922 | ||
33923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33924 | #ifdef __cplusplus | |
33925 | extern "C" | |
33926 | #endif | |
33927 | /* We use char because int might match the return type of a gcc2 | |
33928 | builtin and then its argument prototype would still apply. */ | |
33929 | char dlerror (); | |
33930 | int | |
33931 | main () | |
33932 | { | |
33933 | dlerror (); | |
33934 | ; | |
33935 | return 0; | |
33936 | } | |
33937 | _ACEOF | |
33938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33940 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33941 | ac_status=$? |
ac1cb8d3 VS |
33942 | grep -v '^ *+' conftest.er1 >conftest.err |
33943 | rm -f conftest.er1 | |
33944 | cat conftest.err >&5 | |
a848cd7e SC |
33945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33946 | (exit $ac_status); } && | |
2cbbc68d RD |
33947 | { ac_try='test -z "$ac_c_werror_flag" |
33948 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33950 | (eval $ac_try) 2>&5 | |
33951 | ac_status=$? | |
33952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33953 | (exit $ac_status); }; } && | |
33954 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33956 | (eval $ac_try) 2>&5 | |
33957 | ac_status=$? | |
33958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33959 | (exit $ac_status); }; }; then | |
33960 | ac_cv_lib_dl_dlerror=yes | |
33961 | else | |
33962 | echo "$as_me: failed program was:" >&5 | |
33963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33964 | ||
33965 | ac_cv_lib_dl_dlerror=no | |
33966 | fi | |
ac1cb8d3 VS |
33967 | rm -f conftest.err conftest.$ac_objext \ |
33968 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33969 | LIBS=$ac_check_lib_save_LIBS |
33970 | fi | |
33971 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33972 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33973 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33974 | cat >>confdefs.h <<\_ACEOF | |
33975 | #define HAVE_DLERROR 1 | |
33976 | _ACEOF | |
33977 | ||
33978 | fi | |
33979 | ||
33980 | ||
33981 | ||
33982 | fi | |
33983 | done | |
33984 | ||
33985 | fi | |
33986 | fi | |
33987 | ||
33988 | if test "$HAVE_DL_FUNCS" = 0; then | |
33989 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33990 | if test "$USE_UNIX" = 1; then | |
33991 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33992 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33993 | wxUSE_DYNAMIC_LOADER=no | |
33994 | wxUSE_DYNLIB_CLASS=no | |
33995 | else | |
33996 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33997 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33998 | fi | |
33999 | fi | |
34000 | fi | |
34001 | fi | |
34002 | fi | |
34003 | ||
34004 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
34005 | cat >>confdefs.h <<\_ACEOF | |
34006 | #define wxUSE_DYNAMIC_LOADER 1 | |
34007 | _ACEOF | |
34008 | ||
34009 | fi | |
34010 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34011 | cat >>confdefs.h <<\_ACEOF | |
34012 | #define wxUSE_DYNLIB_CLASS 1 | |
34013 | _ACEOF | |
34014 | ||
34015 | fi | |
34016 | ||
34017 | ||
34018 | ||
34019 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34020 | if test "$wxUSE_SHARED" = "no" ; then | |
34021 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
34022 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
34023 | wxUSE_PLUGINS=no | |
34024 | fi | |
34025 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
34026 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
34027 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
34028 | wxUSE_PLUGINS=no | |
34029 | fi | |
34030 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
34031 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
34032 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
34033 | wxUSE_PLUGINS=no | |
34034 | fi | |
34035 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34036 | cat >>confdefs.h <<\_ACEOF | |
34037 | #define wxUSE_PLUGINS 1 | |
34038 | _ACEOF | |
34039 | ||
34040 | fi | |
34041 | fi | |
34042 | ||
34043 | ||
34044 | if test "$wxUSE_STL" = "yes"; then | |
34045 | cat >>confdefs.h <<\_ACEOF | |
34046 | #define wxUSE_STL 1 | |
34047 | _ACEOF | |
34048 | ||
34049 | fi | |
34050 | ||
34051 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
34052 | cat >>confdefs.h <<\_ACEOF | |
34053 | #define wxUSE_APPLE_IEEE 1 | |
34054 | _ACEOF | |
34055 | ||
34056 | fi | |
34057 | ||
34058 | if test "$wxUSE_TIMER" = "yes"; then | |
34059 | cat >>confdefs.h <<\_ACEOF | |
34060 | #define wxUSE_TIMER 1 | |
34061 | _ACEOF | |
34062 | ||
34063 | fi | |
34064 | ||
34065 | WITH_PLUGIN_SDL=0 | |
34066 | if test "$wxUSE_SOUND" = "yes"; then | |
34067 | if test "$USE_UNIX" = "1" ; then | |
34068 | ||
34069 | for ac_header in sys/soundcard.h | |
34070 | do | |
34071 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34072 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34073 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34074 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34075 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34077 | fi | |
34078 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34079 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34080 | else | |
34081 | # Is the header compilable? | |
34082 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34083 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34084 | cat >conftest.$ac_ext <<_ACEOF | |
34085 | /* confdefs.h. */ | |
34086 | _ACEOF | |
34087 | cat confdefs.h >>conftest.$ac_ext | |
34088 | cat >>conftest.$ac_ext <<_ACEOF | |
34089 | /* end confdefs.h. */ | |
34090 | $ac_includes_default | |
34091 | #include <$ac_header> | |
34092 | _ACEOF | |
34093 | rm -f conftest.$ac_objext | |
34094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34095 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34096 | ac_status=$? |
ac1cb8d3 VS |
34097 | grep -v '^ *+' conftest.er1 >conftest.err |
34098 | rm -f conftest.er1 | |
34099 | cat conftest.err >&5 | |
a848cd7e SC |
34100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34101 | (exit $ac_status); } && | |
2cbbc68d RD |
34102 | { ac_try='test -z "$ac_c_werror_flag" |
34103 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34105 | (eval $ac_try) 2>&5 | |
34106 | ac_status=$? | |
34107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34108 | (exit $ac_status); }; } && | |
34109 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34111 | (eval $ac_try) 2>&5 | |
34112 | ac_status=$? | |
34113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34114 | (exit $ac_status); }; }; then | |
34115 | ac_header_compiler=yes | |
34116 | else | |
34117 | echo "$as_me: failed program was:" >&5 | |
34118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34119 | ||
34120 | ac_header_compiler=no | |
34121 | fi | |
ac1cb8d3 | 34122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34123 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34124 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34125 | ||
34126 | # Is the header present? | |
34127 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34128 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34129 | cat >conftest.$ac_ext <<_ACEOF | |
34130 | /* confdefs.h. */ | |
34131 | _ACEOF | |
34132 | cat confdefs.h >>conftest.$ac_ext | |
34133 | cat >>conftest.$ac_ext <<_ACEOF | |
34134 | /* end confdefs.h. */ | |
34135 | #include <$ac_header> | |
34136 | _ACEOF | |
34137 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34138 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34139 | ac_status=$? | |
34140 | grep -v '^ *+' conftest.er1 >conftest.err | |
34141 | rm -f conftest.er1 | |
34142 | cat conftest.err >&5 | |
34143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34144 | (exit $ac_status); } >/dev/null; then | |
34145 | if test -s conftest.err; then | |
34146 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34147 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34148 | else |
34149 | ac_cpp_err= | |
34150 | fi | |
34151 | else | |
34152 | ac_cpp_err=yes | |
34153 | fi | |
34154 | if test -z "$ac_cpp_err"; then | |
34155 | ac_header_preproc=yes | |
34156 | else | |
34157 | echo "$as_me: failed program was:" >&5 | |
34158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34159 | ||
34160 | ac_header_preproc=no | |
34161 | fi | |
34162 | rm -f conftest.err conftest.$ac_ext | |
34163 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34164 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34165 | ||
34166 | # So? What about this header? | |
ac1cb8d3 VS |
34167 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34168 | yes:no: ) | |
a848cd7e SC |
34169 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34170 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34171 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34172 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34173 | ac_header_preproc=yes | |
a848cd7e | 34174 | ;; |
ac1cb8d3 | 34175 | no:yes:* ) |
a848cd7e SC |
34176 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34177 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34178 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34179 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34180 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34181 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34182 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34183 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34184 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34185 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34186 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34187 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34188 | ( |
34189 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34190 | ## ----------------------------------------- ## |
34191 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34192 | ## ----------------------------------------- ## | |
a848cd7e SC |
34193 | _ASBOX |
34194 | ) | | |
34195 | sed "s/^/$as_me: WARNING: /" >&2 | |
34196 | ;; | |
34197 | esac | |
34198 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34199 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34200 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34202 | else | |
ac1cb8d3 | 34203 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34204 | fi |
34205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34206 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34207 | ||
34208 | fi | |
34209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34210 | cat >>confdefs.h <<_ACEOF | |
34211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34212 | _ACEOF | |
34213 | ||
34214 | fi | |
34215 | ||
34216 | done | |
34217 | ||
34218 | ||
34219 | if test "$wxUSE_LIBSDL" != "no"; then | |
34220 | ||
34221 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34222 | if test "${with_sdl_prefix+set}" = set; then | |
34223 | withval="$with_sdl_prefix" | |
34224 | sdl_prefix="$withval" | |
34225 | else | |
34226 | sdl_prefix="" | |
34227 | fi; | |
34228 | ||
34229 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34230 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34231 | withval="$with_sdl_exec_prefix" | |
34232 | sdl_exec_prefix="$withval" | |
34233 | else | |
34234 | sdl_exec_prefix="" | |
34235 | fi; | |
34236 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34237 | if test "${enable_sdltest+set}" = set; then | |
34238 | enableval="$enable_sdltest" | |
34239 | ||
34240 | else | |
34241 | enable_sdltest=yes | |
34242 | fi; | |
34243 | ||
34244 | if test x$sdl_exec_prefix != x ; then | |
34245 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34246 | if test x${SDL_CONFIG+set} != xset ; then | |
34247 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34248 | fi | |
34249 | fi | |
34250 | if test x$sdl_prefix != x ; then | |
34251 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34252 | if test x${SDL_CONFIG+set} != xset ; then | |
34253 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34254 | fi | |
34255 | fi | |
34256 | ||
34257 | ||
34258 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34259 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34260 | set dummy sdl-config; ac_word=$2 | |
34261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34263 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34265 | else | |
34266 | case $SDL_CONFIG in | |
34267 | [\\/]* | ?:[\\/]*) | |
34268 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34269 | ;; | |
34270 | *) | |
34271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34272 | for as_dir in $PATH | |
34273 | do | |
34274 | IFS=$as_save_IFS | |
34275 | test -z "$as_dir" && as_dir=. | |
34276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34277 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34278 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34280 | break 2 | |
34281 | fi | |
34282 | done | |
34283 | done | |
34284 | ||
34285 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34286 | ;; | |
34287 | esac | |
34288 | fi | |
34289 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34290 | ||
34291 | if test -n "$SDL_CONFIG"; then | |
34292 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34293 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34294 | else | |
34295 | echo "$as_me:$LINENO: result: no" >&5 | |
34296 | echo "${ECHO_T}no" >&6 | |
34297 | fi | |
34298 | ||
34299 | min_sdl_version=1.2.0 | |
34300 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34301 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34302 | no_sdl="" | |
34303 | if test "$SDL_CONFIG" = "no" ; then | |
34304 | no_sdl=yes | |
34305 | else | |
34306 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34307 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34308 | ||
34309 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34310 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34311 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34312 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34313 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34314 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34315 | if test "x$enable_sdltest" = "xyes" ; then | |
34316 | ac_save_CFLAGS="$CFLAGS" | |
34317 | ac_save_LIBS="$LIBS" | |
34318 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34319 | LIBS="$LIBS $SDL_LIBS" | |
34320 | rm -f conf.sdltest | |
34321 | if test "$cross_compiling" = yes; then | |
34322 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34323 | else | |
34324 | cat >conftest.$ac_ext <<_ACEOF | |
34325 | /* confdefs.h. */ | |
34326 | _ACEOF | |
34327 | cat confdefs.h >>conftest.$ac_ext | |
34328 | cat >>conftest.$ac_ext <<_ACEOF | |
34329 | /* end confdefs.h. */ | |
34330 | ||
34331 | #include <stdio.h> | |
34332 | #include <stdlib.h> | |
34333 | #include <string.h> | |
34334 | #include "SDL.h" | |
34335 | ||
34336 | char* | |
34337 | my_strdup (char *str) | |
34338 | { | |
34339 | char *new_str; | |
34340 | ||
34341 | if (str) | |
34342 | { | |
34343 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34344 | strcpy (new_str, str); | |
34345 | } | |
34346 | else | |
34347 | new_str = NULL; | |
34348 | ||
34349 | return new_str; | |
34350 | } | |
34351 | ||
34352 | int main (int argc, char *argv[]) | |
34353 | { | |
34354 | int major, minor, micro; | |
34355 | char *tmp_version; | |
34356 | ||
34357 | /* This hangs on some systems (?) | |
34358 | system ("touch conf.sdltest"); | |
34359 | */ | |
34360 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34361 | ||
34362 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34363 | tmp_version = my_strdup("$min_sdl_version"); | |
34364 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34365 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34366 | exit(1); | |
34367 | } | |
34368 | ||
34369 | if (($sdl_major_version > major) || | |
34370 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34371 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34372 | { | |
34373 | return 0; | |
34374 | } | |
34375 | else | |
34376 | { | |
34377 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34378 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34379 | printf("*** best to upgrade to the required version.\n"); | |
34380 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34381 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34382 | printf("*** config.cache before re-running configure\n"); | |
34383 | return 1; | |
34384 | } | |
34385 | } | |
34386 | ||
34387 | ||
34388 | _ACEOF | |
34389 | rm -f conftest$ac_exeext | |
34390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34391 | (eval $ac_link) 2>&5 | |
34392 | ac_status=$? | |
34393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34394 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34396 | (eval $ac_try) 2>&5 | |
34397 | ac_status=$? | |
34398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34399 | (exit $ac_status); }; }; then | |
34400 | : | |
34401 | else | |
34402 | echo "$as_me: program exited with status $ac_status" >&5 | |
34403 | echo "$as_me: failed program was:" >&5 | |
34404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34405 | ||
34406 | ( exit $ac_status ) | |
34407 | no_sdl=yes | |
34408 | fi | |
ac1cb8d3 | 34409 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34410 | fi |
34411 | CFLAGS="$ac_save_CFLAGS" | |
34412 | LIBS="$ac_save_LIBS" | |
34413 | fi | |
34414 | fi | |
34415 | if test "x$no_sdl" = x ; then | |
34416 | echo "$as_me:$LINENO: result: yes" >&5 | |
34417 | echo "${ECHO_T}yes" >&6 | |
34418 | ||
34419 | EXTRALIBS_SDL="$SDL_LIBS" | |
34420 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34421 | cat >>confdefs.h <<\_ACEOF | |
34422 | #define wxUSE_LIBSDL 1 | |
34423 | _ACEOF | |
34424 | ||
34425 | ||
34426 | else | |
34427 | echo "$as_me:$LINENO: result: no" >&5 | |
34428 | echo "${ECHO_T}no" >&6 | |
34429 | if test "$SDL_CONFIG" = "no" ; then | |
34430 | echo "*** The sdl-config script installed by SDL could not be found" | |
34431 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34432 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34433 | echo "*** full path to sdl-config." | |
34434 | else | |
34435 | if test -f conf.sdltest ; then | |
34436 | : | |
34437 | else | |
34438 | echo "*** Could not run SDL test program, checking why..." | |
34439 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34440 | LIBS="$LIBS $SDL_LIBS" | |
34441 | cat >conftest.$ac_ext <<_ACEOF | |
34442 | /* confdefs.h. */ | |
34443 | _ACEOF | |
34444 | cat confdefs.h >>conftest.$ac_ext | |
34445 | cat >>conftest.$ac_ext <<_ACEOF | |
34446 | /* end confdefs.h. */ | |
34447 | ||
34448 | #include <stdio.h> | |
34449 | #include "SDL.h" | |
34450 | ||
34451 | int main(int argc, char *argv[]) | |
34452 | { return 0; } | |
34453 | #undef main | |
34454 | #define main K_and_R_C_main | |
34455 | ||
34456 | int | |
34457 | main () | |
34458 | { | |
34459 | return 0; | |
34460 | ; | |
34461 | return 0; | |
34462 | } | |
34463 | _ACEOF | |
34464 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34466 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34467 | ac_status=$? |
ac1cb8d3 VS |
34468 | grep -v '^ *+' conftest.er1 >conftest.err |
34469 | rm -f conftest.er1 | |
34470 | cat conftest.err >&5 | |
a848cd7e SC |
34471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34472 | (exit $ac_status); } && | |
2cbbc68d RD |
34473 | { ac_try='test -z "$ac_c_werror_flag" |
34474 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34476 | (eval $ac_try) 2>&5 | |
34477 | ac_status=$? | |
34478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34479 | (exit $ac_status); }; } && | |
34480 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34482 | (eval $ac_try) 2>&5 | |
34483 | ac_status=$? | |
34484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34485 | (exit $ac_status); }; }; then | |
34486 | echo "*** The test program compiled, but did not run. This usually means" | |
34487 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34488 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34489 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34490 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34491 | echo "*** is required on your system" | |
34492 | echo "***" | |
34493 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34494 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34495 | else | |
34496 | echo "$as_me: failed program was:" >&5 | |
34497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34498 | ||
34499 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34500 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34501 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34502 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34503 | fi | |
ac1cb8d3 VS |
34504 | rm -f conftest.err conftest.$ac_objext \ |
34505 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34506 | CFLAGS="$ac_save_CFLAGS" |
34507 | LIBS="$ac_save_LIBS" | |
34508 | fi | |
34509 | fi | |
34510 | SDL_CFLAGS="" | |
34511 | SDL_LIBS="" | |
34512 | wxUSE_LIBSDL="no" | |
34513 | fi | |
34514 | ||
34515 | ||
34516 | rm -f conf.sdltest | |
34517 | ||
34518 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34519 | WITH_PLUGIN_SDL=1 | |
34520 | fi | |
34521 | fi | |
34522 | fi | |
34523 | ||
34524 | cat >>confdefs.h <<\_ACEOF | |
34525 | #define wxUSE_SOUND 1 | |
34526 | _ACEOF | |
34527 | ||
34528 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34529 | fi | |
34530 | ||
d1c38808 VZ |
34531 | if test "$WXGTK20" = 1; then |
34532 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
34533 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
34534 | ||
34535 | ||
34536 | succeeded=no | |
34537 | ||
34538 | if test -z "$PKG_CONFIG"; then | |
34539 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
34540 | set dummy pkg-config; ac_word=$2 | |
34541 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34543 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
34544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34545 | else | |
34546 | case $PKG_CONFIG in | |
34547 | [\\/]* | ?:[\\/]*) | |
34548 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
34549 | ;; | |
34550 | *) | |
34551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34552 | for as_dir in $PATH | |
34553 | do | |
34554 | IFS=$as_save_IFS | |
34555 | test -z "$as_dir" && as_dir=. | |
34556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34558 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34560 | break 2 | |
34561 | fi | |
34562 | done | |
34563 | done | |
34564 | ||
34565 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
34566 | ;; | |
34567 | esac | |
34568 | fi | |
34569 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
34570 | ||
34571 | if test -n "$PKG_CONFIG"; then | |
34572 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
34573 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
34574 | else | |
34575 | echo "$as_me:$LINENO: result: no" >&5 | |
34576 | echo "${ECHO_T}no" >&6 | |
34577 | fi | |
34578 | ||
34579 | fi | |
34580 | ||
34581 | if test "$PKG_CONFIG" = "no" ; then | |
34582 | echo "*** The pkg-config script could not be found. Make sure it is" | |
34583 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
34584 | echo "*** to the full path to pkg-config." | |
34585 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
34586 | else | |
34587 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
34588 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
34589 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2" >&5 | |
34590 | echo $ECHO_N "checking for libgnomeprintui-2.2... $ECHO_C" >&6 | |
34591 | ||
34592 | if $PKG_CONFIG --exists "libgnomeprintui-2.2" ; then | |
34593 | echo "$as_me:$LINENO: result: yes" >&5 | |
34594 | echo "${ECHO_T}yes" >&6 | |
34595 | succeeded=yes | |
34596 | ||
34597 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
34598 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
34599 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2"` | |
34600 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 | |
34601 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
34602 | ||
34603 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
34604 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
34605 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2"` | |
34606 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 | |
34607 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
34608 | else | |
34609 | LIBGNOMEPRINTUI_CFLAGS="" | |
34610 | LIBGNOMEPRINTUI_LIBS="" | |
34611 | ## If we have a custom action on failure, don't print errors, but | |
34612 | ## do set a variable so people can do so. | |
34613 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2"` | |
34614 | ||
34615 | fi | |
34616 | ||
34617 | ||
34618 | ||
34619 | else | |
34620 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
34621 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
34622 | fi | |
34623 | fi | |
34624 | ||
34625 | if test $succeeded = yes; then | |
34626 | ||
34627 | EXTRALIBS_GNOMEPRINT="$LIBGNOMEPRINTUI_LIBS" | |
34628 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" | |
34629 | cat >>confdefs.h <<\_ACEOF | |
34630 | #define wxUSE_LIBGNOMEPRINT 1 | |
34631 | _ACEOF | |
34632 | ||
34633 | ||
34634 | else | |
34635 | ||
34636 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
34637 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
34638 | wxUSE_LIBGNOMEPRINT="no" | |
34639 | ||
34640 | ||
34641 | fi | |
34642 | ||
34643 | fi | |
34644 | fi | |
34645 | fi | |
34646 | ||
34647 | ||
a848cd7e SC |
34648 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
34649 | cat >>confdefs.h <<\_ACEOF | |
34650 | #define wxUSE_CMDLINE_PARSER 1 | |
34651 | _ACEOF | |
34652 | ||
34653 | fi | |
34654 | ||
34655 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34656 | cat >>confdefs.h <<\_ACEOF | |
34657 | #define wxUSE_STOPWATCH 1 | |
34658 | _ACEOF | |
34659 | ||
34660 | fi | |
34661 | ||
34662 | if test "$wxUSE_DATETIME" = "yes"; then | |
34663 | cat >>confdefs.h <<\_ACEOF | |
34664 | #define wxUSE_DATETIME 1 | |
34665 | _ACEOF | |
34666 | ||
34667 | fi | |
34668 | ||
34669 | if test "$wxUSE_FILE" = "yes"; then | |
34670 | cat >>confdefs.h <<\_ACEOF | |
34671 | #define wxUSE_FILE 1 | |
34672 | _ACEOF | |
34673 | ||
34674 | fi | |
34675 | ||
34676 | if test "$wxUSE_FFILE" = "yes"; then | |
34677 | cat >>confdefs.h <<\_ACEOF | |
34678 | #define wxUSE_FFILE 1 | |
34679 | _ACEOF | |
34680 | ||
34681 | fi | |
34682 | ||
34683 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34684 | cat >>confdefs.h <<\_ACEOF | |
34685 | #define wxUSE_FILESYSTEM 1 | |
34686 | _ACEOF | |
34687 | ||
34688 | fi | |
34689 | ||
34690 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34691 | cat >>confdefs.h <<\_ACEOF | |
34692 | #define wxUSE_FS_ZIP 1 | |
34693 | _ACEOF | |
34694 | ||
34695 | fi | |
34696 | ||
34697 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34698 | cat >>confdefs.h <<\_ACEOF | |
34699 | #define wxUSE_ZIPSTREAM 1 | |
34700 | _ACEOF | |
34701 | ||
34702 | fi | |
34703 | ||
a848cd7e SC |
34704 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34705 | cat >>confdefs.h <<\_ACEOF | |
34706 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34707 | _ACEOF | |
34708 | ||
34709 | fi | |
34710 | ||
34711 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34712 | cat >>confdefs.h <<\_ACEOF | |
34713 | #define wxUSE_SNGLINST_CHECKER 1 | |
34714 | _ACEOF | |
34715 | ||
34716 | fi | |
34717 | ||
34718 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34719 | cat >>confdefs.h <<\_ACEOF | |
34720 | #define wxUSE_BUSYINFO 1 | |
34721 | _ACEOF | |
34722 | ||
34723 | fi | |
34724 | ||
34725 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34726 | cat >>confdefs.h <<\_ACEOF | |
34727 | #define wxUSE_STD_IOSTREAM 1 | |
34728 | _ACEOF | |
34729 | ||
34730 | fi | |
34731 | ||
34732 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34733 | cat >>confdefs.h <<\_ACEOF | |
34734 | #define wxUSE_TEXTBUFFER 1 | |
34735 | _ACEOF | |
34736 | ||
34737 | fi | |
34738 | ||
34739 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34740 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34741 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34742 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34743 | else | |
34744 | cat >>confdefs.h <<\_ACEOF | |
34745 | #define wxUSE_TEXTFILE 1 | |
34746 | _ACEOF | |
34747 | ||
34748 | fi | |
34749 | fi | |
34750 | ||
34751 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34752 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34753 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34754 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34755 | else | |
34756 | cat >>confdefs.h <<\_ACEOF | |
34757 | #define wxUSE_CONFIG 1 | |
34758 | _ACEOF | |
34759 | ||
34760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34761 | fi | |
34762 | fi | |
34763 | ||
34764 | if test "$wxUSE_INTL" = "yes" ; then | |
34765 | if test "$wxUSE_FILE" != "yes"; then | |
34766 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34767 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34768 | else | |
34769 | cat >>confdefs.h <<\_ACEOF | |
34770 | #define wxUSE_INTL 1 | |
34771 | _ACEOF | |
34772 | ||
34773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34774 | GUIDIST="$GUIDIST INTL_DIST" | |
34775 | fi | |
34776 | fi | |
34777 | ||
34778 | if test "$wxUSE_LOG" = "yes"; then | |
34779 | cat >>confdefs.h <<\_ACEOF | |
34780 | #define wxUSE_LOG 1 | |
34781 | _ACEOF | |
34782 | ||
34783 | ||
34784 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34785 | cat >>confdefs.h <<\_ACEOF | |
34786 | #define wxUSE_LOGGUI 1 | |
34787 | _ACEOF | |
34788 | ||
34789 | fi | |
34790 | ||
34791 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34792 | cat >>confdefs.h <<\_ACEOF | |
34793 | #define wxUSE_LOGWINDOW 1 | |
34794 | _ACEOF | |
34795 | ||
34796 | fi | |
34797 | ||
34798 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34799 | cat >>confdefs.h <<\_ACEOF | |
34800 | #define wxUSE_LOG_DIALOG 1 | |
34801 | _ACEOF | |
34802 | ||
34803 | fi | |
34804 | fi | |
34805 | ||
34806 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34807 | cat >>confdefs.h <<\_ACEOF | |
34808 | #define wxUSE_LONGLONG 1 | |
34809 | _ACEOF | |
34810 | ||
34811 | fi | |
34812 | ||
34813 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34814 | cat >>confdefs.h <<\_ACEOF | |
34815 | #define wxUSE_GEOMETRY 1 | |
34816 | _ACEOF | |
34817 | ||
34818 | fi | |
34819 | ||
34820 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34821 | cat >>confdefs.h <<\_ACEOF | |
34822 | #define wxUSE_DIALUP_MANAGER 1 | |
34823 | _ACEOF | |
34824 | ||
34825 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34826 | fi | |
34827 | ||
34828 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34829 | cat >>confdefs.h <<\_ACEOF | |
34830 | #define wxUSE_STREAMS 1 | |
34831 | _ACEOF | |
34832 | ||
34833 | fi | |
34834 | ||
34835 | ||
34836 | if test "$wxUSE_DATETIME" = "yes"; then | |
34837 | ||
34838 | for ac_func in strptime | |
34839 | do | |
34840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34843 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34845 | else | |
34846 | cat >conftest.$ac_ext <<_ACEOF | |
34847 | /* confdefs.h. */ | |
34848 | _ACEOF | |
34849 | cat confdefs.h >>conftest.$ac_ext | |
34850 | cat >>conftest.$ac_ext <<_ACEOF | |
34851 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34854 | #define $ac_func innocuous_$ac_func | |
34855 | ||
a848cd7e SC |
34856 | /* System header to define __stub macros and hopefully few prototypes, |
34857 | which can conflict with char $ac_func (); below. | |
34858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34859 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34860 | |
a848cd7e SC |
34861 | #ifdef __STDC__ |
34862 | # include <limits.h> | |
34863 | #else | |
34864 | # include <assert.h> | |
34865 | #endif | |
ac1cb8d3 VS |
34866 | |
34867 | #undef $ac_func | |
34868 | ||
a848cd7e SC |
34869 | /* Override any gcc2 internal prototype to avoid an error. */ |
34870 | #ifdef __cplusplus | |
34871 | extern "C" | |
34872 | { | |
34873 | #endif | |
34874 | /* We use char because int might match the return type of a gcc2 | |
34875 | builtin and then its argument prototype would still apply. */ | |
34876 | char $ac_func (); | |
34877 | /* The GNU C library defines this for functions which it implements | |
34878 | to always fail with ENOSYS. Some functions are actually named | |
34879 | something starting with __ and the normal name is an alias. */ | |
34880 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34881 | choke me | |
34882 | #else | |
34883 | char (*f) () = $ac_func; | |
34884 | #endif | |
34885 | #ifdef __cplusplus | |
34886 | } | |
34887 | #endif | |
34888 | ||
34889 | int | |
34890 | main () | |
34891 | { | |
34892 | return f != $ac_func; | |
34893 | ; | |
34894 | return 0; | |
34895 | } | |
34896 | _ACEOF | |
34897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34899 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34900 | ac_status=$? |
ac1cb8d3 VS |
34901 | grep -v '^ *+' conftest.er1 >conftest.err |
34902 | rm -f conftest.er1 | |
34903 | cat conftest.err >&5 | |
a848cd7e SC |
34904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34905 | (exit $ac_status); } && | |
2cbbc68d RD |
34906 | { ac_try='test -z "$ac_c_werror_flag" |
34907 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34909 | (eval $ac_try) 2>&5 | |
34910 | ac_status=$? | |
34911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34912 | (exit $ac_status); }; } && | |
34913 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34915 | (eval $ac_try) 2>&5 | |
34916 | ac_status=$? | |
34917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34918 | (exit $ac_status); }; }; then | |
34919 | eval "$as_ac_var=yes" | |
34920 | else | |
34921 | echo "$as_me: failed program was:" >&5 | |
34922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34923 | ||
34924 | eval "$as_ac_var=no" | |
34925 | fi | |
ac1cb8d3 VS |
34926 | rm -f conftest.err conftest.$ac_objext \ |
34927 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34928 | fi |
34929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34930 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34931 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34932 | cat >>confdefs.h <<_ACEOF | |
34933 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34934 | _ACEOF | |
34935 | ||
34936 | fi | |
34937 | done | |
34938 | ||
34939 | ||
34940 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34941 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34942 | if test "${wx_cv_var_timezone+set}" = set; then | |
34943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34944 | else | |
34945 | ||
34946 | cat >conftest.$ac_ext <<_ACEOF | |
34947 | /* confdefs.h. */ | |
34948 | _ACEOF | |
34949 | cat confdefs.h >>conftest.$ac_ext | |
34950 | cat >>conftest.$ac_ext <<_ACEOF | |
34951 | /* end confdefs.h. */ | |
34952 | ||
34953 | #include <time.h> | |
34954 | ||
34955 | int | |
34956 | main () | |
34957 | { | |
34958 | ||
34959 | int tz; | |
34960 | tz = timezone; | |
34961 | ||
34962 | ; | |
34963 | return 0; | |
34964 | } | |
34965 | _ACEOF | |
34966 | rm -f conftest.$ac_objext | |
34967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34968 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34969 | ac_status=$? |
ac1cb8d3 VS |
34970 | grep -v '^ *+' conftest.er1 >conftest.err |
34971 | rm -f conftest.er1 | |
34972 | cat conftest.err >&5 | |
a848cd7e SC |
34973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34974 | (exit $ac_status); } && | |
2cbbc68d RD |
34975 | { ac_try='test -z "$ac_c_werror_flag" |
34976 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34978 | (eval $ac_try) 2>&5 | |
34979 | ac_status=$? | |
34980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34981 | (exit $ac_status); }; } && | |
34982 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34984 | (eval $ac_try) 2>&5 | |
34985 | ac_status=$? | |
34986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34987 | (exit $ac_status); }; }; then | |
34988 | ||
34989 | wx_cv_var_timezone=timezone | |
34990 | ||
34991 | else | |
34992 | echo "$as_me: failed program was:" >&5 | |
34993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34994 | ||
34995 | ||
34996 | cat >conftest.$ac_ext <<_ACEOF | |
34997 | /* confdefs.h. */ | |
34998 | _ACEOF | |
34999 | cat confdefs.h >>conftest.$ac_ext | |
35000 | cat >>conftest.$ac_ext <<_ACEOF | |
35001 | /* end confdefs.h. */ | |
35002 | ||
35003 | #include <time.h> | |
35004 | ||
35005 | int | |
35006 | main () | |
35007 | { | |
35008 | ||
35009 | int tz; | |
35010 | tz = _timezone; | |
35011 | ||
35012 | ; | |
35013 | return 0; | |
35014 | } | |
35015 | _ACEOF | |
35016 | rm -f conftest.$ac_objext | |
35017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35018 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35019 | ac_status=$? |
ac1cb8d3 VS |
35020 | grep -v '^ *+' conftest.er1 >conftest.err |
35021 | rm -f conftest.er1 | |
35022 | cat conftest.err >&5 | |
a848cd7e SC |
35023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35024 | (exit $ac_status); } && | |
2cbbc68d RD |
35025 | { ac_try='test -z "$ac_c_werror_flag" |
35026 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35028 | (eval $ac_try) 2>&5 | |
35029 | ac_status=$? | |
35030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35031 | (exit $ac_status); }; } && | |
35032 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35034 | (eval $ac_try) 2>&5 | |
35035 | ac_status=$? | |
35036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35037 | (exit $ac_status); }; }; then | |
35038 | ||
35039 | wx_cv_var_timezone=_timezone | |
35040 | ||
35041 | else | |
35042 | echo "$as_me: failed program was:" >&5 | |
35043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35044 | ||
35045 | ||
35046 | cat >conftest.$ac_ext <<_ACEOF | |
35047 | /* confdefs.h. */ | |
35048 | _ACEOF | |
35049 | cat confdefs.h >>conftest.$ac_ext | |
35050 | cat >>conftest.$ac_ext <<_ACEOF | |
35051 | /* end confdefs.h. */ | |
35052 | ||
35053 | #include <time.h> | |
35054 | ||
35055 | int | |
35056 | main () | |
35057 | { | |
35058 | ||
35059 | int tz; | |
35060 | tz = __timezone; | |
35061 | ||
35062 | ; | |
35063 | return 0; | |
35064 | } | |
35065 | _ACEOF | |
35066 | rm -f conftest.$ac_objext | |
35067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35068 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35069 | ac_status=$? |
ac1cb8d3 VS |
35070 | grep -v '^ *+' conftest.er1 >conftest.err |
35071 | rm -f conftest.er1 | |
35072 | cat conftest.err >&5 | |
a848cd7e SC |
35073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35074 | (exit $ac_status); } && | |
2cbbc68d RD |
35075 | { ac_try='test -z "$ac_c_werror_flag" |
35076 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35078 | (eval $ac_try) 2>&5 | |
35079 | ac_status=$? | |
35080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35081 | (exit $ac_status); }; } && | |
35082 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35084 | (eval $ac_try) 2>&5 | |
35085 | ac_status=$? | |
35086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35087 | (exit $ac_status); }; }; then | |
35088 | ||
35089 | wx_cv_var_timezone=__timezone | |
35090 | ||
35091 | else | |
35092 | echo "$as_me: failed program was:" >&5 | |
35093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35094 | ||
35095 | ||
35096 | if test "$USE_DOS" = 0 ; then | |
35097 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35098 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35099 | fi | |
35100 | ||
35101 | ||
35102 | fi | |
ac1cb8d3 | 35103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35104 | |
35105 | ||
35106 | fi | |
ac1cb8d3 | 35107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35108 | |
35109 | ||
35110 | fi | |
ac1cb8d3 | 35111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35112 | |
35113 | ||
35114 | fi | |
35115 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
35116 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
35117 | ||
35118 | if test "x$wx_cv_var_timezone" != x ; then | |
35119 | cat >>confdefs.h <<_ACEOF | |
35120 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35121 | _ACEOF | |
35122 | ||
35123 | fi | |
35124 | ||
35125 | ||
35126 | for ac_func in localtime | |
35127 | do | |
35128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35131 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35133 | else | |
35134 | cat >conftest.$ac_ext <<_ACEOF | |
35135 | /* confdefs.h. */ | |
35136 | _ACEOF | |
35137 | cat confdefs.h >>conftest.$ac_ext | |
35138 | cat >>conftest.$ac_ext <<_ACEOF | |
35139 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35142 | #define $ac_func innocuous_$ac_func | |
35143 | ||
a848cd7e SC |
35144 | /* System header to define __stub macros and hopefully few prototypes, |
35145 | which can conflict with char $ac_func (); below. | |
35146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35147 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35148 | |
a848cd7e SC |
35149 | #ifdef __STDC__ |
35150 | # include <limits.h> | |
35151 | #else | |
35152 | # include <assert.h> | |
35153 | #endif | |
ac1cb8d3 VS |
35154 | |
35155 | #undef $ac_func | |
35156 | ||
a848cd7e SC |
35157 | /* Override any gcc2 internal prototype to avoid an error. */ |
35158 | #ifdef __cplusplus | |
35159 | extern "C" | |
35160 | { | |
35161 | #endif | |
35162 | /* We use char because int might match the return type of a gcc2 | |
35163 | builtin and then its argument prototype would still apply. */ | |
35164 | char $ac_func (); | |
35165 | /* The GNU C library defines this for functions which it implements | |
35166 | to always fail with ENOSYS. Some functions are actually named | |
35167 | something starting with __ and the normal name is an alias. */ | |
35168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35169 | choke me | |
35170 | #else | |
35171 | char (*f) () = $ac_func; | |
35172 | #endif | |
35173 | #ifdef __cplusplus | |
35174 | } | |
35175 | #endif | |
35176 | ||
35177 | int | |
35178 | main () | |
35179 | { | |
35180 | return f != $ac_func; | |
35181 | ; | |
35182 | return 0; | |
35183 | } | |
35184 | _ACEOF | |
35185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35187 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35188 | ac_status=$? |
ac1cb8d3 VS |
35189 | grep -v '^ *+' conftest.er1 >conftest.err |
35190 | rm -f conftest.er1 | |
35191 | cat conftest.err >&5 | |
a848cd7e SC |
35192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35193 | (exit $ac_status); } && | |
2cbbc68d RD |
35194 | { ac_try='test -z "$ac_c_werror_flag" |
35195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35197 | (eval $ac_try) 2>&5 | |
35198 | ac_status=$? | |
35199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35200 | (exit $ac_status); }; } && | |
35201 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35203 | (eval $ac_try) 2>&5 | |
35204 | ac_status=$? | |
35205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35206 | (exit $ac_status); }; }; then | |
35207 | eval "$as_ac_var=yes" | |
35208 | else | |
35209 | echo "$as_me: failed program was:" >&5 | |
35210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35211 | ||
35212 | eval "$as_ac_var=no" | |
35213 | fi | |
ac1cb8d3 VS |
35214 | rm -f conftest.err conftest.$ac_objext \ |
35215 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35216 | fi |
35217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35218 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35219 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35220 | cat >>confdefs.h <<_ACEOF | |
35221 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35222 | _ACEOF | |
35223 | ||
35224 | fi | |
35225 | done | |
35226 | ||
35227 | ||
35228 | if test "$ac_cv_func_localtime" = "yes"; then | |
35229 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
35230 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
35231 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
35232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35233 | else | |
35234 | ||
35235 | cat >conftest.$ac_ext <<_ACEOF | |
35236 | /* confdefs.h. */ | |
35237 | _ACEOF | |
35238 | cat confdefs.h >>conftest.$ac_ext | |
35239 | cat >>conftest.$ac_ext <<_ACEOF | |
35240 | /* end confdefs.h. */ | |
35241 | ||
35242 | #include <time.h> | |
35243 | ||
35244 | int | |
35245 | main () | |
35246 | { | |
35247 | ||
35248 | struct tm tm; | |
35249 | tm.tm_gmtoff++; | |
35250 | ||
35251 | ; | |
35252 | return 0; | |
35253 | } | |
35254 | _ACEOF | |
35255 | rm -f conftest.$ac_objext | |
35256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35257 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35258 | ac_status=$? |
ac1cb8d3 VS |
35259 | grep -v '^ *+' conftest.er1 >conftest.err |
35260 | rm -f conftest.er1 | |
35261 | cat conftest.err >&5 | |
a848cd7e SC |
35262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35263 | (exit $ac_status); } && | |
2cbbc68d RD |
35264 | { ac_try='test -z "$ac_c_werror_flag" |
35265 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35267 | (eval $ac_try) 2>&5 | |
35268 | ac_status=$? | |
35269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35270 | (exit $ac_status); }; } && | |
35271 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35273 | (eval $ac_try) 2>&5 | |
35274 | ac_status=$? | |
35275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35276 | (exit $ac_status); }; }; then | |
35277 | ||
35278 | wx_cv_struct_tm_has_gmtoff=yes | |
35279 | ||
35280 | else | |
35281 | echo "$as_me: failed program was:" >&5 | |
35282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35283 | ||
35284 | wx_cv_struct_tm_has_gmtoff=no | |
35285 | ||
35286 | fi | |
ac1cb8d3 | 35287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35288 | |
35289 | fi | |
35290 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
35291 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35292 | fi | |
35293 | ||
35294 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
35295 | cat >>confdefs.h <<\_ACEOF | |
35296 | #define WX_GMTOFF_IN_TM 1 | |
35297 | _ACEOF | |
35298 | ||
35299 | fi | |
35300 | ||
35301 | ||
35302 | ||
35303 | for ac_func in gettimeofday ftime | |
35304 | do | |
35305 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35306 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35307 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35308 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35310 | else | |
35311 | cat >conftest.$ac_ext <<_ACEOF | |
35312 | /* confdefs.h. */ | |
35313 | _ACEOF | |
35314 | cat confdefs.h >>conftest.$ac_ext | |
35315 | cat >>conftest.$ac_ext <<_ACEOF | |
35316 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35317 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35318 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35319 | #define $ac_func innocuous_$ac_func | |
35320 | ||
a848cd7e SC |
35321 | /* System header to define __stub macros and hopefully few prototypes, |
35322 | which can conflict with char $ac_func (); below. | |
35323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35324 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35325 | |
a848cd7e SC |
35326 | #ifdef __STDC__ |
35327 | # include <limits.h> | |
35328 | #else | |
35329 | # include <assert.h> | |
35330 | #endif | |
ac1cb8d3 VS |
35331 | |
35332 | #undef $ac_func | |
35333 | ||
a848cd7e SC |
35334 | /* Override any gcc2 internal prototype to avoid an error. */ |
35335 | #ifdef __cplusplus | |
35336 | extern "C" | |
35337 | { | |
35338 | #endif | |
35339 | /* We use char because int might match the return type of a gcc2 | |
35340 | builtin and then its argument prototype would still apply. */ | |
35341 | char $ac_func (); | |
35342 | /* The GNU C library defines this for functions which it implements | |
35343 | to always fail with ENOSYS. Some functions are actually named | |
35344 | something starting with __ and the normal name is an alias. */ | |
35345 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35346 | choke me | |
35347 | #else | |
35348 | char (*f) () = $ac_func; | |
35349 | #endif | |
35350 | #ifdef __cplusplus | |
35351 | } | |
35352 | #endif | |
35353 | ||
35354 | int | |
35355 | main () | |
35356 | { | |
35357 | return f != $ac_func; | |
35358 | ; | |
35359 | return 0; | |
35360 | } | |
35361 | _ACEOF | |
35362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35364 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35365 | ac_status=$? |
ac1cb8d3 VS |
35366 | grep -v '^ *+' conftest.er1 >conftest.err |
35367 | rm -f conftest.er1 | |
35368 | cat conftest.err >&5 | |
a848cd7e SC |
35369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35370 | (exit $ac_status); } && | |
2cbbc68d RD |
35371 | { ac_try='test -z "$ac_c_werror_flag" |
35372 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35374 | (eval $ac_try) 2>&5 | |
35375 | ac_status=$? | |
35376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35377 | (exit $ac_status); }; } && | |
35378 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35380 | (eval $ac_try) 2>&5 | |
35381 | ac_status=$? | |
35382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35383 | (exit $ac_status); }; }; then | |
35384 | eval "$as_ac_var=yes" | |
35385 | else | |
35386 | echo "$as_me: failed program was:" >&5 | |
35387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35388 | ||
35389 | eval "$as_ac_var=no" | |
35390 | fi | |
ac1cb8d3 VS |
35391 | rm -f conftest.err conftest.$ac_objext \ |
35392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35393 | fi |
35394 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35395 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35396 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35397 | cat >>confdefs.h <<_ACEOF | |
35398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35399 | _ACEOF | |
35400 | break | |
35401 | fi | |
35402 | done | |
35403 | ||
35404 | ||
35405 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35406 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35407 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35408 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35410 | else | |
35411 | ||
35412 | ||
35413 | ||
35414 | ac_ext=cc | |
35415 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35416 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35417 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35418 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35419 | ||
35420 | ||
35421 | cat >conftest.$ac_ext <<_ACEOF | |
35422 | /* confdefs.h. */ | |
35423 | _ACEOF | |
35424 | cat confdefs.h >>conftest.$ac_ext | |
35425 | cat >>conftest.$ac_ext <<_ACEOF | |
35426 | /* end confdefs.h. */ | |
35427 | ||
35428 | #include <sys/time.h> | |
35429 | #include <unistd.h> | |
35430 | ||
35431 | int | |
35432 | main () | |
35433 | { | |
35434 | ||
35435 | struct timeval tv; | |
35436 | gettimeofday(&tv, NULL); | |
35437 | ||
35438 | ; | |
35439 | return 0; | |
35440 | } | |
35441 | _ACEOF | |
35442 | rm -f conftest.$ac_objext | |
35443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35444 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35445 | ac_status=$? |
ac1cb8d3 VS |
35446 | grep -v '^ *+' conftest.er1 >conftest.err |
35447 | rm -f conftest.er1 | |
35448 | cat conftest.err >&5 | |
a848cd7e SC |
35449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35450 | (exit $ac_status); } && | |
2cbbc68d RD |
35451 | { ac_try='test -z "$ac_cxx_werror_flag" |
35452 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35454 | (eval $ac_try) 2>&5 | |
35455 | ac_status=$? | |
35456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35457 | (exit $ac_status); }; } && | |
35458 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35460 | (eval $ac_try) 2>&5 | |
35461 | ac_status=$? | |
35462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35463 | (exit $ac_status); }; }; then | |
35464 | wx_cv_func_gettimeofday_has_2_args=yes | |
35465 | else | |
35466 | echo "$as_me: failed program was:" >&5 | |
35467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35468 | ||
35469 | cat >conftest.$ac_ext <<_ACEOF | |
35470 | /* confdefs.h. */ | |
35471 | _ACEOF | |
35472 | cat confdefs.h >>conftest.$ac_ext | |
35473 | cat >>conftest.$ac_ext <<_ACEOF | |
35474 | /* end confdefs.h. */ | |
35475 | ||
35476 | #include <sys/time.h> | |
35477 | #include <unistd.h> | |
35478 | ||
35479 | int | |
35480 | main () | |
35481 | { | |
35482 | ||
35483 | struct timeval tv; | |
35484 | gettimeofday(&tv); | |
35485 | ||
35486 | ; | |
35487 | return 0; | |
35488 | } | |
35489 | _ACEOF | |
35490 | rm -f conftest.$ac_objext | |
35491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35492 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35493 | ac_status=$? |
ac1cb8d3 VS |
35494 | grep -v '^ *+' conftest.er1 >conftest.err |
35495 | rm -f conftest.er1 | |
35496 | cat conftest.err >&5 | |
a848cd7e SC |
35497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35498 | (exit $ac_status); } && | |
2cbbc68d RD |
35499 | { ac_try='test -z "$ac_cxx_werror_flag" |
35500 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35502 | (eval $ac_try) 2>&5 | |
35503 | ac_status=$? | |
35504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35505 | (exit $ac_status); }; } && | |
35506 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35508 | (eval $ac_try) 2>&5 | |
35509 | ac_status=$? | |
35510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35511 | (exit $ac_status); }; }; then | |
35512 | wx_cv_func_gettimeofday_has_2_args=no | |
35513 | else | |
35514 | echo "$as_me: failed program was:" >&5 | |
35515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35516 | ||
35517 | ||
35518 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35519 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35520 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35521 | ||
35522 | ||
35523 | fi | |
ac1cb8d3 | 35524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35525 | |
35526 | fi | |
ac1cb8d3 | 35527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35528 | ac_ext=c |
35529 | ac_cpp='$CPP $CPPFLAGS' | |
35530 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35531 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35532 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35533 | ||
35534 | ||
35535 | fi | |
35536 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35537 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35538 | ||
35539 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35540 | cat >>confdefs.h <<\_ACEOF | |
35541 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35542 | _ACEOF | |
35543 | ||
35544 | fi | |
35545 | fi | |
35546 | ||
35547 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35548 | fi | |
35549 | ||
35550 | ||
35551 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35552 | if test "$wxUSE_MGL" = "1"; then | |
35553 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35554 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35555 | wxUSE_SOCKETS="no" | |
35556 | fi | |
35557 | fi | |
35558 | ||
35559 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35560 | if test "$TOOLKIT" != "MSW"; then | |
35561 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35562 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35563 | if test "${ac_cv_func_socket+set}" = set; then | |
35564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35565 | else | |
35566 | cat >conftest.$ac_ext <<_ACEOF | |
35567 | /* confdefs.h. */ | |
35568 | _ACEOF | |
35569 | cat confdefs.h >>conftest.$ac_ext | |
35570 | cat >>conftest.$ac_ext <<_ACEOF | |
35571 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35572 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35574 | #define socket innocuous_socket | |
35575 | ||
a848cd7e SC |
35576 | /* System header to define __stub macros and hopefully few prototypes, |
35577 | which can conflict with char socket (); below. | |
35578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35579 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35580 | |
a848cd7e SC |
35581 | #ifdef __STDC__ |
35582 | # include <limits.h> | |
35583 | #else | |
35584 | # include <assert.h> | |
35585 | #endif | |
ac1cb8d3 VS |
35586 | |
35587 | #undef socket | |
35588 | ||
a848cd7e SC |
35589 | /* Override any gcc2 internal prototype to avoid an error. */ |
35590 | #ifdef __cplusplus | |
35591 | extern "C" | |
35592 | { | |
35593 | #endif | |
35594 | /* We use char because int might match the return type of a gcc2 | |
35595 | builtin and then its argument prototype would still apply. */ | |
35596 | char socket (); | |
35597 | /* The GNU C library defines this for functions which it implements | |
35598 | to always fail with ENOSYS. Some functions are actually named | |
35599 | something starting with __ and the normal name is an alias. */ | |
35600 | #if defined (__stub_socket) || defined (__stub___socket) | |
35601 | choke me | |
35602 | #else | |
35603 | char (*f) () = socket; | |
35604 | #endif | |
35605 | #ifdef __cplusplus | |
35606 | } | |
35607 | #endif | |
35608 | ||
35609 | int | |
35610 | main () | |
35611 | { | |
35612 | return f != socket; | |
35613 | ; | |
35614 | return 0; | |
35615 | } | |
35616 | _ACEOF | |
35617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35619 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35620 | ac_status=$? |
ac1cb8d3 VS |
35621 | grep -v '^ *+' conftest.er1 >conftest.err |
35622 | rm -f conftest.er1 | |
35623 | cat conftest.err >&5 | |
a848cd7e SC |
35624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35625 | (exit $ac_status); } && | |
2cbbc68d RD |
35626 | { ac_try='test -z "$ac_c_werror_flag" |
35627 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35629 | (eval $ac_try) 2>&5 | |
35630 | ac_status=$? | |
35631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35632 | (exit $ac_status); }; } && | |
35633 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35635 | (eval $ac_try) 2>&5 | |
35636 | ac_status=$? | |
35637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35638 | (exit $ac_status); }; }; then | |
35639 | ac_cv_func_socket=yes | |
35640 | else | |
35641 | echo "$as_me: failed program was:" >&5 | |
35642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35643 | ||
35644 | ac_cv_func_socket=no | |
35645 | fi | |
ac1cb8d3 VS |
35646 | rm -f conftest.err conftest.$ac_objext \ |
35647 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35648 | fi |
35649 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35650 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35651 | if test $ac_cv_func_socket = yes; then | |
35652 | : | |
35653 | else | |
35654 | ||
35655 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35656 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35657 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35659 | else | |
35660 | ac_check_lib_save_LIBS=$LIBS | |
35661 | LIBS="-lsocket $LIBS" | |
35662 | cat >conftest.$ac_ext <<_ACEOF | |
35663 | /* confdefs.h. */ | |
35664 | _ACEOF | |
35665 | cat confdefs.h >>conftest.$ac_ext | |
35666 | cat >>conftest.$ac_ext <<_ACEOF | |
35667 | /* end confdefs.h. */ | |
35668 | ||
35669 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35670 | #ifdef __cplusplus | |
35671 | extern "C" | |
35672 | #endif | |
35673 | /* We use char because int might match the return type of a gcc2 | |
35674 | builtin and then its argument prototype would still apply. */ | |
35675 | char socket (); | |
35676 | int | |
35677 | main () | |
35678 | { | |
35679 | socket (); | |
35680 | ; | |
35681 | return 0; | |
35682 | } | |
35683 | _ACEOF | |
35684 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35686 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35687 | ac_status=$? |
ac1cb8d3 VS |
35688 | grep -v '^ *+' conftest.er1 >conftest.err |
35689 | rm -f conftest.er1 | |
35690 | cat conftest.err >&5 | |
a848cd7e SC |
35691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35692 | (exit $ac_status); } && | |
2cbbc68d RD |
35693 | { ac_try='test -z "$ac_c_werror_flag" |
35694 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35696 | (eval $ac_try) 2>&5 | |
35697 | ac_status=$? | |
35698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35699 | (exit $ac_status); }; } && | |
35700 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35702 | (eval $ac_try) 2>&5 | |
35703 | ac_status=$? | |
35704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35705 | (exit $ac_status); }; }; then | |
35706 | ac_cv_lib_socket_socket=yes | |
35707 | else | |
35708 | echo "$as_me: failed program was:" >&5 | |
35709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35710 | ||
35711 | ac_cv_lib_socket_socket=no | |
35712 | fi | |
ac1cb8d3 VS |
35713 | rm -f conftest.err conftest.$ac_objext \ |
35714 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35715 | LIBS=$ac_check_lib_save_LIBS |
35716 | fi | |
35717 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35718 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35719 | if test $ac_cv_lib_socket_socket = yes; then | |
35720 | if test "$INET_LINK" != " -lsocket"; then | |
35721 | INET_LINK="$INET_LINK -lsocket" | |
35722 | fi | |
35723 | else | |
35724 | ||
35725 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35726 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35727 | wxUSE_SOCKETS=no | |
35728 | ||
35729 | ||
35730 | fi | |
35731 | ||
35732 | ||
35733 | ||
35734 | fi | |
35735 | ||
35736 | fi | |
35737 | fi | |
35738 | ||
35739 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35740 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35741 | ac_ext=cc |
35742 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35743 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35744 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35745 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35746 | ||
35747 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35748 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35749 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35751 | else | |
35752 | ||
35753 | cat >conftest.$ac_ext <<_ACEOF | |
35754 | /* confdefs.h. */ | |
35755 | _ACEOF | |
35756 | cat confdefs.h >>conftest.$ac_ext | |
35757 | cat >>conftest.$ac_ext <<_ACEOF | |
35758 | /* end confdefs.h. */ | |
35759 | ||
35760 | #include <sys/types.h> | |
35761 | #include <sys/socket.h> | |
35762 | ||
35763 | int | |
35764 | main () | |
35765 | { | |
35766 | ||
35767 | socklen_t len; | |
35768 | getsockname(0, 0, &len); | |
35769 | ||
35770 | ; | |
35771 | return 0; | |
35772 | } | |
35773 | _ACEOF | |
35774 | rm -f conftest.$ac_objext | |
35775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35776 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35777 | ac_status=$? |
ac1cb8d3 VS |
35778 | grep -v '^ *+' conftest.er1 >conftest.err |
35779 | rm -f conftest.er1 | |
35780 | cat conftest.err >&5 | |
a848cd7e SC |
35781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35782 | (exit $ac_status); } && | |
2cbbc68d RD |
35783 | { ac_try='test -z "$ac_cxx_werror_flag" |
35784 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35786 | (eval $ac_try) 2>&5 | |
35787 | ac_status=$? | |
35788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35789 | (exit $ac_status); }; } && | |
35790 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35792 | (eval $ac_try) 2>&5 | |
35793 | ac_status=$? | |
35794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35795 | (exit $ac_status); }; }; then | |
35796 | wx_cv_type_getsockname3=socklen_t | |
35797 | else | |
35798 | echo "$as_me: failed program was:" >&5 | |
35799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35800 | ||
35801 | ||
35802 | CFLAGS_OLD="$CFLAGS" | |
35803 | if test "$GCC" = yes ; then | |
35804 | CFLAGS="$CFLAGS -Werror" | |
35805 | fi | |
35806 | ||
35807 | cat >conftest.$ac_ext <<_ACEOF | |
35808 | /* confdefs.h. */ | |
35809 | _ACEOF | |
35810 | cat confdefs.h >>conftest.$ac_ext | |
35811 | cat >>conftest.$ac_ext <<_ACEOF | |
35812 | /* end confdefs.h. */ | |
35813 | ||
35814 | #include <sys/types.h> | |
35815 | #include <sys/socket.h> | |
35816 | ||
35817 | int | |
35818 | main () | |
35819 | { | |
35820 | ||
35821 | size_t len; | |
35822 | getsockname(0, 0, &len); | |
35823 | ||
35824 | ; | |
35825 | return 0; | |
35826 | } | |
35827 | _ACEOF | |
35828 | rm -f conftest.$ac_objext | |
35829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35830 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35831 | ac_status=$? |
ac1cb8d3 VS |
35832 | grep -v '^ *+' conftest.er1 >conftest.err |
35833 | rm -f conftest.er1 | |
35834 | cat conftest.err >&5 | |
a848cd7e SC |
35835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35836 | (exit $ac_status); } && | |
2cbbc68d RD |
35837 | { ac_try='test -z "$ac_cxx_werror_flag" |
35838 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35840 | (eval $ac_try) 2>&5 | |
35841 | ac_status=$? | |
35842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35843 | (exit $ac_status); }; } && | |
35844 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35846 | (eval $ac_try) 2>&5 | |
35847 | ac_status=$? | |
35848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35849 | (exit $ac_status); }; }; then | |
35850 | wx_cv_type_getsockname3=size_t | |
35851 | else | |
35852 | echo "$as_me: failed program was:" >&5 | |
35853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35854 | ||
35855 | cat >conftest.$ac_ext <<_ACEOF | |
35856 | /* confdefs.h. */ | |
35857 | _ACEOF | |
35858 | cat confdefs.h >>conftest.$ac_ext | |
35859 | cat >>conftest.$ac_ext <<_ACEOF | |
35860 | /* end confdefs.h. */ | |
35861 | ||
35862 | #include <sys/types.h> | |
35863 | #include <sys/socket.h> | |
35864 | ||
35865 | int | |
35866 | main () | |
35867 | { | |
35868 | ||
35869 | int len; | |
35870 | getsockname(0, 0, &len); | |
35871 | ||
35872 | ; | |
35873 | return 0; | |
35874 | } | |
35875 | _ACEOF | |
35876 | rm -f conftest.$ac_objext | |
35877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35878 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35879 | ac_status=$? |
ac1cb8d3 VS |
35880 | grep -v '^ *+' conftest.er1 >conftest.err |
35881 | rm -f conftest.er1 | |
35882 | cat conftest.err >&5 | |
a848cd7e SC |
35883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35884 | (exit $ac_status); } && | |
2cbbc68d RD |
35885 | { ac_try='test -z "$ac_cxx_werror_flag" |
35886 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35888 | (eval $ac_try) 2>&5 | |
35889 | ac_status=$? | |
35890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35891 | (exit $ac_status); }; } && | |
35892 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35894 | (eval $ac_try) 2>&5 | |
35895 | ac_status=$? | |
35896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35897 | (exit $ac_status); }; }; then | |
35898 | wx_cv_type_getsockname3=int | |
35899 | else | |
35900 | echo "$as_me: failed program was:" >&5 | |
35901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35902 | ||
35903 | wx_cv_type_getsockname3=unknown | |
35904 | ||
35905 | fi | |
ac1cb8d3 | 35906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35907 | |
35908 | fi | |
ac1cb8d3 | 35909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35910 | |
35911 | CFLAGS="$CFLAGS_OLD" | |
35912 | ||
35913 | ||
35914 | fi | |
ac1cb8d3 | 35915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35916 | |
35917 | fi | |
35918 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35919 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35920 | ||
35921 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35922 | wxUSE_SOCKETS=no | |
35923 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35924 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35925 | else | |
35926 | cat >>confdefs.h <<_ACEOF | |
35927 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35928 | _ACEOF | |
35929 | ||
35930 | fi | |
4d4ff94c VZ |
35931 | ac_ext=c |
35932 | ac_cpp='$CPP $CPPFLAGS' | |
35933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35936 | ||
a848cd7e SC |
35937 | fi |
35938 | fi | |
35939 | ||
35940 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35941 | cat >>confdefs.h <<\_ACEOF | |
35942 | #define wxUSE_SOCKETS 1 | |
35943 | _ACEOF | |
35944 | ||
35945 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35946 | fi | |
35947 | ||
35948 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35949 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35950 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35951 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35952 | wxUSE_PROTOCOL=no | |
35953 | fi | |
35954 | fi | |
35955 | ||
35956 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35957 | cat >>confdefs.h <<\_ACEOF | |
35958 | #define wxUSE_PROTOCOL 1 | |
35959 | _ACEOF | |
35960 | ||
35961 | ||
35962 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35963 | cat >>confdefs.h <<\_ACEOF | |
35964 | #define wxUSE_PROTOCOL_HTTP 1 | |
35965 | _ACEOF | |
35966 | ||
35967 | fi | |
35968 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35969 | cat >>confdefs.h <<\_ACEOF | |
35970 | #define wxUSE_PROTOCOL_FTP 1 | |
35971 | _ACEOF | |
35972 | ||
35973 | fi | |
35974 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35975 | cat >>confdefs.h <<\_ACEOF | |
35976 | #define wxUSE_PROTOCOL_FILE 1 | |
35977 | _ACEOF | |
35978 | ||
35979 | fi | |
35980 | else | |
35981 | if test "$wxUSE_FS_INET" = "yes"; then | |
35982 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35983 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35984 | wxUSE_FS_INET="no" | |
35985 | fi | |
35986 | fi | |
35987 | ||
35988 | if test "$wxUSE_URL" = "yes"; then | |
35989 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35990 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35991 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35992 | wxUSE_URL=no | |
35993 | fi | |
35994 | if test "$wxUSE_URL" = "yes"; then | |
35995 | cat >>confdefs.h <<\_ACEOF | |
35996 | #define wxUSE_URL 1 | |
35997 | _ACEOF | |
35998 | ||
35999 | fi | |
36000 | fi | |
36001 | ||
36002 | if test "$wxUSE_FS_INET" = "yes"; then | |
36003 | cat >>confdefs.h <<\_ACEOF | |
36004 | #define wxUSE_FS_INET 1 | |
36005 | _ACEOF | |
36006 | ||
36007 | fi | |
36008 | ||
36009 | ||
36010 | if test "$wxUSE_GUI" = "yes"; then | |
36011 | ||
36012 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
36013 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
36014 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
36015 | wxUSE_JOYSTICK=no | |
36016 | fi | |
36017 | ||
36018 | if test "$TOOLKIT" != "MSW"; then | |
36019 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36020 | ||
36021 | for ac_header in linux/joystick.h | |
36022 | do | |
36023 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36024 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36025 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36029 | fi | |
36030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36032 | else | |
36033 | # Is the header compilable? | |
36034 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36035 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36036 | cat >conftest.$ac_ext <<_ACEOF | |
36037 | /* confdefs.h. */ | |
36038 | _ACEOF | |
36039 | cat confdefs.h >>conftest.$ac_ext | |
36040 | cat >>conftest.$ac_ext <<_ACEOF | |
36041 | /* end confdefs.h. */ | |
36042 | $ac_includes_default | |
36043 | #include <$ac_header> | |
36044 | _ACEOF | |
36045 | rm -f conftest.$ac_objext | |
36046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36047 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36048 | ac_status=$? |
ac1cb8d3 VS |
36049 | grep -v '^ *+' conftest.er1 >conftest.err |
36050 | rm -f conftest.er1 | |
36051 | cat conftest.err >&5 | |
a848cd7e SC |
36052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36053 | (exit $ac_status); } && | |
2cbbc68d RD |
36054 | { ac_try='test -z "$ac_c_werror_flag" |
36055 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36057 | (eval $ac_try) 2>&5 | |
36058 | ac_status=$? | |
36059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36060 | (exit $ac_status); }; } && | |
36061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36063 | (eval $ac_try) 2>&5 | |
36064 | ac_status=$? | |
36065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36066 | (exit $ac_status); }; }; then | |
36067 | ac_header_compiler=yes | |
36068 | else | |
36069 | echo "$as_me: failed program was:" >&5 | |
36070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36071 | ||
36072 | ac_header_compiler=no | |
36073 | fi | |
ac1cb8d3 | 36074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36075 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36076 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36077 | ||
36078 | # Is the header present? | |
36079 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36080 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36081 | cat >conftest.$ac_ext <<_ACEOF | |
36082 | /* confdefs.h. */ | |
36083 | _ACEOF | |
36084 | cat confdefs.h >>conftest.$ac_ext | |
36085 | cat >>conftest.$ac_ext <<_ACEOF | |
36086 | /* end confdefs.h. */ | |
36087 | #include <$ac_header> | |
36088 | _ACEOF | |
36089 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36090 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36091 | ac_status=$? | |
36092 | grep -v '^ *+' conftest.er1 >conftest.err | |
36093 | rm -f conftest.er1 | |
36094 | cat conftest.err >&5 | |
36095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36096 | (exit $ac_status); } >/dev/null; then | |
36097 | if test -s conftest.err; then | |
36098 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36099 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36100 | else |
36101 | ac_cpp_err= | |
36102 | fi | |
36103 | else | |
36104 | ac_cpp_err=yes | |
36105 | fi | |
36106 | if test -z "$ac_cpp_err"; then | |
36107 | ac_header_preproc=yes | |
36108 | else | |
36109 | echo "$as_me: failed program was:" >&5 | |
36110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36111 | ||
36112 | ac_header_preproc=no | |
36113 | fi | |
36114 | rm -f conftest.err conftest.$ac_ext | |
36115 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36116 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36117 | ||
36118 | # So? What about this header? | |
ac1cb8d3 VS |
36119 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36120 | yes:no: ) | |
a848cd7e SC |
36121 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36122 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36124 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36125 | ac_header_preproc=yes | |
a848cd7e | 36126 | ;; |
ac1cb8d3 | 36127 | no:yes:* ) |
a848cd7e SC |
36128 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36129 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36130 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36131 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36132 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36133 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36134 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36135 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36136 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36137 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36138 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36139 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36140 | ( |
36141 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36142 | ## ----------------------------------------- ## |
36143 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36144 | ## ----------------------------------------- ## | |
a848cd7e SC |
36145 | _ASBOX |
36146 | ) | | |
36147 | sed "s/^/$as_me: WARNING: /" >&2 | |
36148 | ;; | |
36149 | esac | |
36150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36154 | else | |
ac1cb8d3 | 36155 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36156 | fi |
36157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36158 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36159 | ||
36160 | fi | |
36161 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36162 | cat >>confdefs.h <<_ACEOF | |
36163 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36164 | _ACEOF | |
36165 | ||
36166 | fi | |
36167 | ||
36168 | done | |
36169 | ||
36170 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
36171 | wxUSE_JOYSTICK=no | |
36172 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
36173 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
36174 | fi | |
36175 | fi | |
36176 | fi | |
36177 | ||
36178 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36179 | cat >>confdefs.h <<\_ACEOF | |
36180 | #define wxUSE_JOYSTICK 1 | |
36181 | _ACEOF | |
36182 | ||
36183 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
36184 | fi | |
36185 | fi | |
36186 | ||
36187 | ||
36188 | ||
36189 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
36190 | cat >>confdefs.h <<\_ACEOF | |
36191 | #define wxUSE_FONTMAP 1 | |
36192 | _ACEOF | |
36193 | ||
36194 | fi | |
36195 | ||
36196 | if test "$wxUSE_UNICODE" = "yes" ; then | |
36197 | cat >>confdefs.h <<\_ACEOF | |
36198 | #define wxUSE_UNICODE 1 | |
36199 | _ACEOF | |
36200 | ||
36201 | ||
36202 | if test "$USE_WIN32" != 1; then | |
36203 | wxUSE_UNICODE_MSLU=no | |
36204 | fi | |
36205 | ||
36206 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
36207 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
36208 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
36209 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
36210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36211 | else | |
36212 | ac_check_lib_save_LIBS=$LIBS | |
36213 | LIBS="-lunicows $LIBS" | |
36214 | cat >conftest.$ac_ext <<_ACEOF | |
36215 | /* confdefs.h. */ | |
36216 | _ACEOF | |
36217 | cat confdefs.h >>conftest.$ac_ext | |
36218 | cat >>conftest.$ac_ext <<_ACEOF | |
36219 | /* end confdefs.h. */ | |
36220 | ||
36221 | ||
36222 | int | |
36223 | main () | |
36224 | { | |
36225 | main (); | |
36226 | ; | |
36227 | return 0; | |
36228 | } | |
36229 | _ACEOF | |
36230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36232 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36233 | ac_status=$? |
ac1cb8d3 VS |
36234 | grep -v '^ *+' conftest.er1 >conftest.err |
36235 | rm -f conftest.er1 | |
36236 | cat conftest.err >&5 | |
a848cd7e SC |
36237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36238 | (exit $ac_status); } && | |
2cbbc68d RD |
36239 | { ac_try='test -z "$ac_c_werror_flag" |
36240 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36242 | (eval $ac_try) 2>&5 | |
36243 | ac_status=$? | |
36244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36245 | (exit $ac_status); }; } && | |
36246 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36248 | (eval $ac_try) 2>&5 | |
36249 | ac_status=$? | |
36250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36251 | (exit $ac_status); }; }; then | |
36252 | ac_cv_lib_unicows_main=yes | |
36253 | else | |
36254 | echo "$as_me: failed program was:" >&5 | |
36255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36256 | ||
36257 | ac_cv_lib_unicows_main=no | |
36258 | fi | |
ac1cb8d3 VS |
36259 | rm -f conftest.err conftest.$ac_objext \ |
36260 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36261 | LIBS=$ac_check_lib_save_LIBS |
36262 | fi | |
36263 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
36264 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
36265 | if test $ac_cv_lib_unicows_main = yes; then | |
36266 | ||
36267 | cat >>confdefs.h <<\_ACEOF | |
36268 | #define wxUSE_UNICODE_MSLU 1 | |
36269 | _ACEOF | |
36270 | ||
36271 | ||
36272 | else | |
36273 | ||
36274 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36275 | Applications will only run on Windows NT/2000/XP!" >&5 | |
36276 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36277 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
36278 | wxUSE_UNICODE_MSLU=no | |
36279 | ||
36280 | fi | |
36281 | ||
36282 | fi | |
36283 | fi | |
36284 | ||
36285 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
36286 | cat >>confdefs.h <<\_ACEOF | |
36287 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
36288 | _ACEOF | |
36289 | ||
36290 | fi | |
36291 | ||
36292 | ||
36293 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
36294 | cat >>confdefs.h <<\_ACEOF | |
36295 | #define wxUSE_POSTSCRIPT 1 | |
36296 | _ACEOF | |
36297 | ||
36298 | fi | |
36299 | ||
36300 | cat >>confdefs.h <<\_ACEOF | |
36301 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
36302 | _ACEOF | |
36303 | ||
36304 | ||
36305 | cat >>confdefs.h <<\_ACEOF | |
36306 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
36307 | _ACEOF | |
36308 | ||
36309 | ||
36310 | ||
36311 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
36312 | cat >>confdefs.h <<\_ACEOF | |
36313 | #define wxUSE_CONSTRAINTS 1 | |
36314 | _ACEOF | |
36315 | ||
36316 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36317 | fi | |
36318 | ||
8a7b1113 VZ |
36319 | if test "$wxUSE_MDI" = "yes"; then |
36320 | cat >>confdefs.h <<\_ACEOF | |
36321 | #define wxUSE_MDI 1 | |
36322 | _ACEOF | |
36323 | ||
36324 | ||
36325 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36326 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36327 | #define wxUSE_MDI_ARCHITECTURE 1 |
36328 | _ACEOF | |
36329 | ||
8a7b1113 VZ |
36330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
36331 | fi | |
a848cd7e SC |
36332 | fi |
36333 | ||
36334 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
36335 | cat >>confdefs.h <<\_ACEOF | |
36336 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
36337 | _ACEOF | |
36338 | ||
36339 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36340 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36341 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36342 | fi | |
36343 | fi | |
36344 | ||
36345 | if test "$wxUSE_HELP" = "yes"; then | |
36346 | cat >>confdefs.h <<\_ACEOF | |
36347 | #define wxUSE_HELP 1 | |
36348 | _ACEOF | |
36349 | ||
36350 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
36351 | ||
36352 | if test "$wxUSE_MSW" = 1; then | |
36353 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
36354 | cat >>confdefs.h <<\_ACEOF | |
36355 | #define wxUSE_MS_HTML_HELP 1 | |
36356 | _ACEOF | |
36357 | ||
36358 | fi | |
36359 | fi | |
36360 | ||
36361 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36362 | if test "$wxUSE_HTML" = "yes"; then | |
36363 | cat >>confdefs.h <<\_ACEOF | |
36364 | #define wxUSE_WXHTML_HELP 1 | |
36365 | _ACEOF | |
36366 | ||
36367 | else | |
36368 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36369 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36370 | wxUSE_WXHTML_HELP=no | |
36371 | fi | |
36372 | fi | |
36373 | fi | |
36374 | ||
36375 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36376 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36377 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36378 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36379 | else | |
36380 | cat >>confdefs.h <<\_ACEOF | |
36381 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36382 | _ACEOF | |
36383 | ||
36384 | fi | |
36385 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36386 | fi | |
36387 | ||
36388 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36389 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36390 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36391 | { (exit 1); exit 1; }; } | |
36392 | fi | |
36393 | ||
36394 | ||
36395 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36396 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36397 | -o "$wxUSE_OLE" = "yes" \ | |
36398 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36399 | ||
36400 | for ac_header in ole2.h | |
36401 | do | |
36402 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36403 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36404 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36405 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36406 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36408 | fi | |
36409 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36410 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36411 | else | |
36412 | # Is the header compilable? | |
36413 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36414 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36415 | cat >conftest.$ac_ext <<_ACEOF | |
36416 | /* confdefs.h. */ | |
36417 | _ACEOF | |
36418 | cat confdefs.h >>conftest.$ac_ext | |
36419 | cat >>conftest.$ac_ext <<_ACEOF | |
36420 | /* end confdefs.h. */ | |
36421 | $ac_includes_default | |
36422 | #include <$ac_header> | |
36423 | _ACEOF | |
36424 | rm -f conftest.$ac_objext | |
36425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36426 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36427 | ac_status=$? |
ac1cb8d3 VS |
36428 | grep -v '^ *+' conftest.er1 >conftest.err |
36429 | rm -f conftest.er1 | |
36430 | cat conftest.err >&5 | |
a848cd7e SC |
36431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36432 | (exit $ac_status); } && | |
2cbbc68d RD |
36433 | { ac_try='test -z "$ac_c_werror_flag" |
36434 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36436 | (eval $ac_try) 2>&5 | |
36437 | ac_status=$? | |
36438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36439 | (exit $ac_status); }; } && | |
36440 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36442 | (eval $ac_try) 2>&5 | |
36443 | ac_status=$? | |
36444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36445 | (exit $ac_status); }; }; then | |
36446 | ac_header_compiler=yes | |
36447 | else | |
36448 | echo "$as_me: failed program was:" >&5 | |
36449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36450 | ||
36451 | ac_header_compiler=no | |
36452 | fi | |
ac1cb8d3 | 36453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36454 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36455 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36456 | ||
36457 | # Is the header present? | |
36458 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36459 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36460 | cat >conftest.$ac_ext <<_ACEOF | |
36461 | /* confdefs.h. */ | |
36462 | _ACEOF | |
36463 | cat confdefs.h >>conftest.$ac_ext | |
36464 | cat >>conftest.$ac_ext <<_ACEOF | |
36465 | /* end confdefs.h. */ | |
36466 | #include <$ac_header> | |
36467 | _ACEOF | |
36468 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36469 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36470 | ac_status=$? | |
36471 | grep -v '^ *+' conftest.er1 >conftest.err | |
36472 | rm -f conftest.er1 | |
36473 | cat conftest.err >&5 | |
36474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36475 | (exit $ac_status); } >/dev/null; then | |
36476 | if test -s conftest.err; then | |
36477 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36478 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36479 | else |
36480 | ac_cpp_err= | |
36481 | fi | |
36482 | else | |
36483 | ac_cpp_err=yes | |
36484 | fi | |
36485 | if test -z "$ac_cpp_err"; then | |
36486 | ac_header_preproc=yes | |
36487 | else | |
36488 | echo "$as_me: failed program was:" >&5 | |
36489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36490 | ||
36491 | ac_header_preproc=no | |
36492 | fi | |
36493 | rm -f conftest.err conftest.$ac_ext | |
36494 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36495 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36496 | ||
36497 | # So? What about this header? | |
ac1cb8d3 VS |
36498 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36499 | yes:no: ) | |
a848cd7e SC |
36500 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36501 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36502 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36503 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36504 | ac_header_preproc=yes | |
a848cd7e | 36505 | ;; |
ac1cb8d3 | 36506 | no:yes:* ) |
a848cd7e SC |
36507 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36508 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36509 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36510 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36511 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36512 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36513 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36514 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36516 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36517 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36518 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36519 | ( |
36520 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36521 | ## ----------------------------------------- ## |
36522 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36523 | ## ----------------------------------------- ## | |
a848cd7e SC |
36524 | _ASBOX |
36525 | ) | | |
36526 | sed "s/^/$as_me: WARNING: /" >&2 | |
36527 | ;; | |
36528 | esac | |
36529 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36533 | else | |
ac1cb8d3 | 36534 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36535 | fi |
36536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36537 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36538 | ||
36539 | fi | |
36540 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36541 | cat >>confdefs.h <<_ACEOF | |
36542 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36543 | _ACEOF | |
36544 | ||
36545 | fi | |
36546 | ||
36547 | done | |
36548 | ||
36549 | ||
36550 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36551 | if test "$GCC" = yes ; then | |
36552 | ||
36553 | ||
36554 | ac_ext=cc | |
36555 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36556 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36557 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36558 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36559 | ||
36560 | ||
36561 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36562 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36563 | cat >conftest.$ac_ext <<_ACEOF | |
36564 | /* confdefs.h. */ | |
36565 | _ACEOF | |
36566 | cat confdefs.h >>conftest.$ac_ext | |
36567 | cat >>conftest.$ac_ext <<_ACEOF | |
36568 | /* end confdefs.h. */ | |
36569 | #include <windows.h> | |
36570 | #include <ole2.h> | |
36571 | int | |
36572 | main () | |
36573 | { | |
36574 | ||
36575 | ; | |
36576 | return 0; | |
36577 | } | |
36578 | _ACEOF | |
36579 | rm -f conftest.$ac_objext | |
36580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36581 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36582 | ac_status=$? |
ac1cb8d3 VS |
36583 | grep -v '^ *+' conftest.er1 >conftest.err |
36584 | rm -f conftest.er1 | |
36585 | cat conftest.err >&5 | |
a848cd7e SC |
36586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36587 | (exit $ac_status); } && | |
2cbbc68d RD |
36588 | { ac_try='test -z "$ac_cxx_werror_flag" |
36589 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36591 | (eval $ac_try) 2>&5 | |
36592 | ac_status=$? | |
36593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36594 | (exit $ac_status); }; } && | |
36595 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36597 | (eval $ac_try) 2>&5 | |
36598 | ac_status=$? | |
36599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36600 | (exit $ac_status); }; }; then | |
36601 | echo "$as_me:$LINENO: result: no" >&5 | |
36602 | echo "${ECHO_T}no" >&6 | |
36603 | else | |
36604 | echo "$as_me: failed program was:" >&5 | |
36605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36606 | ||
36607 | echo "$as_me:$LINENO: result: yes" >&5 | |
36608 | echo "${ECHO_T}yes" >&6 | |
36609 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36610 | fi | |
ac1cb8d3 | 36611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36612 | ac_ext=c |
36613 | ac_cpp='$CPP $CPPFLAGS' | |
36614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36617 | ||
a848cd7e SC |
36618 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
36619 | if test "$wxUSE_OLE" = "yes" ; then | |
36620 | cat >>confdefs.h <<\_ACEOF | |
36621 | #define wxUSE_OLE 1 | |
36622 | _ACEOF | |
36623 | ||
36624 | fi | |
36625 | fi | |
36626 | ||
36627 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36628 | cat >>confdefs.h <<\_ACEOF | |
36629 | #define wxUSE_DATAOBJ 1 | |
36630 | _ACEOF | |
36631 | ||
36632 | fi | |
36633 | else | |
36634 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36635 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36636 | ||
36637 | wxUSE_CLIPBOARD=no | |
36638 | wxUSE_DRAG_AND_DROP=no | |
36639 | wxUSE_DATAOBJ=no | |
36640 | wxUSE_OLE=no | |
36641 | fi | |
36642 | ||
36643 | if test "$wxUSE_METAFILE" = "yes"; then | |
36644 | cat >>confdefs.h <<\_ACEOF | |
36645 | #define wxUSE_METAFILE 1 | |
36646 | _ACEOF | |
36647 | ||
36648 | ||
36649 | cat >>confdefs.h <<\_ACEOF | |
36650 | #define wxUSE_ENH_METAFILE 1 | |
36651 | _ACEOF | |
36652 | ||
36653 | fi | |
36654 | fi | |
36655 | ||
36656 | if test "$wxUSE_IPC" = "yes"; then | |
36657 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36658 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36659 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36660 | fi |
36661 | ||
36662 | cat >>confdefs.h <<\_ACEOF | |
36663 | #define wxUSE_IPC 1 | |
36664 | _ACEOF | |
36665 | ||
36666 | fi | |
36667 | ||
36668 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36669 | if test "$wxUSE_MGL" = 1; then | |
36670 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36671 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36672 | wxUSE_CLIPBOARD=no | |
36673 | fi | |
36674 | ||
36675 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36676 | cat >>confdefs.h <<\_ACEOF | |
36677 | #define wxUSE_CLIPBOARD 1 | |
36678 | _ACEOF | |
36679 | ||
36680 | ||
36681 | cat >>confdefs.h <<\_ACEOF | |
36682 | #define wxUSE_DATAOBJ 1 | |
36683 | _ACEOF | |
36684 | ||
36685 | fi | |
36686 | fi | |
36687 | ||
36688 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36689 | if test "$wxUSE_GTK" = 1; then | |
36690 | if test "$WXGTK12" != 1; then | |
36691 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36692 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36693 | wxUSE_DRAG_AND_DROP=no | |
36694 | fi | |
36695 | fi | |
36696 | ||
36697 | if test "$wxUSE_MOTIF" = 1; then | |
36698 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36699 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36700 | wxUSE_DRAG_AND_DROP=no | |
36701 | fi | |
36702 | ||
36703 | if test "$wxUSE_X11" = 1; then | |
36704 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36705 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36706 | wxUSE_DRAG_AND_DROP=no | |
36707 | fi | |
36708 | ||
36709 | if test "$wxUSE_MGL" = 1; then | |
36710 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36711 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36712 | wxUSE_DRAG_AND_DROP=no | |
36713 | fi | |
36714 | ||
36715 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36716 | cat >>confdefs.h <<\_ACEOF | |
36717 | #define wxUSE_DRAG_AND_DROP 1 | |
36718 | _ACEOF | |
36719 | ||
36720 | fi | |
36721 | ||
36722 | fi | |
36723 | ||
36724 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36726 | fi | |
36727 | ||
36728 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36729 | cat >>confdefs.h <<\_ACEOF | |
36730 | #define wxUSE_SPLINES 1 | |
36731 | _ACEOF | |
36732 | ||
36733 | fi | |
36734 | ||
36735 | ||
36736 | USES_CONTROLS=0 | |
36737 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36738 | USES_CONTROLS=1 | |
36739 | fi | |
36740 | ||
36741 | if test "$wxUSE_ACCEL" = "yes"; then | |
36742 | cat >>confdefs.h <<\_ACEOF | |
36743 | #define wxUSE_ACCEL 1 | |
36744 | _ACEOF | |
36745 | ||
36746 | USES_CONTROLS=1 | |
36747 | fi | |
36748 | ||
36749 | if test "$wxUSE_BUTTON" = "yes"; then | |
36750 | cat >>confdefs.h <<\_ACEOF | |
36751 | #define wxUSE_BUTTON 1 | |
36752 | _ACEOF | |
36753 | ||
36754 | USES_CONTROLS=1 | |
36755 | fi | |
36756 | ||
36757 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36758 | cat >>confdefs.h <<\_ACEOF | |
36759 | #define wxUSE_BMPBUTTON 1 | |
36760 | _ACEOF | |
36761 | ||
36762 | USES_CONTROLS=1 | |
36763 | fi | |
36764 | ||
36765 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36766 | cat >>confdefs.h <<\_ACEOF | |
36767 | #define wxUSE_CALENDARCTRL 1 | |
36768 | _ACEOF | |
36769 | ||
36770 | USES_CONTROLS=1 | |
36771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36772 | fi | |
36773 | ||
36774 | if test "$wxUSE_CARET" = "yes"; then | |
36775 | cat >>confdefs.h <<\_ACEOF | |
36776 | #define wxUSE_CARET 1 | |
36777 | _ACEOF | |
36778 | ||
36779 | USES_CONTROLS=1 | |
36780 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36781 | fi | |
36782 | ||
36783 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36784 | cat >>confdefs.h <<\_ACEOF | |
36785 | #define wxUSE_COMBOBOX 1 | |
36786 | _ACEOF | |
36787 | ||
36788 | USES_CONTROLS=1 | |
36789 | fi | |
36790 | ||
36791 | if test "$wxUSE_CHOICE" = "yes"; then | |
36792 | cat >>confdefs.h <<\_ACEOF | |
36793 | #define wxUSE_CHOICE 1 | |
36794 | _ACEOF | |
36795 | ||
36796 | USES_CONTROLS=1 | |
36797 | fi | |
36798 | ||
92bbdbcd WS |
36799 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
36800 | cat >>confdefs.h <<\_ACEOF | |
36801 | #define wxUSE_CHOICEBOOK 1 | |
36802 | _ACEOF | |
36803 | ||
36804 | USES_CONTROLS=1 | |
36805 | fi | |
36806 | ||
a848cd7e SC |
36807 | if test "$wxUSE_CHECKBOX" = "yes"; then |
36808 | cat >>confdefs.h <<\_ACEOF | |
36809 | #define wxUSE_CHECKBOX 1 | |
36810 | _ACEOF | |
36811 | ||
36812 | USES_CONTROLS=1 | |
36813 | fi | |
36814 | ||
36815 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36816 | cat >>confdefs.h <<\_ACEOF | |
36817 | #define wxUSE_CHECKLISTBOX 1 | |
36818 | _ACEOF | |
36819 | ||
36820 | USES_CONTROLS=1 | |
36821 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36822 | fi | |
36823 | ||
36824 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36825 | cat >>confdefs.h <<\_ACEOF | |
36826 | #define wxUSE_DISPLAY 1 | |
36827 | _ACEOF | |
36828 | ||
36829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36830 | fi | |
36831 | ||
36832 | if test "$wxUSE_GAUGE" = "yes"; then | |
36833 | cat >>confdefs.h <<\_ACEOF | |
36834 | #define wxUSE_GAUGE 1 | |
36835 | _ACEOF | |
36836 | ||
36837 | USES_CONTROLS=1 | |
36838 | fi | |
36839 | ||
36840 | if test "$wxUSE_GRID" = "yes"; then | |
36841 | cat >>confdefs.h <<\_ACEOF | |
36842 | #define wxUSE_GRID 1 | |
36843 | _ACEOF | |
36844 | ||
36845 | USES_CONTROLS=1 | |
36846 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36847 | fi | |
36848 | ||
36849 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36850 | cat >>confdefs.h <<\_ACEOF | |
36851 | #define wxUSE_IMAGLIST 1 | |
36852 | _ACEOF | |
36853 | ||
36854 | fi | |
36855 | ||
36856 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36857 | cat >>confdefs.h <<\_ACEOF | |
36858 | #define wxUSE_LISTBOOK 1 | |
36859 | _ACEOF | |
36860 | ||
36861 | USES_CONTROLS=1 | |
36862 | fi | |
36863 | ||
36864 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36865 | cat >>confdefs.h <<\_ACEOF | |
36866 | #define wxUSE_LISTBOX 1 | |
36867 | _ACEOF | |
36868 | ||
36869 | USES_CONTROLS=1 | |
36870 | fi | |
36871 | ||
36872 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36873 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36874 | cat >>confdefs.h <<\_ACEOF | |
36875 | #define wxUSE_LISTCTRL 1 | |
36876 | _ACEOF | |
36877 | ||
36878 | USES_CONTROLS=1 | |
36879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36880 | else | |
36881 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36882 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36883 | fi | |
36884 | fi | |
36885 | ||
36886 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36887 | cat >>confdefs.h <<\_ACEOF | |
36888 | #define wxUSE_NOTEBOOK 1 | |
36889 | _ACEOF | |
36890 | ||
36891 | USES_CONTROLS=1 | |
36892 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36893 | fi | |
36894 | ||
36895 | ||
36896 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36897 | cat >>confdefs.h <<\_ACEOF | |
36898 | #define wxUSE_RADIOBOX 1 | |
36899 | _ACEOF | |
36900 | ||
36901 | USES_CONTROLS=1 | |
36902 | fi | |
36903 | ||
36904 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36905 | cat >>confdefs.h <<\_ACEOF | |
36906 | #define wxUSE_RADIOBTN 1 | |
36907 | _ACEOF | |
36908 | ||
36909 | USES_CONTROLS=1 | |
36910 | fi | |
36911 | ||
36912 | if test "$wxUSE_SASH" = "yes"; then | |
36913 | cat >>confdefs.h <<\_ACEOF | |
36914 | #define wxUSE_SASH 1 | |
36915 | _ACEOF | |
36916 | ||
36917 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36918 | fi | |
36919 | ||
36920 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36921 | cat >>confdefs.h <<\_ACEOF | |
36922 | #define wxUSE_SCROLLBAR 1 | |
36923 | _ACEOF | |
36924 | ||
36925 | USES_CONTROLS=1 | |
36926 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36927 | fi | |
36928 | ||
36929 | if test "$wxUSE_SLIDER" = "yes"; then | |
36930 | cat >>confdefs.h <<\_ACEOF | |
36931 | #define wxUSE_SLIDER 1 | |
36932 | _ACEOF | |
36933 | ||
36934 | USES_CONTROLS=1 | |
36935 | fi | |
36936 | ||
36937 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36938 | cat >>confdefs.h <<\_ACEOF | |
36939 | #define wxUSE_SPINBTN 1 | |
36940 | _ACEOF | |
36941 | ||
36942 | USES_CONTROLS=1 | |
36943 | fi | |
36944 | ||
36945 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36946 | cat >>confdefs.h <<\_ACEOF | |
36947 | #define wxUSE_SPINCTRL 1 | |
36948 | _ACEOF | |
36949 | ||
36950 | USES_CONTROLS=1 | |
36951 | fi | |
36952 | ||
36953 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36954 | cat >>confdefs.h <<\_ACEOF | |
36955 | #define wxUSE_SPLITTER 1 | |
36956 | _ACEOF | |
36957 | ||
36958 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36959 | fi | |
36960 | ||
36961 | if test "$wxUSE_STATBMP" = "yes"; then | |
36962 | cat >>confdefs.h <<\_ACEOF | |
36963 | #define wxUSE_STATBMP 1 | |
36964 | _ACEOF | |
36965 | ||
36966 | USES_CONTROLS=1 | |
36967 | fi | |
36968 | ||
36969 | if test "$wxUSE_STATBOX" = "yes"; then | |
36970 | cat >>confdefs.h <<\_ACEOF | |
36971 | #define wxUSE_STATBOX 1 | |
36972 | _ACEOF | |
36973 | ||
36974 | USES_CONTROLS=1 | |
36975 | fi | |
36976 | ||
36977 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36978 | cat >>confdefs.h <<\_ACEOF | |
36979 | #define wxUSE_STATTEXT 1 | |
36980 | _ACEOF | |
36981 | ||
36982 | USES_CONTROLS=1 | |
36983 | fi | |
36984 | ||
36985 | if test "$wxUSE_STATLINE" = "yes"; then | |
36986 | cat >>confdefs.h <<\_ACEOF | |
36987 | #define wxUSE_STATLINE 1 | |
36988 | _ACEOF | |
36989 | ||
36990 | USES_CONTROLS=1 | |
36991 | fi | |
36992 | ||
36993 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36994 | cat >>confdefs.h <<\_ACEOF | |
36995 | #define wxUSE_STATUSBAR 1 | |
36996 | _ACEOF | |
36997 | ||
36998 | USES_CONTROLS=1 | |
36999 | ||
37000 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
37001 | fi | |
37002 | ||
37003 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
37004 | cat >>confdefs.h <<\_ACEOF | |
37005 | #define wxUSE_TAB_DIALOG 1 | |
37006 | _ACEOF | |
37007 | ||
37008 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
37009 | fi | |
37010 | ||
37011 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
37012 | cat >>confdefs.h <<\_ACEOF | |
37013 | #define wxUSE_TEXTCTRL 1 | |
37014 | _ACEOF | |
37015 | ||
37016 | USES_CONTROLS=1 | |
37017 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
37018 | fi | |
37019 | ||
37020 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37021 | if test "$wxUSE_COCOA" = 1 ; then | |
37022 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
37023 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
37024 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
37025 | else |
37026 | if test "$wxUSE_PM" = 1; then | |
37027 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
37028 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
37029 | wxUSE_TOGGLEBTN=no | |
37030 | fi | |
a848cd7e SC |
37031 | fi |
37032 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37033 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
37034 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
37035 | wxUSE_TOGGLEBTN=no | |
37036 | fi | |
37037 | ||
37038 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37039 | cat >>confdefs.h <<\_ACEOF | |
37040 | #define wxUSE_TOGGLEBTN 1 | |
37041 | _ACEOF | |
37042 | ||
37043 | USES_CONTROLS=1 | |
37044 | fi | |
37045 | fi | |
37046 | ||
37047 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
37048 | cat >>confdefs.h <<\_ACEOF | |
37049 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
37050 | _ACEOF | |
37051 | ||
37052 | wxUSE_TOOLBAR="yes" | |
37053 | USES_CONTROLS=1 | |
37054 | fi | |
37055 | ||
37056 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
37057 | cat >>confdefs.h <<\_ACEOF | |
37058 | #define wxUSE_TOOLBAR 1 | |
37059 | _ACEOF | |
37060 | ||
37061 | USES_CONTROLS=1 | |
37062 | ||
37063 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
37064 | wxUSE_TOOLBAR_NATIVE="yes" | |
37065 | fi | |
37066 | ||
37067 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
37068 | cat >>confdefs.h <<\_ACEOF | |
37069 | #define wxUSE_TOOLBAR_NATIVE 1 | |
37070 | _ACEOF | |
37071 | ||
37072 | USES_CONTROLS=1 | |
37073 | fi | |
37074 | ||
37075 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
37076 | fi | |
37077 | ||
37078 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
37079 | if test "$wxUSE_MOTIF" = 1; then | |
37080 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
37081 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
37082 | else | |
37083 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37084 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
37085 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
37086 | else | |
37087 | cat >>confdefs.h <<\_ACEOF | |
37088 | #define wxUSE_TOOLTIPS 1 | |
37089 | _ACEOF | |
37090 | ||
37091 | fi | |
37092 | fi | |
37093 | fi | |
37094 | ||
37095 | if test "$wxUSE_TREECTRL" = "yes"; then | |
37096 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37097 | cat >>confdefs.h <<\_ACEOF | |
37098 | #define wxUSE_TREECTRL 1 | |
37099 | _ACEOF | |
37100 | ||
37101 | USES_CONTROLS=1 | |
37102 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
37103 | else | |
37104 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
37105 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37106 | fi | |
37107 | fi | |
37108 | ||
37109 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
37110 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
37111 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
37112 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
37113 | else | |
37114 | if test "$wxUSE_PM" = 1; then | |
37115 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
37116 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
37117 | else | |
37118 | cat >>confdefs.h <<\_ACEOF | |
37119 | #define wxUSE_POPUPWIN 1 | |
37120 | _ACEOF | |
37121 | ||
37122 | ||
37123 | USES_CONTROLS=1 | |
37124 | fi | |
37125 | fi | |
37126 | fi | |
37127 | ||
37128 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
37129 | if test "$wxUSE_PM" = 1; then | |
37130 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
37131 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
37132 | else | |
37133 | cat >>confdefs.h <<\_ACEOF | |
37134 | #define wxUSE_TIPWINDOW 1 | |
37135 | _ACEOF | |
37136 | ||
37137 | fi | |
37138 | fi | |
37139 | ||
37140 | if test "$USES_CONTROLS" = 1; then | |
37141 | cat >>confdefs.h <<\_ACEOF | |
37142 | #define wxUSE_CONTROLS 1 | |
37143 | _ACEOF | |
37144 | ||
37145 | fi | |
37146 | ||
37147 | ||
37148 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
37149 | cat >>confdefs.h <<\_ACEOF | |
37150 | #define wxUSE_ACCESSIBILITY 1 | |
37151 | _ACEOF | |
37152 | ||
37153 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
37154 | fi | |
37155 | ||
37156 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
37157 | cat >>confdefs.h <<\_ACEOF | |
37158 | #define wxUSE_DRAGIMAGE 1 | |
37159 | _ACEOF | |
37160 | ||
37161 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
37162 | fi | |
37163 | ||
37164 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
37165 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
37166 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
37167 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
37168 | else | |
37169 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37170 | #define wxUSE_EXCEPTIONS 1 |
37171 | _ACEOF | |
37172 | ||
07bea8f0 VS |
37173 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
37174 | fi | |
a848cd7e SC |
37175 | fi |
37176 | ||
37177 | USE_HTML=0 | |
37178 | if test "$wxUSE_HTML" = "yes"; then | |
37179 | cat >>confdefs.h <<\_ACEOF | |
37180 | #define wxUSE_HTML 1 | |
37181 | _ACEOF | |
37182 | ||
37183 | USE_HTML=1 | |
37184 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
37185 | if test "$wxUSE_MAC" = 1; then |
37186 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
37187 | fi | |
a848cd7e | 37188 | fi |
646b6ec1 | 37189 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
37190 | if test "$wxUSE_MAC" = 1; then |
37191 | old_CPPFLAGS="$CPPFLAGS" | |
37192 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
37193 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
37194 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
37195 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
37196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37197 | else | |
37198 | cat >conftest.$ac_ext <<_ACEOF | |
37199 | /* confdefs.h. */ | |
37200 | _ACEOF | |
37201 | cat confdefs.h >>conftest.$ac_ext | |
37202 | cat >>conftest.$ac_ext <<_ACEOF | |
37203 | /* end confdefs.h. */ | |
37204 | #include <Carbon/Carbon.h> | |
37205 | ||
37206 | #include <WebKit/HIWebView.h> | |
37207 | _ACEOF | |
37208 | rm -f conftest.$ac_objext | |
37209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37210 | (eval $ac_compile) 2>conftest.er1 | |
37211 | ac_status=$? | |
37212 | grep -v '^ *+' conftest.er1 >conftest.err | |
37213 | rm -f conftest.er1 | |
37214 | cat conftest.err >&5 | |
37215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37216 | (exit $ac_status); } && | |
2cbbc68d RD |
37217 | { ac_try='test -z "$ac_c_werror_flag" |
37218 | || test ! -s conftest.err' | |
07bea8f0 VS |
37219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37220 | (eval $ac_try) 2>&5 | |
37221 | ac_status=$? | |
37222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37223 | (exit $ac_status); }; } && | |
37224 | { ac_try='test -s conftest.$ac_objext' | |
37225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37226 | (eval $ac_try) 2>&5 | |
37227 | ac_status=$? | |
37228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37229 | (exit $ac_status); }; }; then | |
37230 | ac_cv_header_WebKit_HIWebView_h=yes | |
37231 | else | |
37232 | echo "$as_me: failed program was:" >&5 | |
37233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37234 | ||
37235 | ac_cv_header_WebKit_HIWebView_h=no | |
37236 | fi | |
37237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37238 | fi | |
37239 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
37240 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
37241 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
37242 | ||
37243 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
37244 | #define wxUSE_WEBKIT 1 |
37245 | _ACEOF | |
37246 | ||
07bea8f0 VS |
37247 | WEBKIT_LINK="-framework WebKit" |
37248 | ||
37249 | else | |
37250 | ||
37251 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
37252 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
37253 | wxUSE_WEBKIT=no | |
37254 | ||
646b6ec1 VS |
37255 | fi |
37256 | ||
07bea8f0 VS |
37257 | |
37258 | CPPFLAGS="$old_CPPFLAGS" | |
37259 | elif test "$wxUSE_COCOA" = 1; then | |
37260 | cat >>confdefs.h <<\_ACEOF | |
37261 | #define wxUSE_WEBKIT 1 | |
37262 | _ACEOF | |
37263 | ||
37264 | else | |
37265 | wxUSE_WEBKIT=no | |
37266 | fi | |
37267 | fi | |
37268 | ||
9a8f0513 VS |
37269 | USE_XRC=0 |
37270 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
37271 | if test "$wxUSE_XML" != "yes"; then |
37272 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
37273 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
37274 | wxUSE_XRC=no | |
37275 | else | |
37276 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
37277 | #define wxUSE_XRC 1 |
37278 | _ACEOF | |
37279 | ||
d2ebf0b7 VS |
37280 | USE_XRC=1 |
37281 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
37282 | fi | |
9a8f0513 | 37283 | fi |
07bea8f0 | 37284 | |
a848cd7e SC |
37285 | if test "$wxUSE_MENUS" = "yes"; then |
37286 | cat >>confdefs.h <<\_ACEOF | |
37287 | #define wxUSE_MENUS 1 | |
37288 | _ACEOF | |
37289 | ||
37290 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
37291 | fi | |
37292 | ||
37293 | if test "$wxUSE_METAFILE" = "yes"; then | |
37294 | cat >>confdefs.h <<\_ACEOF | |
37295 | #define wxUSE_METAFILE 1 | |
37296 | _ACEOF | |
37297 | ||
37298 | fi | |
37299 | ||
37300 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
37301 | cat >>confdefs.h <<\_ACEOF | |
37302 | #define wxUSE_MIMETYPE 1 | |
37303 | _ACEOF | |
37304 | ||
37305 | fi | |
37306 | ||
37307 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
37308 | cat >>confdefs.h <<\_ACEOF | |
37309 | #define wxUSE_MINIFRAME 1 | |
37310 | _ACEOF | |
37311 | ||
37312 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
37313 | fi | |
37314 | ||
37315 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
37316 | cat >>confdefs.h <<\_ACEOF | |
37317 | #define wxUSE_SYSTEM_OPTIONS 1 | |
37318 | _ACEOF | |
37319 | ||
37320 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 37321 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
37322 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
37323 | fi | |
37324 | fi | |
37325 | ||
37326 | ||
37327 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
37328 | cat >>confdefs.h <<\_ACEOF | |
37329 | #define wxUSE_VALIDATORS 1 | |
37330 | _ACEOF | |
37331 | ||
37332 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
37333 | fi | |
37334 | ||
37335 | if test "$wxUSE_PALETTE" = "yes" ; then | |
37336 | cat >>confdefs.h <<\_ACEOF | |
37337 | #define wxUSE_PALETTE 1 | |
37338 | _ACEOF | |
37339 | ||
37340 | fi | |
37341 | ||
37342 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
37343 | LIBS=" -lunicows $LIBS" | |
37344 | fi | |
37345 | ||
37346 | ||
37347 | if test "$wxUSE_IMAGE" = "yes" ; then | |
37348 | cat >>confdefs.h <<\_ACEOF | |
37349 | #define wxUSE_IMAGE 1 | |
37350 | _ACEOF | |
37351 | ||
37352 | ||
37353 | if test "$wxUSE_GIF" = "yes" ; then | |
37354 | cat >>confdefs.h <<\_ACEOF | |
37355 | #define wxUSE_GIF 1 | |
37356 | _ACEOF | |
37357 | ||
37358 | fi | |
37359 | ||
37360 | if test "$wxUSE_PCX" = "yes" ; then | |
37361 | cat >>confdefs.h <<\_ACEOF | |
37362 | #define wxUSE_PCX 1 | |
37363 | _ACEOF | |
37364 | ||
37365 | fi | |
37366 | ||
37367 | if test "$wxUSE_IFF" = "yes" ; then | |
37368 | cat >>confdefs.h <<\_ACEOF | |
37369 | #define wxUSE_IFF 1 | |
37370 | _ACEOF | |
37371 | ||
37372 | fi | |
37373 | ||
37374 | if test "$wxUSE_PNM" = "yes" ; then | |
37375 | cat >>confdefs.h <<\_ACEOF | |
37376 | #define wxUSE_PNM 1 | |
37377 | _ACEOF | |
37378 | ||
37379 | fi | |
37380 | ||
37381 | if test "$wxUSE_XPM" = "yes" ; then | |
37382 | cat >>confdefs.h <<\_ACEOF | |
37383 | #define wxUSE_XPM 1 | |
37384 | _ACEOF | |
37385 | ||
37386 | fi | |
37387 | ||
37388 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37389 | cat >>confdefs.h <<\_ACEOF | |
37390 | #define wxUSE_ICO_CUR 1 | |
37391 | _ACEOF | |
37392 | ||
37393 | fi | |
37394 | fi | |
37395 | ||
37396 | ||
37397 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37398 | cat >>confdefs.h <<\_ACEOF | |
37399 | #define wxUSE_CHOICEDLG 1 | |
37400 | _ACEOF | |
37401 | ||
37402 | fi | |
37403 | ||
37404 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37405 | cat >>confdefs.h <<\_ACEOF | |
37406 | #define wxUSE_COLOURDLG 1 | |
37407 | _ACEOF | |
37408 | ||
37409 | fi | |
37410 | ||
37411 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37412 | cat >>confdefs.h <<\_ACEOF | |
37413 | #define wxUSE_FILEDLG 1 | |
37414 | _ACEOF | |
37415 | ||
37416 | fi | |
37417 | ||
37418 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37419 | cat >>confdefs.h <<\_ACEOF | |
37420 | #define wxUSE_FINDREPLDLG 1 | |
37421 | _ACEOF | |
37422 | ||
37423 | fi | |
37424 | ||
37425 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37426 | cat >>confdefs.h <<\_ACEOF | |
37427 | #define wxUSE_FONTDLG 1 | |
37428 | _ACEOF | |
37429 | ||
37430 | fi | |
37431 | ||
37432 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37433 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37434 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37435 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37436 | else | |
37437 | cat >>confdefs.h <<\_ACEOF | |
37438 | #define wxUSE_DIRDLG 1 | |
37439 | _ACEOF | |
37440 | ||
37441 | fi | |
37442 | fi | |
37443 | ||
37444 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37445 | cat >>confdefs.h <<\_ACEOF | |
37446 | #define wxUSE_MSGDLG 1 | |
37447 | _ACEOF | |
37448 | ||
37449 | fi | |
37450 | ||
37451 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37452 | cat >>confdefs.h <<\_ACEOF | |
37453 | #define wxUSE_NUMBERDLG 1 | |
37454 | _ACEOF | |
37455 | ||
37456 | fi | |
37457 | ||
37458 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37459 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37460 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37461 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37462 | else | |
37463 | cat >>confdefs.h <<\_ACEOF | |
37464 | #define wxUSE_PROGRESSDLG 1 | |
37465 | _ACEOF | |
37466 | ||
37467 | fi | |
37468 | fi | |
37469 | ||
37470 | if test "$wxUSE_SPLASH" = "yes"; then | |
37471 | cat >>confdefs.h <<\_ACEOF | |
37472 | #define wxUSE_SPLASH 1 | |
37473 | _ACEOF | |
37474 | ||
2057db16 | 37475 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
37476 | fi |
37477 | ||
37478 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37479 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37480 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37481 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37482 | else | |
37483 | cat >>confdefs.h <<\_ACEOF | |
37484 | #define wxUSE_STARTUP_TIPS 1 | |
37485 | _ACEOF | |
37486 | ||
37487 | fi | |
37488 | fi | |
37489 | ||
37490 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37491 | cat >>confdefs.h <<\_ACEOF | |
37492 | #define wxUSE_TEXTDLG 1 | |
37493 | _ACEOF | |
37494 | ||
37495 | fi | |
37496 | ||
37497 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37498 | cat >>confdefs.h <<\_ACEOF | |
37499 | #define wxUSE_WIZARDDLG 1 | |
37500 | _ACEOF | |
37501 | ||
37502 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37503 | fi | |
37504 | ||
37505 | ||
37506 | if test "$cross_compiling" = "yes"; then | |
37507 | OSINFO="\"$host\"" | |
37508 | else | |
37509 | OSINFO=`uname -s -r -m` | |
37510 | OSINFO="\"$OSINFO\"" | |
37511 | fi | |
37512 | ||
37513 | cat >>confdefs.h <<_ACEOF | |
37514 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37515 | _ACEOF | |
37516 | ||
37517 | ||
37518 | ||
37519 | if test "x$prefix" != "xNONE"; then | |
37520 | wxPREFIX=$prefix | |
37521 | else | |
37522 | wxPREFIX=$ac_default_prefix | |
37523 | fi | |
37524 | ||
37525 | cat >>confdefs.h <<_ACEOF | |
37526 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37527 | _ACEOF | |
37528 | ||
37529 | ||
a848cd7e SC |
37530 | |
37531 | ||
37532 | CORE_BASE_LIBS="net base" | |
37533 | CORE_GUI_LIBS="adv core" | |
37534 | ||
37535 | if test "$wxUSE_XML" = "yes" ; then | |
37536 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37537 | fi | |
37538 | if test "$wxUSE_ODBC" != "no" ; then | |
37539 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37540 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37541 | fi | |
37542 | if test "$wxUSE_HTML" = "yes" ; then | |
37543 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37544 | fi | |
9a8f0513 VS |
37545 | if test "$wxUSE_XRC" = "yes" ; then |
37546 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
37547 | fi | |
a848cd7e SC |
37548 | |
37549 | if test "$wxUSE_GUI" != "yes"; then | |
37550 | CORE_GUI_LIBS="" | |
37551 | fi | |
37552 | ||
37553 | ||
37554 | ||
37555 | ||
37556 | ||
37557 | ||
37558 | ||
37559 | ||
37560 | if test "$wxUSE_MAC" = 1 ; then | |
07bea8f0 VS |
37561 | if test "$wxUSE_SOUND" = "yes"; then |
37562 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37563 | fi | |
5dcf30a0 RN |
37564 | if test "$USE_DARWIN" = 1; then |
37565 | LDFLAGS="$LDFLAGS -framework IOKit" | |
37566 | fi | |
07bea8f0 | 37567 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" |
a848cd7e SC |
37568 | fi |
37569 | if test "$wxUSE_COCOA" = 1 ; then | |
f7e98dee | 37570 | LDFLAGS="$LDFLAGS -framework Cocoa" |
a848cd7e SC |
37571 | fi |
37572 | ||
37573 | ||
37574 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37575 | ||
37576 | have_cos=0 | |
37577 | have_floor=0 | |
37578 | ||
37579 | for ac_func in cos | |
37580 | do | |
37581 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37582 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37583 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37584 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37586 | else | |
37587 | cat >conftest.$ac_ext <<_ACEOF | |
37588 | /* confdefs.h. */ | |
37589 | _ACEOF | |
37590 | cat confdefs.h >>conftest.$ac_ext | |
37591 | cat >>conftest.$ac_ext <<_ACEOF | |
37592 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37593 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37595 | #define $ac_func innocuous_$ac_func | |
37596 | ||
a848cd7e SC |
37597 | /* System header to define __stub macros and hopefully few prototypes, |
37598 | which can conflict with char $ac_func (); below. | |
37599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37600 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37601 | |
a848cd7e SC |
37602 | #ifdef __STDC__ |
37603 | # include <limits.h> | |
37604 | #else | |
37605 | # include <assert.h> | |
37606 | #endif | |
ac1cb8d3 VS |
37607 | |
37608 | #undef $ac_func | |
37609 | ||
a848cd7e SC |
37610 | /* Override any gcc2 internal prototype to avoid an error. */ |
37611 | #ifdef __cplusplus | |
37612 | extern "C" | |
37613 | { | |
37614 | #endif | |
37615 | /* We use char because int might match the return type of a gcc2 | |
37616 | builtin and then its argument prototype would still apply. */ | |
37617 | char $ac_func (); | |
37618 | /* The GNU C library defines this for functions which it implements | |
37619 | to always fail with ENOSYS. Some functions are actually named | |
37620 | something starting with __ and the normal name is an alias. */ | |
37621 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37622 | choke me | |
37623 | #else | |
37624 | char (*f) () = $ac_func; | |
37625 | #endif | |
37626 | #ifdef __cplusplus | |
37627 | } | |
37628 | #endif | |
37629 | ||
37630 | int | |
37631 | main () | |
37632 | { | |
37633 | return f != $ac_func; | |
37634 | ; | |
37635 | return 0; | |
37636 | } | |
37637 | _ACEOF | |
37638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37640 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37641 | ac_status=$? |
ac1cb8d3 VS |
37642 | grep -v '^ *+' conftest.er1 >conftest.err |
37643 | rm -f conftest.er1 | |
37644 | cat conftest.err >&5 | |
a848cd7e SC |
37645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37646 | (exit $ac_status); } && | |
2cbbc68d RD |
37647 | { ac_try='test -z "$ac_c_werror_flag" |
37648 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37650 | (eval $ac_try) 2>&5 | |
37651 | ac_status=$? | |
37652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37653 | (exit $ac_status); }; } && | |
37654 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37656 | (eval $ac_try) 2>&5 | |
37657 | ac_status=$? | |
37658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37659 | (exit $ac_status); }; }; then | |
37660 | eval "$as_ac_var=yes" | |
37661 | else | |
37662 | echo "$as_me: failed program was:" >&5 | |
37663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37664 | ||
37665 | eval "$as_ac_var=no" | |
37666 | fi | |
ac1cb8d3 VS |
37667 | rm -f conftest.err conftest.$ac_objext \ |
37668 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37669 | fi |
37670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37671 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37672 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37673 | cat >>confdefs.h <<_ACEOF | |
37674 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37675 | _ACEOF | |
37676 | have_cos=1 | |
37677 | fi | |
37678 | done | |
37679 | ||
37680 | ||
37681 | for ac_func in floor | |
37682 | do | |
37683 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37684 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37685 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37686 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37688 | else | |
37689 | cat >conftest.$ac_ext <<_ACEOF | |
37690 | /* confdefs.h. */ | |
37691 | _ACEOF | |
37692 | cat confdefs.h >>conftest.$ac_ext | |
37693 | cat >>conftest.$ac_ext <<_ACEOF | |
37694 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37695 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37696 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37697 | #define $ac_func innocuous_$ac_func | |
37698 | ||
a848cd7e SC |
37699 | /* System header to define __stub macros and hopefully few prototypes, |
37700 | which can conflict with char $ac_func (); below. | |
37701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37702 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37703 | |
a848cd7e SC |
37704 | #ifdef __STDC__ |
37705 | # include <limits.h> | |
37706 | #else | |
37707 | # include <assert.h> | |
37708 | #endif | |
ac1cb8d3 VS |
37709 | |
37710 | #undef $ac_func | |
37711 | ||
a848cd7e SC |
37712 | /* Override any gcc2 internal prototype to avoid an error. */ |
37713 | #ifdef __cplusplus | |
37714 | extern "C" | |
37715 | { | |
37716 | #endif | |
37717 | /* We use char because int might match the return type of a gcc2 | |
37718 | builtin and then its argument prototype would still apply. */ | |
37719 | char $ac_func (); | |
37720 | /* The GNU C library defines this for functions which it implements | |
37721 | to always fail with ENOSYS. Some functions are actually named | |
37722 | something starting with __ and the normal name is an alias. */ | |
37723 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37724 | choke me | |
37725 | #else | |
37726 | char (*f) () = $ac_func; | |
37727 | #endif | |
37728 | #ifdef __cplusplus | |
37729 | } | |
37730 | #endif | |
37731 | ||
37732 | int | |
37733 | main () | |
37734 | { | |
37735 | return f != $ac_func; | |
37736 | ; | |
37737 | return 0; | |
37738 | } | |
37739 | _ACEOF | |
37740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37742 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37743 | ac_status=$? |
ac1cb8d3 VS |
37744 | grep -v '^ *+' conftest.er1 >conftest.err |
37745 | rm -f conftest.er1 | |
37746 | cat conftest.err >&5 | |
a848cd7e SC |
37747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37748 | (exit $ac_status); } && | |
2cbbc68d RD |
37749 | { ac_try='test -z "$ac_c_werror_flag" |
37750 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37752 | (eval $ac_try) 2>&5 | |
37753 | ac_status=$? | |
37754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37755 | (exit $ac_status); }; } && | |
37756 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37758 | (eval $ac_try) 2>&5 | |
37759 | ac_status=$? | |
37760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37761 | (exit $ac_status); }; }; then | |
37762 | eval "$as_ac_var=yes" | |
37763 | else | |
37764 | echo "$as_me: failed program was:" >&5 | |
37765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37766 | ||
37767 | eval "$as_ac_var=no" | |
37768 | fi | |
ac1cb8d3 VS |
37769 | rm -f conftest.err conftest.$ac_objext \ |
37770 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37771 | fi |
37772 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37773 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37774 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37775 | cat >>confdefs.h <<_ACEOF | |
37776 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37777 | _ACEOF | |
37778 | have_floor=1 | |
37779 | fi | |
37780 | done | |
37781 | ||
37782 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37783 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37784 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37785 | echo "$as_me:$LINENO: result: yes" >&5 | |
37786 | echo "${ECHO_T}yes" >&6 | |
37787 | else | |
37788 | echo "$as_me:$LINENO: result: no" >&5 | |
37789 | echo "${ECHO_T}no" >&6 | |
37790 | LIBS="$LIBS -lm" | |
37791 | # use different functions to avoid configure caching | |
37792 | have_sin=0 | |
37793 | have_ceil=0 | |
37794 | ||
37795 | for ac_func in sin | |
37796 | do | |
37797 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37798 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37799 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37800 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37802 | else | |
37803 | cat >conftest.$ac_ext <<_ACEOF | |
37804 | /* confdefs.h. */ | |
37805 | _ACEOF | |
37806 | cat confdefs.h >>conftest.$ac_ext | |
37807 | cat >>conftest.$ac_ext <<_ACEOF | |
37808 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37809 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37810 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37811 | #define $ac_func innocuous_$ac_func | |
37812 | ||
a848cd7e SC |
37813 | /* System header to define __stub macros and hopefully few prototypes, |
37814 | which can conflict with char $ac_func (); below. | |
37815 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37816 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37817 | |
a848cd7e SC |
37818 | #ifdef __STDC__ |
37819 | # include <limits.h> | |
37820 | #else | |
37821 | # include <assert.h> | |
37822 | #endif | |
ac1cb8d3 VS |
37823 | |
37824 | #undef $ac_func | |
37825 | ||
a848cd7e SC |
37826 | /* Override any gcc2 internal prototype to avoid an error. */ |
37827 | #ifdef __cplusplus | |
37828 | extern "C" | |
37829 | { | |
37830 | #endif | |
37831 | /* We use char because int might match the return type of a gcc2 | |
37832 | builtin and then its argument prototype would still apply. */ | |
37833 | char $ac_func (); | |
37834 | /* The GNU C library defines this for functions which it implements | |
37835 | to always fail with ENOSYS. Some functions are actually named | |
37836 | something starting with __ and the normal name is an alias. */ | |
37837 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37838 | choke me | |
37839 | #else | |
37840 | char (*f) () = $ac_func; | |
37841 | #endif | |
37842 | #ifdef __cplusplus | |
37843 | } | |
37844 | #endif | |
37845 | ||
37846 | int | |
37847 | main () | |
37848 | { | |
37849 | return f != $ac_func; | |
37850 | ; | |
37851 | return 0; | |
37852 | } | |
37853 | _ACEOF | |
37854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37856 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37857 | ac_status=$? |
ac1cb8d3 VS |
37858 | grep -v '^ *+' conftest.er1 >conftest.err |
37859 | rm -f conftest.er1 | |
37860 | cat conftest.err >&5 | |
a848cd7e SC |
37861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37862 | (exit $ac_status); } && | |
2cbbc68d RD |
37863 | { ac_try='test -z "$ac_c_werror_flag" |
37864 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37866 | (eval $ac_try) 2>&5 | |
37867 | ac_status=$? | |
37868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37869 | (exit $ac_status); }; } && | |
37870 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37872 | (eval $ac_try) 2>&5 | |
37873 | ac_status=$? | |
37874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37875 | (exit $ac_status); }; }; then | |
37876 | eval "$as_ac_var=yes" | |
37877 | else | |
37878 | echo "$as_me: failed program was:" >&5 | |
37879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37880 | ||
37881 | eval "$as_ac_var=no" | |
37882 | fi | |
ac1cb8d3 VS |
37883 | rm -f conftest.err conftest.$ac_objext \ |
37884 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37885 | fi |
37886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37887 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37888 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37889 | cat >>confdefs.h <<_ACEOF | |
37890 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37891 | _ACEOF | |
37892 | have_sin=1 | |
37893 | fi | |
37894 | done | |
37895 | ||
37896 | ||
37897 | for ac_func in ceil | |
37898 | do | |
37899 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37900 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37901 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37902 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37904 | else | |
37905 | cat >conftest.$ac_ext <<_ACEOF | |
37906 | /* confdefs.h. */ | |
37907 | _ACEOF | |
37908 | cat confdefs.h >>conftest.$ac_ext | |
37909 | cat >>conftest.$ac_ext <<_ACEOF | |
37910 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37911 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37912 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37913 | #define $ac_func innocuous_$ac_func | |
37914 | ||
a848cd7e SC |
37915 | /* System header to define __stub macros and hopefully few prototypes, |
37916 | which can conflict with char $ac_func (); below. | |
37917 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37918 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37919 | |
a848cd7e SC |
37920 | #ifdef __STDC__ |
37921 | # include <limits.h> | |
37922 | #else | |
37923 | # include <assert.h> | |
37924 | #endif | |
ac1cb8d3 VS |
37925 | |
37926 | #undef $ac_func | |
37927 | ||
a848cd7e SC |
37928 | /* Override any gcc2 internal prototype to avoid an error. */ |
37929 | #ifdef __cplusplus | |
37930 | extern "C" | |
37931 | { | |
37932 | #endif | |
37933 | /* We use char because int might match the return type of a gcc2 | |
37934 | builtin and then its argument prototype would still apply. */ | |
37935 | char $ac_func (); | |
37936 | /* The GNU C library defines this for functions which it implements | |
37937 | to always fail with ENOSYS. Some functions are actually named | |
37938 | something starting with __ and the normal name is an alias. */ | |
37939 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37940 | choke me | |
37941 | #else | |
37942 | char (*f) () = $ac_func; | |
37943 | #endif | |
37944 | #ifdef __cplusplus | |
37945 | } | |
37946 | #endif | |
37947 | ||
37948 | int | |
37949 | main () | |
37950 | { | |
37951 | return f != $ac_func; | |
37952 | ; | |
37953 | return 0; | |
37954 | } | |
37955 | _ACEOF | |
37956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37958 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37959 | ac_status=$? |
ac1cb8d3 VS |
37960 | grep -v '^ *+' conftest.er1 >conftest.err |
37961 | rm -f conftest.er1 | |
37962 | cat conftest.err >&5 | |
a848cd7e SC |
37963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37964 | (exit $ac_status); } && | |
2cbbc68d RD |
37965 | { ac_try='test -z "$ac_c_werror_flag" |
37966 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37968 | (eval $ac_try) 2>&5 | |
37969 | ac_status=$? | |
37970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37971 | (exit $ac_status); }; } && | |
37972 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37974 | (eval $ac_try) 2>&5 | |
37975 | ac_status=$? | |
37976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37977 | (exit $ac_status); }; }; then | |
37978 | eval "$as_ac_var=yes" | |
37979 | else | |
37980 | echo "$as_me: failed program was:" >&5 | |
37981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37982 | ||
37983 | eval "$as_ac_var=no" | |
37984 | fi | |
ac1cb8d3 VS |
37985 | rm -f conftest.err conftest.$ac_objext \ |
37986 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37987 | fi |
37988 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37989 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37990 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37991 | cat >>confdefs.h <<_ACEOF | |
37992 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37993 | _ACEOF | |
37994 | have_ceil=1 | |
37995 | fi | |
37996 | done | |
37997 | ||
37998 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37999 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
38000 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
38001 | echo "$as_me:$LINENO: result: yes" >&5 | |
38002 | echo "${ECHO_T}yes" >&6 | |
38003 | else | |
38004 | echo "$as_me:$LINENO: result: no" >&5 | |
38005 | echo "${ECHO_T}no" >&6 | |
38006 | # not sure we should warn the user, crash, etc. | |
38007 | fi | |
38008 | fi | |
38009 | ||
38010 | if test "$wxUSE_GUI" = "yes"; then | |
38011 | ||
38012 | ||
38013 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
38014 | drawing dynamic erase event exec font image \ | |
38015 | minimal propsize rotate shaped widgets render" | |
38016 | ||
38017 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
38018 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
38019 | fi | |
38020 | else | |
38021 | SAMPLES_SUBDIRS="console" | |
38022 | fi | |
38023 | ||
38024 | ||
ceec2216 | 38025 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
38026 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
38027 | ||
38028 | if test "$GXX" = yes ; then | |
38029 | CXXWARNINGS="-Wall" | |
38030 | fi | |
38031 | ||
38032 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
38033 | ||
0c3c69fc VS |
38034 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
38035 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS` | |
38036 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` | |
a848cd7e SC |
38037 | |
38038 | ||
0c3c69fc | 38039 | LIBS=`echo $LIBS` |
a848cd7e SC |
38040 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
38041 | EXTRALIBS_XML="$EXPAT_LINK" | |
38042 | EXTRALIBS_HTML="$MSPACK_LINK" | |
38043 | EXTRALIBS_ODBC="$ODBC_LINK" | |
38044 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 38045 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
38046 | fi |
38047 | if test "$wxUSE_OPENGL" = "yes"; then | |
38048 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
38049 | fi | |
38050 | ||
38051 | LDFLAGS="$LDFLAGS $PROFILE" | |
38052 | ||
38053 | if test "$wxUSE_GTK" = 1; then | |
38054 | WXCONFIG_INCLUDE= | |
38055 | else | |
38056 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
38057 | fi | |
38058 | ||
38059 | WXCONFIG_EXTRALIBS="$LIBS" | |
38060 | ||
38061 | if test "$wxUSE_REGEX" = "builtin" ; then | |
38062 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
38063 | fi | |
38064 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
38065 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
38066 | fi | |
38067 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38068 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38069 | fi | |
38070 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
38071 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
38072 | fi | |
38073 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
38074 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
38075 | fi | |
38076 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
38077 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
38078 | fi | |
38079 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
38080 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
38081 | fi | |
38082 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38083 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38084 | fi | |
38085 | ||
38086 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 38087 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
38088 | done |
38089 | ||
38090 | ||
38091 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
38092 | WXUNIV=1 | |
38093 | else | |
38094 | WXUNIV=0 | |
38095 | fi | |
38096 | ||
38097 | ||
38098 | ||
38099 | ||
38100 | ||
38101 | ||
38102 | ||
38103 | ||
38104 | ||
38105 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
38106 | MONOLITHIC=1 | |
38107 | else | |
38108 | MONOLITHIC=0 | |
38109 | fi | |
38110 | ||
38111 | if test $wxUSE_PLUGINS = "yes" ; then | |
38112 | USE_PLUGINS=1 | |
38113 | else | |
38114 | USE_PLUGINS=0 | |
38115 | fi | |
38116 | ||
38117 | if test $wxUSE_ODBC != "no" ; then | |
38118 | USE_ODBC=1 | |
38119 | else | |
38120 | USE_ODBC=0 | |
38121 | fi | |
38122 | ||
38123 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
38124 | OFFICIAL_BUILD=1 | |
38125 | else | |
38126 | OFFICIAL_BUILD=0 | |
38127 | fi | |
38128 | ||
38129 | ||
38130 | ||
38131 | ||
38132 | ||
38133 | ||
38134 | ||
38135 | ||
38136 | ||
38137 | ||
38138 | ||
38139 | ||
38140 | ||
38141 | ||
38142 | ||
38143 | ||
38144 | ||
38145 | ||
38146 | ||
ceec2216 | 38147 | |
d1c38808 | 38148 | |
a848cd7e SC |
38149 | |
38150 | ||
38151 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
38152 | ||
38153 | ||
38154 | ||
38155 | ||
38156 | ||
38157 | ||
38158 | ||
38159 | ||
4d4ff94c VZ |
38160 | case "$TOOLKIT" in |
38161 | GTK) | |
38162 | TOOLKIT_USER="GTK+" | |
38163 | if test "$WXGTK20" = 1; then | |
38164 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
38165 | fi | |
9a8f0513 | 38166 | ;; |
4d4ff94c VZ |
38167 | |
38168 | *) | |
38169 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 38170 | ;; |
4d4ff94c | 38171 | esac |
a848cd7e | 38172 | |
9a8f0513 | 38173 | |
a848cd7e SC |
38174 | if test "x$BAKEFILE_HOST" = "x"; then |
38175 | BAKEFILE_HOST="${host}" | |
38176 | fi | |
38177 | ||
38178 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
38179 | ||
38180 | if test -n "$ac_tool_prefix"; then | |
38181 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
38182 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
38183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38185 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
38186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38187 | else | |
38188 | if test -n "$RANLIB"; then | |
38189 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
38190 | else | |
38191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38192 | for as_dir in $PATH | |
38193 | do | |
38194 | IFS=$as_save_IFS | |
38195 | test -z "$as_dir" && as_dir=. | |
38196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38198 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
38199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38200 | break 2 | |
38201 | fi | |
38202 | done | |
38203 | done | |
38204 | ||
38205 | fi | |
38206 | fi | |
38207 | RANLIB=$ac_cv_prog_RANLIB | |
38208 | if test -n "$RANLIB"; then | |
38209 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
38210 | echo "${ECHO_T}$RANLIB" >&6 | |
38211 | else | |
38212 | echo "$as_me:$LINENO: result: no" >&5 | |
38213 | echo "${ECHO_T}no" >&6 | |
38214 | fi | |
38215 | ||
38216 | fi | |
38217 | if test -z "$ac_cv_prog_RANLIB"; then | |
38218 | ac_ct_RANLIB=$RANLIB | |
38219 | # Extract the first word of "ranlib", so it can be a program name with args. | |
38220 | set dummy ranlib; ac_word=$2 | |
38221 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38223 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
38224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38225 | else | |
38226 | if test -n "$ac_ct_RANLIB"; then | |
38227 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
38228 | else | |
38229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38230 | for as_dir in $PATH | |
38231 | do | |
38232 | IFS=$as_save_IFS | |
38233 | test -z "$as_dir" && as_dir=. | |
38234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38236 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
38237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38238 | break 2 | |
38239 | fi | |
38240 | done | |
38241 | done | |
38242 | ||
38243 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
38244 | fi | |
38245 | fi | |
38246 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
38247 | if test -n "$ac_ct_RANLIB"; then | |
38248 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
38249 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
38250 | else | |
38251 | echo "$as_me:$LINENO: result: no" >&5 | |
38252 | echo "${ECHO_T}no" >&6 | |
38253 | fi | |
38254 | ||
38255 | RANLIB=$ac_ct_RANLIB | |
38256 | else | |
38257 | RANLIB="$ac_cv_prog_RANLIB" | |
38258 | fi | |
38259 | ||
38260 | # Find a good install program. We prefer a C program (faster), | |
38261 | # so one script is as good as another. But avoid the broken or | |
38262 | # incompatible versions: | |
38263 | # SysV /etc/install, /usr/sbin/install | |
38264 | # SunOS /usr/etc/install | |
38265 | # IRIX /sbin/install | |
38266 | # AIX /bin/install | |
38267 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
38268 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
38269 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
38270 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 38271 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
38272 | # ./install, which can be erroneously created by make from ./install.sh. |
38273 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
38274 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
38275 | if test -z "$INSTALL"; then | |
38276 | if test "${ac_cv_path_install+set}" = set; then | |
38277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38278 | else | |
38279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38280 | for as_dir in $PATH | |
38281 | do | |
38282 | IFS=$as_save_IFS | |
38283 | test -z "$as_dir" && as_dir=. | |
38284 | # Account for people who put trailing slashes in PATH elements. | |
38285 | case $as_dir/ in | |
38286 | ./ | .// | /cC/* | \ | |
38287 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 38288 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
38289 | /usr/ucb/* ) ;; |
38290 | *) | |
38291 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
38292 | # Don't use installbsd from OSF since it installs stuff as root | |
38293 | # by default. | |
38294 | for ac_prog in ginstall scoinst install; do | |
38295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
38296 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
38297 | if test $ac_prog = install && | |
38298 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38299 | # AIX install. It has an incompatible calling convention. | |
38300 | : | |
38301 | elif test $ac_prog = install && | |
38302 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38303 | # program-specific install script used by HP pwplus--don't use. | |
38304 | : | |
38305 | else | |
38306 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
38307 | break 3 | |
38308 | fi | |
38309 | fi | |
a848cd7e SC |
38310 | done |
38311 | done | |
38312 | ;; | |
38313 | esac | |
38314 | done | |
38315 | ||
38316 | ||
38317 | fi | |
38318 | if test "${ac_cv_path_install+set}" = set; then | |
38319 | INSTALL=$ac_cv_path_install | |
38320 | else | |
38321 | # As a last resort, use the slow shell script. We don't cache a | |
38322 | # path for INSTALL within a source directory, because that will | |
38323 | # break other packages using the cache if that directory is | |
38324 | # removed, or if the path is relative. | |
38325 | INSTALL=$ac_install_sh | |
38326 | fi | |
38327 | fi | |
38328 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
38329 | echo "${ECHO_T}$INSTALL" >&6 | |
38330 | ||
38331 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
38332 | # It thinks the first close brace ends the variable substitution. | |
38333 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
38334 | ||
38335 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
38336 | ||
38337 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
38338 | ||
38339 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
38340 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
38341 | LN_S=$as_ln_s | |
38342 | if test "$LN_S" = "ln -s"; then | |
38343 | echo "$as_me:$LINENO: result: yes" >&5 | |
38344 | echo "${ECHO_T}yes" >&6 | |
38345 | else | |
38346 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
38347 | echo "${ECHO_T}no, using $LN_S" >&6 | |
38348 | fi | |
38349 | ||
38350 | ||
38351 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38352 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 38353 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
38354 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38356 | else | |
38357 | cat >conftest.make <<\_ACEOF | |
38358 | all: | |
38359 | @echo 'ac_maketemp="$(MAKE)"' | |
38360 | _ACEOF | |
38361 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38362 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38363 | if test -n "$ac_maketemp"; then | |
38364 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38365 | else | |
38366 | eval ac_cv_prog_make_${ac_make}_set=no | |
38367 | fi | |
38368 | rm -f conftest.make | |
38369 | fi | |
38370 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38371 | echo "$as_me:$LINENO: result: yes" >&5 | |
38372 | echo "${ECHO_T}yes" >&6 | |
38373 | SET_MAKE= | |
38374 | else | |
38375 | echo "$as_me:$LINENO: result: no" >&5 | |
38376 | echo "${ECHO_T}no" >&6 | |
38377 | SET_MAKE="MAKE=${MAKE-make}" | |
38378 | fi | |
38379 | ||
38380 | ||
38381 | ||
38382 | if test -n "$ac_tool_prefix"; then | |
38383 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38384 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
38385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38387 | if test "${ac_cv_prog_AR+set}" = set; then | |
38388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38389 | else | |
38390 | if test -n "$AR"; then | |
38391 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38392 | else | |
38393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38394 | for as_dir in $PATH | |
38395 | do | |
38396 | IFS=$as_save_IFS | |
38397 | test -z "$as_dir" && as_dir=. | |
38398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38400 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
38401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38402 | break 2 | |
38403 | fi | |
38404 | done | |
38405 | done | |
38406 | ||
38407 | fi | |
38408 | fi | |
38409 | AR=$ac_cv_prog_AR | |
38410 | if test -n "$AR"; then | |
38411 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38412 | echo "${ECHO_T}$AR" >&6 | |
38413 | else | |
38414 | echo "$as_me:$LINENO: result: no" >&5 | |
38415 | echo "${ECHO_T}no" >&6 | |
38416 | fi | |
38417 | ||
38418 | fi | |
38419 | if test -z "$ac_cv_prog_AR"; then | |
38420 | ac_ct_AR=$AR | |
38421 | # Extract the first word of "ar", so it can be a program name with args. | |
38422 | set dummy ar; ac_word=$2 | |
38423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38425 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38427 | else | |
38428 | if test -n "$ac_ct_AR"; then | |
38429 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38430 | else | |
38431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38432 | for as_dir in $PATH | |
38433 | do | |
38434 | IFS=$as_save_IFS | |
38435 | test -z "$as_dir" && as_dir=. | |
38436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38438 | ac_cv_prog_ac_ct_AR="ar" | |
38439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38440 | break 2 | |
38441 | fi | |
38442 | done | |
38443 | done | |
38444 | ||
38445 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38446 | fi | |
38447 | fi | |
38448 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38449 | if test -n "$ac_ct_AR"; then | |
38450 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38451 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38452 | else | |
38453 | echo "$as_me:$LINENO: result: no" >&5 | |
38454 | echo "${ECHO_T}no" >&6 | |
38455 | fi | |
38456 | ||
38457 | AR=$ac_ct_AR | |
38458 | else | |
38459 | AR="$ac_cv_prog_AR" | |
38460 | fi | |
38461 | ||
38462 | if test -n "$ac_tool_prefix"; then | |
38463 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38464 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38467 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38469 | else | |
38470 | if test -n "$STRIP"; then | |
38471 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38472 | else | |
38473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38474 | for as_dir in $PATH | |
38475 | do | |
38476 | IFS=$as_save_IFS | |
38477 | test -z "$as_dir" && as_dir=. | |
38478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38480 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38482 | break 2 | |
38483 | fi | |
38484 | done | |
38485 | done | |
38486 | ||
38487 | fi | |
38488 | fi | |
38489 | STRIP=$ac_cv_prog_STRIP | |
38490 | if test -n "$STRIP"; then | |
38491 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38492 | echo "${ECHO_T}$STRIP" >&6 | |
38493 | else | |
38494 | echo "$as_me:$LINENO: result: no" >&5 | |
38495 | echo "${ECHO_T}no" >&6 | |
38496 | fi | |
38497 | ||
38498 | fi | |
38499 | if test -z "$ac_cv_prog_STRIP"; then | |
38500 | ac_ct_STRIP=$STRIP | |
38501 | # Extract the first word of "strip", so it can be a program name with args. | |
38502 | set dummy strip; ac_word=$2 | |
38503 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38505 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38507 | else | |
38508 | if test -n "$ac_ct_STRIP"; then | |
38509 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38510 | else | |
38511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38512 | for as_dir in $PATH | |
38513 | do | |
38514 | IFS=$as_save_IFS | |
38515 | test -z "$as_dir" && as_dir=. | |
38516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38518 | ac_cv_prog_ac_ct_STRIP="strip" | |
38519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38520 | break 2 | |
38521 | fi | |
38522 | done | |
38523 | done | |
38524 | ||
38525 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38526 | fi | |
38527 | fi | |
38528 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38529 | if test -n "$ac_ct_STRIP"; then | |
38530 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38531 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38532 | else | |
38533 | echo "$as_me:$LINENO: result: no" >&5 | |
38534 | echo "${ECHO_T}no" >&6 | |
38535 | fi | |
38536 | ||
38537 | STRIP=$ac_ct_STRIP | |
38538 | else | |
38539 | STRIP="$ac_cv_prog_STRIP" | |
38540 | fi | |
38541 | ||
38542 | if test -n "$ac_tool_prefix"; then | |
38543 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38544 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38547 | if test "${ac_cv_prog_NM+set}" = set; then | |
38548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38549 | else | |
38550 | if test -n "$NM"; then | |
38551 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38552 | else | |
38553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38554 | for as_dir in $PATH | |
38555 | do | |
38556 | IFS=$as_save_IFS | |
38557 | test -z "$as_dir" && as_dir=. | |
38558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38560 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38562 | break 2 | |
38563 | fi | |
38564 | done | |
38565 | done | |
38566 | ||
38567 | fi | |
38568 | fi | |
38569 | NM=$ac_cv_prog_NM | |
38570 | if test -n "$NM"; then | |
38571 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38572 | echo "${ECHO_T}$NM" >&6 | |
38573 | else | |
38574 | echo "$as_me:$LINENO: result: no" >&5 | |
38575 | echo "${ECHO_T}no" >&6 | |
38576 | fi | |
38577 | ||
38578 | fi | |
38579 | if test -z "$ac_cv_prog_NM"; then | |
38580 | ac_ct_NM=$NM | |
38581 | # Extract the first word of "nm", so it can be a program name with args. | |
38582 | set dummy nm; ac_word=$2 | |
38583 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38585 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38587 | else | |
38588 | if test -n "$ac_ct_NM"; then | |
38589 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38590 | else | |
38591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38592 | for as_dir in $PATH | |
38593 | do | |
38594 | IFS=$as_save_IFS | |
38595 | test -z "$as_dir" && as_dir=. | |
38596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38598 | ac_cv_prog_ac_ct_NM="nm" | |
38599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38600 | break 2 | |
38601 | fi | |
38602 | done | |
38603 | done | |
38604 | ||
38605 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38606 | fi | |
38607 | fi | |
38608 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38609 | if test -n "$ac_ct_NM"; then | |
38610 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38611 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38612 | else | |
38613 | echo "$as_me:$LINENO: result: no" >&5 | |
38614 | echo "${ECHO_T}no" >&6 | |
38615 | fi | |
38616 | ||
38617 | NM=$ac_ct_NM | |
38618 | else | |
38619 | NM="$ac_cv_prog_NM" | |
38620 | fi | |
38621 | ||
38622 | ||
38623 | case ${BAKEFILE_HOST} in | |
38624 | *-hp-hpux* ) | |
a49baeab | 38625 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38626 | ;; |
38627 | *) INSTALL_DIR="$INSTALL -d" | |
38628 | ;; | |
38629 | esac | |
38630 | ||
38631 | ||
38632 | LDFLAGS_GUI= | |
38633 | case ${BAKEFILE_HOST} in | |
38634 | *-*-cygwin* | *-*-mingw32* ) | |
38635 | LDFLAGS_GUI="-mwindows" | |
38636 | esac | |
38637 | ||
38638 | ||
38639 | fi | |
38640 | ||
38641 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38642 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38643 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38645 | else | |
38646 | ||
38647 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38648 | egrep -s GNU > /dev/null); then | |
38649 | bakefile_cv_prog_makeisgnu="yes" | |
38650 | else | |
38651 | bakefile_cv_prog_makeisgnu="no" | |
38652 | fi | |
38653 | ||
38654 | fi | |
38655 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38656 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38657 | ||
38658 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38659 | IF_GNU_MAKE="" | |
38660 | else | |
38661 | IF_GNU_MAKE="#" | |
38662 | fi | |
38663 | ||
38664 | ||
38665 | ||
38666 | PLATFORM_UNIX=0 | |
38667 | PLATFORM_WIN32=0 | |
38668 | PLATFORM_MSDOS=0 | |
38669 | PLATFORM_MAC=0 | |
38670 | PLATFORM_MACOSX=0 | |
38671 | PLATFORM_OS2=0 | |
38672 | ||
38673 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38674 | case "${BAKEFILE_HOST}" in | |
38675 | *-*-cygwin* | *-*-mingw32* ) | |
38676 | PLATFORM_WIN32=1 | |
38677 | ;; | |
38678 | *-pc-msdosdjgpp ) | |
38679 | PLATFORM_MSDOS=1 | |
38680 | ;; | |
38681 | *-pc-os2_emx | *-pc-os2-emx ) | |
38682 | PLATFORM_OS2=1 | |
38683 | ;; | |
38684 | powerpc-*-darwin* ) | |
38685 | PLATFORM_MAC=1 | |
38686 | PLATFORM_MACOSX=1 | |
38687 | ;; | |
38688 | * ) | |
38689 | PLATFORM_UNIX=1 | |
38690 | ;; | |
38691 | esac | |
38692 | else | |
38693 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38694 | win32 ) | |
38695 | PLATFORM_WIN32=1 | |
38696 | ;; | |
38697 | msdos ) | |
38698 | PLATFORM_MSDOS=1 | |
38699 | ;; | |
38700 | os2 ) | |
38701 | PLATFORM_OS2=1 | |
38702 | ;; | |
38703 | darwin ) | |
38704 | PLATFORM_MAC=1 | |
38705 | PLATFORM_MACOSX=1 | |
38706 | ;; | |
38707 | unix ) | |
38708 | PLATFORM_UNIX=1 | |
38709 | ;; | |
38710 | * ) | |
38711 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38712 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38713 | { (exit 1); exit 1; }; } | |
38714 | ;; | |
38715 | esac | |
38716 | fi | |
38717 | ||
38718 | ||
38719 | ||
38720 | ||
38721 | ||
38722 | ||
38723 | ||
38724 | ||
38725 | ||
38726 | # Check whether --enable-omf or --disable-omf was given. | |
38727 | if test "${enable_omf+set}" = set; then | |
38728 | enableval="$enable_omf" | |
38729 | bk_os2_use_omf="$enableval" | |
38730 | fi; | |
38731 | ||
38732 | case "${BAKEFILE_HOST}" in | |
38733 | *-*-darwin* ) | |
38734 | CFLAGS="$CFLAGS -fno-common" | |
38735 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38736 | ;; | |
38737 | ||
38738 | *-pc-os2_emx | *-pc-os2-emx ) | |
38739 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38740 | AR=emxomfar | |
38741 | RANLIB=: | |
38742 | LDFLAGS="-Zomf $LDFLAGS" | |
38743 | CFLAGS="-Zomf $CFLAGS" | |
38744 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38745 | OS2_LIBEXT="lib" | |
38746 | else | |
38747 | OS2_LIBEXT="a" | |
38748 | fi | |
38749 | ;; | |
38750 | esac | |
38751 | ||
38752 | ||
38753 | SO_SUFFIX="so" | |
38754 | SO_SUFFIX_MODULE="so" | |
38755 | EXEEXT="" | |
38756 | LIBPREFIX="lib" | |
38757 | LIBEXT=".a" | |
38758 | DLLPREFIX="lib" | |
38759 | DLLPREFIX_MODULE="" | |
38760 | DLLIMP_SUFFIX="" | |
38761 | ||
38762 | case "${BAKEFILE_HOST}" in | |
38763 | *-hp-hpux* ) | |
38764 | SO_SUFFIX="sl" | |
38765 | SO_SUFFIX_MODULE="sl" | |
38766 | ;; | |
38767 | *-*-aix* ) | |
38768 | SO_SUFFIX="a" | |
38769 | SO_SUFFIX_MODULE="a" | |
38770 | ;; | |
38771 | *-*-cygwin* | *-*-mingw32* ) | |
38772 | SO_SUFFIX="dll" | |
38773 | SO_SUFFIX_MODULE="dll" | |
38774 | DLLIMP_SUFFIX="dll.a" | |
38775 | EXEEXT=".exe" | |
38776 | DLLPREFIX="" | |
38777 | ;; | |
38778 | *-pc-msdosdjgpp ) | |
38779 | EXEEXT=".exe" | |
38780 | DLLPREFIX="" | |
38781 | ;; | |
38782 | *-pc-os2_emx | *-pc-os2-emx ) | |
38783 | SO_SUFFIX="dll" | |
38784 | SO_SUFFIX_MODULE="dll" | |
38785 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38786 | EXEEXT=".exe" | |
38787 | DLLPREFIX="" | |
38788 | LIBPREFIX="" | |
38789 | LIBEXT=".$OS2_LIBEXT" | |
38790 | ;; | |
38791 | powerpc-*-darwin* ) | |
38792 | SO_SUFFIX="dylib" | |
38793 | SO_SUFFIX_MODULE="bundle" | |
38794 | ;; | |
38795 | esac | |
38796 | ||
38797 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38798 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38799 | fi | |
38800 | ||
38801 | ||
38802 | ||
38803 | ||
38804 | ||
38805 | ||
38806 | ||
38807 | ||
38808 | ||
38809 | ||
38810 | ||
38811 | SHARED_LD_CC="\$(CC) -shared -o" | |
38812 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38813 | ||
38814 | if test "x$GCC" = "xyes"; then | |
38815 | PIC_FLAG="-fPIC" | |
38816 | fi | |
38817 | ||
38818 | case "${BAKEFILE_HOST}" in | |
38819 | *-hp-hpux* ) | |
38820 | if test "x$GCC" = "xyes"; then | |
38821 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38822 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38823 | else | |
38824 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38825 | ||
38826 | SHARED_LD_CC="${CC} -b -o" | |
38827 | SHARED_LD_CXX="${CXX} -b -o" | |
38828 | PIC_FLAG="+Z" | |
38829 | fi | |
38830 | ;; | |
38831 | ||
38832 | *-*-linux* ) | |
38833 | if test "x$GCC" != "xyes"; then | |
38834 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38835 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38836 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38838 | else | |
38839 | ||
38840 | cat >conftest.$ac_ext <<_ACEOF | |
38841 | /* confdefs.h. */ | |
38842 | _ACEOF | |
38843 | cat confdefs.h >>conftest.$ac_ext | |
38844 | cat >>conftest.$ac_ext <<_ACEOF | |
38845 | /* end confdefs.h. */ | |
38846 | ||
38847 | int | |
38848 | main () | |
38849 | { | |
38850 | ||
38851 | #ifndef __INTEL_COMPILER | |
38852 | #error Not icc | |
38853 | #endif | |
38854 | ||
38855 | ; | |
38856 | return 0; | |
38857 | } | |
38858 | _ACEOF | |
38859 | rm -f conftest.$ac_objext | |
38860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38861 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38862 | ac_status=$? |
ac1cb8d3 VS |
38863 | grep -v '^ *+' conftest.er1 >conftest.err |
38864 | rm -f conftest.er1 | |
38865 | cat conftest.err >&5 | |
a848cd7e SC |
38866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38867 | (exit $ac_status); } && | |
2cbbc68d RD |
38868 | { ac_try='test -z "$ac_c_werror_flag" |
38869 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38871 | (eval $ac_try) 2>&5 | |
38872 | ac_status=$? | |
38873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38874 | (exit $ac_status); }; } && | |
38875 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38877 | (eval $ac_try) 2>&5 | |
38878 | ac_status=$? | |
38879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38880 | (exit $ac_status); }; }; then | |
38881 | bakefile_cv_prog_icc=yes | |
38882 | else | |
38883 | echo "$as_me: failed program was:" >&5 | |
38884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38885 | ||
38886 | bakefile_cv_prog_icc=no | |
38887 | ||
38888 | fi | |
ac1cb8d3 | 38889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38890 | |
38891 | fi | |
38892 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38893 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38894 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38895 | PIC_FLAG="-KPIC" | |
38896 | fi | |
38897 | fi | |
38898 | ;; | |
38899 | ||
38900 | *-*-solaris2* ) | |
38901 | if test "x$GCC" != xyes ; then | |
38902 | SHARED_LD_CC="${CC} -G -o" | |
38903 | SHARED_LD_CXX="${CXX} -G -o" | |
38904 | PIC_FLAG="-KPIC" | |
38905 | fi | |
38906 | ;; | |
38907 | ||
38908 | *-*-darwin* ) | |
38909 | ||
38910 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38911 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38912 | if test "${wx_cv_gcc31+set}" = set; then | |
38913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38914 | else | |
38915 | ||
38916 | cat >conftest.$ac_ext <<_ACEOF | |
38917 | /* confdefs.h. */ | |
38918 | _ACEOF | |
38919 | cat confdefs.h >>conftest.$ac_ext | |
38920 | cat >>conftest.$ac_ext <<_ACEOF | |
38921 | /* end confdefs.h. */ | |
38922 | ||
38923 | int | |
38924 | main () | |
38925 | { | |
38926 | ||
38927 | #if (__GNUC__ < 3) || \ | |
38928 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38929 | #error old gcc | |
38930 | #endif | |
38931 | ||
38932 | ; | |
38933 | return 0; | |
38934 | } | |
38935 | _ACEOF | |
38936 | rm -f conftest.$ac_objext | |
38937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38938 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38939 | ac_status=$? |
ac1cb8d3 VS |
38940 | grep -v '^ *+' conftest.er1 >conftest.err |
38941 | rm -f conftest.er1 | |
38942 | cat conftest.err >&5 | |
a848cd7e SC |
38943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38944 | (exit $ac_status); } && | |
2cbbc68d RD |
38945 | { ac_try='test -z "$ac_c_werror_flag" |
38946 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38948 | (eval $ac_try) 2>&5 | |
38949 | ac_status=$? | |
38950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38951 | (exit $ac_status); }; } && | |
38952 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
38958 | ||
38959 | wx_cv_gcc31=yes | |
38960 | ||
38961 | else | |
38962 | echo "$as_me: failed program was:" >&5 | |
38963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38964 | ||
38965 | ||
38966 | wx_cv_gcc31=no | |
38967 | ||
38968 | ||
38969 | fi | |
ac1cb8d3 | 38970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38971 | |
38972 | fi | |
38973 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38974 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38975 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38976 | |
38977 | D='$' | |
38978 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38979 | #!/bin/sh |
38980 | #----------------------------------------------------------------------------- | |
38981 | #-- Name: distrib/mac/shared-ld-sh | |
38982 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38983 | #-- Author: Gilles Depeyrot | |
38984 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38985 | #-- Licence: any use permitted | |
38986 | #----------------------------------------------------------------------------- | |
38987 | ||
38988 | verbose=0 | |
38989 | args="" | |
38990 | objects="" | |
38991 | linking_flag="-dynamiclib" | |
38992 | ||
473276a9 VS |
38993 | while test ${D}# -gt 0; do |
38994 | case ${D}1 in | |
a848cd7e SC |
38995 | |
38996 | -v) | |
38997 | verbose=1 | |
38998 | ;; | |
38999 | ||
39000 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
39001 | # collect these options and values | |
473276a9 | 39002 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
39003 | shift |
39004 | ;; | |
39005 | ||
39006 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
39007 | # collect these options | |
473276a9 | 39008 | args="${D}{args} ${D}1" |
a848cd7e SC |
39009 | ;; |
39010 | ||
39011 | -dynamiclib|-bundle) | |
473276a9 | 39012 | linking_flag="${D}1" |
a848cd7e SC |
39013 | ;; |
39014 | ||
39015 | -*) | |
473276a9 | 39016 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
39017 | exit 1 |
39018 | ;; | |
39019 | ||
39020 | *.o | *.a | *.dylib) | |
39021 | # collect object files | |
473276a9 | 39022 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
39023 | ;; |
39024 | ||
39025 | *) | |
473276a9 | 39026 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
39027 | exit 1 |
39028 | ;; | |
39029 | ||
39030 | esac | |
39031 | shift | |
39032 | done | |
39033 | ||
39034 | # | |
39035 | # Link one module containing all the others | |
39036 | # | |
473276a9 VS |
39037 | if test ${D}{verbose} = 1; then |
39038 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 39039 | fi |
473276a9 VS |
39040 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
39041 | status=${D}? | |
39042 | if test ${D}{status} != 0; then | |
39043 | exit ${D}{status} | |
a848cd7e SC |
39044 | fi |
39045 | ||
39046 | # | |
39047 | # Link the shared library from the single module created | |
39048 | # | |
473276a9 VS |
39049 | if test ${D}{verbose} = 1; then |
39050 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 39051 | fi |
473276a9 VS |
39052 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
39053 | status=${D}? | |
39054 | if test ${D}{status} != 0; then | |
39055 | exit ${D}{status} | |
a848cd7e SC |
39056 | fi |
39057 | ||
39058 | # | |
39059 | # Remove intermediate module | |
39060 | # | |
473276a9 | 39061 | rm -f master.${D}${D}.o |
a848cd7e SC |
39062 | |
39063 | exit 0 | |
39064 | EOF | |
473276a9 | 39065 | |
a848cd7e SC |
39066 | chmod +x shared-ld-sh |
39067 | ||
39068 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
39069 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
39070 | SHARED_LD_CXX="$SHARED_LD_CC" | |
39071 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
39072 | else | |
39073 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39074 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
39075 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39076 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
39077 | fi | |
39078 | ||
39079 | PIC_FLAG="-dynamic -fPIC" | |
39080 | ;; | |
39081 | ||
39082 | *-*-aix* ) | |
39083 | if test "x$GCC" != "xyes"; then | |
39084 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
39085 | set dummy makeC++SharedLib; ac_word=$2 | |
39086 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39088 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
39089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39090 | else | |
39091 | if test -n "$AIX_CXX_LD"; then | |
39092 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
39093 | else | |
39094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39095 | for as_dir in $PATH | |
39096 | do | |
39097 | IFS=$as_save_IFS | |
39098 | test -z "$as_dir" && as_dir=. | |
39099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39100 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39101 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
39102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39103 | break 2 | |
39104 | fi | |
39105 | done | |
39106 | done | |
39107 | ||
39108 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
39109 | fi | |
39110 | fi | |
39111 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
39112 | if test -n "$AIX_CXX_LD"; then | |
39113 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
39114 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
39115 | else | |
39116 | echo "$as_me:$LINENO: result: no" >&5 | |
39117 | echo "${ECHO_T}no" >&6 | |
39118 | fi | |
39119 | ||
39120 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
39121 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
39122 | fi | |
39123 | ;; | |
39124 | ||
39125 | *-*-beos* ) | |
39126 | SHARED_LD_CC="${LD} -shared -o" | |
39127 | SHARED_LD_CXX="${LD} -shared -o" | |
39128 | ;; | |
39129 | ||
39130 | *-*-irix* ) | |
39131 | if test "x$GCC" != "xyes"; then | |
39132 | PIC_FLAG="-KPIC" | |
39133 | fi | |
39134 | ;; | |
39135 | ||
39136 | *-*-cygwin* | *-*-mingw32* ) | |
39137 | PIC_FLAG="" | |
39138 | ;; | |
39139 | ||
39140 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
39141 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
39142 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 39143 | PIC_FLAG="" |
473276a9 VS |
39144 | |
39145 | D='$' | |
39146 | cat <<EOF >dllar.sh | |
39147 | #!/bin/sh | |
39148 | # | |
39149 | # dllar - a tool to build both a .dll and an .a file | |
39150 | # from a set of object (.o) files for EMX/OS2. | |
39151 | # | |
39152 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
39153 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
39154 | # | |
39155 | # This script will accept a set of files on the command line. | |
39156 | # All the public symbols from the .o files will be exported into | |
39157 | # a .DEF file, then linker will be run (through gcc) against them to | |
39158 | # build a shared library consisting of all given .o files. All libraries | |
39159 | # (.a) will be first decompressed into component .o files then act as | |
39160 | # described above. You can optionally give a description (-d "description") | |
39161 | # which will be put into .DLL. To see the list of accepted options (as well | |
39162 | # as command-line format) simply run this program without options. The .DLL | |
39163 | # is built to be imported by name (there is no guarantee that new versions | |
39164 | # of the library you build will have same ordinals for same symbols). | |
39165 | # | |
39166 | # dllar is free software; you can redistribute it and/or modify | |
39167 | # it under the terms of the GNU General Public License as published by | |
39168 | # the Free Software Foundation; either version 2, or (at your option) | |
39169 | # any later version. | |
39170 | # | |
39171 | # dllar is distributed in the hope that it will be useful, | |
39172 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
39173 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39174 | # GNU General Public License for more details. | |
39175 | # | |
39176 | # You should have received a copy of the GNU General Public License | |
39177 | # along with dllar; see the file COPYING. If not, write to the Free | |
39178 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
39179 | # 02111-1307, USA. | |
39180 | ||
39181 | # To successfuly run this program you will need: | |
39182 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
39183 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
39184 | # - gcc | |
39185 | # (used to build the .dll) | |
39186 | # - emxexp | |
39187 | # (used to create .def file from .o files) | |
39188 | # - emximp | |
39189 | # (used to create .a file from .def file) | |
39190 | # - GNU text utilites (cat, sort, uniq) | |
39191 | # used to process emxexp output | |
39192 | # - GNU file utilities (mv, rm) | |
39193 | # - GNU sed | |
39194 | # - lxlite (optional, see flag below) | |
39195 | # (used for general .dll cleanup) | |
39196 | # | |
39197 | ||
39198 | flag_USE_LXLITE=1; | |
39199 | ||
39200 | # | |
39201 | # helper functions | |
39202 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
39203 | # second argument (suffix to remove) is given | |
39204 | basnam(){ | |
39205 | case ${D}# in | |
39206 | 1) | |
39207 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
39208 | ;; | |
39209 | 2) | |
39210 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
39211 | ;; | |
39212 | *) | |
39213 | echo "error in basnam ${D}*" | |
39214 | exit 8 | |
39215 | ;; | |
39216 | esac | |
39217 | } | |
39218 | ||
39219 | # Cleanup temporary files and output | |
39220 | CleanUp() { | |
39221 | cd ${D}curDir | |
39222 | for i in ${D}inputFiles ; do | |
39223 | case ${D}i in | |
39224 | *!) | |
39225 | rm -rf \`basnam ${D}i !\` | |
39226 | ;; | |
39227 | *) | |
39228 | ;; | |
39229 | esac | |
39230 | done | |
39231 | ||
39232 | # Kill result in case of failure as there is just to many stupid make/nmake | |
39233 | # things out there which doesn't do this. | |
2057db16 | 39234 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
39235 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
39236 | fi | |
39237 | } | |
39238 | ||
39239 | # Print usage and exit script with rc=1. | |
39240 | PrintHelp() { | |
2057db16 VS |
39241 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
39242 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
39243 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
39244 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
39245 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
39246 | echo '*> "output_file" should have no extension.' |
39247 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
39248 | echo ' The import library name is derived from this and is set to "name".a,' | |
39249 | echo ' unless overridden by -import' | |
39250 | echo '*> "importlib_name" should have no extension.' | |
39251 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
39252 | echo ' This name is used as the import library name and may be longer and' | |
39253 | echo ' more descriptive than the DLL name which has to follow the old ' | |
39254 | echo ' 8.3 convention of FAT.' | |
39255 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
39256 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
39257 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
39258 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
39259 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
39260 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
39261 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
39262 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 39263 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 39264 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 39265 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 39266 | echo ' C runtime DLLs.' |
2057db16 | 39267 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
39268 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
39269 | echo ' unchanged to GCC at the end of command line.' | |
39270 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
39271 | echo ' the basename for DLL and import library will be set to library name,' | |
39272 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
39273 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
39274 | echo ' library will be renamed into gcc_s.a.' | |
39275 | echo '--------' | |
39276 | echo 'Example:' | |
39277 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
39278 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
39279 | CleanUp | |
39280 | exit 1 | |
39281 | } | |
39282 | ||
39283 | # Execute a command. | |
39284 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
39285 | # @Uses Whatever CleanUp() uses. | |
39286 | doCommand() { | |
39287 | echo "${D}*" | |
39288 | eval ${D}* | |
39289 | rcCmd=${D}? | |
39290 | ||
2057db16 | 39291 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
39292 | echo "command failed, exit code="${D}rcCmd |
39293 | CleanUp | |
39294 | exit ${D}rcCmd | |
39295 | fi | |
39296 | } | |
39297 | ||
39298 | # main routine | |
39299 | # setup globals | |
39300 | cmdLine=${D}* | |
39301 | outFile="" | |
39302 | outimpFile="" | |
39303 | inputFiles="" | |
39304 | description="" | |
39305 | CC=gcc.exe | |
39306 | CFLAGS="-s -Zcrtdll" | |
39307 | EXTRA_CFLAGS="" | |
39308 | EXPORT_BY_ORDINALS=0 | |
39309 | exclude_symbols="" | |
39310 | library_flags="" | |
39311 | curDir=\`pwd\` | |
39312 | curDirS=curDir | |
39313 | case ${D}curDirS in | |
39314 | */) | |
39315 | ;; | |
39316 | *) | |
39317 | curDirS=${D}{curDirS}"/" | |
39318 | ;; | |
39319 | esac | |
39320 | # Parse commandline | |
39321 | libsToLink=0 | |
2057db16 | 39322 | while [] ${D}1 []; do |
473276a9 VS |
39323 | case ${D}1 in |
39324 | -ord*) | |
39325 | EXPORT_BY_ORDINALS=1; | |
39326 | ;; | |
39327 | -o*) | |
39328 | shift | |
39329 | outFile=${D}1 | |
39330 | ;; | |
39331 | -i*) | |
39332 | shift | |
39333 | outimpFile=${D}1 | |
39334 | ;; | |
39335 | -d*) | |
39336 | shift | |
39337 | description=${D}1 | |
39338 | ;; | |
39339 | -f*) | |
39340 | shift | |
39341 | CFLAGS=${D}1 | |
39342 | ;; | |
39343 | -c*) | |
39344 | shift | |
39345 | CC=${D}1 | |
39346 | ;; | |
39347 | -h*) | |
39348 | PrintHelp | |
39349 | ;; | |
39350 | -ex*) | |
39351 | shift | |
39352 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
39353 | ;; | |
39354 | -libf*) | |
39355 | shift | |
39356 | library_flags=${D}{library_flags}${D}1" " | |
39357 | ;; | |
39358 | -nocrt*) | |
39359 | CFLAGS="-s" | |
39360 | ;; | |
39361 | -nolxl*) | |
39362 | flag_USE_LXLITE=0 | |
39363 | ;; | |
39364 | -* | /*) | |
39365 | case ${D}1 in | |
39366 | -L* | -l*) | |
39367 | libsToLink=1 | |
39368 | ;; | |
39369 | *) | |
39370 | ;; | |
39371 | esac | |
39372 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39373 | ;; | |
39374 | *) | |
39375 | found=0; | |
2057db16 | 39376 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
39377 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39378 | else | |
39379 | for file in ${D}1 ; do | |
2057db16 | 39380 | if [] -f ${D}file []; then |
473276a9 VS |
39381 | inputFiles="${D}{inputFiles} ${D}file" |
39382 | found=1 | |
39383 | fi | |
39384 | done | |
2057db16 | 39385 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39386 | echo "ERROR: No file(s) found: "${D}1 |
39387 | exit 8 | |
39388 | fi | |
39389 | fi | |
39390 | ;; | |
39391 | esac | |
39392 | shift | |
39393 | done # iterate cmdline words | |
39394 | ||
39395 | # | |
2057db16 | 39396 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
39397 | echo "dllar: no input files" |
39398 | PrintHelp | |
39399 | fi | |
39400 | ||
39401 | # Now extract all .o files from .a files | |
39402 | newInputFiles="" | |
39403 | for file in ${D}inputFiles ; do | |
39404 | case ${D}file in | |
39405 | *.a | *.lib) | |
39406 | case ${D}file in | |
39407 | *.a) | |
39408 | suffix=".a" | |
39409 | AR="ar" | |
39410 | ;; | |
39411 | *.lib) | |
39412 | suffix=".lib" | |
39413 | AR="emxomfar" | |
39414 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39415 | ;; | |
39416 | *) | |
39417 | ;; | |
39418 | esac | |
39419 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39420 | mkdir ${D}dirname | |
2057db16 | 39421 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
39422 | echo "Failed to create subdirectory ./${D}dirname" |
39423 | CleanUp | |
39424 | exit 8; | |
39425 | fi | |
39426 | # Append '!' to indicate archive | |
39427 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39428 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39429 | cd ${D}curDir | |
39430 | found=0; | |
39431 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 39432 | if [] -f ${D}subfile []; then |
473276a9 | 39433 | found=1 |
2057db16 | 39434 | if [] -s ${D}subfile []; then |
473276a9 VS |
39435 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39436 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39437 | fi | |
39438 | fi | |
39439 | done | |
2057db16 | 39440 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39441 | echo "WARNING: there are no files in archive \'${D}file\'" |
39442 | fi | |
39443 | ;; | |
39444 | *) | |
39445 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39446 | ;; | |
39447 | esac | |
39448 | done | |
39449 | inputFiles="${D}newInputFiles" | |
39450 | ||
39451 | # Output filename(s). | |
39452 | do_backup=0; | |
2057db16 | 39453 | if [] -z ${D}outFile []; then |
473276a9 VS |
39454 | do_backup=1; |
39455 | set outFile ${D}inputFiles; outFile=${D}2 | |
39456 | fi | |
39457 | ||
39458 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39459 | case ${D}outFile in | |
39460 | *_%!) | |
39461 | outFile=\`basnam ${D}outFile _%!\` | |
39462 | ;; | |
39463 | *) | |
39464 | ;; | |
39465 | esac | |
39466 | case ${D}outFile in | |
39467 | *.dll) | |
39468 | outFile=\`basnam ${D}outFile .dll\` | |
39469 | ;; | |
39470 | *.DLL) | |
39471 | outFile=\`basnam ${D}outFile .DLL\` | |
39472 | ;; | |
39473 | *.o) | |
39474 | outFile=\`basnam ${D}outFile .o\` | |
39475 | ;; | |
39476 | *.obj) | |
39477 | outFile=\`basnam ${D}outFile .obj\` | |
39478 | ;; | |
39479 | *.a) | |
39480 | outFile=\`basnam ${D}outFile .a\` | |
39481 | ;; | |
39482 | *.lib) | |
39483 | outFile=\`basnam ${D}outFile .lib\` | |
39484 | ;; | |
39485 | *) | |
39486 | ;; | |
39487 | esac | |
39488 | case ${D}outimpFile in | |
39489 | *.a) | |
39490 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39491 | ;; | |
39492 | *.lib) | |
39493 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39494 | ;; | |
39495 | *) | |
39496 | ;; | |
39497 | esac | |
2057db16 | 39498 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
39499 | outimpFile=${D}outFile |
39500 | fi | |
39501 | defFile="${D}{outFile}.def" | |
39502 | arcFile="${D}{outimpFile}.a" | |
39503 | arcFile2="${D}{outimpFile}.lib" | |
39504 | dllFile="${D}outFile" | |
39505 | # Add suffix to dllFile later, first we need a version to use as | |
39506 | # name in .def file. | |
39507 | ||
2057db16 VS |
39508 | if [] ${D}do_backup -ne 0 [] ; then |
39509 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39510 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39511 | fi | |
2057db16 | 39512 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39513 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39514 | fi | |
39515 | fi | |
39516 | ||
39517 | # Extract public symbols from all the object files. | |
39518 | tmpdefFile=${D}{defFile}_% | |
39519 | rm -f ${D}tmpdefFile | |
39520 | for file in ${D}inputFiles ; do | |
39521 | case ${D}file in | |
39522 | *!) | |
39523 | ;; | |
39524 | *) | |
39525 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39526 | ;; | |
39527 | esac | |
39528 | done | |
39529 | ||
39530 | # Create the def file. | |
39531 | rm -f ${D}defFile | |
39532 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39533 | dllFile="${D}dllFile.dll" | |
2057db16 | 39534 | if [] -n ${D}description []; then |
473276a9 VS |
39535 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39536 | fi | |
39537 | echo "EXPORTS" >> ${D}defFile | |
39538 | ||
39539 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39540 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39541 | ||
39542 | # Checks if the export is ok or not. | |
39543 | for word in ${D}exclude_symbols; do | |
39544 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39545 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39546 | done | |
39547 | ||
39548 | ||
2057db16 | 39549 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39550 | sed "=" < ${D}tmpdefFile | \ |
39551 | sed ' | |
39552 | N | |
39553 | : loop | |
2057db16 | 39554 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39555 | t loop |
39556 | ' > ${D}{tmpdefFile}% | |
39557 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39558 | else | |
39559 | rm -f ${D}{tmpdefFile}% | |
39560 | fi | |
39561 | cat ${D}tmpdefFile >> ${D}defFile | |
39562 | rm -f ${D}tmpdefFile | |
39563 | ||
39564 | # Do linking, create implib, and apply lxlite. | |
39565 | gccCmdl=""; | |
39566 | for file in ${D}inputFiles ; do | |
39567 | case ${D}file in | |
39568 | *!) | |
39569 | ;; | |
39570 | *) | |
39571 | gccCmdl="${D}gccCmdl ${D}file" | |
39572 | ;; | |
39573 | esac | |
39574 | done | |
39575 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39576 | touch "${D}{outFile}.dll" | |
39577 | ||
39578 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39579 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39580 | add_flags=""; |
2057db16 | 39581 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39582 | add_flags="-ynd" |
39583 | fi | |
39584 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39585 | fi | |
39586 | doCommand "emxomf -s -l ${D}arcFile" | |
39587 | ||
39588 | # Successful exit. | |
39589 | CleanUp 1 | |
39590 | exit 0 | |
39591 | EOF | |
39592 | ||
39593 | chmod +x dllar.sh | |
a848cd7e SC |
39594 | ;; |
39595 | ||
39596 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39597 | *-*-sunos4* | \ | |
39598 | *-*-osf* | \ | |
39599 | *-*-dgux5* | \ | |
39600 | *-*-sysv5* ) | |
39601 | ;; | |
39602 | ||
39603 | *) | |
39604 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39605 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39606 | { (exit 1); exit 1; }; } | |
39607 | esac | |
39608 | ||
2057db16 VS |
39609 | if test "x$PIC_FLAG" != "x" ; then |
39610 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39611 | fi | |
39612 | ||
a848cd7e SC |
39613 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39614 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39615 | fi | |
39616 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39617 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39618 | fi | |
39619 | ||
39620 | ||
39621 | ||
39622 | ||
39623 | ||
39624 | ||
39625 | ||
39626 | ||
39627 | USE_SOVERSION=0 | |
39628 | USE_SOVERLINUX=0 | |
39629 | USE_SOVERSOLARIS=0 | |
39630 | USE_SOSYMLINKS=0 | |
39631 | USE_MACVERSION=0 | |
39632 | SONAME_FLAG= | |
39633 | ||
39634 | case "${BAKEFILE_HOST}" in | |
39635 | *-*-linux* ) | |
39636 | SONAME_FLAG="-Wl,-soname," | |
39637 | USE_SOVERSION=1 | |
39638 | USE_SOVERLINUX=1 | |
39639 | USE_SOSYMLINKS=1 | |
39640 | ;; | |
39641 | ||
39642 | *-*-solaris2* ) | |
39643 | SONAME_FLAG="-h " | |
39644 | USE_SOVERSION=1 | |
39645 | USE_SOVERSOLARIS=1 | |
39646 | USE_SOSYMLINKS=1 | |
39647 | ;; | |
39648 | ||
39649 | *-*-darwin* ) | |
39650 | USE_MACVERSION=1 | |
39651 | USE_SOVERSION=1 | |
39652 | USE_SOSYMLINKS=1 | |
39653 | ;; | |
39654 | esac | |
39655 | ||
39656 | ||
39657 | ||
39658 | ||
39659 | ||
39660 | ||
39661 | ||
39662 | ||
39663 | ||
39664 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39665 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39666 | DEPS_TRACKING=0 | |
39667 | ||
39668 | if test "x$GCC" = "xyes"; then | |
39669 | DEPSMODE=gcc | |
39670 | DEPS_TRACKING=1 | |
39671 | case "${BAKEFILE_HOST}" in | |
39672 | powerpc-*-darwin* ) | |
39673 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39674 | ;; | |
39675 | * ) | |
39676 | DEPSFLAG_GCC="-MMD" | |
39677 | ;; | |
39678 | esac | |
39679 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39680 | echo "${ECHO_T}gcc" >&6 | |
39681 | else | |
39682 | echo "$as_me:$LINENO: result: none" >&5 | |
39683 | echo "${ECHO_T}none" >&6 | |
39684 | fi | |
39685 | ||
39686 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39687 | |
39688 | D='$' | |
39689 | cat <<EOF >bk-deps | |
a848cd7e SC |
39690 | #!/bin/sh |
39691 | ||
39692 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39693 | # script. It is used to track C/C++ files dependencies in portable way. | |
39694 | # | |
39695 | # Permission is given to use this file in any way. | |
39696 | ||
473276a9 | 39697 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39698 | DEPSDIR=.deps |
473276a9 | 39699 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39700 | |
473276a9 | 39701 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39702 | |
473276a9 VS |
39703 | if test ${D}DEPSMODE = gcc ; then |
39704 | ${D}* ${D}{DEPSFLAG_GCC} | |
39705 | status=${D}? | |
39706 | if test ${D}{status} != 0 ; then | |
39707 | exit ${D}{status} | |
a848cd7e SC |
39708 | fi |
39709 | # move created file to the location we want it in: | |
473276a9 VS |
39710 | while test ${D}# -gt 0; do |
39711 | case "${D}1" in | |
a848cd7e SC |
39712 | -o ) |
39713 | shift | |
473276a9 | 39714 | objfile=${D}1 |
a848cd7e SC |
39715 | ;; |
39716 | -* ) | |
39717 | ;; | |
39718 | * ) | |
473276a9 | 39719 | srcfile=${D}1 |
a848cd7e SC |
39720 | ;; |
39721 | esac | |
39722 | shift | |
39723 | done | |
473276a9 VS |
39724 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39725 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39726 | if test -f ${D}depfile ; then | |
39727 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39728 | rm -f ${D}depfile | |
a848cd7e | 39729 | else |
473276a9 VS |
39730 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39731 | if test -f ${D}depfile ; then | |
39732 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39733 | rm -f ${D}depfile | |
a848cd7e SC |
39734 | fi |
39735 | fi | |
39736 | exit 0 | |
39737 | else | |
473276a9 VS |
39738 | ${D}* |
39739 | exit ${D}? | |
a848cd7e SC |
39740 | fi |
39741 | EOF | |
473276a9 | 39742 | |
a848cd7e SC |
39743 | chmod +x bk-deps |
39744 | fi | |
39745 | ||
39746 | ||
39747 | ||
39748 | ||
39749 | RESCOMP= | |
39750 | SETFILE= | |
39751 | ||
39752 | case ${BAKEFILE_HOST} in | |
39753 | *-*-cygwin* | *-*-mingw32* ) | |
39754 | if test "$build" != "$host" ; then | |
39755 | RESCOMP=$host_alias-windres | |
39756 | else | |
39757 | # Extract the first word of "windres", so it can be a program name with args. | |
39758 | set dummy windres; ac_word=$2 | |
39759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39761 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39763 | else | |
39764 | if test -n "$RESCOMP"; then | |
39765 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39766 | else | |
39767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39768 | for as_dir in $PATH | |
39769 | do | |
39770 | IFS=$as_save_IFS | |
39771 | test -z "$as_dir" && as_dir=. | |
39772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39774 | ac_cv_prog_RESCOMP="windres" | |
39775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39776 | break 2 | |
39777 | fi | |
39778 | done | |
39779 | done | |
39780 | ||
39781 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39782 | fi | |
39783 | fi | |
39784 | RESCOMP=$ac_cv_prog_RESCOMP | |
39785 | if test -n "$RESCOMP"; then | |
39786 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39787 | echo "${ECHO_T}$RESCOMP" >&6 | |
39788 | else | |
39789 | echo "$as_me:$LINENO: result: no" >&5 | |
39790 | echo "${ECHO_T}no" >&6 | |
39791 | fi | |
39792 | ||
39793 | fi | |
39794 | ;; | |
39795 | ||
39796 | *-*-darwin* ) | |
39797 | # Extract the first word of "Rez", so it can be a program name with args. | |
39798 | set dummy Rez; ac_word=$2 | |
39799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39801 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39803 | else | |
39804 | if test -n "$RESCOMP"; then | |
39805 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39806 | else | |
39807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39808 | for as_dir in $PATH | |
39809 | do | |
39810 | IFS=$as_save_IFS | |
39811 | test -z "$as_dir" && as_dir=. | |
39812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39814 | ac_cv_prog_RESCOMP="Rez" | |
39815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39816 | break 2 | |
39817 | fi | |
39818 | done | |
39819 | done | |
39820 | ||
39821 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39822 | fi | |
39823 | fi | |
39824 | RESCOMP=$ac_cv_prog_RESCOMP | |
39825 | if test -n "$RESCOMP"; then | |
39826 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39827 | echo "${ECHO_T}$RESCOMP" >&6 | |
39828 | else | |
39829 | echo "$as_me:$LINENO: result: no" >&5 | |
39830 | echo "${ECHO_T}no" >&6 | |
39831 | fi | |
39832 | ||
39833 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39834 | set dummy SetFile; ac_word=$2 | |
39835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39837 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39839 | else | |
39840 | if test -n "$SETFILE"; then | |
39841 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39842 | else | |
39843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39844 | for as_dir in $PATH | |
39845 | do | |
39846 | IFS=$as_save_IFS | |
39847 | test -z "$as_dir" && as_dir=. | |
39848 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39850 | ac_cv_prog_SETFILE="SetFile" | |
39851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39852 | break 2 | |
39853 | fi | |
39854 | done | |
39855 | done | |
39856 | ||
39857 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39858 | fi | |
39859 | fi | |
39860 | SETFILE=$ac_cv_prog_SETFILE | |
39861 | if test -n "$SETFILE"; then | |
39862 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39863 | echo "${ECHO_T}$SETFILE" >&6 | |
39864 | else | |
39865 | echo "$as_me:$LINENO: result: no" >&5 | |
39866 | echo "${ECHO_T}no" >&6 | |
39867 | fi | |
39868 | ||
39869 | ;; | |
39870 | esac | |
39871 | ||
39872 | ||
39873 | ||
39874 | ||
39875 | ||
2057db16 | 39876 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39877 | |
dcc1b6ad | 39878 | |
a49baeab | 39879 | |
9f45f08e | 39880 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39881 | |
646b6ec1 | 39882 | |
74b84332 | 39883 | |
a848cd7e SC |
39884 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39885 | if test "${enable_precomp_headers+set}" = set; then | |
39886 | enableval="$enable_precomp_headers" | |
39887 | bk_use_pch="$enableval" | |
39888 | fi; | |
39889 | ||
39890 | GCC_PCH=0 | |
39891 | ||
39892 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39893 | if test "x$GCC" = "xyes"; then | |
39894 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39895 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39896 | cat >conftest.$ac_ext <<_ACEOF | |
39897 | /* confdefs.h. */ | |
39898 | _ACEOF | |
39899 | cat confdefs.h >>conftest.$ac_ext | |
39900 | cat >>conftest.$ac_ext <<_ACEOF | |
39901 | /* end confdefs.h. */ | |
39902 | ||
39903 | int | |
39904 | main () | |
39905 | { | |
39906 | ||
39907 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39908 | #error "no pch support" | |
39909 | #endif | |
39910 | #if (__GNUC__ < 3) | |
39911 | #error "no pch support" | |
39912 | #endif | |
39913 | #if (__GNUC__ == 3) && \ | |
39914 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39915 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39916 | #error "no pch support" | |
39917 | #endif | |
39918 | ||
39919 | ; | |
39920 | return 0; | |
39921 | } | |
39922 | _ACEOF | |
39923 | rm -f conftest.$ac_objext | |
39924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39925 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39926 | ac_status=$? |
ac1cb8d3 VS |
39927 | grep -v '^ *+' conftest.er1 >conftest.err |
39928 | rm -f conftest.er1 | |
39929 | cat conftest.err >&5 | |
a848cd7e SC |
39930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39931 | (exit $ac_status); } && | |
2cbbc68d RD |
39932 | { ac_try='test -z "$ac_c_werror_flag" |
39933 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39935 | (eval $ac_try) 2>&5 | |
39936 | ac_status=$? | |
39937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39938 | (exit $ac_status); }; } && | |
39939 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39941 | (eval $ac_try) 2>&5 | |
39942 | ac_status=$? | |
39943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39944 | (exit $ac_status); }; }; then | |
39945 | ||
39946 | echo "$as_me:$LINENO: result: yes" >&5 | |
39947 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
39948 | GCC_PCH=1 |
39949 | ||
39950 | else | |
39951 | echo "$as_me: failed program was:" >&5 | |
39952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39953 | ||
39954 | ||
39955 | echo "$as_me:$LINENO: result: no" >&5 | |
39956 | echo "${ECHO_T}no" >&6 | |
39957 | ||
39958 | fi | |
ac1cb8d3 | 39959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39960 | if test $GCC_PCH = 1 ; then |
39961 | cat <<EOF >bk-make-pch | |
39962 | #!/bin/sh | |
39963 | ||
39964 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39965 | # script. It is used to generated precompiled headers. | |
39966 | # | |
39967 | # Permission is given to use this file in any way. | |
39968 | ||
39969 | outfile="\${1}" | |
39970 | header="\${2}" | |
39971 | shift | |
39972 | shift | |
39973 | ||
39974 | compiler= | |
39975 | headerfile= | |
39976 | while test \${#} -gt 0; do | |
39977 | case "\${1}" in | |
39978 | -I* ) | |
39979 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39980 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39981 | headerfile="\${incdir}/\${header}" | |
39982 | fi | |
39983 | ;; | |
39984 | esac | |
39985 | compiler="\${compiler} \${1}" | |
39986 | shift | |
39987 | done | |
39988 | ||
39989 | if test "x\${headerfile}" = "x" ; then | |
39990 | echo "error: can't find header \${header} in include paths" >2 | |
39991 | else | |
39992 | if test -f \${outfile} ; then | |
39993 | rm -f \${outfile} | |
39994 | else | |
39995 | mkdir -p \`dirname \${outfile}\` | |
39996 | fi | |
39997 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39998 | mkdir -p .deps | |
39999 | # can do this because gcc is >= 3.4: | |
40000 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
40001 | exit \${?} | |
40002 | fi | |
40003 | EOF | |
40004 | chmod +x bk-make-pch | |
40005 | fi | |
40006 | fi | |
40007 | fi | |
40008 | ||
40009 | ||
40010 | ||
40011 | ||
40012 | ||
dcc1b6ad VS |
40013 | |
40014 | ||
40015 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
40016 | if test "${enable_precomp_headers+set}" = set; then | |
40017 | enableval="$enable_precomp_headers" | |
40018 | bk_use_pch="$enableval" | |
40019 | fi; | |
40020 | ||
40021 | GCC_PCH=0 | |
40022 | ||
40023 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
40024 | if test "x$GCC" = "xyes"; then | |
40025 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
40026 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
40027 | cat >conftest.$ac_ext <<_ACEOF | |
40028 | /* confdefs.h. */ | |
40029 | _ACEOF | |
40030 | cat confdefs.h >>conftest.$ac_ext | |
40031 | cat >>conftest.$ac_ext <<_ACEOF | |
40032 | /* end confdefs.h. */ | |
40033 | ||
40034 | int | |
40035 | main () | |
40036 | { | |
40037 | ||
40038 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
40039 | #error "no pch support" | |
40040 | #endif | |
40041 | #if (__GNUC__ < 3) | |
40042 | #error "no pch support" | |
40043 | #endif | |
40044 | #if (__GNUC__ == 3) && \ | |
40045 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
40046 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
40047 | #error "no pch support" | |
40048 | #endif | |
40049 | ||
40050 | ; | |
40051 | return 0; | |
40052 | } | |
40053 | _ACEOF | |
40054 | rm -f conftest.$ac_objext | |
40055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40056 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 40057 | ac_status=$? |
ac1cb8d3 VS |
40058 | grep -v '^ *+' conftest.er1 >conftest.err |
40059 | rm -f conftest.er1 | |
40060 | cat conftest.err >&5 | |
dcc1b6ad VS |
40061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40062 | (exit $ac_status); } && | |
2cbbc68d RD |
40063 | { ac_try='test -z "$ac_c_werror_flag" |
40064 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40066 | (eval $ac_try) 2>&5 | |
40067 | ac_status=$? | |
40068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40069 | (exit $ac_status); }; } && | |
40070 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
40071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40072 | (eval $ac_try) 2>&5 | |
40073 | ac_status=$? | |
40074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40075 | (exit $ac_status); }; }; then | |
40076 | ||
40077 | echo "$as_me:$LINENO: result: yes" >&5 | |
40078 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
40079 | GCC_PCH=1 |
40080 | ||
40081 | else | |
40082 | echo "$as_me: failed program was:" >&5 | |
40083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40084 | ||
40085 | ||
40086 | echo "$as_me:$LINENO: result: no" >&5 | |
40087 | echo "${ECHO_T}no" >&6 | |
40088 | ||
40089 | fi | |
ac1cb8d3 | 40090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
40091 | if test $GCC_PCH = 1 ; then |
40092 | cat <<EOF >bk-make-pch | |
40093 | #!/bin/sh | |
40094 | ||
40095 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40096 | # script. It is used to generated precompiled headers. | |
40097 | # | |
40098 | # Permission is given to use this file in any way. | |
40099 | ||
40100 | outfile="\${1}" | |
40101 | header="\${2}" | |
40102 | shift | |
40103 | shift | |
40104 | ||
40105 | compiler= | |
40106 | headerfile= | |
40107 | while test \${#} -gt 0; do | |
40108 | case "\${1}" in | |
40109 | -I* ) | |
40110 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
40111 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
40112 | headerfile="\${incdir}/\${header}" | |
40113 | fi | |
40114 | ;; | |
40115 | esac | |
40116 | compiler="\${compiler} \${1}" | |
40117 | shift | |
40118 | done | |
40119 | ||
40120 | if test "x\${headerfile}" = "x" ; then | |
40121 | echo "error: can't find header \${header} in include paths" >2 | |
40122 | else | |
40123 | if test -f \${outfile} ; then | |
40124 | rm -f \${outfile} | |
40125 | else | |
40126 | mkdir -p \`dirname \${outfile}\` | |
40127 | fi | |
40128 | depsfile=".deps/\`basename \${outfile}\`.d" | |
40129 | mkdir -p .deps | |
40130 | # can do this because gcc is >= 3.4: | |
40131 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
40132 | exit \${?} | |
40133 | fi | |
40134 | EOF | |
40135 | chmod +x bk-make-pch | |
40136 | fi | |
40137 | fi | |
40138 | fi | |
40139 | ||
40140 | ||
40141 | ||
a848cd7e SC |
40142 | COND_BUILD_DEBUG="#" |
40143 | if test "x$BUILD" = "xdebug" ; then | |
40144 | COND_BUILD_DEBUG="" | |
40145 | fi | |
40146 | ||
40147 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40148 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40149 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40150 | fi | |
40151 | ||
40152 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40153 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40154 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40155 | fi | |
40156 | ||
40157 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40158 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40159 | COND_BUILD_DEBUG_UNICODE_0="" | |
40160 | fi | |
40161 | ||
40162 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40163 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40164 | COND_BUILD_DEBUG_UNICODE_1="" | |
40165 | fi | |
40166 | ||
40167 | COND_BUILD_RELEASE="#" | |
40168 | if test "x$BUILD" = "xrelease" ; then | |
40169 | COND_BUILD_RELEASE="" | |
40170 | fi | |
40171 | ||
40172 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40173 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40174 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40175 | fi | |
40176 | ||
40177 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40178 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40179 | COND_BUILD_RELEASE_UNICODE_0="" | |
40180 | fi | |
40181 | ||
40182 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40183 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40184 | COND_BUILD_RELEASE_UNICODE_1="" | |
40185 | fi | |
40186 | ||
40187 | COND_DEBUG_FLAG_1="#" | |
40188 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40189 | COND_DEBUG_FLAG_1="" | |
40190 | fi | |
40191 | ||
40192 | COND_DEBUG_INFO_0="#" | |
40193 | if test "x$DEBUG_INFO" = "x0" ; then | |
40194 | COND_DEBUG_INFO_0="" | |
40195 | fi | |
40196 | ||
40197 | COND_DEBUG_INFO_1="#" | |
40198 | if test "x$DEBUG_INFO" = "x1" ; then | |
40199 | COND_DEBUG_INFO_1="" | |
40200 | fi | |
40201 | ||
40202 | COND_DEPS_TRACKING_0="#" | |
40203 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40204 | COND_DEPS_TRACKING_0="" | |
40205 | fi | |
40206 | ||
40207 | COND_DEPS_TRACKING_1="#" | |
40208 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40209 | COND_DEPS_TRACKING_1="" | |
40210 | fi | |
40211 | ||
40212 | COND_GCC_PCH_1="#" | |
40213 | if test "x$GCC_PCH" = "x1" ; then | |
40214 | COND_GCC_PCH_1="" | |
40215 | fi | |
40216 | ||
40217 | COND_MONOLITHIC_0="#" | |
40218 | if test "x$MONOLITHIC" = "x0" ; then | |
40219 | COND_MONOLITHIC_0="" | |
40220 | fi | |
40221 | ||
40222 | COND_MONOLITHIC_0_SHARED_0="#" | |
40223 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40224 | COND_MONOLITHIC_0_SHARED_0="" | |
40225 | fi | |
40226 | ||
40227 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40228 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40229 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40230 | fi | |
40231 | ||
40232 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40233 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40234 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40235 | fi | |
40236 | ||
40237 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40238 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40239 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40240 | fi | |
40241 | ||
40242 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40243 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40244 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40245 | fi | |
40246 | ||
ceec2216 RL |
40247 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40248 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40249 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40250 | fi | |
40251 | ||
a848cd7e SC |
40252 | COND_MONOLITHIC_0_SHARED_1="#" |
40253 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40254 | COND_MONOLITHIC_0_SHARED_1="" | |
40255 | fi | |
40256 | ||
40257 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40258 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40259 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40260 | fi | |
40261 | ||
40262 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40263 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40264 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40265 | fi | |
40266 | ||
40267 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40268 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40269 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40270 | fi | |
40271 | ||
40272 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40273 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40274 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40275 | fi | |
40276 | ||
ceec2216 RL |
40277 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40278 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40279 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40280 | fi | |
40281 | ||
a848cd7e SC |
40282 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40283 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40284 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40285 | fi | |
40286 | ||
40287 | COND_MONOLITHIC_1="#" | |
40288 | if test "x$MONOLITHIC" = "x1" ; then | |
40289 | COND_MONOLITHIC_1="" | |
40290 | fi | |
40291 | ||
40292 | COND_MONOLITHIC_1_SHARED_0="#" | |
40293 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40294 | COND_MONOLITHIC_1_SHARED_0="" | |
40295 | fi | |
40296 | ||
40297 | COND_MONOLITHIC_1_SHARED_1="#" | |
40298 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40299 | COND_MONOLITHIC_1_SHARED_1="" | |
40300 | fi | |
40301 | ||
40302 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40303 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40304 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40305 | fi | |
40306 | ||
40307 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40308 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40309 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40310 | fi | |
40311 | ||
40312 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40313 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40314 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40315 | fi | |
40316 | ||
40317 | COND_PLATFORM_MACOSX_1="#" | |
40318 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40319 | COND_PLATFORM_MACOSX_1="" | |
40320 | fi | |
40321 | ||
a30f955f VS |
40322 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
40323 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
40324 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
40325 | fi | |
40326 | ||
a848cd7e SC |
40327 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
40328 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40329 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40330 | fi | |
40331 | ||
40332 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40333 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40334 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40335 | fi | |
40336 | ||
40337 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40338 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40339 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40340 | fi | |
40341 | ||
ebee3cd0 VS |
40342 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40343 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40344 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40345 | fi | |
40346 | ||
40347 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40348 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40349 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40350 | fi | |
40351 | ||
a848cd7e SC |
40352 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40353 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40354 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40355 | fi | |
40356 | ||
40357 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40358 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40359 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40360 | fi | |
40361 | ||
b48a2016 DE |
40362 | COND_PLATFORM_MACOS_1="#" |
40363 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
40364 | COND_PLATFORM_MACOS_1="" | |
40365 | fi | |
40366 | ||
a848cd7e SC |
40367 | COND_PLATFORM_MAC_1="#" |
40368 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40369 | COND_PLATFORM_MAC_1="" | |
40370 | fi | |
40371 | ||
40372 | COND_PLATFORM_OS2_1="#" | |
40373 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40374 | COND_PLATFORM_OS2_1="" | |
40375 | fi | |
40376 | ||
40377 | COND_PLATFORM_UNIX_0="#" | |
40378 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40379 | COND_PLATFORM_UNIX_0="" | |
40380 | fi | |
40381 | ||
40382 | COND_PLATFORM_UNIX_1="#" | |
40383 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40384 | COND_PLATFORM_UNIX_1="" | |
40385 | fi | |
40386 | ||
40387 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40388 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40389 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40390 | fi | |
40391 | ||
40392 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40393 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40394 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40395 | fi | |
40396 | ||
40397 | COND_PLATFORM_WIN32_0="#" | |
40398 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40399 | COND_PLATFORM_WIN32_0="" | |
40400 | fi | |
40401 | ||
40402 | COND_PLATFORM_WIN32_1="#" | |
40403 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40404 | COND_PLATFORM_WIN32_1="" | |
40405 | fi | |
40406 | ||
40407 | COND_SHARED_0="#" | |
40408 | if test "x$SHARED" = "x0" ; then | |
40409 | COND_SHARED_0="" | |
40410 | fi | |
40411 | ||
ceec2216 RL |
40412 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
40413 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40414 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
40415 | fi | |
40416 | ||
40417 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
40418 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40419 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
40420 | fi | |
40421 | ||
40422 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
40423 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40424 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
40425 | fi | |
40426 | ||
a848cd7e SC |
40427 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
40428 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40429 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40430 | fi | |
40431 | ||
40432 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40433 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40434 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40435 | fi | |
40436 | ||
40437 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40438 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40439 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40440 | fi | |
40441 | ||
40442 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40443 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40444 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40445 | fi | |
40446 | ||
40447 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40448 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40449 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40450 | fi | |
40451 | ||
40452 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40453 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40454 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40455 | fi | |
40456 | ||
40457 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40458 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40459 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40460 | fi | |
40461 | ||
40462 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40463 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40464 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40465 | fi | |
40466 | ||
40467 | COND_SHARED_1="#" | |
40468 | if test "x$SHARED" = "x1" ; then | |
40469 | COND_SHARED_1="" | |
40470 | fi | |
40471 | ||
40472 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40473 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40474 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40475 | fi | |
40476 | ||
a30f955f VS |
40477 | COND_TOOLKIT_="#" |
40478 | if test "x$TOOLKIT" = "x" ; then | |
40479 | COND_TOOLKIT_="" | |
40480 | fi | |
40481 | ||
a848cd7e SC |
40482 | COND_TOOLKIT_COCOA="#" |
40483 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40484 | COND_TOOLKIT_COCOA="" | |
40485 | fi | |
40486 | ||
a49baeab DE |
40487 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
40488 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
40489 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
40490 | fi | |
40491 | ||
a848cd7e SC |
40492 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
40493 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40494 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40495 | fi | |
40496 | ||
40497 | COND_TOOLKIT_GTK="#" | |
40498 | if test "x$TOOLKIT" = "xGTK" ; then | |
40499 | COND_TOOLKIT_GTK="" | |
40500 | fi | |
40501 | ||
40502 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40503 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40504 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40505 | fi | |
40506 | ||
40507 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40508 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40509 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40510 | fi | |
40511 | ||
40512 | COND_TOOLKIT_MAC="#" | |
40513 | if test "x$TOOLKIT" = "xMAC" ; then | |
40514 | COND_TOOLKIT_MAC="" | |
40515 | fi | |
40516 | ||
40517 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40518 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40519 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40520 | fi | |
40521 | ||
40522 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40523 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40524 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40525 | fi | |
40526 | ||
40527 | COND_TOOLKIT_MGL="#" | |
40528 | if test "x$TOOLKIT" = "xMGL" ; then | |
40529 | COND_TOOLKIT_MGL="" | |
40530 | fi | |
40531 | ||
40532 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40533 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40534 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40535 | fi | |
40536 | ||
40537 | COND_TOOLKIT_MOTIF="#" | |
40538 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40539 | COND_TOOLKIT_MOTIF="" | |
40540 | fi | |
40541 | ||
40542 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40543 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40544 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40545 | fi | |
40546 | ||
40547 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40548 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40549 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40550 | fi | |
40551 | ||
40552 | COND_TOOLKIT_MSW="#" | |
40553 | if test "x$TOOLKIT" = "xMSW" ; then | |
40554 | COND_TOOLKIT_MSW="" | |
40555 | fi | |
40556 | ||
40557 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40558 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40559 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40560 | fi | |
40561 | ||
40562 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40563 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40564 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40565 | fi | |
40566 | ||
40567 | COND_TOOLKIT_PM="#" | |
40568 | if test "x$TOOLKIT" = "xPM" ; then | |
40569 | COND_TOOLKIT_PM="" | |
40570 | fi | |
40571 | ||
40572 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40573 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40574 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40575 | fi | |
40576 | ||
40577 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40578 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40579 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40580 | fi | |
40581 | ||
3fd9c298 DE |
40582 | COND_TOOLKIT_WINCE="#" |
40583 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40584 | COND_TOOLKIT_WINCE="" | |
40585 | fi | |
40586 | ||
40587 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40588 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40589 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40590 | fi | |
40591 | ||
40592 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40593 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40594 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40595 | fi | |
40596 | ||
a848cd7e SC |
40597 | COND_TOOLKIT_X11="#" |
40598 | if test "x$TOOLKIT" = "xX11" ; then | |
40599 | COND_TOOLKIT_X11="" | |
40600 | fi | |
40601 | ||
40602 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40603 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40604 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40605 | fi | |
40606 | ||
40607 | COND_UNICODE_1="#" | |
40608 | if test "x$UNICODE" = "x1" ; then | |
40609 | COND_UNICODE_1="" | |
40610 | fi | |
40611 | ||
40612 | COND_USE_EXCEPTIONS_0="#" | |
40613 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40614 | COND_USE_EXCEPTIONS_0="" | |
40615 | fi | |
40616 | ||
40617 | COND_USE_EXCEPTIONS_1="#" | |
40618 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40619 | COND_USE_EXCEPTIONS_1="" | |
40620 | fi | |
40621 | ||
40622 | COND_USE_GUI_0="#" | |
40623 | if test "x$USE_GUI" = "x0" ; then | |
40624 | COND_USE_GUI_0="" | |
40625 | fi | |
40626 | ||
40627 | COND_USE_GUI_1="#" | |
40628 | if test "x$USE_GUI" = "x1" ; then | |
40629 | COND_USE_GUI_1="" | |
40630 | fi | |
40631 | ||
40632 | COND_USE_GUI_1_WXUNIV_0="#" | |
40633 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40634 | COND_USE_GUI_1_WXUNIV_0="" | |
40635 | fi | |
40636 | ||
40637 | COND_USE_GUI_1_WXUNIV_1="#" | |
40638 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40639 | COND_USE_GUI_1_WXUNIV_1="" | |
40640 | fi | |
40641 | ||
40642 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40643 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40644 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40645 | fi | |
40646 | ||
40647 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40648 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40649 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40650 | fi | |
40651 | ||
40652 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40653 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40654 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40655 | fi | |
40656 | ||
ceec2216 RL |
40657 | COND_USE_ODBC_1="#" |
40658 | if test "x$USE_ODBC" = "x1" ; then | |
40659 | COND_USE_ODBC_1="" | |
40660 | fi | |
40661 | ||
ffa0583f RL |
40662 | COND_USE_OPENGL_1="#" |
40663 | if test "x$USE_OPENGL" = "x1" ; then | |
40664 | COND_USE_OPENGL_1="" | |
40665 | fi | |
40666 | ||
a848cd7e SC |
40667 | COND_USE_PLUGINS_0="#" |
40668 | if test "x$USE_PLUGINS" = "x0" ; then | |
40669 | COND_USE_PLUGINS_0="" | |
40670 | fi | |
40671 | ||
40672 | COND_USE_SOSYMLINKS_1="#" | |
40673 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40674 | COND_USE_SOSYMLINKS_1="" | |
40675 | fi | |
40676 | ||
40677 | COND_USE_SOVERLINUX_1="#" | |
40678 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40679 | COND_USE_SOVERLINUX_1="" | |
40680 | fi | |
40681 | ||
40682 | COND_USE_SOVERSION_0="#" | |
40683 | if test "x$USE_SOVERSION" = "x0" ; then | |
40684 | COND_USE_SOVERSION_0="" | |
40685 | fi | |
40686 | ||
40687 | COND_USE_SOVERSOLARIS_1="#" | |
40688 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40689 | COND_USE_SOVERSOLARIS_1="" | |
40690 | fi | |
40691 | ||
a13a7f89 RL |
40692 | COND_USE_XRC_1="#" |
40693 | if test "x$USE_XRC" = "x1" ; then | |
40694 | COND_USE_XRC_1="" | |
40695 | fi | |
40696 | ||
a848cd7e SC |
40697 | COND_WITH_PLUGIN_SDL_1="#" |
40698 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40699 | COND_WITH_PLUGIN_SDL_1="" | |
40700 | fi | |
40701 | ||
a848cd7e SC |
40702 | COND_WXUNIV_1="#" |
40703 | if test "x$WXUNIV" = "x1" ; then | |
40704 | COND_WXUNIV_1="" | |
40705 | fi | |
40706 | ||
40707 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40708 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40709 | COND_WXUSE_EXPAT_BUILTIN="" | |
40710 | fi | |
40711 | ||
40712 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40713 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40714 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40715 | fi | |
40716 | ||
40717 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40718 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40719 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40720 | fi | |
40721 | ||
40722 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40723 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40724 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40725 | fi | |
40726 | ||
40727 | COND_WXUSE_ODBC_BUILTIN="#" | |
40728 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40729 | COND_WXUSE_ODBC_BUILTIN="" | |
40730 | fi | |
40731 | ||
40732 | COND_WXUSE_REGEX_BUILTIN="#" | |
40733 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40734 | COND_WXUSE_REGEX_BUILTIN="" | |
40735 | fi | |
40736 | ||
40737 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40738 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40739 | COND_WXUSE_ZLIB_BUILTIN="" | |
40740 | fi | |
40741 | ||
dcc1b6ad VS |
40742 | COND_BUILD_DEBUG="#" |
40743 | if test "x$BUILD" = "xdebug" ; then | |
40744 | COND_BUILD_DEBUG="" | |
40745 | fi | |
40746 | ||
40747 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40748 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40749 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40750 | fi | |
40751 | ||
40752 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40753 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40754 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40755 | fi | |
40756 | ||
40757 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40758 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40759 | COND_BUILD_DEBUG_UNICODE_0="" | |
40760 | fi | |
40761 | ||
40762 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40763 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40764 | COND_BUILD_DEBUG_UNICODE_1="" | |
40765 | fi | |
40766 | ||
40767 | COND_BUILD_RELEASE="#" | |
40768 | if test "x$BUILD" = "xrelease" ; then | |
40769 | COND_BUILD_RELEASE="" | |
40770 | fi | |
40771 | ||
40772 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40773 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40774 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40775 | fi | |
40776 | ||
40777 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40778 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40779 | COND_BUILD_RELEASE_UNICODE_0="" | |
40780 | fi | |
40781 | ||
40782 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40783 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40784 | COND_BUILD_RELEASE_UNICODE_1="" | |
40785 | fi | |
40786 | ||
40787 | COND_DEBUG_FLAG_1="#" | |
40788 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40789 | COND_DEBUG_FLAG_1="" | |
40790 | fi | |
40791 | ||
40792 | COND_DEBUG_INFO_0="#" | |
40793 | if test "x$DEBUG_INFO" = "x0" ; then | |
40794 | COND_DEBUG_INFO_0="" | |
40795 | fi | |
40796 | ||
40797 | COND_DEBUG_INFO_1="#" | |
40798 | if test "x$DEBUG_INFO" = "x1" ; then | |
40799 | COND_DEBUG_INFO_1="" | |
40800 | fi | |
40801 | ||
40802 | COND_DEPS_TRACKING_0="#" | |
40803 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40804 | COND_DEPS_TRACKING_0="" | |
40805 | fi | |
40806 | ||
40807 | COND_DEPS_TRACKING_1="#" | |
40808 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40809 | COND_DEPS_TRACKING_1="" | |
40810 | fi | |
40811 | ||
40812 | COND_GCC_PCH_1="#" | |
40813 | if test "x$GCC_PCH" = "x1" ; then | |
40814 | COND_GCC_PCH_1="" | |
40815 | fi | |
40816 | ||
40817 | COND_MONOLITHIC_0="#" | |
40818 | if test "x$MONOLITHIC" = "x0" ; then | |
40819 | COND_MONOLITHIC_0="" | |
40820 | fi | |
40821 | ||
40822 | COND_MONOLITHIC_0_SHARED_0="#" | |
40823 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40824 | COND_MONOLITHIC_0_SHARED_0="" | |
40825 | fi | |
40826 | ||
40827 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40828 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40829 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40830 | fi | |
40831 | ||
40832 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40833 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40834 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40835 | fi | |
40836 | ||
40837 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40838 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40839 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40840 | fi | |
40841 | ||
40842 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40843 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40844 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40845 | fi | |
40846 | ||
9a8f0513 VS |
40847 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40848 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40849 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40850 | fi | |
40851 | ||
dcc1b6ad VS |
40852 | COND_MONOLITHIC_0_SHARED_1="#" |
40853 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40854 | COND_MONOLITHIC_0_SHARED_1="" | |
40855 | fi | |
40856 | ||
40857 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40858 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40859 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40860 | fi | |
40861 | ||
40862 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40863 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40864 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40865 | fi | |
40866 | ||
40867 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40868 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40869 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40870 | fi | |
40871 | ||
40872 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40873 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40874 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40875 | fi | |
40876 | ||
9a8f0513 VS |
40877 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40878 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40879 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40880 | fi | |
40881 | ||
dcc1b6ad VS |
40882 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40883 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40884 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40885 | fi | |
40886 | ||
40887 | COND_MONOLITHIC_1="#" | |
40888 | if test "x$MONOLITHIC" = "x1" ; then | |
40889 | COND_MONOLITHIC_1="" | |
40890 | fi | |
40891 | ||
40892 | COND_MONOLITHIC_1_SHARED_0="#" | |
40893 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40894 | COND_MONOLITHIC_1_SHARED_0="" | |
40895 | fi | |
40896 | ||
40897 | COND_MONOLITHIC_1_SHARED_1="#" | |
40898 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40899 | COND_MONOLITHIC_1_SHARED_1="" | |
40900 | fi | |
40901 | ||
40902 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40903 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40904 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40905 | fi | |
40906 | ||
40907 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40908 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40909 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40910 | fi | |
40911 | ||
40912 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40913 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40914 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40915 | fi | |
40916 | ||
40917 | COND_PLATFORM_MACOSX_1="#" | |
40918 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40919 | COND_PLATFORM_MACOSX_1="" | |
40920 | fi | |
40921 | ||
40922 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40923 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40924 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40925 | fi | |
40926 | ||
40927 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40928 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40929 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40930 | fi | |
40931 | ||
40932 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40933 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40934 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40935 | fi | |
40936 | ||
9a8f0513 VS |
40937 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40938 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40939 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40940 | fi | |
40941 | ||
40942 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40943 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40944 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40945 | fi | |
40946 | ||
dcc1b6ad VS |
40947 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40948 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40949 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40950 | fi | |
40951 | ||
40952 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40953 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40954 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40955 | fi | |
40956 | ||
40957 | COND_PLATFORM_MAC_1="#" | |
40958 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40959 | COND_PLATFORM_MAC_1="" | |
40960 | fi | |
40961 | ||
40962 | COND_PLATFORM_OS2_1="#" | |
40963 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40964 | COND_PLATFORM_OS2_1="" | |
40965 | fi | |
40966 | ||
40967 | COND_PLATFORM_UNIX_0="#" | |
40968 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40969 | COND_PLATFORM_UNIX_0="" | |
40970 | fi | |
40971 | ||
40972 | COND_PLATFORM_UNIX_1="#" | |
40973 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40974 | COND_PLATFORM_UNIX_1="" | |
40975 | fi | |
40976 | ||
40977 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40978 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40979 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40980 | fi | |
40981 | ||
40982 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40983 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40984 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40985 | fi | |
40986 | ||
40987 | COND_PLATFORM_WIN32_0="#" | |
40988 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40989 | COND_PLATFORM_WIN32_0="" | |
40990 | fi | |
40991 | ||
40992 | COND_PLATFORM_WIN32_1="#" | |
40993 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40994 | COND_PLATFORM_WIN32_1="" | |
40995 | fi | |
40996 | ||
40997 | COND_SHARED_0="#" | |
40998 | if test "x$SHARED" = "x0" ; then | |
40999 | COND_SHARED_0="" | |
41000 | fi | |
41001 | ||
41002 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
41003 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41004 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
41005 | fi | |
41006 | ||
41007 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41008 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41009 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41010 | fi | |
41011 | ||
41012 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41013 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41014 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41015 | fi | |
41016 | ||
41017 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41018 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41019 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41020 | fi | |
41021 | ||
41022 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
41023 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41024 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
41025 | fi | |
41026 | ||
41027 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
41028 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41029 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
41030 | fi | |
41031 | ||
41032 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
41033 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41034 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
41035 | fi | |
41036 | ||
41037 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
41038 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41039 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
41040 | fi | |
41041 | ||
41042 | COND_SHARED_1="#" | |
41043 | if test "x$SHARED" = "x1" ; then | |
41044 | COND_SHARED_1="" | |
41045 | fi | |
41046 | ||
41047 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
41048 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41049 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
41050 | fi | |
41051 | ||
41052 | COND_TOOLKIT_COCOA="#" | |
41053 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
41054 | COND_TOOLKIT_COCOA="" | |
41055 | fi | |
41056 | ||
41057 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
41058 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41059 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
41060 | fi | |
41061 | ||
41062 | COND_TOOLKIT_GTK="#" | |
41063 | if test "x$TOOLKIT" = "xGTK" ; then | |
41064 | COND_TOOLKIT_GTK="" | |
41065 | fi | |
41066 | ||
41067 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
41068 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
41069 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
41070 | fi | |
41071 | ||
41072 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
41073 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41074 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
41075 | fi | |
41076 | ||
41077 | COND_TOOLKIT_MAC="#" | |
41078 | if test "x$TOOLKIT" = "xMAC" ; then | |
41079 | COND_TOOLKIT_MAC="" | |
41080 | fi | |
41081 | ||
41082 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
41083 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41084 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
41085 | fi | |
41086 | ||
41087 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41088 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41089 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41090 | fi | |
41091 | ||
9a8f0513 VS |
41092 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
41093 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
41094 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
41095 | fi | |
41096 | ||
dcc1b6ad VS |
41097 | COND_TOOLKIT_MGL="#" |
41098 | if test "x$TOOLKIT" = "xMGL" ; then | |
41099 | COND_TOOLKIT_MGL="" | |
41100 | fi | |
41101 | ||
41102 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
41103 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
41104 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
41105 | fi | |
41106 | ||
41107 | COND_TOOLKIT_MOTIF="#" | |
41108 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
41109 | COND_TOOLKIT_MOTIF="" | |
41110 | fi | |
41111 | ||
41112 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
41113 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
41114 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
41115 | fi | |
41116 | ||
41117 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
41118 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41119 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41120 | fi | |
41121 | ||
41122 | COND_TOOLKIT_MSW="#" | |
41123 | if test "x$TOOLKIT" = "xMSW" ; then | |
41124 | COND_TOOLKIT_MSW="" | |
41125 | fi | |
41126 | ||
41127 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41128 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41129 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41130 | fi | |
41131 | ||
41132 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41133 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41134 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41135 | fi | |
41136 | ||
9a8f0513 VS |
41137 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
41138 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
41139 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
41140 | fi | |
41141 | ||
dcc1b6ad VS |
41142 | COND_TOOLKIT_PM="#" |
41143 | if test "x$TOOLKIT" = "xPM" ; then | |
41144 | COND_TOOLKIT_PM="" | |
41145 | fi | |
41146 | ||
41147 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41148 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41149 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41150 | fi | |
41151 | ||
41152 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41153 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41154 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41155 | fi | |
41156 | ||
9a8f0513 VS |
41157 | COND_TOOLKIT_PM_WXUNIV_0="#" |
41158 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
41159 | COND_TOOLKIT_PM_WXUNIV_0="" | |
41160 | fi | |
41161 | ||
dcc1b6ad VS |
41162 | COND_TOOLKIT_WINCE="#" |
41163 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41164 | COND_TOOLKIT_WINCE="" | |
41165 | fi | |
41166 | ||
41167 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41168 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41169 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41170 | fi | |
41171 | ||
41172 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41173 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41174 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41175 | fi | |
41176 | ||
41177 | COND_TOOLKIT_X11="#" | |
41178 | if test "x$TOOLKIT" = "xX11" ; then | |
41179 | COND_TOOLKIT_X11="" | |
41180 | fi | |
41181 | ||
41182 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41183 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41184 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41185 | fi | |
41186 | ||
41187 | COND_UNICODE_1="#" | |
41188 | if test "x$UNICODE" = "x1" ; then | |
41189 | COND_UNICODE_1="" | |
41190 | fi | |
41191 | ||
41192 | COND_USE_EXCEPTIONS_0="#" | |
41193 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41194 | COND_USE_EXCEPTIONS_0="" | |
41195 | fi | |
41196 | ||
41197 | COND_USE_EXCEPTIONS_1="#" | |
41198 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41199 | COND_USE_EXCEPTIONS_1="" | |
41200 | fi | |
41201 | ||
41202 | COND_USE_GUI_0="#" | |
41203 | if test "x$USE_GUI" = "x0" ; then | |
41204 | COND_USE_GUI_0="" | |
41205 | fi | |
41206 | ||
41207 | COND_USE_GUI_1="#" | |
41208 | if test "x$USE_GUI" = "x1" ; then | |
41209 | COND_USE_GUI_1="" | |
41210 | fi | |
41211 | ||
41212 | COND_USE_GUI_1_WXUNIV_0="#" | |
41213 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41214 | COND_USE_GUI_1_WXUNIV_0="" | |
41215 | fi | |
41216 | ||
41217 | COND_USE_GUI_1_WXUNIV_1="#" | |
41218 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41219 | COND_USE_GUI_1_WXUNIV_1="" | |
41220 | fi | |
41221 | ||
41222 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41223 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41224 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41225 | fi | |
41226 | ||
41227 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41228 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41229 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41230 | fi | |
41231 | ||
41232 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41233 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41234 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41235 | fi | |
41236 | ||
41237 | COND_USE_ODBC_1="#" | |
41238 | if test "x$USE_ODBC" = "x1" ; then | |
41239 | COND_USE_ODBC_1="" | |
41240 | fi | |
41241 | ||
41242 | COND_USE_PLUGINS_0="#" | |
41243 | if test "x$USE_PLUGINS" = "x0" ; then | |
41244 | COND_USE_PLUGINS_0="" | |
41245 | fi | |
41246 | ||
41247 | COND_USE_SOSYMLINKS_1="#" | |
41248 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41249 | COND_USE_SOSYMLINKS_1="" | |
41250 | fi | |
41251 | ||
41252 | COND_USE_SOVERLINUX_1="#" | |
41253 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41254 | COND_USE_SOVERLINUX_1="" | |
41255 | fi | |
41256 | ||
41257 | COND_USE_SOVERSION_0="#" | |
41258 | if test "x$USE_SOVERSION" = "x0" ; then | |
41259 | COND_USE_SOVERSION_0="" | |
41260 | fi | |
41261 | ||
41262 | COND_USE_SOVERSOLARIS_1="#" | |
41263 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41264 | COND_USE_SOVERSOLARIS_1="" | |
41265 | fi | |
41266 | ||
41267 | COND_WITH_PLUGIN_SDL_1="#" | |
41268 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41269 | COND_WITH_PLUGIN_SDL_1="" | |
41270 | fi | |
41271 | ||
41272 | COND_WXUNIV_1="#" | |
41273 | if test "x$WXUNIV" = "x1" ; then | |
41274 | COND_WXUNIV_1="" | |
41275 | fi | |
41276 | ||
41277 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41278 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41279 | COND_WXUSE_EXPAT_BUILTIN="" | |
41280 | fi | |
41281 | ||
41282 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41283 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41284 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41285 | fi | |
41286 | ||
41287 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41288 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41289 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41290 | fi | |
41291 | ||
41292 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41293 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41294 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41295 | fi | |
41296 | ||
41297 | COND_WXUSE_ODBC_BUILTIN="#" | |
41298 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41299 | COND_WXUSE_ODBC_BUILTIN="" | |
41300 | fi | |
41301 | ||
41302 | COND_WXUSE_REGEX_BUILTIN="#" | |
41303 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41304 | COND_WXUSE_REGEX_BUILTIN="" | |
41305 | fi | |
41306 | ||
41307 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41308 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41309 | COND_WXUSE_ZLIB_BUILTIN="" | |
41310 | fi | |
41311 | ||
a848cd7e SC |
41312 | |
41313 | ||
2057db16 VS |
41314 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
41315 | { { 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 | |
41316 | 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;} | |
41317 | { (exit 1); exit 1; }; } | |
41318 | fi | |
41319 | ||
a848cd7e | 41320 | |
ceec2216 RL |
41321 | if test "$wxUSE_SHARED" = "yes"; then |
41322 | ||
41323 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
41324 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
41325 | ||
41326 | else | |
41327 | ||
41328 | EXE_LINKER="$CXX -o" | |
41329 | ||
41330 | fi | |
a848cd7e | 41331 | |
74b84332 | 41332 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 41333 | if test $GCC_PCH = 1 ; then |
74b84332 | 41334 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
41335 | else |
41336 | case "${host}" in | |
41337 | powerpc-*-darwin* ) | |
74b84332 | 41338 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 41339 | ;; |
bea8e651 | 41340 | *-*-mingw32* ) |
1f344abf VS |
41341 | if test "$wxUSE_STL" = "yes" -o \ |
41342 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
41343 | "$wxUSE_NO_RTTI" != "yes"; then | |
41344 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
41345 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
41346 | cat >conftest.$ac_ext <<_ACEOF |
41347 | /* confdefs.h. */ | |
41348 | _ACEOF | |
41349 | cat confdefs.h >>conftest.$ac_ext | |
41350 | cat >>conftest.$ac_ext <<_ACEOF | |
41351 | /* end confdefs.h. */ | |
41352 | ||
41353 | int | |
41354 | main () | |
41355 | { | |
1f344abf | 41356 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
41357 | #error "Not GCC 3.2 or greater" |
41358 | #endif | |
41359 | ||
41360 | ; | |
41361 | return 0; | |
41362 | } | |
41363 | _ACEOF | |
41364 | rm -f conftest.$ac_objext | |
41365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41366 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 41367 | ac_status=$? |
ac1cb8d3 VS |
41368 | grep -v '^ *+' conftest.er1 >conftest.err |
41369 | rm -f conftest.er1 | |
41370 | cat conftest.err >&5 | |
bea8e651 MB |
41371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41372 | (exit $ac_status); } && | |
2cbbc68d RD |
41373 | { ac_try='test -z "$ac_c_werror_flag" |
41374 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41376 | (eval $ac_try) 2>&5 | |
41377 | ac_status=$? | |
41378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41379 | (exit $ac_status); }; } && | |
41380 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
41381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41382 | (eval $ac_try) 2>&5 | |
41383 | ac_status=$? | |
41384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41385 | (exit $ac_status); }; }; then | |
74b84332 | 41386 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
41387 | echo "$as_me:$LINENO: result: yes" >&5 |
41388 | echo "${ECHO_T}yes" >&6 | |
41389 | else | |
41390 | echo "$as_me: failed program was:" >&5 | |
41391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41392 | ||
41393 | echo "$as_me:$LINENO: result: no" >&5 | |
41394 | echo "${ECHO_T}no" >&6 | |
41395 | fi | |
ac1cb8d3 | 41396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
41397 | fi |
41398 | ;; | |
a848cd7e SC |
41399 | esac |
41400 | fi | |
74b84332 | 41401 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
41402 | |
41403 | ||
41404 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41405 | ||
41406 | ||
41407 | ||
41408 | ||
41409 | ||
41410 | ||
41411 | ||
41412 | ||
41413 | ||
41414 | ||
41415 | ||
41416 | ||
41417 | ||
41418 | ||
41419 | ||
41420 | ||
41421 | ||
41422 | ||
41423 | ||
41424 | ||
41425 | ||
41426 | ||
41427 | ||
41428 | ||
41429 | ||
41430 | ||
41431 | ||
41432 | ||
41433 | ||
41434 | ||
41435 | ||
41436 | ||
41437 | ||
41438 | ||
41439 | ||
41440 | ||
41441 | ||
41442 | ||
41443 | ||
41444 | ||
41445 | ||
41446 | ||
a848cd7e SC |
41447 | |
41448 | ||
41449 | ||
41450 | ||
41451 | ||
41452 | ||
41453 | ||
41454 | ||
41455 | ||
41456 | ||
41457 | ||
41458 | ||
41459 | ||
41460 | ||
41461 | ||
41462 | ||
41463 | ||
41464 | ||
74b84332 | 41465 | |
a848cd7e SC |
41466 | |
41467 | ||
41468 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41469 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41470 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41471 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41473 | else | |
41474 | cat >conftest.make <<\_ACEOF | |
41475 | all: | |
41476 | @echo 'ac_maketemp="$(MAKE)"' | |
41477 | _ACEOF | |
41478 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41479 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41480 | if test -n "$ac_maketemp"; then | |
41481 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41482 | else | |
41483 | eval ac_cv_prog_make_${ac_make}_set=no | |
41484 | fi | |
41485 | rm -f conftest.make | |
41486 | fi | |
41487 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41488 | echo "$as_me:$LINENO: result: yes" >&5 | |
41489 | echo "${ECHO_T}yes" >&6 | |
41490 | SET_MAKE= | |
41491 | else | |
41492 | echo "$as_me:$LINENO: result: no" >&5 | |
41493 | echo "${ECHO_T}no" >&6 | |
41494 | SET_MAKE="MAKE=${MAKE-make}" | |
41495 | fi | |
41496 | ||
41497 | ||
a848cd7e | 41498 | |
ceec2216 RL |
41499 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
41500 | ||
a848cd7e | 41501 | |
ceec2216 | 41502 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41503 | |
a848cd7e | 41504 | |
ceec2216 | 41505 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41506 | |
ceec2216 RL |
41507 | |
41508 | ac_config_files="$ac_config_files version-script Makefile" | |
41509 | ||
41510 | ||
41511 | ac_config_commands="$ac_config_commands wx-config | |
41512 | " | |
a848cd7e SC |
41513 | |
41514 | ||
9103d280 RL |
41515 | |
41516 | ||
a848cd7e SC |
41517 | if test "$wxUSE_GUI" = "yes"; then |
41518 | SUBDIRS="samples demos utils contrib" | |
41519 | else SUBDIRS="samples utils" | |
41520 | fi | |
41521 | ||
41522 | ||
41523 | ||
41524 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41525 | if test "${with_cppunit_prefix+set}" = set; then | |
41526 | withval="$with_cppunit_prefix" | |
41527 | cppunit_config_prefix="$withval" | |
41528 | else | |
41529 | cppunit_config_prefix="" | |
41530 | fi; | |
41531 | ||
41532 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41533 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41534 | withval="$with_cppunit_exec_prefix" | |
41535 | cppunit_config_exec_prefix="$withval" | |
41536 | else | |
41537 | cppunit_config_exec_prefix="" | |
41538 | fi; | |
41539 | ||
41540 | if test x$cppunit_config_exec_prefix != x ; then | |
41541 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41542 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41543 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41544 | fi | |
41545 | fi | |
41546 | if test x$cppunit_config_prefix != x ; then | |
41547 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41548 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41549 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41550 | fi | |
41551 | fi | |
41552 | ||
41553 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41554 | set dummy cppunit-config; ac_word=$2 | |
41555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41557 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41559 | else | |
41560 | case $CPPUNIT_CONFIG in | |
41561 | [\\/]* | ?:[\\/]*) | |
41562 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41563 | ;; | |
41564 | *) | |
41565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41566 | for as_dir in $PATH | |
41567 | do | |
41568 | IFS=$as_save_IFS | |
41569 | test -z "$as_dir" && as_dir=. | |
41570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41572 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41574 | break 2 | |
41575 | fi | |
41576 | done | |
41577 | done | |
41578 | ||
41579 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41580 | ;; | |
41581 | esac | |
41582 | fi | |
41583 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41584 | ||
41585 | if test -n "$CPPUNIT_CONFIG"; then | |
41586 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41587 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41588 | else | |
41589 | echo "$as_me:$LINENO: result: no" >&5 | |
41590 | echo "${ECHO_T}no" >&6 | |
41591 | fi | |
41592 | ||
41593 | cppunit_version_min=1.8.0 | |
41594 | ||
41595 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41596 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41597 | no_cppunit="" | |
41598 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41599 | no_cppunit=yes | |
41600 | else | |
41601 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41602 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41603 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41604 | ||
41605 | cppunit_major_version=`echo $cppunit_version | \ | |
41606 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41607 | cppunit_minor_version=`echo $cppunit_version | \ | |
41608 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41609 | cppunit_micro_version=`echo $cppunit_version | \ | |
41610 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41611 | ||
41612 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41613 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41614 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41615 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41616 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41617 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41618 | ||
41619 | cppunit_version_proper=`expr \ | |
41620 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41621 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41622 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41623 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41624 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41625 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41626 | ||
41627 | if test "$cppunit_version_proper" = "1" ; then | |
41628 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41629 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41630 | else | |
41631 | echo "$as_me:$LINENO: result: no" >&5 | |
41632 | echo "${ECHO_T}no" >&6 | |
41633 | no_cppunit=yes | |
41634 | fi | |
41635 | fi | |
41636 | ||
41637 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41638 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41639 | else |
41640 | CPPUNIT_CFLAGS="" | |
41641 | CPPUNIT_LIBS="" | |
c2218763 | 41642 | : |
a848cd7e SC |
41643 | fi |
41644 | ||
41645 | ||
41646 | ||
41647 | ||
41648 | ||
41649 | for subdir in `echo $SUBDIRS`; do | |
41650 | if test -d ${srcdir}/${subdir} ; then | |
41651 | if test "$wxUSE_GUI" = "yes"; then | |
41652 | if test ${subdir} = "samples"; then | |
41653 | makefiles="samples/Makefile.in $makefiles" | |
41654 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41655 | if test -d $srcdir/samples/$sample; then | |
41656 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41657 | fi | |
41658 | done | |
41659 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41660 | fi | |
41661 | else if test ${subdir} = "samples"; then | |
41662 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41663 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
41664 | makefiles="" |
41665 | for util in HelpGen tex2rtf ; do | |
41666 | if test -d $srcdir/utils/$util ; then | |
41667 | makefiles="utils/$util/Makefile.in \ | |
41668 | utils/$util/src/Makefile.in \ | |
41669 | $makefiles" | |
41670 | fi | |
41671 | done | |
a848cd7e SC |
41672 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
41673 | fi | |
41674 | fi | |
41675 | ||
41676 | for mkin in $makefiles ; do | |
41677 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41678 | ac_config_files="$ac_config_files $mk" | |
41679 | ||
41680 | done | |
41681 | fi | |
41682 | done | |
41683 | ||
41684 | ||
41685 | cat >confcache <<\_ACEOF | |
41686 | # This file is a shell script that caches the results of configure | |
41687 | # tests run on this system so they can be shared between configure | |
41688 | # scripts and configure runs, see configure's option --config-cache. | |
41689 | # It is not useful on other systems. If it contains results you don't | |
41690 | # want to keep, you may remove or edit it. | |
41691 | # | |
41692 | # config.status only pays attention to the cache file if you give it | |
41693 | # the --recheck option to rerun configure. | |
41694 | # | |
41695 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41696 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41697 | # following values. | |
41698 | ||
41699 | _ACEOF | |
41700 | ||
41701 | # The following way of writing the cache mishandles newlines in values, | |
41702 | # but we know of no workaround that is simple, portable, and efficient. | |
41703 | # So, don't put newlines in cache variables' values. | |
41704 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41705 | # and sets the high bit in the cache file unless we assign to the vars. | |
41706 | { | |
41707 | (set) 2>&1 | | |
41708 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41709 | *ac_space=\ *) | |
41710 | # `set' does not quote correctly, so add quotes (double-quote | |
41711 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41712 | sed -n \ | |
ac1cb8d3 VS |
41713 | "s/'/'\\\\''/g; |
41714 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41715 | ;; |
41716 | *) | |
41717 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41718 | sed -n \ | |
ac1cb8d3 | 41719 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41720 | ;; |
41721 | esac; | |
41722 | } | | |
41723 | sed ' | |
41724 | t clear | |
41725 | : clear | |
41726 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41727 | t end | |
41728 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41729 | : end' >>confcache | |
41730 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41731 | if test -w $cache_file; then | |
41732 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41733 | cat confcache >$cache_file | |
41734 | else | |
41735 | echo "not updating unwritable cache $cache_file" | |
41736 | fi | |
41737 | fi | |
41738 | rm -f confcache | |
41739 | ||
41740 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41741 | # Let make expand exec_prefix. | |
41742 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41743 | ||
41744 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41745 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41746 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41747 | # (actually we leave an empty line to preserve line numbers). | |
41748 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41749 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41750 | s/:*\$(srcdir):*/:/; |
41751 | s/:*\${srcdir}:*/:/; | |
41752 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41753 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41754 | s/:*$//; |
ac1cb8d3 | 41755 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41756 | }' |
41757 | fi | |
41758 | ||
41759 | DEFS=-DHAVE_CONFIG_H | |
41760 | ||
41761 | ac_libobjs= | |
41762 | ac_ltlibobjs= | |
41763 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41764 | # 1. Remove the extension, and $U if already installed. | |
41765 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41766 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41767 | # 2. Add them. |
41768 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41769 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41770 | done | |
41771 | LIBOBJS=$ac_libobjs | |
41772 | ||
41773 | LTLIBOBJS=$ac_ltlibobjs | |
41774 | ||
41775 | ||
41776 | ||
41777 | : ${CONFIG_STATUS=./config.status} | |
41778 | ac_clean_files_save=$ac_clean_files | |
41779 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41780 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41781 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41782 | cat >$CONFIG_STATUS <<_ACEOF | |
41783 | #! $SHELL | |
41784 | # Generated by $as_me. | |
41785 | # Run this file to recreate the current configuration. | |
41786 | # Compiler output produced by configure, useful for debugging | |
41787 | # configure, is in config.log if it exists. | |
41788 | ||
41789 | debug=false | |
41790 | ac_cs_recheck=false | |
41791 | ac_cs_silent=false | |
41792 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41793 | _ACEOF | |
41794 | ||
41795 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41796 | ## --------------------- ## | |
41797 | ## M4sh Initialization. ## | |
41798 | ## --------------------- ## | |
41799 | ||
41800 | # Be Bourne compatible | |
41801 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41802 | emulate sh | |
41803 | NULLCMD=: | |
41804 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41805 | # is contrary to our usage. Disable this feature. | |
41806 | alias -g '${1+"$@"}'='"$@"' | |
41807 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41808 | set -o posix | |
41809 | fi | |
ac1cb8d3 | 41810 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41811 | |
41812 | # Support unset when possible. | |
ac1cb8d3 | 41813 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41814 | as_unset=unset |
41815 | else | |
41816 | as_unset=false | |
41817 | fi | |
41818 | ||
41819 | ||
41820 | # Work around bugs in pre-3.0 UWIN ksh. | |
41821 | $as_unset ENV MAIL MAILPATH | |
41822 | PS1='$ ' | |
41823 | PS2='> ' | |
41824 | PS4='+ ' | |
41825 | ||
41826 | # NLS nuisances. | |
41827 | for as_var in \ | |
41828 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41829 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41830 | LC_TELEPHONE LC_TIME | |
41831 | do | |
ac1cb8d3 | 41832 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41833 | eval $as_var=C; export $as_var |
41834 | else | |
41835 | $as_unset $as_var | |
41836 | fi | |
41837 | done | |
41838 | ||
41839 | # Required to use basename. | |
41840 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41841 | as_expr=expr | |
41842 | else | |
41843 | as_expr=false | |
41844 | fi | |
41845 | ||
41846 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41847 | as_basename=basename | |
41848 | else | |
41849 | as_basename=false | |
41850 | fi | |
41851 | ||
41852 | ||
41853 | # Name of the executable. | |
41854 | as_me=`$as_basename "$0" || | |
41855 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41856 | X"$0" : 'X\(//\)$' \| \ | |
41857 | X"$0" : 'X\(/\)$' \| \ | |
41858 | . : '\(.\)' 2>/dev/null || | |
41859 | echo X/"$0" | | |
41860 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41861 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41862 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41863 | s/.*/./; q'` | |
41864 | ||
41865 | ||
41866 | # PATH needs CR, and LINENO needs CR and PATH. | |
41867 | # Avoid depending upon Character Ranges. | |
41868 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41869 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41870 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41871 | as_cr_digits='0123456789' | |
41872 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41873 | ||
41874 | # The user is always right. | |
41875 | if test "${PATH_SEPARATOR+set}" != set; then | |
41876 | echo "#! /bin/sh" >conf$$.sh | |
41877 | echo "exit 0" >>conf$$.sh | |
41878 | chmod +x conf$$.sh | |
41879 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41880 | PATH_SEPARATOR=';' | |
41881 | else | |
41882 | PATH_SEPARATOR=: | |
41883 | fi | |
41884 | rm -f conf$$.sh | |
41885 | fi | |
41886 | ||
41887 | ||
41888 | as_lineno_1=$LINENO | |
41889 | as_lineno_2=$LINENO | |
41890 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41891 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41892 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41893 | # Find who we are. Look in the path if we contain no path at all | |
41894 | # relative or not. | |
41895 | case $0 in | |
41896 | *[\\/]* ) as_myself=$0 ;; | |
41897 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41898 | for as_dir in $PATH | |
41899 | do | |
41900 | IFS=$as_save_IFS | |
41901 | test -z "$as_dir" && as_dir=. | |
41902 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41903 | done | |
41904 | ||
41905 | ;; | |
41906 | esac | |
41907 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41908 | # in which case we are not to be found in the path. | |
41909 | if test "x$as_myself" = x; then | |
41910 | as_myself=$0 | |
41911 | fi | |
41912 | if test ! -f "$as_myself"; then | |
41913 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41914 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41915 | { (exit 1); exit 1; }; } | |
41916 | fi | |
41917 | case $CONFIG_SHELL in | |
41918 | '') | |
41919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41920 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41921 | do | |
41922 | IFS=$as_save_IFS | |
41923 | test -z "$as_dir" && as_dir=. | |
41924 | for as_base in sh bash ksh sh5; do | |
41925 | case $as_dir in | |
41926 | /*) | |
41927 | if ("$as_dir/$as_base" -c ' | |
41928 | as_lineno_1=$LINENO | |
41929 | as_lineno_2=$LINENO | |
41930 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41931 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41932 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41933 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41934 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41935 | CONFIG_SHELL=$as_dir/$as_base | |
41936 | export CONFIG_SHELL | |
41937 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41938 | fi;; | |
41939 | esac | |
41940 | done | |
41941 | done | |
41942 | ;; | |
41943 | esac | |
41944 | ||
41945 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41946 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41947 | # line-number line before each line; the second 'sed' does the real | |
41948 | # work. The second script uses 'N' to pair each line-number line | |
41949 | # with the numbered line, and appends trailing '-' during | |
41950 | # substitution so that $LINENO is not a special case at line end. | |
41951 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41952 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41953 | sed '=' <$as_myself | | |
41954 | sed ' | |
41955 | N | |
41956 | s,$,-, | |
41957 | : loop | |
41958 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41959 | t loop | |
41960 | s,-$,, | |
41961 | s,^['$as_cr_digits']*\n,, | |
41962 | ' >$as_me.lineno && | |
41963 | chmod +x $as_me.lineno || | |
41964 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41965 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41966 | { (exit 1); exit 1; }; } | |
41967 | ||
41968 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41969 | # (the dirname of $[0] is not the place where we might find the | |
41970 | # original and so on. Autoconf is especially sensible to this). | |
41971 | . ./$as_me.lineno | |
41972 | # Exit status is that of the last command. | |
41973 | exit | |
41974 | } | |
41975 | ||
41976 | ||
41977 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41978 | *c*,-n*) ECHO_N= ECHO_C=' | |
41979 | ' ECHO_T=' ' ;; | |
41980 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41981 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41982 | esac | |
41983 | ||
41984 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41985 | as_expr=expr | |
41986 | else | |
41987 | as_expr=false | |
41988 | fi | |
41989 | ||
41990 | rm -f conf$$ conf$$.exe conf$$.file | |
41991 | echo >conf$$.file | |
41992 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41993 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41994 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41995 | if test -f conf$$.exe; then | |
41996 | # Don't use ln at all; we don't have any links | |
41997 | as_ln_s='cp -p' | |
41998 | else | |
41999 | as_ln_s='ln -s' | |
42000 | fi | |
42001 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
42002 | as_ln_s=ln | |
42003 | else | |
42004 | as_ln_s='cp -p' | |
42005 | fi | |
42006 | rm -f conf$$ conf$$.exe conf$$.file | |
42007 | ||
42008 | if mkdir -p . 2>/dev/null; then | |
42009 | as_mkdir_p=: | |
42010 | else | |
ac1cb8d3 | 42011 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
42012 | as_mkdir_p=false |
42013 | fi | |
42014 | ||
42015 | as_executable_p="test -f" | |
42016 | ||
42017 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 42018 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42019 | |
42020 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 42021 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42022 | |
42023 | ||
42024 | # IFS | |
42025 | # We need space, tab and new line, in precisely that order. | |
42026 | as_nl=' | |
42027 | ' | |
42028 | IFS=" $as_nl" | |
42029 | ||
42030 | # CDPATH. | |
42031 | $as_unset CDPATH | |
42032 | ||
42033 | exec 6>&1 | |
42034 | ||
42035 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
42036 | # report actual input values of CONFIG_FILES etc. instead of their | |
42037 | # values after options handling. Logging --version etc. is OK. | |
42038 | exec 5>>config.log | |
42039 | { | |
42040 | echo | |
42041 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
42042 | ## Running $as_me. ## | |
42043 | _ASBOX | |
42044 | } >&5 | |
42045 | cat >&5 <<_CSEOF | |
42046 | ||
7714864e | 42047 | This file was extended by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 42048 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
42049 | |
42050 | CONFIG_FILES = $CONFIG_FILES | |
42051 | CONFIG_HEADERS = $CONFIG_HEADERS | |
42052 | CONFIG_LINKS = $CONFIG_LINKS | |
42053 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
42054 | $ $0 $@ | |
42055 | ||
42056 | _CSEOF | |
42057 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
42058 | echo >&5 | |
42059 | _ACEOF | |
42060 | ||
42061 | # Files that config.status was made for. | |
42062 | if test -n "$ac_config_files"; then | |
42063 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
42064 | fi | |
42065 | ||
42066 | if test -n "$ac_config_headers"; then | |
42067 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
42068 | fi | |
42069 | ||
42070 | if test -n "$ac_config_links"; then | |
42071 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
42072 | fi | |
42073 | ||
42074 | if test -n "$ac_config_commands"; then | |
42075 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
42076 | fi | |
42077 | ||
42078 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42079 | ||
42080 | ac_cs_usage="\ | |
42081 | \`$as_me' instantiates files from templates according to the | |
42082 | current configuration. | |
42083 | ||
42084 | Usage: $0 [OPTIONS] [FILE]... | |
42085 | ||
42086 | -h, --help print this help, then exit | |
42087 | -V, --version print version number, then exit | |
42088 | -q, --quiet do not print progress messages | |
42089 | -d, --debug don't remove temporary files | |
42090 | --recheck update $as_me by reconfiguring in the same conditions | |
42091 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 42092 | instantiate the configuration file FILE |
a848cd7e | 42093 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 42094 | instantiate the configuration header FILE |
a848cd7e SC |
42095 | |
42096 | Configuration files: | |
42097 | $config_files | |
42098 | ||
42099 | Configuration headers: | |
42100 | $config_headers | |
42101 | ||
42102 | Configuration commands: | |
42103 | $config_commands | |
42104 | ||
42105 | Report bugs to <bug-autoconf@gnu.org>." | |
42106 | _ACEOF | |
42107 | ||
42108 | cat >>$CONFIG_STATUS <<_ACEOF | |
42109 | ac_cs_version="\\ | |
7714864e | 42110 | wxWidgets config.status 2.5.3 |
ac1cb8d3 | 42111 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
42112 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
42113 | ||
ac1cb8d3 | 42114 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
42115 | This config.status script is free software; the Free Software Foundation |
42116 | gives unlimited permission to copy, distribute and modify it." | |
42117 | srcdir=$srcdir | |
42118 | INSTALL="$INSTALL" | |
42119 | _ACEOF | |
42120 | ||
42121 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42122 | # If no file are specified by the user, then we need to provide default | |
42123 | # value. By we need to know if files were specified by the user. | |
42124 | ac_need_defaults=: | |
42125 | while test $# != 0 | |
42126 | do | |
42127 | case $1 in | |
42128 | --*=*) | |
42129 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
42130 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
42131 | ac_shift=: | |
42132 | ;; | |
42133 | -*) | |
42134 | ac_option=$1 | |
42135 | ac_optarg=$2 | |
42136 | ac_shift=shift | |
42137 | ;; | |
42138 | *) # This is not an option, so the user has probably given explicit | |
42139 | # arguments. | |
42140 | ac_option=$1 | |
42141 | ac_need_defaults=false;; | |
42142 | esac | |
42143 | ||
42144 | case $ac_option in | |
42145 | # Handling of the options. | |
42146 | _ACEOF | |
42147 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42148 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
42149 | ac_cs_recheck=: ;; | |
42150 | --version | --vers* | -V ) | |
42151 | echo "$ac_cs_version"; exit 0 ;; | |
42152 | --he | --h) | |
42153 | # Conflict between --help and --header | |
42154 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
42155 | Try \`$0 --help' for more information." >&5 | |
42156 | echo "$as_me: error: ambiguous option: $1 | |
42157 | Try \`$0 --help' for more information." >&2;} | |
42158 | { (exit 1); exit 1; }; };; | |
42159 | --help | --hel | -h ) | |
42160 | echo "$ac_cs_usage"; exit 0 ;; | |
42161 | --debug | --d* | -d ) | |
42162 | debug=: ;; | |
42163 | --file | --fil | --fi | --f ) | |
42164 | $ac_shift | |
42165 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
42166 | ac_need_defaults=false;; | |
42167 | --header | --heade | --head | --hea ) | |
42168 | $ac_shift | |
42169 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
42170 | ac_need_defaults=false;; | |
42171 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
42172 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
42173 | ac_cs_silent=: ;; | |
42174 | ||
42175 | # This is an error. | |
42176 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
42177 | Try \`$0 --help' for more information." >&5 | |
42178 | echo "$as_me: error: unrecognized option: $1 | |
42179 | Try \`$0 --help' for more information." >&2;} | |
42180 | { (exit 1); exit 1; }; } ;; | |
42181 | ||
42182 | *) ac_config_targets="$ac_config_targets $1" ;; | |
42183 | ||
42184 | esac | |
42185 | shift | |
42186 | done | |
42187 | ||
42188 | ac_configure_extra_args= | |
42189 | ||
42190 | if $ac_cs_silent; then | |
42191 | exec 6>/dev/null | |
42192 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
42193 | fi | |
42194 | ||
42195 | _ACEOF | |
42196 | cat >>$CONFIG_STATUS <<_ACEOF | |
42197 | if \$ac_cs_recheck; then | |
42198 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
42199 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
42200 | fi | |
42201 | ||
42202 | _ACEOF | |
42203 | ||
42204 | cat >>$CONFIG_STATUS <<_ACEOF | |
42205 | # | |
42206 | # INIT-COMMANDS section. | |
42207 | # | |
42208 | ||
ceec2216 RL |
42209 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
42210 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42211 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42212 | LN_S="${LN_S}" | |
a848cd7e SC |
42213 | |
42214 | ||
42215 | _ACEOF | |
42216 | ||
42217 | ||
42218 | ||
42219 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42220 | for ac_config_target in $ac_config_targets | |
42221 | do | |
42222 | case "$ac_config_target" in | |
42223 | # Handling of arguments. | |
ceec2216 RL |
42224 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
42225 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
42226 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
42227 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
42228 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
42229 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
42230 | "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 |
42231 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
42232 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
42233 | { (exit 1); exit 1; }; };; | |
42234 | esac | |
42235 | done | |
42236 | ||
42237 | # If the user did not use the arguments to specify the items to instantiate, | |
42238 | # then the envvar interface is used. Set only those that are not. | |
42239 | # We use the long form for the default assignment because of an extremely | |
42240 | # bizarre bug on SunOS 4.1.3. | |
42241 | if $ac_need_defaults; then | |
42242 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
42243 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
42244 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
42245 | fi | |
42246 | ||
42247 | # Have a temporary directory for convenience. Make it in the build tree | |
42248 | # simply because there is no reason to put it here, and in addition, | |
42249 | # creating and moving files from /tmp can sometimes cause problems. | |
42250 | # Create a temporary directory, and hook for its removal unless debugging. | |
42251 | $debug || | |
42252 | { | |
42253 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
42254 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
42255 | } | |
42256 | ||
42257 | # Create a (secure) tmp directory for tmp files. | |
42258 | ||
42259 | { | |
42260 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
42261 | test -n "$tmp" && test -d "$tmp" | |
42262 | } || | |
42263 | { | |
42264 | tmp=./confstat$$-$RANDOM | |
42265 | (umask 077 && mkdir $tmp) | |
42266 | } || | |
42267 | { | |
42268 | echo "$me: cannot create a temporary directory in ." >&2 | |
42269 | { (exit 1); exit 1; } | |
42270 | } | |
42271 | ||
42272 | _ACEOF | |
42273 | ||
42274 | cat >>$CONFIG_STATUS <<_ACEOF | |
42275 | ||
42276 | # | |
42277 | # CONFIG_FILES section. | |
42278 | # | |
42279 | ||
42280 | # No need to generate the scripts if there are no CONFIG_FILES. | |
42281 | # This happens for instance when ./config.status config.h | |
42282 | if test -n "\$CONFIG_FILES"; then | |
42283 | # Protect against being on the right side of a sed subst in config.status. | |
42284 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
42285 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
42286 | s,@SHELL@,$SHELL,;t t | |
42287 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
42288 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
42289 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
42290 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
42291 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
42292 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
42293 | s,@exec_prefix@,$exec_prefix,;t t | |
42294 | s,@prefix@,$prefix,;t t | |
42295 | s,@program_transform_name@,$program_transform_name,;t t | |
42296 | s,@bindir@,$bindir,;t t | |
42297 | s,@sbindir@,$sbindir,;t t | |
42298 | s,@libexecdir@,$libexecdir,;t t | |
42299 | s,@datadir@,$datadir,;t t | |
42300 | s,@sysconfdir@,$sysconfdir,;t t | |
42301 | s,@sharedstatedir@,$sharedstatedir,;t t | |
42302 | s,@localstatedir@,$localstatedir,;t t | |
42303 | s,@libdir@,$libdir,;t t | |
42304 | s,@includedir@,$includedir,;t t | |
42305 | s,@oldincludedir@,$oldincludedir,;t t | |
42306 | s,@infodir@,$infodir,;t t | |
42307 | s,@mandir@,$mandir,;t t | |
42308 | s,@build_alias@,$build_alias,;t t | |
42309 | s,@host_alias@,$host_alias,;t t | |
42310 | s,@target_alias@,$target_alias,;t t | |
42311 | s,@DEFS@,$DEFS,;t t | |
42312 | s,@ECHO_C@,$ECHO_C,;t t | |
42313 | s,@ECHO_N@,$ECHO_N,;t t | |
42314 | s,@ECHO_T@,$ECHO_T,;t t | |
42315 | s,@LIBS@,$LIBS,;t t | |
42316 | s,@build@,$build,;t t | |
42317 | s,@build_cpu@,$build_cpu,;t t | |
42318 | s,@build_vendor@,$build_vendor,;t t | |
42319 | s,@build_os@,$build_os,;t t | |
42320 | s,@host@,$host,;t t | |
42321 | s,@host_cpu@,$host_cpu,;t t | |
42322 | s,@host_vendor@,$host_vendor,;t t | |
42323 | s,@host_os@,$host_os,;t t | |
42324 | s,@target@,$target,;t t | |
42325 | s,@target_cpu@,$target_cpu,;t t | |
42326 | s,@target_vendor@,$target_vendor,;t t | |
42327 | s,@target_os@,$target_os,;t t | |
42328 | s,@CC@,$CC,;t t | |
42329 | s,@CFLAGS@,$CFLAGS,;t t | |
42330 | s,@LDFLAGS@,$LDFLAGS,;t t | |
42331 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
42332 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
42333 | s,@EXEEXT@,$EXEEXT,;t t | |
42334 | s,@OBJEXT@,$OBJEXT,;t t | |
42335 | s,@CPP@,$CPP,;t t | |
42336 | s,@EGREP@,$EGREP,;t t | |
42337 | s,@CXX@,$CXX,;t t | |
42338 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
42339 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
42340 | s,@RANLIB@,$RANLIB,;t t | |
42341 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
42342 | s,@AR@,$AR,;t t | |
42343 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
42344 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
42345 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
42346 | s,@STRIP@,$STRIP,;t t | |
42347 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
42348 | s,@LN_S@,$LN_S,;t t | |
42349 | s,@CXXCPP@,$CXXCPP,;t t | |
42350 | s,@subdirs@,$subdirs,;t t | |
42351 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
42352 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
42353 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
42354 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
42355 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
42356 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
42357 | s,@X_LIBS@,$X_LIBS,;t t | |
42358 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
42359 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
42360 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
42361 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
42362 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
42363 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
42364 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
42365 | s,@RESCOMP@,$RESCOMP,;t t | |
42366 | s,@DEREZ@,$DEREZ,;t t | |
42367 | s,@SETFILE@,$SETFILE,;t t | |
42368 | s,@LIBICONV@,$LIBICONV,;t t | |
42369 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
42370 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
42371 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
42372 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
42373 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
42374 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
a848cd7e SC |
42375 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
42376 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
42377 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
42378 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
42379 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
42380 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
42381 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
42382 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
42383 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
42384 | s,@VENDOR@,$VENDOR,;t t | |
42385 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
42386 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
42387 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
42388 | s,@WXUNIV@,$WXUNIV,;t t |
42389 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
42390 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
42391 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
42392 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
42393 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
42394 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
42395 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
42396 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
42397 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
42398 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 42399 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
42400 | s,@UNICODE@,$UNICODE,;t t |
42401 | s,@BUILD@,$BUILD,;t t | |
42402 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42403 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
42404 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
42405 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42406 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42407 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42408 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42409 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42410 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42411 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42412 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42413 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42414 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42415 | s,@NM@,$NM,;t t | |
42416 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42417 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42418 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42419 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42420 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42421 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42422 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
42423 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
42424 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
42425 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
42426 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42427 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42428 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42429 | s,@LIBEXT@,$LIBEXT,;t t | |
42430 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42431 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42432 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42433 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42434 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42435 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42436 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42437 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42438 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42439 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42440 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42441 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42442 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42443 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42444 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42445 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42446 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42447 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42448 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42449 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42450 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42451 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42452 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42453 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42454 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42455 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42456 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42457 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42458 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42459 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42460 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42461 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42462 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42463 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42464 | 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 | |
42465 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42466 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
ceec2216 | 42467 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
42468 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
42469 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42470 | 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 | |
42471 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42472 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
ceec2216 | 42473 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
42474 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
42475 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42476 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42477 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42478 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42479 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42480 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42481 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 42482 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
42483 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
42484 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42485 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
ebee3cd0 VS |
42486 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
42487 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
42488 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
42489 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 42490 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
42491 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
42492 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42493 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42494 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42495 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42496 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42497 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42498 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42499 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
42500 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
42501 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
42502 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
42503 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
42504 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42505 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42506 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42507 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42508 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42509 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42510 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42511 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42512 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 42513 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 42514 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 42515 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
42516 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
42517 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42518 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42519 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42520 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42521 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42522 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
42523 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
42524 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42525 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42526 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42527 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42528 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42529 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42530 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
42531 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
42532 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42533 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
42534 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42535 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42536 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42537 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42538 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42539 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42540 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42541 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42542 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42543 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42544 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42545 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42546 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42547 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42548 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 42549 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 42550 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
42551 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
42552 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42553 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42554 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42555 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 42556 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 42557 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
a848cd7e SC |
42558 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
42559 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42560 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42561 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42562 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42563 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42564 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42565 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
9a8f0513 VS |
42566 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
42567 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t | |
42568 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t | |
ceec2216 | 42569 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
42570 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
42571 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
42572 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
42573 | s,@USE_GUI@,$USE_GUI,;t t | |
42574 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42575 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42576 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42577 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 42578 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 42579 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
42580 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
42581 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 42582 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
42583 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
42584 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
42585 | s,@WX_VERSION@,$WX_VERSION,;t t | |
42586 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
42587 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
42588 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 42589 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
42590 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
42591 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42592 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
42593 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 42594 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42595 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42596 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 42597 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 42598 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
42599 | s,@DISTDIR@,$DISTDIR,;t t |
42600 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42601 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
42602 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
42603 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42604 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42605 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42606 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42607 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42608 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42609 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42610 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42611 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42612 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42613 | s,@GCC@,$GCC,;t t | |
a848cd7e | 42614 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
42615 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
42616 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42617 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42618 | CEOF | |
42619 | ||
42620 | _ACEOF | |
42621 | ||
42622 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42623 | # Split the substitutions into bite-sized pieces for seds with | |
42624 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42625 | ac_max_sed_lines=48 | |
42626 | ac_sed_frag=1 # Number of current file. | |
42627 | ac_beg=1 # First line for current file. | |
42628 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42629 | ac_more_lines=: | |
42630 | ac_sed_cmds= | |
42631 | while $ac_more_lines; do | |
42632 | if test $ac_beg -gt 1; then | |
42633 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42634 | else | |
42635 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42636 | fi | |
42637 | if test ! -s $tmp/subs.frag; then | |
42638 | ac_more_lines=false | |
42639 | else | |
42640 | # The purpose of the label and of the branching condition is to | |
42641 | # speed up the sed processing (if there are no `@' at all, there | |
42642 | # is no need to browse any of the substitutions). | |
42643 | # These are the two extra sed commands mentioned above. | |
42644 | (echo ':t | |
42645 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42646 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42647 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42648 | else |
ac1cb8d3 | 42649 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42650 | fi |
42651 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42652 | ac_beg=$ac_end | |
42653 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42654 | fi | |
42655 | done | |
42656 | if test -z "$ac_sed_cmds"; then | |
42657 | ac_sed_cmds=cat | |
42658 | fi | |
42659 | fi # test -n "$CONFIG_FILES" | |
42660 | ||
42661 | _ACEOF | |
42662 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42663 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42664 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42665 | case $ac_file in | |
42666 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42667 | cat >$tmp/stdin |
42668 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42669 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42670 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42671 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42672 | * ) ac_file_in=$ac_file.in ;; |
42673 | esac | |
42674 | ||
42675 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42676 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42677 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42678 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42679 | X"$ac_file" : 'X\(//\)$' \| \ | |
42680 | X"$ac_file" : 'X\(/\)' \| \ | |
42681 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42682 | echo X"$ac_file" | |
42683 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42684 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42685 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42686 | /^X\(\/\).*/{ s//\1/; q; } | |
42687 | s/.*/./; q'` | |
42688 | { if $as_mkdir_p; then | |
42689 | mkdir -p "$ac_dir" | |
42690 | else | |
42691 | as_dir="$ac_dir" | |
42692 | as_dirs= | |
42693 | while test ! -d "$as_dir"; do | |
42694 | as_dirs="$as_dir $as_dirs" | |
42695 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42696 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42697 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42698 | X"$as_dir" : 'X\(//\)$' \| \ | |
42699 | X"$as_dir" : 'X\(/\)' \| \ | |
42700 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42701 | echo X"$as_dir" | |
42702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42703 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42704 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42705 | /^X\(\/\).*/{ s//\1/; q; } | |
42706 | s/.*/./; q'` | |
42707 | done | |
42708 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42709 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42710 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42711 | { (exit 1); exit 1; }; }; } | |
42712 | ||
42713 | ac_builddir=. | |
42714 | ||
42715 | if test "$ac_dir" != .; then | |
42716 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42717 | # A "../" for each directory in $ac_dir_suffix. | |
42718 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42719 | else | |
42720 | ac_dir_suffix= ac_top_builddir= | |
42721 | fi | |
42722 | ||
42723 | case $srcdir in | |
42724 | .) # No --srcdir option. We are building in place. | |
42725 | ac_srcdir=. | |
42726 | if test -z "$ac_top_builddir"; then | |
42727 | ac_top_srcdir=. | |
42728 | else | |
42729 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42730 | fi ;; | |
42731 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42732 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42733 | ac_top_srcdir=$srcdir ;; | |
42734 | *) # Relative path. | |
42735 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42736 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42737 | esac | |
ac1cb8d3 VS |
42738 | |
42739 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42740 | # the directories may not exist. | |
42741 | case `pwd` in | |
42742 | .) ac_abs_builddir="$ac_dir";; | |
42743 | *) | |
42744 | case "$ac_dir" in | |
42745 | .) ac_abs_builddir=`pwd`;; | |
42746 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42747 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42748 | esac;; | |
42749 | esac | |
42750 | case $ac_abs_builddir in | |
42751 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42752 | *) | |
42753 | case ${ac_top_builddir}. in | |
42754 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42755 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42756 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42757 | esac;; | |
42758 | esac | |
42759 | case $ac_abs_builddir in | |
42760 | .) ac_abs_srcdir=$ac_srcdir;; | |
42761 | *) | |
42762 | case $ac_srcdir in | |
42763 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42764 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42765 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42766 | esac;; | |
42767 | esac | |
42768 | case $ac_abs_builddir in | |
42769 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42770 | *) | |
42771 | case $ac_top_srcdir in | |
42772 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42773 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42774 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42775 | esac;; | |
42776 | esac | |
a848cd7e SC |
42777 | |
42778 | ||
42779 | case $INSTALL in | |
42780 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42781 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42782 | esac | |
42783 | ||
2cbbc68d RD |
42784 | if test x"$ac_file" != x-; then |
42785 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42786 | echo "$as_me: creating $ac_file" >&6;} | |
42787 | rm -f "$ac_file" | |
42788 | fi | |
a848cd7e SC |
42789 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42790 | # use $as_me), people would be surprised to read: | |
42791 | # /* config.h. Generated by config.status. */ | |
42792 | if test x"$ac_file" = x-; then | |
42793 | configure_input= | |
42794 | else | |
42795 | configure_input="$ac_file. " | |
42796 | fi | |
42797 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42798 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42799 | |
42800 | # First look for the input files in the build tree, otherwise in the | |
42801 | # src tree. | |
42802 | ac_file_inputs=`IFS=: | |
42803 | for f in $ac_file_in; do | |
42804 | case $f in | |
42805 | -) echo $tmp/stdin ;; | |
42806 | [\\/$]*) | |
ac1cb8d3 VS |
42807 | # Absolute (can't be DOS-style, as IFS=:) |
42808 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42809 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42810 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42811 | echo "$f";; |
a848cd7e | 42812 | *) # Relative |
ac1cb8d3 VS |
42813 | if test -f "$f"; then |
42814 | # Build tree | |
42815 | echo "$f" | |
42816 | elif test -f "$srcdir/$f"; then | |
42817 | # Source tree | |
42818 | echo "$srcdir/$f" | |
42819 | else | |
42820 | # /dev/null tree | |
42821 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42822 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42823 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42824 | fi;; |
a848cd7e SC |
42825 | esac |
42826 | done` || { (exit 1); exit 1; } | |
42827 | _ACEOF | |
42828 | cat >>$CONFIG_STATUS <<_ACEOF | |
42829 | sed "$ac_vpsub | |
42830 | $extrasub | |
42831 | _ACEOF | |
42832 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42833 | :t | |
42834 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42835 | s,@configure_input@,$configure_input,;t t | |
42836 | s,@srcdir@,$ac_srcdir,;t t | |
42837 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42838 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42839 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42840 | s,@builddir@,$ac_builddir,;t t | |
42841 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42842 | s,@top_builddir@,$ac_top_builddir,;t t | |
42843 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42844 | s,@INSTALL@,$ac_INSTALL,;t t | |
42845 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42846 | rm -f $tmp/stdin | |
42847 | if test x"$ac_file" != x-; then | |
42848 | mv $tmp/out $ac_file | |
42849 | else | |
42850 | cat $tmp/out | |
42851 | rm -f $tmp/out | |
42852 | fi | |
42853 | ||
ceec2216 RL |
42854 | # Run the commands associated with the file. |
42855 | case $ac_file in | |
42856 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
42857 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
42858 | esac | |
a848cd7e SC |
42859 | done |
42860 | _ACEOF | |
42861 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42862 | ||
42863 | # | |
42864 | # CONFIG_HEADER section. | |
42865 | # | |
42866 | ||
42867 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42868 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42869 | # | |
42870 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42871 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42872 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42873 | ac_dC=' ' |
42874 | ac_dD=',;t' | |
42875 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42876 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42877 | ac_uB='$,\1#\2define\3' |
42878 | ac_uC=' ' | |
42879 | ac_uD=',;t' | |
42880 | ||
42881 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42882 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42883 | case $ac_file in | |
42884 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42885 | cat >$tmp/stdin |
42886 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42887 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42888 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42889 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42890 | * ) ac_file_in=$ac_file.in ;; |
42891 | esac | |
42892 | ||
42893 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42894 | echo "$as_me: creating $ac_file" >&6;} | |
42895 | ||
42896 | # First look for the input files in the build tree, otherwise in the | |
42897 | # src tree. | |
42898 | ac_file_inputs=`IFS=: | |
42899 | for f in $ac_file_in; do | |
42900 | case $f in | |
42901 | -) echo $tmp/stdin ;; | |
42902 | [\\/$]*) | |
ac1cb8d3 VS |
42903 | # Absolute (can't be DOS-style, as IFS=:) |
42904 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42905 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42906 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42907 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42908 | echo "$f";; | |
a848cd7e | 42909 | *) # Relative |
ac1cb8d3 VS |
42910 | if test -f "$f"; then |
42911 | # Build tree | |
42912 | echo "$f" | |
42913 | elif test -f "$srcdir/$f"; then | |
42914 | # Source tree | |
42915 | echo "$srcdir/$f" | |
42916 | else | |
42917 | # /dev/null tree | |
42918 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42919 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42920 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42921 | fi;; |
a848cd7e SC |
42922 | esac |
42923 | done` || { (exit 1); exit 1; } | |
42924 | # Remove the trailing spaces. | |
ac1cb8d3 | 42925 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42926 | |
42927 | _ACEOF | |
42928 | ||
42929 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42930 | # `conftest.undefs', that substitutes the proper values into | |
42931 | # config.h.in to produce config.h. The first handles `#define' | |
42932 | # templates, and the second `#undef' templates. | |
42933 | # And first: Protect against being on the right side of a sed subst in | |
42934 | # config.status. Protect against being in an unquoted here document | |
42935 | # in config.status. | |
42936 | rm -f conftest.defines conftest.undefs | |
42937 | # Using a here document instead of a string reduces the quoting nightmare. | |
42938 | # Putting comments in sed scripts is not portable. | |
42939 | # | |
42940 | # `end' is used to avoid that the second main sed command (meant for | |
42941 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42942 | # See the Autoconf documentation for `clear'. | |
42943 | cat >confdef2sed.sed <<\_ACEOF | |
42944 | s/[\\&,]/\\&/g | |
42945 | s,[\\$`],\\&,g | |
42946 | t clear | |
42947 | : clear | |
ac1cb8d3 | 42948 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42949 | t end |
ac1cb8d3 | 42950 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42951 | : end |
42952 | _ACEOF | |
42953 | # If some macros were called several times there might be several times | |
42954 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42955 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42956 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42957 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42958 | rm -f confdef2sed.sed | |
42959 | ||
42960 | # This sed command replaces #undef with comments. This is necessary, for | |
42961 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42962 | # on some systems where configure will not decide to define it. | |
42963 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42964 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42965 | _ACEOF |
42966 | ||
42967 | # Break up conftest.defines because some shells have a limit on the size | |
42968 | # of here documents, and old seds have small limits too (100 cmds). | |
42969 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42970 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42971 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42972 | echo ' :' >>$CONFIG_STATUS | |
42973 | rm -f conftest.tail | |
42974 | while grep . conftest.defines >/dev/null | |
42975 | do | |
42976 | # Write a limited-size here document to $tmp/defines.sed. | |
42977 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42978 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42979 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42980 | # Work around the forget-to-reset-the-flag bug. |
42981 | echo 't clr' >>$CONFIG_STATUS | |
42982 | echo ': clr' >>$CONFIG_STATUS | |
42983 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42984 | echo 'CEOF | |
42985 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42986 | rm -f $tmp/in | |
42987 | mv $tmp/out $tmp/in | |
42988 | ' >>$CONFIG_STATUS | |
42989 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42990 | rm -f conftest.defines | |
42991 | mv conftest.tail conftest.defines | |
42992 | done | |
42993 | rm -f conftest.defines | |
42994 | echo ' fi # grep' >>$CONFIG_STATUS | |
42995 | echo >>$CONFIG_STATUS | |
42996 | ||
42997 | # Break up conftest.undefs because some shells have a limit on the size | |
42998 | # of here documents, and old seds have small limits too (100 cmds). | |
42999 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
43000 | rm -f conftest.tail | |
43001 | while grep . conftest.undefs >/dev/null | |
43002 | do | |
43003 | # Write a limited-size here document to $tmp/undefs.sed. | |
43004 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
43005 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 43006 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43007 | # Work around the forget-to-reset-the-flag bug. |
43008 | echo 't clr' >>$CONFIG_STATUS | |
43009 | echo ': clr' >>$CONFIG_STATUS | |
43010 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
43011 | echo 'CEOF | |
43012 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
43013 | rm -f $tmp/in | |
43014 | mv $tmp/out $tmp/in | |
43015 | ' >>$CONFIG_STATUS | |
43016 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
43017 | rm -f conftest.undefs | |
43018 | mv conftest.tail conftest.undefs | |
43019 | done | |
43020 | rm -f conftest.undefs | |
43021 | ||
43022 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43023 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
43024 | # use $as_me), people would be surprised to read: | |
43025 | # /* config.h. Generated by config.status. */ | |
43026 | if test x"$ac_file" = x-; then | |
43027 | echo "/* Generated by configure. */" >$tmp/config.h | |
43028 | else | |
43029 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
43030 | fi | |
43031 | cat $tmp/in >>$tmp/config.h | |
43032 | rm -f $tmp/in | |
43033 | if test x"$ac_file" != x-; then | |
43034 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
43035 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
43036 | echo "$as_me: $ac_file is unchanged" >&6;} | |
43037 | else | |
43038 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43039 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43040 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43041 | X"$ac_file" : 'X\(//\)$' \| \ | |
43042 | X"$ac_file" : 'X\(/\)' \| \ | |
43043 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43044 | echo X"$ac_file" | |
43045 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43046 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43047 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43048 | /^X\(\/\).*/{ s//\1/; q; } | |
43049 | s/.*/./; q'` | |
43050 | { if $as_mkdir_p; then | |
43051 | mkdir -p "$ac_dir" | |
43052 | else | |
43053 | as_dir="$ac_dir" | |
43054 | as_dirs= | |
43055 | while test ! -d "$as_dir"; do | |
43056 | as_dirs="$as_dir $as_dirs" | |
43057 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43058 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43059 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43060 | X"$as_dir" : 'X\(//\)$' \| \ | |
43061 | X"$as_dir" : 'X\(/\)' \| \ | |
43062 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43063 | echo X"$as_dir" | |
43064 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43065 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43066 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43067 | /^X\(\/\).*/{ s//\1/; q; } | |
43068 | s/.*/./; q'` | |
43069 | done | |
43070 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43071 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43072 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43073 | { (exit 1); exit 1; }; }; } | |
43074 | ||
43075 | rm -f $ac_file | |
43076 | mv $tmp/config.h $ac_file | |
43077 | fi | |
43078 | else | |
43079 | cat $tmp/config.h | |
43080 | rm -f $tmp/config.h | |
43081 | fi | |
43082 | done | |
43083 | _ACEOF | |
43084 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43085 | ||
43086 | # | |
43087 | # CONFIG_COMMANDS section. | |
43088 | # | |
43089 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
43090 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
43091 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43092 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
43093 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43094 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
43095 | X"$ac_dest" : 'X\(//\)$' \| \ | |
43096 | X"$ac_dest" : 'X\(/\)' \| \ | |
43097 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43098 | echo X"$ac_dest" | |
43099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43100 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43101 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43102 | /^X\(\/\).*/{ s//\1/; q; } | |
43103 | s/.*/./; q'` | |
ac1cb8d3 VS |
43104 | { if $as_mkdir_p; then |
43105 | mkdir -p "$ac_dir" | |
43106 | else | |
43107 | as_dir="$ac_dir" | |
43108 | as_dirs= | |
43109 | while test ! -d "$as_dir"; do | |
43110 | as_dirs="$as_dir $as_dirs" | |
43111 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43112 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
43113 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
43114 | X"$as_dir" : 'X\(//\)$' \| \ | |
43115 | X"$as_dir" : 'X\(/\)' \| \ | |
43116 | . : '\(.\)' 2>/dev/null || | |
43117 | echo X"$as_dir" | | |
43118 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43119 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43120 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43121 | /^X\(\/\).*/{ s//\1/; q; } | |
43122 | s/.*/./; q'` | |
43123 | done | |
43124 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43125 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43126 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43127 | { (exit 1); exit 1; }; }; } | |
43128 | ||
a848cd7e SC |
43129 | ac_builddir=. |
43130 | ||
43131 | if test "$ac_dir" != .; then | |
43132 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43133 | # A "../" for each directory in $ac_dir_suffix. | |
43134 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43135 | else | |
43136 | ac_dir_suffix= ac_top_builddir= | |
43137 | fi | |
43138 | ||
43139 | case $srcdir in | |
43140 | .) # No --srcdir option. We are building in place. | |
43141 | ac_srcdir=. | |
43142 | if test -z "$ac_top_builddir"; then | |
43143 | ac_top_srcdir=. | |
43144 | else | |
43145 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43146 | fi ;; | |
43147 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43148 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43149 | ac_top_srcdir=$srcdir ;; | |
43150 | *) # Relative path. | |
43151 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43152 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43153 | esac | |
ac1cb8d3 VS |
43154 | |
43155 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43156 | # the directories may not exist. | |
43157 | case `pwd` in | |
43158 | .) ac_abs_builddir="$ac_dir";; | |
43159 | *) | |
43160 | case "$ac_dir" in | |
43161 | .) ac_abs_builddir=`pwd`;; | |
43162 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43163 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43164 | esac;; | |
43165 | esac | |
43166 | case $ac_abs_builddir in | |
43167 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43168 | *) | |
43169 | case ${ac_top_builddir}. in | |
43170 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43171 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43172 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43173 | esac;; | |
43174 | esac | |
43175 | case $ac_abs_builddir in | |
43176 | .) ac_abs_srcdir=$ac_srcdir;; | |
43177 | *) | |
43178 | case $ac_srcdir in | |
43179 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43180 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43181 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43182 | esac;; | |
43183 | esac | |
43184 | case $ac_abs_builddir in | |
43185 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43186 | *) | |
43187 | case $ac_top_srcdir in | |
43188 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43189 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43190 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43191 | esac;; | |
43192 | esac | |
a848cd7e SC |
43193 | |
43194 | ||
43195 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
43196 | echo "$as_me: executing $ac_dest commands" >&6;} | |
43197 | case $ac_dest in | |
ceec2216 RL |
43198 | wx-config ) rm -f wx-config |
43199 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
43200 | ;; | |
a848cd7e SC |
43201 | esac |
43202 | done | |
43203 | _ACEOF | |
43204 | ||
43205 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43206 | ||
43207 | { (exit 0); exit 0; } | |
43208 | _ACEOF | |
43209 | chmod +x $CONFIG_STATUS | |
43210 | ac_clean_files=$ac_clean_files_save | |
43211 | ||
43212 | ||
43213 | # configure is writing to config.log, and then calls config.status. | |
43214 | # config.status does its own redirection, appending to config.log. | |
43215 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
43216 | # by configure, so config.status won't be able to write to it; its | |
43217 | # output is simply discarded. So we exec the FD to /dev/null, | |
43218 | # effectively closing config.log, so it can be properly (re)opened and | |
43219 | # appended to by config.status. When coming back to configure, we | |
43220 | # need to make the FD available again. | |
43221 | if test "$no_create" != yes; then | |
43222 | ac_cs_success=: | |
43223 | ac_config_status_args= | |
43224 | test "$silent" = yes && | |
43225 | ac_config_status_args="$ac_config_status_args --quiet" | |
43226 | exec 5>/dev/null | |
43227 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
43228 | exec 5>>config.log | |
43229 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
43230 | # would make configure fail if this is the last instruction. | |
43231 | $ac_cs_success || { (exit 1); exit 1; } | |
43232 | fi | |
43233 | ||
43234 | # | |
43235 | # CONFIG_SUBDIRS section. | |
43236 | # | |
43237 | if test "$no_recursion" != yes; then | |
43238 | ||
43239 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
43240 | ac_sub_configure_args= | |
43241 | ac_prev= | |
43242 | for ac_arg in $ac_configure_args; do | |
43243 | if test -n "$ac_prev"; then | |
43244 | ac_prev= | |
43245 | continue | |
43246 | fi | |
43247 | case $ac_arg in | |
43248 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
43249 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
43250 | ac_prev=cache_file ;; | |
43251 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
43252 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
43253 | | --c=*) | |
43254 | ;; | |
43255 | --config-cache | -C) | |
43256 | ;; | |
43257 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
43258 | ac_prev=srcdir ;; | |
43259 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
43260 | ;; | |
43261 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
43262 | ac_prev=prefix ;; | |
43263 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
43264 | ;; | |
43265 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
43266 | esac | |
43267 | done | |
43268 | ||
43269 | # Always prepend --prefix to ensure using the same prefix | |
43270 | # in subdir configurations. | |
43271 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
43272 | ||
43273 | ac_popdir=`pwd` | |
43274 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
43275 | ||
43276 | # Do not complain, so a configure script can configure whichever | |
43277 | # parts of a large source tree are present. | |
43278 | test -d $srcdir/$ac_dir || continue | |
43279 | ||
43280 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
43281 | echo "$as_me: configuring in $ac_dir" >&6;} | |
43282 | { if $as_mkdir_p; then | |
43283 | mkdir -p "$ac_dir" | |
43284 | else | |
43285 | as_dir="$ac_dir" | |
43286 | as_dirs= | |
43287 | while test ! -d "$as_dir"; do | |
43288 | as_dirs="$as_dir $as_dirs" | |
43289 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43290 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43291 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43292 | X"$as_dir" : 'X\(//\)$' \| \ | |
43293 | X"$as_dir" : 'X\(/\)' \| \ | |
43294 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43295 | echo X"$as_dir" | |
43296 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43297 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43298 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43299 | /^X\(\/\).*/{ s//\1/; q; } | |
43300 | s/.*/./; q'` | |
43301 | done | |
43302 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43303 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43304 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43305 | { (exit 1); exit 1; }; }; } | |
43306 | ||
43307 | ac_builddir=. | |
43308 | ||
43309 | if test "$ac_dir" != .; then | |
43310 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43311 | # A "../" for each directory in $ac_dir_suffix. | |
43312 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43313 | else | |
43314 | ac_dir_suffix= ac_top_builddir= | |
43315 | fi | |
43316 | ||
43317 | case $srcdir in | |
43318 | .) # No --srcdir option. We are building in place. | |
43319 | ac_srcdir=. | |
43320 | if test -z "$ac_top_builddir"; then | |
43321 | ac_top_srcdir=. | |
43322 | else | |
43323 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43324 | fi ;; | |
43325 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43326 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43327 | ac_top_srcdir=$srcdir ;; | |
43328 | *) # Relative path. | |
43329 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43330 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43331 | esac | |
ac1cb8d3 VS |
43332 | |
43333 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43334 | # the directories may not exist. | |
43335 | case `pwd` in | |
43336 | .) ac_abs_builddir="$ac_dir";; | |
43337 | *) | |
43338 | case "$ac_dir" in | |
43339 | .) ac_abs_builddir=`pwd`;; | |
43340 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43341 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43342 | esac;; | |
43343 | esac | |
43344 | case $ac_abs_builddir in | |
43345 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43346 | *) | |
43347 | case ${ac_top_builddir}. in | |
43348 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43349 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43350 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43351 | esac;; | |
43352 | esac | |
43353 | case $ac_abs_builddir in | |
43354 | .) ac_abs_srcdir=$ac_srcdir;; | |
43355 | *) | |
43356 | case $ac_srcdir in | |
43357 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43358 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43359 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43360 | esac;; | |
43361 | esac | |
43362 | case $ac_abs_builddir in | |
43363 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43364 | *) | |
43365 | case $ac_top_srcdir in | |
43366 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43367 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43368 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43369 | esac;; | |
43370 | esac | |
a848cd7e SC |
43371 | |
43372 | ||
43373 | cd $ac_dir | |
43374 | ||
43375 | # Check for guested configure; otherwise get Cygnus style configure. | |
43376 | if test -f $ac_srcdir/configure.gnu; then | |
43377 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
43378 | elif test -f $ac_srcdir/configure; then | |
43379 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
43380 | elif test -f $ac_srcdir/configure.in; then | |
43381 | ac_sub_configure=$ac_configure | |
43382 | else | |
43383 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
43384 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
43385 | ac_sub_configure= | |
43386 | fi | |
43387 | ||
43388 | # The recursion is here. | |
43389 | if test -n "$ac_sub_configure"; then | |
43390 | # Make the cache file name correct relative to the subdirectory. | |
43391 | case $cache_file in | |
43392 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
43393 | *) # Relative path. | |
ac1cb8d3 | 43394 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
43395 | esac |
43396 | ||
43397 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
43398 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
43399 | # The eval makes quoting arguments work. | |
43400 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
43401 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
43402 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
43403 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43404 | { (exit 1); exit 1; }; } | |
43405 | fi | |
43406 | ||
2cbbc68d | 43407 | cd $ac_popdir |
a848cd7e SC |
43408 | done |
43409 | fi | |
43410 | ||
43411 | ||
43412 | echo | |
77ffb593 | 43413 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43414 | echo "" |
4d4ff94c | 43415 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 43416 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 43417 | |
77ffb593 JS |
43418 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43419 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43420 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43421 | |
77ffb593 JS |
43422 | echo " What level of wxWidgets compatibility should be enabled?" |
43423 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43424 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43425 | |
77ffb593 | 43426 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43427 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43428 | echo " png ${wxUSE_LIBPNG-none}" | |
43429 | echo " regex ${wxUSE_REGEX}" | |
43430 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43431 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43432 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43433 | fi | |
43434 | echo " zlib ${wxUSE_ZLIB}" | |
43435 | echo " odbc ${wxUSE_ODBC}" | |
43436 | echo " expat ${wxUSE_EXPAT}" | |
43437 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43438 | echo " sdl ${wxUSE_LIBSDL}" | |
d1c38808 | 43439 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}" |
a848cd7e SC |
43440 | |
43441 | echo "" | |
43442 |